Home | History | Annotate | Download | only in testdata

Lines Matching refs:GO

1 // Copyright 2009 The Go Authors. All rights reserved.
5 // Package parser implements a parser for Go source files. Input may be
7 // output is an abstract syntax tree (AST) representing the Go source. The
14 "go/ast"
15 "go/scanner"
16 "go/token"
146 // Go spec: A short variable declaration may redeclare variables
379 panic("go/parser internal error: " + msg)
669 // Go spec: The scope of an identifier denoting a function
681 // Go spec: The scope of an identifier denoting a function
1402 // Go spec: The scope of a label is the body of the function
1444 pos := p.expect(token.GO)
1448 return &ast.BadStmt{pos, pos + 2} // len("go")
1826 case token.GO:
1911 // Go spec: The scope of a constant or variable identifier declared inside
1928 // Go spec: The scope of a type identifier declared inside a function begins
1956 // Go spec: The scope of a constant or variable identifier declared inside
2043 // Go spec: The scope of an identifier denoting a constant, type,
2110 // Go spec: The package clause is not a declaration;
2121 // Likely not a Go source file at all.