- Sort Score
- Result 10 results
- Languages All
Results 11 - 14 of 14 for ConstDecl (0.2 sec)
-
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) -
src/go/types/resolver.go
} } else { // declare imported package object in file scope // (no need to provide s.Name since we called check.recordDef earlier) check.declare(fileScope, nil, pkgName, nopos) } case constDecl: // declare all constants for i, name := range d.spec.Names { obj := NewConst(name.Pos(), pkg, name.Name, nil, constant.MakeInt64(int64(d.iota))) var init ast.Expr if i < len(d.init) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 16:22:59 UTC 2024 - 26.1K bytes - Viewed (0) -
doc/go1.17_spec.html
<a href="#Package_initialization"><code>init</code> function</a> declarations, and like the blank identifier it does not introduce a new binding. </p> <pre class="ebnf"> Declaration = ConstDecl | TypeDecl | VarDecl . TopLevelDecl = Declaration | FunctionDecl | MethodDecl . </pre> <p> The <i>scope</i> of a declared identifier is the extent of source text in which
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 20:22:45 UTC 2024 - 211.6K bytes - Viewed (0) -
doc/go_spec.html
<a href="#Package_initialization"><code>init</code> function</a> declarations, and like the blank identifier it does not introduce a new binding. </p> <pre class="ebnf"> Declaration = ConstDecl | TypeDecl | VarDecl . TopLevelDecl = Declaration | FunctionDecl | MethodDecl . </pre> <p> The <i>scope</i> of a declared identifier is the extent of source text in which
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 21:07:21 UTC 2024 - 281.5K bytes - Viewed (1)