Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for constDecl (0.09 sec)

  1. src/cmd/compile/internal/syntax/parser.go

    	}
    	// d.Path.Bad || d.Path.Kind == StringLit
    
    	return d
    }
    
    // ConstSpec = IdentifierList [ [ Type ] "=" ExpressionList ] .
    func (p *parser) constDecl(group *Group) Decl {
    	if trace {
    		defer p.trace("constDecl")()
    	}
    
    	d := new(ConstDecl)
    	d.pos = p.pos()
    	d.Group = group
    	d.Pragma = p.takePragma()
    
    	d.NameList = p.nameList(p.name())
    	if p.tok != _EOF && p.tok != _Semi && p.tok != _Rparen {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
Back to top