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
↓ 449 callers
Function
append
(s S, t ...T2)
types/testdata/check/issues1.go:238
↓ 341 callers
Function
assert
(p bool)
types/errors.go:22
↓ 232 callers
Method
Type
Type returns the type of this value. Many instructions (e.g. IndexAddr) change their behaviour depending on the types of their operands.
types/ssa.go:97
↓ 206 callers
Method
Pos
Pos returns the location of the AST token most closely associated with the operation that gave rise to this value, or syntax.NoPos if it was not expli
types/ssa.go:132
↓ 184 callers
Method
errorf
(at poser, format string, args ...interface{})
types/errors.go:264
↓ 169 callers
Method
Name
Name returns the name of this value, and determines how this Value appears when used as an operand of an Instruction. This is the same as the source
types/ssa.go:86
↓ 154 callers
Method
print
(args ...interface{})
syntax/printer.go:255
↓ 153 callers
Function
new
()
types/testdata/check/typeparams.go:70
↓ 107 callers
Function
dup
(s string)
syntax/printer_test.go:138
↓ 105 callers
Method
String
If this value is an Instruction, String returns its disassembled form; otherwise it returns unspecified human-readable information about the Value, su
types/ssa.go:92
↓ 98 callers
Method
Underlying
Underlying returns the underlying type of a type.
types/type.go:13
↓ 93 callers
Function
print
write writes bytes b to the target program's standard output. The print/println built-ins and the write() system call funnel through here so they can
ssa/interp/ops.go:925
↓ 92 callers
Method
Len
()
types/union.go:26
↓ 87 callers
Method
Sizeof
Sizeof returns the size of a variable of type T. Sizeof must implement the size guarantees required by the spec.
types/sizes.go:21
↓ 82 callers
Method
nextch
()
syntax/source.go:85
↓ 75 callers
Function
under
under returns the true expanded underlying type. If it doesn't exist, the result is Typ[Invalid]. under must only be called when a type is known to be
types/type.go:23
↓ 74 callers
Method
pos
Convenience methods using the current token position.
syntax/parser.go:214
↓ 69 callers
Method
Lookup
Lookup returns the object in scope s with the given name if such an object exists; otherwise the result is nil.
types/scope.go:71
↓ 67 callers
Method
Elem
()
types/testdata/fixedbugs/issue46275.go:17
↓ 67 callers
Method
next
next returns a Tuple (key, value, ok). key and value are unaliased, e.g. copies of the sequence element.
ssa/interp/value.go:65
↓ 65 callers
Method
Pos
Pos() returns the position associated with the node as follows: 1) The position of a node representing a terminal syntax production (Name, BasicLit, e
syntax/nodes.go:19
↓ 61 callers
Method
error
(at poser, msg string)
types/errors.go:260
↓ 59 callers
Function
Identical
Identical reports whether x and y are identical types. Receivers of Signature types are ignored.
types/api.go:455
↓ 54 callers
Function
fatalf
Die with an error message.
cgotool/util.go:88
↓ 53 callers
Method
setType
setType sets the type of the object.
types/object.go:43
↓ 51 callers
Method
Check
Check type-checks a package and returns the resulting package object and the first error if any. Additionally, if info != nil, Check populates each of
types/api.go:395
↓ 51 callers
Method
Kind
Kind returns the kind of basic type b.
types/basic.go:73
↓ 51 callers
Method
errorf
errorf adds formatted error information to err. It may be called multiple times to provide additional information.
types/errors.go:85
↓ 50 callers
Method
At
At returns the i'th variable of tuple t.
types/tuple.go:31
↓ 47 callers
Method
syntaxError
(msg string)
syntax/parser.go:216
↓ 46 callers
Method
errorf
(format string, args ...interface{})
types/sanity.go:60
↓ 46 callers
Function
f
()
types/testdata/check/expr1.go:120
↓ 45 callers
Method
get
(key types.Value)
ssa/interp/interp.go:110
↓ 45 callers
Method
trace
usage: defer p.trace(msg)()
syntax/parser.go:273
↓ 44 callers
Method
emit
emit emits the specified instruction to function f.
types/func.go:440
↓ 43 callers
Function
relName
relName returns the name of v relative to i. In most cases, this is identical to v.Name(), but references to Functions (including methods) and Globals
types/print.go:27
↓ 42 callers
Method
Scope
Scope returns the scope of the function's body block. The result is nil for imported or instantiated functions and methods (but there is also no mecha
types/object.go:398
↓ 41 callers
Method
TypeParams
TODO(gri) Come up with a better representation and API to distinguish between parameterized instantiated and non-instantiated types. TypeParams return
types/named.go:115
↓ 41 callers
Method
p
(format string, args ...interface{})
types/hilbert_test.go:83
↓ 40 callers
Method
Path
Path returns the package path.
types/package.go:31
↓ 40 callers
Method
newBasicBlock
newBasicBlock adds to f a new basic block and returns it. It does not automatically become the current block for subsequent calls to emit. comment is
types/func.go:641
↓ 39 callers
Method
Alignof
Alignof returns the alignment of a variable of type T. Alignof must implement the alignment guarantees required by the spec.
types/sizes.go:13
↓ 39 callers
Method
expr
(e Expr)
types/builder.go:802
↓ 39 callers
Method
list
list is for internal use where we expect a []Type. TODO(rfindley): list should probably be eliminated: we can pass around a TypeList instead.
types/typelists.go:48
↓ 38 callers
Function
dup
dup returns a testEntry where both src and str are the same.
types/typestring_test.go:32
↓ 38 callers
Function
isTypeParam
isTypeParam reports whether t is a type parameter.
types/predicates.go:94
↓ 37 callers
Method
Error
Error returns an error string formatted as follows: filename:line:column: message
types/api.go:48
↓ 37 callers
Method
Load
Load creates the initial packages specified by conf.{Create,Import}Pkgs, loading their dependencies packages as needed. On success, Load returns a Pr
loader/loader.go:462
↓ 35 callers
Method
bool
(b bool)
types/writer.go:30
↓ 34 callers
Method
bool
()
types/reader.go:21
↓ 33 callers
Method
String
String returns a string containing the original data with the queued edits applied.
edit/edit.go:91
↓ 33 callers
Function
assert
(cond bool)
ssa/interp/testdata/fieldprom.go:25
↓ 33 callers
Function
tokenPos
tokenPos returns n.Pos(). It exists just for internal documentation purposes, to help remind which token position package ssa was originally accessin
types/source.go:41
↓ 32 callers
Function
NewPointer
NewPointer returns a new pointer type for the given element (base) type.
types/pointer.go:13
↓ 32 callers
Function
NewTypeName
NewTypeName returns a new type name denoting the given typ. The remaining arguments set the attributes found with all Objects. The typ argument may b
types/object.go:273
↓ 32 callers
Method
byte
(b byte)
types/typestring.go:95
↓ 32 callers
Method
emit
(b *builder)
types/builder.go:678
↓ 32 callers
Method
expr
()
types/builder.go:825
↓ 32 callers
Method
setPos
(pos Pos)
types/ssa.go:1428
↓ 31 callers
Method
sprintf
check may be nil.
types/errors.go:183
↓ 31 callers
Method
typeSet
typeSet returns the type set for interface t.
types/interface.go:25
↓ 31 callers
Function
unreachable
()
types/errors.go:28
↓ 31 callers
Method
want
(tok token)
syntax/parser.go:130
↓ 30 callers
Function
c
(repr string, args ...interface{})
cgotool/out.go:1259
↓ 29 callers
Method
Recv
Recv returns the receiver of signature s (if a method), or nil if a function. It is ignored when comparing signatures for identity. For an abstract m
types/signature.go:65
↓ 29 callers
Function
f1
(x int)
types/testdata/check/expr3.go:473
↓ 29 callers
Method
got
(tok token)
syntax/parser.go:122
↓ 28 callers
Method
Error
()
syntax/syntax.go:31
↓ 28 callers
Method
String
()
ssa/interp/testdata/src/reflect/reflect.go:4
↓ 28 callers
Method
advance
Advance consumes tokens until it finds a token of the stopset or followlist. The stopset is only considered if we are inside a function (p.fnest > 0).
syntax/parser.go:240
↓ 28 callers
Method
emitConv
emitConv emits to f code to convert Value val to exactly type typ, and returns the converted value. Implicit conversions are required by language ass
types/emit.go:158
↓ 28 callers
Method
expr
expr typechecks expression e and initializes x with the expression value. The result must be a single value. If an error occurred, x.mode is set to in
types/expr.go:1773
↓ 27 callers
Method
Ident
Identifier
cgotool/gcc.go:2839
↓ 27 callers
Function
Unparen
Unparen removes all parentheses around an expression.
syntax/parser.go:2856
↓ 27 callers
Function
error_
(pos token.Pos, msg string, args ...interface{})
cgotool/util.go:99
↓ 27 callers
Function
f2
(u float32, s string)
types/testdata/check/expr3.go:474
↓ 26 callers
Method
Index
Index describes the path from x to f in x.f. The last index entry is the field or method index of the type declaring f; either: 1) the list of decla
types/selection.go:102
↓ 26 callers
Method
string
(s string)
types/typestring.go:109
↓ 25 callers
Method
Line
()
syntax/pos.go:32
↓ 25 callers
Method
Obj
Obj returns the type name for the declaration defining the named type t. For instantiated types, this is same as the type name of the origin type.
types/named.go:104
↓ 25 callers
Method
softErrorf
(at poser, format string, args ...interface{})
types/errors.go:268
↓ 25 callers
Method
trace
(pos Pos, format string, args ...interface{})
types/errors.go:198
↓ 24 callers
Method
Contains
Contains reports whether pos is within the scope's extent. The result is guaranteed to be valid only if the type-checked AST has complete position inf
types/scope.go:178
↓ 24 callers
Method
Parent
Parent returns the function to which this Value belongs. It returns nil for named Functions, Builtin, Const and Global.
types/ssa.go:101
↓ 24 callers
Method
m
(int)
types/testdata/check/stmt0.go:667
↓ 23 callers
Method
Close
Close tells the receiver that no more values will arrive. After Close is called, the Sender may no longer be used.
types/testdata/check/chans.go:41
↓ 23 callers
Function
TypeString
TypeString returns the string representation of typ. The Qualifier controls the printing of package-level objects, and may be nil.
types/typestring.go:50
↓ 23 callers
Function
isUntyped
isUntyped(t) is the same as !isTyped(t).
types/predicates.go:78
↓ 23 callers
Function
parseSrc
(path, src string)
types/api_test.go:26
↓ 23 callers
Function
unpackExpr
unpack unpacks a *syntax.ListExpr into a list of syntax.Expr. Helper introduced for the go/types -> types2 port. TODO(gri) Should find a more efficien
types/assignments.go:447
↓ 22 callers
Method
Col
()
syntax/pos.go:33
↓ 22 callers
Function
NewTuple
NewTuple returns a new tuple for the given variables.
types/tuple.go:15
↓ 22 callers
Method
pos
()
types/reader.go:30
↓ 21 callers
Function
NewVar
NewVar returns a new variable. The arguments set the attributes found with all Objects.
types/object.go:333
↓ 21 callers
Method
Set
(string)
types/testdata/check/funcinference.go:81
↓ 21 callers
Method
emitJump
emitJump emits to f a jump to target, and updates the control-flow graph. Postcondition: f.currentBlock is nil.
types/emit.go:256
↓ 21 callers
Method
fm
(x ...int)
types/testdata/check/expr3.go:478
↓ 21 callers
Method
printf
printf is a convenience wrapper that takes care of print errors.
syntax/dumper.go:92
↓ 20 callers
Method
Field
Field returns the i'th field for 0 <= i < NumFields().
types/struct.go:45
↓ 20 callers
Method
NumFields
NumFields returns the number of fields in the struct (including blank and embedded fields).
types/struct.go:42
next →
1–100 of 3,220, ranked by callers