Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 40 for CompositeLit (2.42 sec)

  1. api/go1.11.txt

    pkg debug/pe, const IMAGE_DIRECTORY_ENTRY_TLS ideal-int
    pkg debug/pe, const IMAGE_FILE_MACHINE_ARM64 = 43620
    pkg debug/pe, const IMAGE_FILE_MACHINE_ARM64 ideal-int
    pkg go/ast, type CompositeLit struct, Incomplete bool
    pkg go/token, method (*File) AddLineColumnInfo(int, string, int, int)
    pkg go/types, func NewInterfaceType([]*Func, []Type) *Interface
    pkg go/types, method (*Interface) EmbeddedType(int) Type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 22 03:48:56 UTC 2018
    - 25K bytes
    - Viewed (0)
  2. src/cmd/doc/pkg.go

    		}
    		if len(n.List) == 1 {
    			return pkg.oneLineField(n.List[0], depth)
    		}
    		return dotDotDot
    
    	case *ast.FuncLit:
    		return pkg.oneLineNodeDepth(n.Type, depth) + " { ... }"
    
    	case *ast.CompositeLit:
    		typ := pkg.oneLineNodeDepth(n.Type, depth)
    		if len(n.Elts) == 0 {
    			return fmt.Sprintf("%s{}", typ)
    		}
    		return fmt.Sprintf("%s{ %s }", typ, dotDotDot)
    
    	case *ast.ArrayType:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 20:15:52 UTC 2024
    - 32K bytes
    - Viewed (0)
  3. src/go/printer/nodes.go

    		} else {
    			p.exprList(x.Lparen, x.Args, depth, commaTerm, x.Rparen, false)
    		}
    		p.setPos(x.Rparen)
    		p.print(token.RPAREN)
    		if wasIndented {
    			p.print(unindent)
    		}
    
    	case *ast.CompositeLit:
    		// composite literal elements that are composite literals themselves may have the type omitted
    		if x.Type != nil {
    			p.expr1(x.Type, token.HighestPrec, depth)
    		}
    		p.level++
    		p.setPos(x.Lbrace)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"CommentGroup", Type, 0},
    		{"CommentGroup.List", Field, 0},
    		{"CommentMap", Type, 1},
    		{"CompositeLit", Type, 0},
    		{"CompositeLit.Elts", Field, 0},
    		{"CompositeLit.Incomplete", Field, 11},
    		{"CompositeLit.Lbrace", Field, 0},
    		{"CompositeLit.Rbrace", Field, 0},
    		{"CompositeLit.Type", Field, 0},
    		{"Con", Const, 0},
    		{"Decl", Type, 0},
    		{"DeclStmt", Type, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  5. src/go/parser/parser.go

    	var elts []ast.Expr
    	p.exprLev++
    	if p.tok != token.RBRACE {
    		elts = p.parseElementList()
    	}
    	p.exprLev--
    	rbrace := p.expectClosing(token.RBRACE, "composite literal")
    	return &ast.CompositeLit{Type: typ, Lbrace: lbrace, Elts: elts, Rbrace: rbrace}
    }
    
    func (p *parser) parsePrimaryExpr(x ast.Expr) ast.Expr {
    	if p.trace {
    		defer un(trace(p, "PrimaryExpr"))
    	}
    
    	if x == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/api_test.go

    		}
    
    		// test type of composite literal expression
    		rhs := f.DeclList[0].(*syntax.VarDecl).Values
    		cmptype(rhs, test.typ)
    
    		// test type of composite literal type expression
    		cmptype(rhs.(*syntax.CompositeLit).Type, test.typ)
    	}
    }
    
    // TestObjectParents verifies that objects have parent scopes or not
    // as specified by the Object interface.
    func TestObjectParents(t *testing.T) {
    	const src = `
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  7. src/go/types/api_test.go

    		rhs := f.Decls[0].(*ast.GenDecl).Specs[0].(*ast.ValueSpec).Values[0]
    		cmptype(rhs, test.typ)
    
    		// test type of composite literal type expression
    		cmptype(rhs.(*ast.CompositeLit).Type, test.typ)
    	}
    }
    
    // TestObjectParents verifies that objects have parent scopes or not
    // as specified by the Object interface.
    func TestObjectParents(t *testing.T) {
    	const src = `
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  8. doc/go1.17_spec.html

    operand only on the left-hand side of an <a href="#Assignments">assignment</a>.
    </p>
    
    <pre class="ebnf">
    Operand     = Literal | OperandName | "(" Expression ")" .
    Literal     = BasicLit | CompositeLit | FunctionLit .
    BasicLit    = int_lit | float_lit | imaginary_lit | rune_lit | string_lit .
    OperandName = identifier | QualifiedIdent .
    </pre>
    
    <h3 id="Qualified_identifiers">Qualified identifiers</h3>
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  9. doc/go_spec.html

    <a href="#Function_declarations">function</a>,
    or a parenthesized expression.
    </p>
    
    <pre class="ebnf">
    Operand     = Literal | OperandName [ TypeArgs ] | "(" Expression ")" .
    Literal     = BasicLit | CompositeLit | FunctionLit .
    BasicLit    = int_lit | float_lit | imaginary_lit | rune_lit | string_lit .
    OperandName = identifier | QualifiedIdent .
    </pre>
    
    <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)
  10. api/go1.txt

    pkg go/ast, type CommentGroup struct
    pkg go/ast, type CommentGroup struct, List []*Comment
    pkg go/ast, type CompositeLit struct
    pkg go/ast, type CompositeLit struct, Elts []Expr
    pkg go/ast, type CompositeLit struct, Lbrace token.Pos
    pkg go/ast, type CompositeLit struct, Rbrace token.Pos
    pkg go/ast, type CompositeLit struct, Type Expr
    pkg go/ast, type Decl interface, End() token.Pos
    pkg go/ast, type Decl interface, Pos() token.Pos
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top