Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 36 of 36 for interfaceType (0.25 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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