Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for parseTypeSpec (0.11 sec)

  1. src/go/internal/gccgoimporter/parser.go

    	*t = *types.NewPointer(p.parseType(pkg, t))
    
    	return t
    }
    
    // TypeSpec = NamedType | MapType | ChanType | StructType | InterfaceType | PointerType | ArrayOrSliceType | FunctionType .
    func (p *parser) parseTypeSpec(pkg *types.Package, nlist []any) types.Type {
    	switch p.tok {
    	case scanner.String:
    		return p.parseNamedType(nlist)
    
    	case scanner.Ident:
    		switch p.lit {
    		case "map":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 02 23:14:07 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  2. src/go/printer/testdata/parser.go

    	spec := &ast.ValueSpec{doc, idents, typ, values, p.lineComment}
    	p.declare(spec, p.topScope, ast.Con, idents...)
    
    	return spec
    }
    
    func parseTypeSpec(p *parser, doc *ast.CommentGroup, _ int) ast.Spec {
    	if p.trace {
    		defer un(trace(p, "TypeSpec"))
    	}
    
    	ident := p.parseIdent()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  3. src/go/parser/parser.go

    	// see go.dev/issue/46477.
    	if p.tok == token.ASSIGN {
    		// type alias
    		spec.Assign = p.pos
    		p.next()
    	}
    	spec.Type = p.parseType()
    }
    
    func (p *parser) parseTypeSpec(doc *ast.CommentGroup, _ token.Token, _ int) ast.Spec {
    	if p.trace {
    		defer un(trace(p, "TypeSpec"))
    	}
    
    	name := p.parseIdent()
    	spec := &ast.TypeSpec{Doc: doc, Name: name}
    
    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