/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/internal/gcimporter/ |
bimport.go | 141 for _, typ := range p.typList { 147 if it, ok := typ.Underlying().(*types.Interface); ok { 259 typ := p.typ(nil) 261 p.declare(types.NewConst(pos, pkg, name, typ, val)) 264 p.typ(nil) 269 typ := p.typ(nil) 270 p.declare(types.NewVar(pos, pkg, name, typ)) 376 func (p *importer) typ(parent *types.Package) types.Type func [all...] |
/prebuilts/go/linux-x86/src/go/internal/gcimporter/ |
bimport.go | 141 for _, typ := range p.typList { 147 if it, ok := typ.Underlying().(*types.Interface); ok { 259 typ := p.typ(nil) 261 p.declare(types.NewConst(pos, pkg, name, typ, val)) 264 p.typ(nil) 269 typ := p.typ(nil) 270 p.declare(types.NewVar(pos, pkg, name, typ)) 376 func (p *importer) typ(parent *types.Package) types.Type func [all...] |
/prebuilts/go/darwin-x86/src/go/types/ |
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]
|
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) 50 // TODO(gri) We should be able to factor out the Typ[Invalid] test. 53 // if obj == nil || typ == Typ[Invalid] { 56 // assert(typ == obj.Type()) 66 if typ == Typ[Invalid] { 94 typ = Typ[Invalid 150 func (check *Checker) typ(e ast.Expr) Type { func [all...] |
universe.go | 23 var Typ = []*Basic{ 60 for _, t := range Typ { 68 res := NewVar(token.NoPos, nil, "", Typ[String]) 71 typ := &Named{underlying: NewInterface([]*Func{err}, nil).Complete()} 72 sig.recv = NewVar(token.NoPos, nil, "", typ) 73 def(NewTypeName(token.NoPos, nil, "error", typ)) 88 def(NewConst(token.NoPos, nil, c.name, Typ[c.kind], c.val)) 93 def(&Nil{object{name: "nil", typ: Typ[UntypedNil]}}) 189 universeByte = Universe.Lookup("byte").(*TypeName).typ.(*Basic [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 isUntyped(x.typ) { [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...] |
eval_test.go | 21 func testEval(t *testing.T, fset *token.FileSet, pkg *Package, pos token.Pos, expr string, typ Type, typStr, valStr string) { 33 if typ != nil { 35 if !Identical(gotTv.Type, typ) { 36 t.Errorf("Eval(%q) got type %s, want %s", expr, gotTv.Type, typ) 60 for _, typ := range Typ[Bool : String+1] { 61 testEval(t, fset, nil, token.NoPos, typ.Name(), typ, "", "") 85 testEval(t, fset, nil, token.NoPos, test, Typ[UntypedBool], "", "true") 175 str, typ := split(s[2:len(s)-2], ", " [all...] |
/prebuilts/go/linux-x86/src/go/types/ |
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]
|
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) 50 // TODO(gri) We should be able to factor out the Typ[Invalid] test. 53 // if obj == nil || typ == Typ[Invalid] { 56 // assert(typ == obj.Type()) 66 if typ == Typ[Invalid] { 94 typ = Typ[Invalid 150 func (check *Checker) typ(e ast.Expr) Type { func [all...] |
universe.go | 23 var Typ = []*Basic{ 60 for _, t := range Typ { 68 res := NewVar(token.NoPos, nil, "", Typ[String]) 71 typ := &Named{underlying: NewInterface([]*Func{err}, nil).Complete()} 72 sig.recv = NewVar(token.NoPos, nil, "", typ) 73 def(NewTypeName(token.NoPos, nil, "error", typ)) 88 def(NewConst(token.NoPos, nil, c.name, Typ[c.kind], c.val)) 93 def(&Nil{object{name: "nil", typ: Typ[UntypedNil]}}) 189 universeByte = Universe.Lookup("byte").(*TypeName).typ.(*Basic [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 isUntyped(x.typ) { [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...] |
eval_test.go | 21 func testEval(t *testing.T, fset *token.FileSet, pkg *Package, pos token.Pos, expr string, typ Type, typStr, valStr string) { 33 if typ != nil { 35 if !Identical(gotTv.Type, typ) { 36 t.Errorf("Eval(%q) got type %s, want %s", expr, gotTv.Type, typ) 60 for _, typ := range Typ[Bool : String+1] { 61 testEval(t, fset, nil, token.NoPos, typ.Name(), typ, "", "") 85 testEval(t, fset, nil, token.NoPos, test, Typ[UntypedBool], "", "true") 175 str, typ := split(s[2:len(s)-2], ", " [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/cmd/vet/ |
nilfunc.go | 66 return f.pkg.types[e].Type == types.Typ[types.UntypedNil]
|
/prebuilts/go/linux-x86/src/cmd/vet/ |
nilfunc.go | 66 return f.pkg.types[e].Type == types.Typ[types.UntypedNil]
|
/prebuilts/go/darwin-x86/src/go/ast/ |
scope.go | 144 Typ // type 154 Typ: "type",
|
/prebuilts/go/linux-x86/src/go/ast/ |
scope.go | 144 Typ // type 154 Typ: "type",
|