Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for methodDecl (0.22 sec)

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

    	}
    	return nil
    }
    
    // MethodSpec        = MethodName Signature | InterfaceTypeName .
    // MethodName        = identifier .
    // InterfaceTypeName = TypeName .
    func (p *parser) methodDecl() *Field {
    	if trace {
    		defer p.trace("methodDecl")()
    	}
    
    	f := new(Field)
    	f.pos = p.pos()
    	name := p.name()
    
    	const context = "interface method"
    
    	switch p.tok {
    	case _Lparen:
    		// method
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  2. doc/go1.17_spec.html

    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
    the identifier denotes the specified constant, type, variable, function, label, or package.
    </p>
    
    <p>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  3. doc/go_spec.html

    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
    the identifier denotes the specified constant, type, variable, function, label, or package.
    </p>
    
    <p>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (0)
Back to top