HomeSort by relevance Sort by last modified time
    Searched refs:Typ (Results 26 - 50 of 66) sorted by null

12 3

  /prebuilts/go/darwin-x86/src/cmd/vet/
unused.go 35 types.NewTuple(types.NewVar(token.NoPos, nil, "", types.Typ[types.String])),
types.go 30 if typ := importType("fmt", "Stringer"); typ != nil {
31 stringerType = typ.Underlying().(*types.Interface)
34 if typ := importType("fmt", "Formatter"); typ != nil {
35 formatterType = typ.Underlying().(*types.Interface)
91 // typ is used only for recursive calls; external callers must supply nil.
96 func (f *File) matchArgType(t printfArgType, typ types.Type, arg ast.Expr) bool {
97 return f.matchArgTypeInternal(t, typ, arg, make(map[types.Type]bool))
103 func (f *File) matchArgTypeInternal(t printfArgType, typ types.Type, arg ast.Expr, inProgress map[types.Type]bool) bool
    [all...]
print.go 93 typ := f.pkg.types[call.Fun].Type
94 if typ != nil {
95 if sig, ok := typ.(*types.Signature); ok {
121 if f.pkg.types[call.Args[idx]].Type == types.Typ[types.String] {
192 f.pkg.types[d.Type.Results.List[0].Type].Type == types.Typ[types.String]
420 typ printfArgType
522 if !f.matchArgType(v.typ, nil, arg) {
524 if typ := f.pkg.types[arg].Type; typ != nil {
525 typeString = typ.String(
    [all...]
  /prebuilts/go/linux-x86/src/cmd/vet/
unused.go 35 types.NewTuple(types.NewVar(token.NoPos, nil, "", types.Typ[types.String])),
types.go 30 if typ := importType("fmt", "Stringer"); typ != nil {
31 stringerType = typ.Underlying().(*types.Interface)
34 if typ := importType("fmt", "Formatter"); typ != nil {
35 formatterType = typ.Underlying().(*types.Interface)
91 // typ is used only for recursive calls; external callers must supply nil.
96 func (f *File) matchArgType(t printfArgType, typ types.Type, arg ast.Expr) bool {
97 return f.matchArgTypeInternal(t, typ, arg, make(map[types.Type]bool))
103 func (f *File) matchArgTypeInternal(t printfArgType, typ types.Type, arg ast.Expr, inProgress map[types.Type]bool) bool
    [all...]
print.go 93 typ := f.pkg.types[call.Fun].Type
94 if typ != nil {
95 if sig, ok := typ.(*types.Signature); ok {
121 if f.pkg.types[call.Args[idx]].Type == types.Typ[types.String] {
192 f.pkg.types[d.Type.Results.List[0].Type].Type == types.Typ[types.String]
420 typ printfArgType
522 if !f.matchArgType(v.typ, nil, arg) {
524 if typ := f.pkg.types[arg].Type; typ != nil {
525 typeString = typ.String(
    [all...]
  /prebuilts/go/darwin-x86/src/cmd/compile/internal/ssa/
value.go 246 Typ Type // Go type
255 Typ Type // Go type
262 Typ Type // Go type
writebarrier.go 71 wbsym := &ExternSymbol{Typ: f.Config.fe.TypeBool(), Sym: f.Config.fe.Syslook("writeBarrier").(fmt.Stringer)}
159 typ := w.Aux // only non-nil for MoveWB, MoveWBVolatile, ZeroWB
178 memThen = wbcall(line, bThen, fn, typ, ptr, val, memThen, sp, sb, w.Op == OpMoveWBVolatile)
240 func wbcall(line int32, b *Block, fn interface{}, typ interface{}, ptr, val, mem, sp, sb *Value, valIsVolatile bool) *Value {
250 aux := &AutoSymbol{Typ: t, Node: tmp}
261 if typ != nil { // for typedmemmove
262 taddr := b.NewValue1A(line, OpAddr, config.fe.TypeUintptr(), typ, sb)
  /prebuilts/go/linux-x86/src/cmd/compile/internal/ssa/
value.go 246 Typ Type // Go type
255 Typ Type // Go type
262 Typ Type // Go type
writebarrier.go 71 wbsym := &ExternSymbol{Typ: f.Config.fe.TypeBool(), Sym: f.Config.fe.Syslook("writeBarrier").(fmt.Stringer)}
159 typ := w.Aux // only non-nil for MoveWB, MoveWBVolatile, ZeroWB
178 memThen = wbcall(line, bThen, fn, typ, ptr, val, memThen, sp, sb, w.Op == OpMoveWBVolatile)
240 func wbcall(line int32, b *Block, fn interface{}, typ interface{}, ptr, val, mem, sp, sb *Value, valIsVolatile bool) *Value {
250 aux := &AutoSymbol{Typ: t, Node: tmp}
261 if typ != nil { // for typedmemmove
262 taddr := b.NewValue1A(line, OpAddr, config.fe.TypeUintptr(), typ, sb)
  /prebuilts/go/darwin-x86/src/go/types/
expr.go 70 if !pred(x.typ) {
93 x.typ = &Pointer{base: x.typ}
97 typ, ok := x.typ.Underlying().(*Chan)
103 if typ.dir == SendOnly {
109 x.typ = typ.elem
120 typ := x.typ.Underlying().(*Basic
    [all...]
object.go 86 typ Type
95 func (obj *object) Type() Type { return obj.typ }
136 return &PkgName{object{nil, pos, pkg, name, Typ[Invalid], 0, token.NoPos}, imported, false}
150 func NewConst(pos token.Pos, pkg *Package, name string, typ Type, val constant.Value) *Const {
151 return &Const{object{nil, pos, pkg, name, typ, 0, token.NoPos}, val, false}
162 func NewTypeName(pos token.Pos, pkg *Package, name string, typ Type) *TypeName {
163 return &TypeName{object{nil, pos, pkg, name, typ, 0, token.NoPos}}
175 func NewVar(pos token.Pos, pkg *Package, name string, typ Type) *Var {
176 return &Var{object: object{nil, pos, pkg, name, typ, 0, token.NoPos}}
179 func NewParam(pos token.Pos, pkg *Package, name string, typ Type) *Var
    [all...]
stmt.go 212 typ Type
224 check.convertUntyped(&v, x.typ)
243 if Identical(v.typ, vt.typ) {
250 seen[val] = append(seen[val], valueType{v.pos(), v.typ})
259 if T == Typ[Invalid] {
341 tch, ok := ch.typ.Underlying().(*Chan)
343 check.invalidOp(s.Arrow, "cannot send to non-chan type %s", ch.typ)
371 if !isNumeric(x.typ) {
372 check.invalidOp(s.X.Pos(), "%s%s (non-numeric type %s)", s.X, s.Tok, x.typ)
    [all...]
typestring.go 61 // TypeString returns the string representation of typ.
64 func TypeString(typ Type, qf Qualifier) string {
66 WriteType(&buf, typ, qf)
70 // WriteType writes the string representation of typ to buf.
73 func WriteType(buf *bytes.Buffer, typ Type, qf Qualifier) {
74 writeType(buf, typ, qf, make([]Type, 0, 8))
77 func writeType(buf *bytes.Buffer, typ Type, qf Qualifier, visited []Type) {
83 if t == typ {
84 fmt.Fprintf(buf, "?%T", typ) // cycle to typ
    [all...]
decl.go 41 // See check.typ for the details on def and path.
78 check.constDecl(obj, d.typ, d.init)
81 check.varDecl(obj, d.lhs, d.typ, d.init)
84 check.typeDecl(obj, d.typ, def, path)
97 func (check *Checker) constDecl(obj *Const, typ, init ast.Expr) {
98 assert(obj.typ == nil)
101 obj.typ = Typ[Invalid]
115 if typ != nil {
116 t := check.typ(typ
    [all...]
api_test.go 50 typ string // constant type
140 if got := tv.Type.String(); got != test.typ {
141 t.Errorf("package %s: got type %s; want %s", name, got, test.typ)
156 typ string // value type
241 var typ Type
244 typ = tv.Type
248 if typ == nil {
254 if got := typ.String(); got != test.typ {
255 t.Errorf("package %s: got %s; want %s", name, got, test.typ)
    [all...]
check.go 38 typ *Basic
129 func (check *Checker) rememberUntyped(e ast.Expr, lhs bool, mode operandMode, typ *Basic, val constant.Value) {
135 m[e] = exprInfo{lhs, mode, typ, val}
254 if debug && isTyped(info.typ) {
255 check.dump("%s: %s (type %s) is typed", x.Pos(), x, info.typ)
258 check.recordTypeAndValue(x, info.mode, info.typ, info.val)
262 func (check *Checker) recordTypeAndValue(x ast.Expr, mode operandMode, typ Type, val constant.Value) {
264 assert(typ != nil)
268 assert(typ != nil)
271 assert(typ == Typ[Invalid] || isConstType(typ)
    [all...]
  /prebuilts/go/linux-x86/src/go/types/
expr.go 70 if !pred(x.typ) {
93 x.typ = &Pointer{base: x.typ}
97 typ, ok := x.typ.Underlying().(*Chan)
103 if typ.dir == SendOnly {
109 x.typ = typ.elem
120 typ := x.typ.Underlying().(*Basic
    [all...]
object.go 86 typ Type
95 func (obj *object) Type() Type { return obj.typ }
136 return &PkgName{object{nil, pos, pkg, name, Typ[Invalid], 0, token.NoPos}, imported, false}
150 func NewConst(pos token.Pos, pkg *Package, name string, typ Type, val constant.Value) *Const {
151 return &Const{object{nil, pos, pkg, name, typ, 0, token.NoPos}, val, false}
162 func NewTypeName(pos token.Pos, pkg *Package, name string, typ Type) *TypeName {
163 return &TypeName{object{nil, pos, pkg, name, typ, 0, token.NoPos}}
175 func NewVar(pos token.Pos, pkg *Package, name string, typ Type) *Var {
176 return &Var{object: object{nil, pos, pkg, name, typ, 0, token.NoPos}}
179 func NewParam(pos token.Pos, pkg *Package, name string, typ Type) *Var
    [all...]
stmt.go 212 typ Type
224 check.convertUntyped(&v, x.typ)
243 if Identical(v.typ, vt.typ) {
250 seen[val] = append(seen[val], valueType{v.pos(), v.typ})
259 if T == Typ[Invalid] {
341 tch, ok := ch.typ.Underlying().(*Chan)
343 check.invalidOp(s.Arrow, "cannot send to non-chan type %s", ch.typ)
371 if !isNumeric(x.typ) {
372 check.invalidOp(s.X.Pos(), "%s%s (non-numeric type %s)", s.X, s.Tok, x.typ)
    [all...]
typestring.go 61 // TypeString returns the string representation of typ.
64 func TypeString(typ Type, qf Qualifier) string {
66 WriteType(&buf, typ, qf)
70 // WriteType writes the string representation of typ to buf.
73 func WriteType(buf *bytes.Buffer, typ Type, qf Qualifier) {
74 writeType(buf, typ, qf, make([]Type, 0, 8))
77 func writeType(buf *bytes.Buffer, typ Type, qf Qualifier, visited []Type) {
83 if t == typ {
84 fmt.Fprintf(buf, "?%T", typ) // cycle to typ
    [all...]
decl.go 41 // See check.typ for the details on def and path.
78 check.constDecl(obj, d.typ, d.init)
81 check.varDecl(obj, d.lhs, d.typ, d.init)
84 check.typeDecl(obj, d.typ, def, path)
97 func (check *Checker) constDecl(obj *Const, typ, init ast.Expr) {
98 assert(obj.typ == nil)
101 obj.typ = Typ[Invalid]
115 if typ != nil {
116 t := check.typ(typ
    [all...]
api_test.go 50 typ string // constant type
140 if got := tv.Type.String(); got != test.typ {
141 t.Errorf("package %s: got type %s; want %s", name, got, test.typ)
156 typ string // value type
241 var typ Type
244 typ = tv.Type
248 if typ == nil {
254 if got := typ.String(); got != test.typ {
255 t.Errorf("package %s: got %s; want %s", name, got, test.typ)
    [all...]
check.go 38 typ *Basic
129 func (check *Checker) rememberUntyped(e ast.Expr, lhs bool, mode operandMode, typ *Basic, val constant.Value) {
135 m[e] = exprInfo{lhs, mode, typ, val}
254 if debug && isTyped(info.typ) {
255 check.dump("%s: %s (type %s) is typed", x.Pos(), x, info.typ)
258 check.recordTypeAndValue(x, info.mode, info.typ, info.val)
262 func (check *Checker) recordTypeAndValue(x ast.Expr, mode operandMode, typ Type, val constant.Value) {
264 assert(typ != nil)
268 assert(typ != nil)
271 assert(typ == Typ[Invalid] || isConstType(typ)
    [all...]
  /external/fonttools/Lib/fontTools/
merge.py 523 Typ = 'Sub'
526 Typ = 'Pos'
532 ChainTyp = Chain+Typ
534 self.Typ = Typ

Completed in 709 milliseconds

12 3