type go/parser.parser

100 uses

	go/parser (current package)
		interface.go#L91: 	var p parser
		interface.go#L197: 	var p parser
		parser.go#L30: type parser struct {
		parser.go#L73: func (p *parser) init(fset *token.FileSet, filename string, src []byte, mode Mode) {
		parser.go#L91: func (p *parser) openScope() {
		parser.go#L95: func (p *parser) closeScope() {
		parser.go#L99: func (p *parser) openLabelScope() {
		parser.go#L104: func (p *parser) closeLabelScope() {
		parser.go#L119: func (p *parser) declare(decl, data interface{}, scope *ast.Scope, kind ast.ObjKind, idents ...*ast.Ident) {
		parser.go#L140: func (p *parser) shortVarDecl(decl *ast.AssignStmt, list []ast.Expr) {
		parser.go#L178: func (p *parser) tryResolve(x ast.Expr, collectUnresolved bool) {
		parser.go#L205: func (p *parser) resolve(x ast.Expr) {
		parser.go#L212: func (p *parser) printTrace(a ...interface{}) {
		parser.go#L227: func trace(p *parser, msg string) *parser {
		parser.go#L234: func un(p *parser) {
		parser.go#L240: func (p *parser) next0() {
		parser.go#L261: func (p *parser) consumeComment() (comment *ast.Comment, endline int) {
		parser.go#L285: func (p *parser) consumeCommentGroup(n int) (comments *ast.CommentGroup, endline int) {
		parser.go#L316: func (p *parser) next() {
		parser.go#L354: func (p *parser) error(pos token.Pos, msg string) {
		parser.go#L373: func (p *parser) errorExpected(pos token.Pos, msg string) {
		parser.go#L391: func (p *parser) expect(tok token.Token) token.Pos {
		parser.go#L402: func (p *parser) expect2(tok token.Token) (pos token.Pos) {
		parser.go#L415: func (p *parser) expectClosing(tok token.Token, context string) token.Pos {
		parser.go#L423: func (p *parser) expectSemi() {
		parser.go#L440: func (p *parser) atComma(context string, follow token.Token) bool {
		parser.go#L463: func (p *parser) advance(to map[token.Token]bool) {
		parser.go#L533: func (p *parser) safePos(pos token.Pos) (res token.Pos) {
		parser.go#L546: func (p *parser) parseIdent() *ast.Ident {
		parser.go#L558: func (p *parser) parseIdentList() (list []*ast.Ident) {
		parser.go#L576: func (p *parser) parseExprList(lhs bool) (list []ast.Expr) {
		parser.go#L590: func (p *parser) parseLhsList() []ast.Expr {
		parser.go#L618: func (p *parser) parseRhsList() []ast.Expr {
		parser.go#L629: func (p *parser) parseType() ast.Expr {
		parser.go#L647: func (p *parser) parseTypeName() ast.Expr {
		parser.go#L666: func (p *parser) parseArrayType() ast.Expr {
		parser.go#L688: func (p *parser) makeIdentList(list []ast.Expr) []*ast.Ident {
		parser.go#L704: func (p *parser) parseFieldDecl(scope *ast.Scope) *ast.Field {
		parser.go#L757: func (p *parser) parseStructType() *ast.StructType {
		parser.go#L784: func (p *parser) parsePointerType() *ast.StarExpr {
		parser.go#L796: func (p *parser) tryVarType(isParam bool) ast.Expr {
		parser.go#L813: func (p *parser) parseVarType(isParam bool) ast.Expr {
		parser.go#L824: func (p *parser) parseParameterList(scope *ast.Scope, ellipsisOk bool) (params []*ast.Field) {
		parser.go#L883: func (p *parser) parseParameters(scope *ast.Scope, ellipsisOk bool) *ast.FieldList {
		parser.go#L898: func (p *parser) parseResult(scope *ast.Scope) *ast.FieldList {
		parser.go#L917: func (p *parser) parseSignature(scope *ast.Scope) (params, results *ast.FieldList) {
		parser.go#L928: func (p *parser) parseFuncType() (*ast.FuncType, *ast.Scope) {
		parser.go#L940: func (p *parser) parseMethodSpec(scope *ast.Scope) *ast.Field {
		parser.go#L968: func (p *parser) parseInterfaceType() *ast.InterfaceType {
		parser.go#L992: func (p *parser) parseMapType() *ast.MapType {
		parser.go#L1006: func (p *parser) parseChanType() *ast.ChanType {
		parser.go#L1032: func (p *parser) tryIdentOrType() ast.Expr {
		parser.go#L1063: func (p *parser) tryType() ast.Expr {
		parser.go#L1074: func (p *parser) parseStmtList() (list []ast.Stmt) {
		parser.go#L1086: func (p *parser) parseBody(scope *ast.Scope) *ast.BlockStmt {
		parser.go#L1102: func (p *parser) parseBlockStmt() *ast.BlockStmt {
		parser.go#L1119: func (p *parser) parseFuncTypeOrLit() ast.Expr {
		parser.go#L1141: func (p *parser) parseOperand(lhs bool) ast.Expr {
		parser.go#L1186: func (p *parser) parseSelector(x ast.Expr) ast.Expr {
		parser.go#L1196: func (p *parser) parseTypeAssertion(x ast.Expr) ast.Expr {
		parser.go#L1214: func (p *parser) parseIndexOrSlice(x ast.Expr) ast.Expr {
		parser.go#L1261: func (p *parser) parseCallOrConversion(fun ast.Expr) *ast.CallExpr {
		parser.go#L1287: func (p *parser) parseValue(keyOk bool) ast.Expr {
		parser.go#L1329: func (p *parser) parseElement() ast.Expr {
		parser.go#L1344: func (p *parser) parseElementList() (list []ast.Expr) {
		parser.go#L1360: func (p *parser) parseLiteralValue(typ ast.Expr) ast.Expr {
		parser.go#L1377: func (p *parser) checkExpr(x ast.Expr) ast.Expr {
		parser.go#L1457: func (p *parser) checkExprOrType(x ast.Expr) ast.Expr {
		parser.go#L1473: func (p *parser) parsePrimaryExpr(lhs bool) ast.Expr {
		parser.go#L1528: func (p *parser) parseUnaryExpr(lhs bool) ast.Expr {
		parser.go#L1597: func (p *parser) tokPrec() (token.Token, int) {
		parser.go#L1606: func (p *parser) parseBinaryExpr(lhs bool, prec1 int) ast.Expr {
		parser.go#L1631: func (p *parser) parseExpr(lhs bool) ast.Expr {
		parser.go#L1639: func (p *parser) parseRhs() ast.Expr {
		parser.go#L1647: func (p *parser) parseRhsOrType() ast.Expr {
		parser.go#L1669: func (p *parser) parseSimpleStmt(mode int) (ast.Stmt, bool) {
		parser.go#L1747: func (p *parser) parseCallExpr(callType string) *ast.CallExpr {
		parser.go#L1759: func (p *parser) parseGoStmt() ast.Stmt {
		parser.go#L1774: func (p *parser) parseDeferStmt() ast.Stmt {
		parser.go#L1789: func (p *parser) parseReturnStmt() *ast.ReturnStmt {
		parser.go#L1805: func (p *parser) parseBranchStmt(tok token.Token) *ast.BranchStmt {
		parser.go#L1823: func (p *parser) makeExpr(s ast.Stmt, want string) ast.Expr {
		parser.go#L1841: func (p *parser) parseIfHeader() (init ast.Stmt, cond ast.Expr) {
		parser.go#L1901: func (p *parser) parseIfStmt() *ast.IfStmt {
		parser.go#L1933: func (p *parser) parseTypeList() (list []ast.Expr) {
		parser.go#L1947: func (p *parser) parseCaseClause(typeSwitch bool) *ast.CaseClause {
		parser.go#L1978: func (p *parser) isTypeSwitchGuard(s ast.Stmt) bool {
		parser.go#L1999: func (p *parser) parseSwitchStmt() ast.Stmt {
		parser.go#L2057: func (p *parser) parseCommClause() *ast.CommClause {
		parser.go#L2115: func (p *parser) parseSelectStmt() *ast.SelectStmt {
		parser.go#L2133: func (p *parser) parseForStmt() ast.Stmt {
		parser.go#L2216: func (p *parser) parseStmt() (s ast.Stmt) {
		parser.go#L2291: func (p *parser) parseImportSpec(doc *ast.CommentGroup, _ token.Token, _ int) ast.Spec {
		parser.go#L2330: func (p *parser) parseValueSpec(doc *ast.CommentGroup, keyword token.Token, iota int) ast.Spec {
		parser.go#L2377: func (p *parser) parseTypeSpec(doc *ast.CommentGroup, _ token.Token, _ int) ast.Spec {
		parser.go#L2401: func (p *parser) parseGenDecl(keyword token.Token, f parseSpecFunction) *ast.GenDecl {
		parser.go#L2432: func (p *parser) parseFuncDecl() *ast.FuncDecl {
		parser.go#L2492: func (p *parser) parseDecl(sync map[token.Token]bool) ast.Decl {
		parser.go#L2521: func (p *parser) parseFile() *ast.File {