Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/despiteallobjections/amigo
/ functions
Functions
3,220 in github.com/despiteallobjections/amigo
⨍
Functions
3,220
◇
Types & classes
1,592
↓ 4 callers
Method
exclude
exclude reports an error if x.mode is in modeset and sets x.mode to invalid. The modeset may contain any of 1<<novalue, 1<<builtin, 1<<typexpr.
types/expr.go:1809
↓ 4 callers
Method
exprList
(elist []Expr, allowCommaOk bool)
types/call.go:242
↓ 4 callers
Method
exprOrType
exprOrType typechecks expression or type e and initializes x with the expression value or type. If allowGeneric is set, the operand type may be an uni
types/expr.go:1801
↓ 4 callers
Method
f
(u)
types/testdata/check/cycles2.go:12
↓ 4 callers
Function
f0
()
types/testdata/check/expr3.go:472
↓ 4 callers
Method
funcString
funcString returns a string of the form name + signature for f. check may be nil.
types/lookup.go:414
↓ 4 callers
Function
gofmtLine
gofmtLine returns the gofmt-formatted string for an AST node, ensuring that it is on a single line.
cgotool/godefs.go:169
↓ 4 callers
Method
hasTerms
---------------------------------------------------------------------------- Implementation hasTerms reports whether the type set has specific type te
types/typeset.go:103
↓ 4 callers
Method
implicitTypeAndValue
implicitTypeAndValue returns the implicit type of x when used in a context where the target type is expected. If no such implicit conversion is possib
types/expr.go:689
↓ 4 callers
Function
imported
Returns initially imported packages, as a string.
loader/loader_test.go:813
↓ 4 callers
Method
includes
includes reports whether t ∈ x.
types/typeterm.go:107
↓ 4 callers
Method
index
index checks an index expression for validity. If max >= 0, it is the upper bound for index. If the result typ is != Typ[Invalid], index is valid and
types/index.go:351
↓ 4 callers
Method
initVar
(lhs *Var, x *operand, context string)
types/assignments.go:137
↓ 4 callers
Method
insert
(name string, obj Object)
types/scope.go:126
↓ 4 callers
Method
instanceHash
instanceHash returns a string representation of typ instantiated with targs. The hash should be a perfect hash, though out of caution the type checker
types/context.go:44
↓ 4 callers
Method
intExpr
Expr for integer n.
cgotool/gcc.go:2852
↓ 4 callers
Method
intersect
intersect returns the intersection x ∩ y.
types/typeterm.go:79
↓ 4 callers
Function
isConstType
(t Type)
types/predicates.go:21
↓ 4 callers
Function
isEmpty
(f *types.Function)
types/builder_test.go:22
↓ 4 callers
Function
isStructUnionClass
isStructUnionClass reports whether the type described by the Go syntax x is a struct, union, or class with a tag.
cgotool/gcc.go:2742
↓ 4 callers
Function
lastField
(list []*Field)
syntax/positions.go:360
↓ 4 callers
Method
list
---------------------------------------------------------------------------- Declarations list parses a possibly empty, sep-separated list of elements
syntax/parser.go:387
↓ 4 callers
Method
m
()
types/testdata/check/cycles4.go:32
↓ 4 callers
Method
markComplete
---------------------------------------------------------------------------- Implementation
types/struct.go:61
↓ 4 callers
Function
mixed
(T1, T2, T3)
types/testdata/examples/inference.go:40
↓ 4 callers
Method
newInterface
check may be nil
types/interface.go:57
↓ 4 callers
Method
newNamed
newNamed is like NewNamed but with a *Checker receiver and additional orig argument.
types/named.go:66
↓ 4 callers
Function
newTypeList
newTypeList returns a new TypeList with the types in list.
types/typelists.go:31
↓ 4 callers
Method
openScopeUntil
(node Node, end Pos, comment string)
types/stmt.go:163
↓ 4 callers
Method
p1
()
types/testdata/check/methodsets.go:15
↓ 4 callers
Function
parse
(name string, src []byte, flags parser.Mode)
cgotool/ast.go:19
↓ 4 callers
Method
pm
()
types/testdata/check/typeinst1.go:144
↓ 4 callers
Function
printCall
(v *CallCommon, prefix string, instr Instruction)
types/print.go:115
↓ 4 callers
Method
printParameterList
(list []*Field, types bool)
syntax/printer.go:826
↓ 4 callers
Method
recordImplicit
(node Node, obj Object)
types/check.go:556
↓ 4 callers
Method
recordSelection
(x *SelectorExpr, kind SelectionKind, recv Type, obj Object, index []int, indirect bool)
types/check.go:564
↓ 4 callers
Function
related2
(e Elem, s Slice)
types/testdata/examples/inference.go:81
↓ 4 callers
Function
representableConst
representableConst reports whether x can be represented as value of the given basic type and for the configuration provided (only needed for int/uint
types/expr.go:286
↓ 4 callers
Function
sat32
(x uint)
syntax/pos.go:208
↓ 4 callers
Method
setLit
setLit sets the scanner state for a recognized _Literal token.
syntax/scanner.go:73
↓ 4 callers
Method
signature
(sig *Signature)
types/typestring.go:440
↓ 4 callers
Method
simpleStmt
(s Stmt)
types/stmt.go:103
↓ 4 callers
Method
singleValue
singleValue reports an error if x describes a tuple and sets x.mode to invalid.
types/expr.go:1832
↓ 4 callers
Method
skipComment
()
syntax/scanner.go:785
↓ 4 callers
Method
skipLine
()
syntax/scanner.go:743
↓ 4 callers
Function
testDirFiles
(t *testing.T, dir string, colDelta uint, manual bool)
types/check_test.go:305
↓ 4 callers
Function
typeString
(typ Type, qf Qualifier, debug bool)
types/typestring.go:54
↓ 4 callers
Method
types
types returns the list of inferred types (via unification) for the type parameters described by d, and an index. If all types were inferred, the retur
types/unify.go:266
↓ 4 callers
Method
typesSummary
typesSummary returns a string of the form "(t1, t2, ...)" where the ti's are user-friendly string representations for the given types. If variadic is
types/assignments.go:266
↓ 4 callers
Function
underIs
If typ is a type parameter, underIs returns the result of typ.underIs(f). Otherwise, underIs returns the result of f(under(typ)).
types/expr.go:159
↓ 4 callers
Method
unexpected
(what string, p poser)
types/builder.go:87
↓ 4 callers
Method
update
update de-duplicates n against previously seen types with the hash h. If an identical type is found with the type hash h, the previously seen type is
types/context.go:87
↓ 4 callers
Method
v1
like T0 with different method names
types/testdata/check/methodsets.go:14
↓ 4 callers
Method
validCycle
validCycle reports whether the cycle starting with obj is valid and reports an error if it is not.
types/decl.go:210
↓ 4 callers
Method
vm
()
types/testdata/check/typeinst1.go:143
↓ 4 callers
Method
write
write is a thin wrapper around p.output.Write that takes care of accounting and error handling.
syntax/printer.go:92
↓ 4 callers
Method
x
()
ssa/interp/testdata/methprom.go:7
↓ 3 callers
Method
Addressable
Addressable reports whether the corresponding expression is addressable (https://golang.org/ref/spec#Address_operators).
types/api.go:338
↓ 3 callers
Function
AssignableTo
AssignableTo reports whether a value of type V is assignable to a variable of type T. The behavior of AssignableTo is undefined if V or T is an unins
types/api.go:420
↓ 3 callers
Function
Builder
()
testenv/testenv.go:16
↓ 3 callers
Function
DefPredeclaredTestFuncs
DefPredeclaredTestFuncs defines the assert and trace built-ins. These built-ins are intended for debugging and testing of this package only.
types/universe.go:219
↓ 3 callers
Method
Empty
Empty reports whether t is the empty interface.
types/interface.go:94
↓ 3 callers
Method
Exported
object type
types/object.go:27
↓ 3 callers
Function
Id
Id returns name if it is exported, otherwise it returns the name qualified with the package path.
types/object.go:71
↓ 3 callers
Function
IdenticalIgnoreTags
IdenticalIgnoreTags reports whether x and y are identical types if tags are ignored. Receivers of Signature types are ignored.
types/api.go:461
↓ 3 callers
Method
Imported
Imported returns the package that was imported. It is distinct from Pkg(), which is the package containing the import statement.
types/object.go:242
↓ 3 callers
Method
Innermost
Innermost returns the innermost (child) scope containing pos. If pos is not within any scope, the result is nil. The result is also nil for the Univer
types/scope.go:187
↓ 3 callers
Method
IsType
IsType reports whether the corresponding expression specifies a type.
types/api.go:308
↓ 3 callers
Method
IsValue
IsValue reports whether the corresponding expression is a value. Builtins are not considered values. Constant values have a non- nil Value.
types/api.go:321
↓ 3 callers
Method
Len
Len returns the number of methods in s.
types/methodset.go:37
↓ 3 callers
Method
LookupMethod
LookupMethod returns the implementation of the method of type T identified by (pkg, name). It returns nil if the method exists but is abstract, and p
types/methods.go:45
↓ 3 callers
Function
MakeHasher
MakeHasher returns a new Hasher instance.
types/typemap.go:216
↓ 3 callers
Method
MethodValue
MethodValue returns the Function implementing method sel, building wrapper methods on demand. It returns nil if sel denotes an abstract (interface) m
types/methods.go:23
↓ 3 callers
Method
Name
Name returns the package name.
types/package.go:34
↓ 3 callers
Method
Name
package to which this object belongs; nil for labels and objects in the Universe scope
types/object.go:25
↓ 3 callers
Function
NeedsGoPackages
(t testing.TB)
testenv/testenv.go:20
↓ 3 callers
Function
NeedsTool
(t testing.TB, tool string)
testenv/testenv.go:24
↓ 3 callers
Function
NewConst
NewConst returns a new constant with value val. The remaining arguments set the attributes found with all Objects.
types/object.go:252
↓ 3 callers
Function
NewProgram
NewProgram returns a new SSA Program. mode controls diagnostics and checking during SSA construction.
types/create.go:22
↓ 3 callers
Method
Next
Next returns the next key and value pair, and a boolean indicating whether they are valid or whether we have reached the end.
types/testdata/check/map0.go:105
↓ 3 callers
Method
Object
like String, but relative refs are unqualified
types/ssa.go:67
↓ 3 callers
Method
ObjectOf
ObjectOf returns the object denoted by the specified id, or nil if not found. If id is an embedded struct field, ObjectOf returns the field (*Var) it
types/api.go:286
↓ 3 callers
Function
Packages
Packages creates an SSA program for a set of packages. The packages must have been loaded from source syntax using the golang.org/x/tools/go/packages
ssa/ssautil/load.go:37
↓ 3 callers
Method
RecvTypeParams
RecvTypeParams returns the receiver type parameters of signature s, or nil.
types/signature.go:74
↓ 3 callers
Function
Reduce
Reduce reduces a []T1 to a single value using a reduction function.
types/testdata/check/slices.go:18
↓ 3 callers
Function
Reverse
Reverse is a generic function that takes a []T argument and reverses that slice in place.
types/testdata/examples/functions.go:11
↓ 3 callers
Function
Split
Split splits s into a list of fields, allowing single or double quotes around elements. There is no unescaping or other processing within quoted field
quoted/quoted.go:23
↓ 3 callers
Method
String
String returns a string representation of the map's entries. Values are printed using fmt.Sprintf("%v", v). Order is unspecified.
types/typemap.go:191
↓ 3 callers
Method
String
String is for testing.
types/errors.go:76
↓ 3 callers
Method
Take
Take returns the current Pragma to apply to the next package, import, const, func, type, or var declaration.
syntax/syntax.go:53
↓ 3 callers
Method
Visit
(node Node)
syntax/walk.go:64
↓ 3 callers
Method
a
()
types/testdata/check/cycles1.go:9
↓ 3 callers
Function
addEdge
addEdge adds a control-flow graph edge from from to to.
types/func.go:20
↓ 3 callers
Method
addFiles
addFiles adds and type-checks the specified files to info, loading their dependencies if needed. The order of files determines the package initializa
loader/loader.go:1045
↓ 3 callers
Method
addParam
(obj *Var, spill bool)
types/func.go:188
↓ 3 callers
Function
all
Returns all loaded packages.
loader/loader_test.go:803
↓ 3 callers
Function
allString
(t Type)
types/predicates.go:41
↓ 3 callers
Method
appendError
(err error)
loader/loader.go:186
↓ 3 callers
Function
arrayPtrDeref
arrayPtrDeref returns A if typ is of the form *A and A is an array; otherwise it returns typ.
types/builtins.go:874
↓ 3 callers
Method
arrayType
"[" has already been consumed, and pos is its position, and open is its tape index. If len != nil it is the already consumed array length.
syntax/parser.go:1399
← previous
next →
501–600 of 3,220, ranked by callers