Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for qualifiedIdent (0.21 sec)

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

    // Literal     = BasicLit | CompositeLit | FunctionLit .
    // BasicLit    = int_lit | float_lit | imaginary_lit | rune_lit | string_lit .
    // OperandName = identifier | QualifiedIdent.
    func (p *parser) operand(keep_parens bool) Expr {
    	if trace {
    		defer p.trace("operand " + p.tok.String())()
    	}
    
    	switch p.tok {
    	case _Name:
    		return p.name()
    
    	case _Literal:
    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. src/go/parser/parser.go

    		p.advance(exprEnd)
    		return &ast.BadExpr{From: pos, To: p.pos}
    	}
    
    	return typ
    }
    
    func (p *parser) parseQualifiedIdent(ident *ast.Ident) ast.Expr {
    	if p.trace {
    		defer un(trace(p, "QualifiedIdent"))
    	}
    
    	typ := p.parseTypeName(ident)
    	if p.tok == token.LBRACK {
    		typ = p.parseTypeInstance(typ)
    	}
    
    	return typ
    }
    
    // If the result is an identifier, it is not resolved.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
Back to top