Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 39 of 39 for interfaceType (0.17 sec)

  1. src/cmd/fix/fix.go

    			walkBeforeAfter(&n.TypeParams, before, after)
    		}
    		walkBeforeAfter(&n.Params, before, after)
    		if n.Results != nil {
    			walkBeforeAfter(&n.Results, before, after)
    		}
    	case *ast.InterfaceType:
    		walkBeforeAfter(&n.Methods, before, after)
    	case *ast.MapType:
    		walkBeforeAfter(&n.Key, before, after)
    		walkBeforeAfter(&n.Value, before, after)
    	case *ast.ChanType:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 14.6K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/deadcode.go

    		off += 3 * arch.PtrSize
    	case abi.Chan: // reflect.chanType
    		off += 2 * arch.PtrSize
    	case abi.Map: // reflect.mapType
    		off += 4*arch.PtrSize + 8
    	case abi.Interface: // reflect.interfaceType
    		off += 3 * arch.PtrSize
    	default:
    		// just Sizeof(rtype)
    	}
    
    	mcount := int(decodeInuxi(arch, p[off+4:], 2))
    	moff := int(decodeInuxi(arch, p[off+4+2+2:], 4))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 14:52:41 UTC 2024
    - 19K bytes
    - Viewed (0)
  3. src/go/parser/resolver.go

    					r.resolve(ident, false)
    				} else {
    					ast.Walk(r, kv.Key)
    				}
    				ast.Walk(r, kv.Value)
    			} else {
    				ast.Walk(r, e)
    			}
    		}
    
    	case *ast.InterfaceType:
    		r.openScope(n.Pos())
    		defer r.closeScope()
    		r.walkFieldList(n.Methods, ast.Fun)
    
    	// Statements
    	case *ast.LabeledStmt:
    		r.declare(n, nil, r.labelScope, ast.Lbl, n.Label)
    		ast.Walk(r, n.Stmt)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 12:56:53 UTC 2023
    - 15.8K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/syntax/printer.go

    				p.print(outdent, newline)
    			} else {
    				p.printFieldList(n.FieldList, n.TagList, _Semi)
    			}
    		}
    		p.print(_Rbrace)
    
    	case *FuncType:
    		p.print(_Func)
    		p.printSignature(n)
    
    	case *InterfaceType:
    		p.print(_Interface)
    		if p.linebreaks && len(n.MethodList) > 1 {
    			p.print(blank)
    			p.print(_Lbrace)
    			p.print(newline, indent)
    			p.printMethodList(n.MethodList)
    			p.print(outdent, newline)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 24 07:17:27 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  5. src/go/parser/parser_test.go

    	{name: "chan2", format: "package main; var x «<-chan »int"},
    	{name: "interface", format: "package main; var x «interface { M() «int» }»", scope: true, scopeMultiplier: 2}, // Scopes: InterfaceType, FuncType
    	{name: "map", format: "package main; var x «map[int]»int"},
    	{name: "slicelit", format: "package main; var x = «[]any{«»}»", parseMultiplier: 2},             // Parser nodes: UnaryExpr, CompositeLit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 20:26:14 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/decl.go

    	// needs to take care of such type expressions.
    	if op, _ := x.(*syntax.Operation); op != nil && (op.Op == syntax.Tilde || op.Op == syntax.Or) {
    		t := check.typ(&syntax.InterfaceType{MethodList: []*syntax.Field{{Type: x}}})
    		// mark t as implicit interface if all went well
    		if t, _ := t.(*Interface); t != nil {
    			t.implicit = true
    		}
    		return t
    	}
    	return check.typ(x)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  7. src/go/types/decl.go

    	wrap := false
    	switch op := x.(type) {
    	case *ast.UnaryExpr:
    		wrap = op.Op == token.TILDE
    	case *ast.BinaryExpr:
    		wrap = op.Op == token.OR
    	}
    	if wrap {
    		x = &ast.InterfaceType{Methods: &ast.FieldList{List: []*ast.Field{{Type: x}}}}
    		t := check.typ(x)
    		// mark t as implicit interface if all went well
    		if t, _ := t.(*Interface); t != nil {
    			t.implicit = true
    		}
    		return t
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/dwarf_test.go

    		"internal/abi.FuncType":      true,
    		"internal/abi.MapType":       true,
    		"internal/abi.PtrType":       true,
    		"internal/abi.SliceType":     true,
    		"internal/abi.StructType":    true,
    		"internal/abi.InterfaceType": true,
    		"internal/abi.ITab":          true,
    	}
    
    	found := findTypes(t, dwarf, want)
    	if len(found) != len(want) {
    		t.Errorf("found %v, want %v", found, want)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 01:38:11 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/lang/GenericsUtil.java

            }
    
            final Class<?>[] interfaces = clazz.getInterfaces();
            final Type[] interfaceTypes = clazz.getGenericInterfaces();
            for (int i = 0; i < interfaces.length; ++i) {
                gatherTypeVariables(interfaces[i], interfaceTypes[i], map);
            }
    
            return map;
        }
    
        /**
         * パラメータ化された型(クラスまたはインタフェース)が持つ型変数および型引数を集めて<code>map</code>に追加します。
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 23.6K bytes
    - Viewed (0)
Back to top