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
Exemple #2
0
func main() {
	a.A()
}
Exemple #3
0
func main() {
	a.A()
	b.B()
}
Exemple #4
0
func main() {
	fmt.Println("this is b in p2")
	a.A()
}