/external/clang/test/SemaTemplate/ |
derived.cpp | 43 class Typ { // expected-note {{not complete}} 44 Typ x; // expected-error {{incomplete type}} 47 template <unsigned C> class B : Typ {};
|
/prebuilts/go/darwin-x86/src/go/types/ |
object_test.go | 37 {NewTypeName(0, nil, "t4", Typ[Int32]), true}, // type name refers to basic type with different name 38 {NewTypeName(0, nil, "int32", Typ[Int32]), false}, // type name refers to basic type with same name 39 {NewTypeName(0, pkg, "int32", Typ[Int32]), true}, // type name is declared in user-defined package (outside Universe) 40 {NewTypeName(0, nil, "rune", Typ[Rune]), true}, // type name refers to basic type rune which is an alias already
|
assignments.go | 31 if isUntyped(x.typ) { 39 if T == nil && x.typ == Typ[UntypedNil] { 44 target = Default(x.typ) 51 // x.typ is typed 71 if x.mode == invalid || x.typ == Typ[Invalid] || lhs.typ == Typ[Invalid] { 72 if lhs.typ == nil [all...] |
issues_test.go | 67 want = Typ[Uint8] 69 want = Typ[Uint16] 71 want = Typ[Uint32] 73 want = Typ[Uint] // because of "+ s", s is of type uint 75 want = Typ[String] 79 want = Typ[UntypedNil] 109 want := Typ[Int]
|
universe.go | 23 // Typ contains the predeclared *Basic types indexed by their 26 // The *Basic type for Typ[Byte] will have the name "uint8". 29 var Typ = []*Basic{ 66 for _, t := range Typ { 74 res := NewVar(token.NoPos, nil, "", Typ[String]) 77 typ := &Named{underlying: NewInterface([]*Func{err}, nil).Complete()} 78 sig.recv = NewVar(token.NoPos, nil, "", typ) 79 def(NewTypeName(token.NoPos, nil, "error", typ)) 94 def(NewConst(token.NoPos, nil, c.name, Typ[c.kind], c.val)) 99 def(&Nil{object{name: "nil", typ: Typ[UntypedNil]}} [all...] |
builtins.go | 83 S := x.typ 103 if isString(x.typ) { 105 sig := makeSig(S, S, x.typ) 110 x.typ = S 131 x.typ = S 140 var typ Type 142 switch typ = implicitArrayDeref(x.typ.Underlying()); t := typ.(type) { 179 x.typ = Typ[Int [all...] |
typexpr.go | 19 // For the meaning of def and path, see check.typ, below. 37 typ := obj.Type() 38 assert(typ != nil) 55 if typ == Typ[Invalid] { 83 typ = Typ[Invalid] 96 if typ == Typ[Invalid] { 116 x.typ = ty 142 func (check *Checker) typ(e ast.Expr) Type { func [all...] |
operand.go | 24 constant_ // operand is a constant; the operand's typ is a Basic type 52 typ Type 80 // constant <expr> ( <mode> of type <typ>) 82 // constant <expr> ( <mode> <val> of type <typ>) 85 // variable <expr> ( <mode> of type <typ>) 88 // mapindex <expr> ( <mode> of type <typ>) 91 // value <expr> ( <mode> of type <typ>) 94 // commaok <expr> ( <mode> of type <typ>) 107 expr = TypeString(x.typ, qf) 126 if x.typ != nil [all...] |
predicates.go | 11 func isNamed(typ Type) bool { 12 if _, ok := typ.(*Basic); ok { 15 _, ok := typ.(*Named) 19 func isBoolean(typ Type) bool { 20 t, ok := typ.Underlying().(*Basic) 24 func isInteger(typ Type) bool { 25 t, ok := typ.Underlying().(*Basic) 29 func isUnsigned(typ Type) bool { 30 t, ok := typ.Underlying().(*Basic) 34 func isFloat(typ Type) bool [all...] |
/prebuilts/go/linux-x86/src/go/types/ |
object_test.go | 37 {NewTypeName(0, nil, "t4", Typ[Int32]), true}, // type name refers to basic type with different name 38 {NewTypeName(0, nil, "int32", Typ[Int32]), false}, // type name refers to basic type with same name 39 {NewTypeName(0, pkg, "int32", Typ[Int32]), true}, // type name is declared in user-defined package (outside Universe) 40 {NewTypeName(0, nil, "rune", Typ[Rune]), true}, // type name refers to basic type rune which is an alias already
|
assignments.go | 31 if isUntyped(x.typ) { 39 if T == nil && x.typ == Typ[UntypedNil] { 44 target = Default(x.typ) 51 // x.typ is typed 71 if x.mode == invalid || x.typ == Typ[Invalid] || lhs.typ == Typ[Invalid] { 72 if lhs.typ == nil [all...] |
issues_test.go | 67 want = Typ[Uint8] 69 want = Typ[Uint16] 71 want = Typ[Uint32] 73 want = Typ[Uint] // because of "+ s", s is of type uint 75 want = Typ[String] 79 want = Typ[UntypedNil] 109 want := Typ[Int]
|
universe.go | 23 // Typ contains the predeclared *Basic types indexed by their 26 // The *Basic type for Typ[Byte] will have the name "uint8". 29 var Typ = []*Basic{ 66 for _, t := range Typ { 74 res := NewVar(token.NoPos, nil, "", Typ[String]) 77 typ := &Named{underlying: NewInterface([]*Func{err}, nil).Complete()} 78 sig.recv = NewVar(token.NoPos, nil, "", typ) 79 def(NewTypeName(token.NoPos, nil, "error", typ)) 94 def(NewConst(token.NoPos, nil, c.name, Typ[c.kind], c.val)) 99 def(&Nil{object{name: "nil", typ: Typ[UntypedNil]}} [all...] |
builtins.go | 83 S := x.typ 103 if isString(x.typ) { 105 sig := makeSig(S, S, x.typ) 110 x.typ = S 131 x.typ = S 140 var typ Type 142 switch typ = implicitArrayDeref(x.typ.Underlying()); t := typ.(type) { 179 x.typ = Typ[Int [all...] |
typexpr.go | 19 // For the meaning of def and path, see check.typ, below. 37 typ := obj.Type() 38 assert(typ != nil) 55 if typ == Typ[Invalid] { 83 typ = Typ[Invalid] 96 if typ == Typ[Invalid] { 116 x.typ = ty 142 func (check *Checker) typ(e ast.Expr) Type { func [all...] |
operand.go | 24 constant_ // operand is a constant; the operand's typ is a Basic type 52 typ Type 80 // constant <expr> ( <mode> of type <typ>) 82 // constant <expr> ( <mode> <val> of type <typ>) 85 // variable <expr> ( <mode> of type <typ>) 88 // mapindex <expr> ( <mode> of type <typ>) 91 // value <expr> ( <mode> of type <typ>) 94 // commaok <expr> ( <mode> of type <typ>) 107 expr = TypeString(x.typ, qf) 126 if x.typ != nil [all...] |
predicates.go | 11 func isNamed(typ Type) bool { 12 if _, ok := typ.(*Basic); ok { 15 _, ok := typ.(*Named) 19 func isBoolean(typ Type) bool { 20 t, ok := typ.Underlying().(*Basic) 24 func isInteger(typ Type) bool { 25 t, ok := typ.Underlying().(*Basic) 29 func isUnsigned(typ Type) bool { 30 t, ok := typ.Underlying().(*Basic) 34 func isFloat(typ Type) bool [all...] |
/prebuilts/go/darwin-x86/src/go/internal/gccgoimporter/ |
parser.go | 196 func deref(typ types.Type) types.Type { 197 if p, _ := typ.(*types.Pointer); p != nil { 198 typ = p.Elem() 200 return typ 206 typ := p.parseType(pkg) 210 switch typ := deref(typ).(type) { 212 name = typ.Name() 214 name = typ.Obj().Name() 219 field = types.NewField(token.NoPos, pkg, name, typ, anon [all...] |
/prebuilts/go/linux-x86/src/go/internal/gccgoimporter/ |
parser.go | 196 func deref(typ types.Type) types.Type { 197 if p, _ := typ.(*types.Pointer); p != nil { 198 typ = p.Elem() 200 return typ 206 typ := p.parseType(pkg) 210 switch typ := deref(typ).(type) { 212 name = typ.Name() 214 name = typ.Obj().Name() 219 field = types.NewField(token.NoPos, pkg, name, typ, anon [all...] |
/prebuilts/go/darwin-x86/src/go/internal/gcimporter/ |
bimport.go | 146 for _, typ := range p.interfaceList { 147 typ.Complete() 260 typ := p.typ(nil) 262 p.declare(types.NewConst(pos, pkg, name, typ, val)) 268 typ := p.typ(nil) 269 p.declare(types.NewTypeName(pos, pkg, name, typ)) 272 p.typ(nil) 277 typ := p.typ(nil 382 func (p *importer) typ(parent *types.Package) types.Type { func [all...] |
/prebuilts/go/linux-x86/src/go/internal/gcimporter/ |
bimport.go | 146 for _, typ := range p.interfaceList { 147 typ.Complete() 260 typ := p.typ(nil) 262 p.declare(types.NewConst(pos, pkg, name, typ, val)) 268 typ := p.typ(nil) 269 p.declare(types.NewTypeName(pos, pkg, name, typ)) 272 p.typ(nil) 277 typ := p.typ(nil 382 func (p *importer) typ(parent *types.Package) types.Type { func [all...] |
/prebuilts/go/darwin-x86/src/cmd/vet/ |
shift.go | 96 uintBitSize = 8 * archSizes.Sizeof(types.Typ[types.Uint]) 97 uintptrBitSize = 8 * archSizes.Sizeof(types.Typ[types.Uintptr])
|
nilfunc.go | 66 return f.pkg.types[e].Type == types.Typ[types.UntypedNil]
|
/prebuilts/go/linux-x86/src/cmd/vet/ |
shift.go | 96 uintBitSize = 8 * archSizes.Sizeof(types.Typ[types.Uint]) 97 uintptrBitSize = 8 * archSizes.Sizeof(types.Typ[types.Uintptr])
|
nilfunc.go | 66 return f.pkg.types[e].Type == types.Typ[types.UntypedNil]
|