package main import a "a" var x = a.A() /**----- Go file PackageDeclaration(main) PsiElement(KEYWORD_PACKAGE)('package') PsiWhiteSpace(' ') PsiElement(IDENTIFIER)('main') PsiWhiteSpace('\n') ImportDeclarationsImpl PsiElement(KEYWORD_IMPORT)('import') PsiWhiteSpace(' ') ImportSpecImpl PackageReferenceImpl PsiElement(IDENTIFIER)('a') PsiWhiteSpace(' ') LiteralStringImpl PsiElement(LITERAL_STRING)('"a"') PsiWhiteSpace('\n') VarDeclarationsImpl PsiElement(KEYWORD_VAR)('var') PsiWhiteSpace(' ') VarDeclarationImpl LiteralIdentifierImpl PsiElement(IDENTIFIER)('x') PsiWhiteSpace(' ') PsiElement(=)('=') PsiWhiteSpace(' ') CallOrConversionExpressionImpl SelectorExpressionImpl
func main() { a.A() }
func main() { a.A() b.B() }
func main() { fmt.Println("this is b in p2") a.A() }