Inline constructor of PsiJetFunctionStubImpl
This commit is contained in:
+2
-1
@@ -57,7 +57,8 @@ public class JetFunctionElementType extends JetStubElementType<PsiJetFunctionStu
|
||||
FqName fqName = ResolveSessionUtils.safeFqNameForLazyResolve(psi);
|
||||
boolean hasBlockBody = psi.hasBlockBody();
|
||||
boolean hasBody = psi.hasBody();
|
||||
return new PsiJetFunctionStubImpl(parentStub, psi.getName(), isTopLevel, fqName, isExtension, hasBlockBody, hasBody);
|
||||
return new PsiJetFunctionStubImpl(parentStub, StringRef.fromString(psi.getName()), isTopLevel, fqName,
|
||||
isExtension, hasBlockBody, hasBody);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
-12
@@ -36,18 +36,6 @@ public class PsiJetFunctionStubImpl extends StubBase<JetNamedFunction> implement
|
||||
private final boolean hasBlockBody;
|
||||
private final boolean hasBody;
|
||||
|
||||
public PsiJetFunctionStubImpl(
|
||||
@NotNull StubElement parent,
|
||||
@Nullable String name,
|
||||
boolean isTopLevel,
|
||||
@Nullable FqName fqName,
|
||||
boolean isExtension,
|
||||
boolean hasBlockBody,
|
||||
boolean hasBody
|
||||
) {
|
||||
this(parent, StringRef.fromString(name), isTopLevel, fqName, isExtension, hasBlockBody, hasBody);
|
||||
}
|
||||
|
||||
public PsiJetFunctionStubImpl(
|
||||
@NotNull StubElement parent,
|
||||
@Nullable StringRef nameRef,
|
||||
|
||||
Reference in New Issue
Block a user