return new GoFileStub(packageImportPath, packageName, isMain);
}
public void indexStub(@NotNull GoFileStub stub, @NotNull IndexSink sink) {
StringRef packageImportPath = stub.getPackageImportPath();
if ( packageImportPath != null ) {
// don't index any package information on test files or test data.
if (isTestDataInStandardLibrary(packageImportPath) || isTestFile(stub.getPsi())) {
return;
}
sink.occurrence(GoPackageImportPath.KEY, packageImportPath.toString());
}
sink.occurrence(GoPackageName.KEY, stub.getPackageName().toString());
}