Inline constructor of PsiJetFunctionStubImpl

This commit is contained in:
Pavel V. Talanov
2014-03-31 14:09:17 +04:00
parent edc7b8a81d
commit 0418085bc9
2 changed files with 2 additions and 13 deletions
@@ -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
@@ -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,