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
↓ 20 callers
Method
Params
Params returns the parameters of signature s, or nil.
types/signature.go:77
↓ 20 callers
Method
assignment
assignment reports whether x can be assigned to a variable of type T, if necessary by attempting to convert untyped values to the appropriate type. co
types/assignments.go:21
↓ 19 callers
Method
Bytes
Bytes returns a new byte slice containing the original data with the queued edits applied.
edit/edit.go:68
↓ 19 callers
Method
Replace
(start, end int, new string)
edit/edit.go:59
↓ 19 callers
Method
pos
(pos Pos)
types/writer.go:39
↓ 19 callers
Function
ssaDeref
deref returns a pointer's element type; otherwise it returns typ.
types/util.go:32
↓ 18 callers
Function
MustHaveGoBuild
(t testing.TB)
testenv/testenv.go:18
↓ 18 callers
Function
NewPackage
NewPackage returns a new Package for the given package path and name. The package is not complete and contains no explicit imports.
types/package.go:25
↓ 18 callers
Function
makeSig
makeSig makes a signature for the given argument and result types. Default types are used for untyped arguments, and res may be nil.
types/builtins.go:858
↓ 18 callers
Method
name
---------------------------------------------------------------------------- Common productions
syntax/parser.go:2663
↓ 18 callers
Method
next
next advances the scanner by reading the next token. If a read, source encoding, or lexical error occurs, next calls the installed error handler with
syntax/scanner.go:98
↓ 18 callers
Method
recordBuiltinType
(f Expr, sig *Signature)
types/check.go:465
↓ 18 callers
Method
report
(err *error_)
types/errors.go:191
↓ 18 callers
Function
testTerm
(name string)
types/typeterm_test.go:43
↓ 18 callers
Method
versionErrorf
(at poser, goVersion string, format string, args ...interface{})
types/errors.go:272
↓ 17 callers
Method
Pkg
position of object identifier in declaration
types/object.go:24
↓ 17 callers
Method
allowVersion
allowVersion reports whether the given package is allowed to use version major.minor.
types/version.go:47
↓ 17 callers
Method
emitExtract
emitExtract emits to f an instruction to extract the index'th component of tuple. It returns the extracted value.
types/emit.go:278
↓ 17 callers
Function
f0
()
types/testdata/check/builtins0.go:11
↓ 17 callers
Function
forFieldList
Call a function for each entry in an ast.FieldList, passing the index into the list, the name if any, and the type.
cgotool/out.go:1241
↓ 17 callers
Function
mustParse
(t *testing.T, src string)
types/issues_test.go:21
↓ 17 callers
Method
printNode
(n Node)
syntax/printer.go:321
↓ 17 callers
Function
rV2V
Given a reflect.Value, returns the underlying interpreter value.
ssa/interp/reflect.go:61
↓ 16 callers
Method
Base
()
syntax/pos.go:31
↓ 16 callers
Method
Import
Import is a convenience function that adds path to ImportPkgs, the set of initial packages that will be imported from source.
loader/loader.go:311
↓ 16 callers
Method
Results
Results returns the results of signature s, or nil.
types/signature.go:80
↓ 16 callers
Function
coreType
If t is not a type parameter, coreType returns the underlying type. If t is a type parameter, coreType returns the single underlying type of all types
types/type.go:36
↓ 16 callers
Method
emitLoad
emitLoad emits to f an instruction to load the address addr into a new temporary, and returns the value so defined.
types/emit.go:29
↓ 16 callers
Method
errorf
errorf reports an error at the most recently read character position.
syntax/scanner.go:59
↓ 16 callers
Function
isPointer
(typ Type)
types/conversions.go:288
↓ 16 callers
Function
lineno
(pos token.Pos)
cgotool/util.go:83
↓ 16 callers
Function
pkgFor
(path, source string, info *Info)
types/api_test.go:31
↓ 16 callers
Function
relType
(t Type, from *Package)
types/print.go:41
↓ 16 callers
Method
use
use type-checks each argument. Useful to make sure expressions are evaluated (and variables are "used") in the presence of other errors. The arguments
types/call.go:683
↓ 16 callers
Method
varType
varType type-checks the type expression e and returns its type, or Typ[Invalid]. The type must not be an (uninstantiated) generic type and it must not
types/typexpr.go:149
↓ 15 callers
Method
Build
Build calls Package.Build for each package in prog. Building occurs in parallel unless the BuildSerially mode flag was set. Build is intended for who
types/builder.go:2892
↓ 15 callers
Function
NewSlice
NewSlice returns a new slice type for the given element type.
types/slice.go:13
↓ 15 callers
Function
NodeString
NodeString is a convenience function that prints n in ShortForm and returns the printed string.
syntax/printer.go:49
↓ 15 callers
Function
ParseFile
ParseFile behaves like Parse but it reads the source from the named file.
syntax/syntax.go:89
↓ 15 callers
Method
Uint64
Uint64 returns the numeric value of this constant truncated to fit an unsigned 64-bit integer.
types/const.go:140
↓ 15 callers
Method
error
(err error)
gcpragma/pragma.go:97
↓ 15 callers
Method
expr
---------------------------------------------------------------------------- Expressions
syntax/parser.go:726
↓ 15 callers
Function
isString
(t Type)
types/predicates.go:19
↓ 15 callers
Function
maketl
maketl makes a term list from a string of the term list.
types/termlist_test.go:13
↓ 15 callers
Method
resolve
(ctxt *Context)
types/named.go:45
↓ 15 callers
Method
typ
()
types/reader.go:32
↓ 14 callers
Method
Hash
Hash computes a hash value for the given type t such that Identical(t, t') => Hash(t) == Hash(t').
types/typemap.go:222
↓ 14 callers
Method
Id
reports whether the name starts with a capital letter
types/object.go:28
↓ 14 callers
Method
Len
()
edit/edit.go:29
↓ 14 callers
Function
NewSSAConst
NewSSAConst returns a new constant of the specified value and type. val must be valid according to the specification of Const.Value.
types/const.go:20
↓ 14 callers
Function
ObjectString
ObjectString returns the string form of obj. The Qualifier controls the printing of package-level objects, and may be nil.
types/object.go:567
↓ 14 callers
Function
Parse
Parse parses a single Go source file from src and returns the corresponding syntax tree. If there are errors, Parse will return the first error found,
syntax/syntax.go:72
↓ 14 callers
Function
ParseString
(filename string, src string)
syntax/syntax.go:123
↓ 14 callers
Method
Write
(data []byte)
syntax/dumper.go:53
↓ 14 callers
Method
expr
expr lowers a single-result expression e to SSA form, emitting code to fn and returning the Value defined by the expression.
types/builder.go:793
↓ 14 callers
Function
f0
()
types/testdata/check/issues0.go:51
↓ 14 callers
Method
setUnderlying
(typ Type)
types/named.go:320
↓ 14 callers
Method
store
(b *builder, v Value)
types/lvalue.go:19
↓ 14 callers
Method
subst
subst returns the type typ with its type parameters tpars replaced by the corresponding type arguments targs, recursively. subst doesn't modify the in
types/subst.go:52
↓ 14 callers
Method
typ
(typ Type)
types/writer.go:41
↓ 13 callers
Method
IsKnown
()
syntax/pos.go:30
↓ 13 callers
Method
Key
Key returns the key type of map m.
types/map.go:18
↓ 13 callers
Method
Method
()
types/testdata/check/cycles5.go:81
↓ 13 callers
Method
ReadAny
ReadAny reads and returns the next value from the buffer. If no value is available, it panics.
types/anybuffer.go:35
↓ 13 callers
Function
StartPos
StartPos returns the start position of n.
syntax/positions.go:10
↓ 13 callers
Method
WriteAny
WriteAny appends x to the buffer, growing the buffer as needed.
types/anybuffer.go:29
↓ 13 callers
Method
errorAt
error reports an error at the given position.
syntax/tape.go:164
↓ 13 callers
Method
initReader
Deprecated: Use init instead.
syntax/scanner.go:46
↓ 13 callers
Method
is
TODO(gri) TypeSet.is and TypeSet.underIs should probably also go into termlist.go is calls f with the specific type terms of s and reports whether all
types/typeset.go:113
↓ 13 callers
Method
m
()
types/testdata/fixedbugs/issue6977.go:25
↓ 13 callers
Function
makePkg
(src string)
types/typestring_test.go:17
↓ 13 callers
Function
makeReflectValue
(t types.Type, v value)
ssa/interp/reflect.go:51
↓ 13 callers
Function
newMethod
newMethod creates a new method of the specified name, package and receiver type.
ssa/interp/reflect.go:503
↓ 13 callers
Method
typeOrNil
typeOrNil is like type_ but it returns nil if there was no type instead of reporting an error. Type = TypeName | TypeLit | "(" Type ")" . TypeNam
syntax/parser.go:1260
↓ 13 callers
Function
zero
zero returns a new "zero" value of the specified type.
ssa/interp/ops.go:140
↓ 12 callers
Function
NewInterfaceType
NewInterfaceType returns a new interface for the given methods and embedded types. NewInterfaceType takes ownership of the provided methods and may mo
types/interface.go:33
↓ 12 callers
Function
NewTerm
NewTerm returns a new union term.
types/union.go:36
↓ 12 callers
Method
Package
This file defines utilities for working with source positions or source-level named entities ("objects"). TODO(adonovan): test that {Value,Instruction
types/source.go:21
↓ 12 callers
Method
TypeOf
TypeOf returns the type of expression e, or nil if not found. Precondition: the Types, Uses and Defs maps are populated.
types/api.go:266
↓ 12 callers
Method
WriteTo
WriteTo writes a string representation of the scope to w, with the scope elements sorted by name. The level of indentation is controlled by n >= 0, wi
types/scope.go:214
↓ 12 callers
Method
describef
If debug is set, describef sets a printf-formatted description for action a. Otherwise, it is a no-op.
types/check.go:75
↓ 12 callers
Function
isQuoted
(s string)
gcpragma/pragma.go:305
↓ 12 callers
Method
later
later pushes f on to the stack of actions that will be processed later; either at the end of the current statement, or in case of a local constant or
types/check.go:188
↓ 12 callers
Function
lookup
(m M, k K)
types/testdata/examples/typesets.go:25
↓ 12 callers
Method
pkg
()
types/func.go:527
↓ 12 callers
Method
recordDef
(id *Name, obj Object)
types/check.go:541
↓ 12 callers
Method
split
(wr func(w *writer), rd func(r *reader))
types/builder.go:105
↓ 12 callers
Method
typ
address of the location
types/lvalue.go:22
↓ 11 callers
Function
Default
Default returns the default "typed" type for an "untyped" type; it returns the incoming type for all other types. The default type for untyped nil is
types/predicates.go:454
↓ 11 callers
Function
LookupFieldOrMethod
Internal use of LookupFieldOrMethod: If the obj result is a method associated with a concrete (non-interface) type, the method's signature may not be
types/lookup.go:45
↓ 11 callers
Function
NewFileBase
NewFileBase returns a new PosBase for the given filename. A file PosBase's position is relative to itself, with the position being filename:1:1.
syntax/pos.go:146
↓ 11 callers
Function
NewFunc
NewFunc returns a new function with the given signature, representing the function's type.
types/object.go:373
↓ 11 callers
Function
NewSignatureType
NewSignatureType creates a new function type for the given receiver, receiver type parameters, type parameters, parameters, and results. If variadic i
types/signature.go:33
↓ 11 callers
Method
Referrers
Referrers returns the list of instructions that have this value as one of their operands; it may contain duplicates if an instruction has a repeated o
types/ssa.go:116
↓ 11 callers
Method
RelFilename
()
syntax/pos.go:35
↓ 11 callers
Method
addr
(e Expr, escaping bool)
types/builder.go:523
↓ 11 callers
Function
asInt
asInt converts x, which must be an integer, to an int suitable for use as a slice or array index or operand to make().
ssa/interp/ops.go:91
↓ 11 callers
Method
badExpr
()
syntax/parser.go:2078
↓ 11 callers
Method
convertUntyped
convertUntyped attempts to set the type of an untyped value to the target type.
types/expr.go:662
↓ 11 callers
Method
declare
(scope *Scope, id *Name, obj Object, pos Pos)
types/decl.go:23
← previous
next →
101–200 of 3,220, ranked by callers