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
↓ 11 callers
Method
dump
dump is only needed for debugging
types/errors.go:207
↓ 11 callers
Method
err
(pos Pos, format string, args ...interface{})
syntax/branches.go:66
↓ 11 callers
Function
fixGo
fixGo converts the internal Name.Go field into the name we should show to users in error messages. There's only one for now: on input we rewrite C.mal
cgotool/out.go:572
↓ 11 callers
Function
hasName
hasName reports whether t has a name. This includes predeclared types, defined types, and type parameters. hasName may be called with types that are n
types/predicates.go:59
↓ 11 callers
Function
isBasic
isBasic reports whether under(t) is a basic type with the specified info. If t is a type parameter the result is false; i.e., isBasic does not look in
types/predicates.go:26
↓ 11 callers
Function
isTyped
isTyped reports whether t is typed; i.e., not an untyped constant or boolean. isTyped may be called with types that are not fully set up.
types/predicates.go:70
↓ 11 callers
Method
lookup
lookup returns the address of the named variable identified by obj that is local to function f or one of its enclosing functions. If escaping, the ref
types/func.go:419
↓ 11 callers
Function
min
(x, y T)
types/testdata/examples/inference.go:13
↓ 11 callers
Method
recordTypeAndValue
(x Expr, mode operandMode, typ Type, val constant.Value)
types/check.go:448
↓ 11 callers
Method
type_
---------------------------------------------------------------------------- Types
syntax/parser.go:1230
↓ 10 callers
Method
Import
Import returns the imported package for the given import path when imported by a package file located in srcDir. If the import failed, besides returni
types/api.go:78
↓ 10 callers
Function
MakePos
MakePos returns a new Pos for the given PosBase, line and column.
syntax/pos.go:24
↓ 10 callers
Function
NewNamed
NewNamed returns a new named type for the given type name, underlying type, and associated methods. If the given type name obj doesn't have a type yet
types/named.go:38
↓ 10 callers
Function
RelativeTo
RelativeTo returns a Qualifier that fully qualifies members of all packages other than pkg.
types/typestring.go:35
↓ 10 callers
Method
allowGenerics
()
syntax/parser.go:101
↓ 10 callers
Function
assert
(b bool)
ssa/interp/testdata/boundmeth.go:10
↓ 10 callers
Method
closeScope
()
types/stmt.go:169
↓ 10 callers
Function
def
Objects with names containing blanks are internal and not entered into a scope. Objects with exported names are inserted in the unsafe package scope;
types/universe.go:249
↓ 10 callers
Method
equal
equal reports whether x and y represent the same type set.
types/typeterm.go:33
↓ 10 callers
Function
f3
()
types/testdata/check/init0.go:76
↓ 10 callers
Function
fakeContext
---- utilities ---- Simplifying wrapper around buildutil.FakeContext for single-file packages.
loader/loader_test.go:777
↓ 10 callers
Function
isInteger
(t Type)
types/predicates.go:14
↓ 10 callers
Function
lower
(ch rune)
syntax/scanner.go:447
↓ 10 callers
Method
rawExpr
rawExpr typechecks expression e and initializes x with the expression value or type. If an error occurred, x.mode is set to invalid. If hint != nil, i
types/expr.go:1216
↓ 10 callers
Method
typeOf
Like TypeOf, but panics instead of returning nil. Only valid during p's create and build phases.
types/writer.go:105
↓ 9 callers
Method
AllPackages
AllPackages returns a new slice containing all packages in the program prog in unspecified order.
types/create.go:163
↓ 9 callers
Method
Cmp
Cmp compares the positions p and q and returns a result r as follows: r < 0: p is before q r == 0: p and q are the same position (but may not be i
syntax/pos.go:70
↓ 9 callers
Function
Comparable
Comparable reports whether values of type T are comparable.
types/predicates.go:109
↓ 9 callers
Function
CreateProgram
CreateProgram returns a new program in SSA form, given a program loaded from source. An SSA package is created for each transitively error-free packa
ssa/ssautil/load.go:151
↓ 9 callers
Function
EndPos
EndPos returns the approximate end position of n in the source. For some nodes (*Name, *BasicLit) it returns the position immediately following the no
syntax/positions.go:124
↓ 9 callers
Function
GOROOT
TODO(mdempsky): Remove these stubs.
testenv/testenv.go:15
↓ 9 callers
Method
Info
Info returns information about properties of basic type b.
types/basic.go:76
↓ 9 callers
Function
IsInterface
IsInterface reports whether t is an interface type.
types/predicates.go:83
↓ 9 callers
Method
Len
Len returns the number of map entries.
types/typemap.go:131
↓ 9 callers
Method
Names
Names returns the scope's element names in sorted order.
types/scope.go:52
↓ 9 callers
Method
ParseFile
ParseFile is a convenience function (intended for testing) that invokes the parser using the Config's FileSet, which is initialized if nil. src speci
loader/loader.go:202
↓ 9 callers
Method
TypeArgs
TypeArgs returns the type arguments used to instantiate the named type t.
types/named.go:125
↓ 9 callers
Method
addr
addr lowers a single-result addressable expression e to SSA form, emitting code to fn and returning the location (an lvalue) defined by the expression
types/builder.go:514
↓ 9 callers
Function
append_
([]int, ...int)
types/testdata/check/issues0.go:55
↓ 9 callers
Method
cgoType
Map an ast type to a Type.
cgotool/out.go:1285
↓ 9 callers
Function
creat
(name string)
cgotool/util.go:123
↓ 9 callers
Function
deref
deref dereferences typ if it is a *Pointer and returns its base and true. Otherwise it returns (typ, false).
types/lookup.go:456
↓ 9 callers
Method
embeddedElem
EmbeddedElem = MethodSpec | EmbeddedTerm { "|" EmbeddedTerm } .
syntax/parser.go:1824
↓ 9 callers
Function
f7
ERROR cannot infer type inference with variadic functions
types/testdata/check/typeparams.go:300
↓ 9 callers
Function
gs
()
types/testdata/check/expr3.go:483
↓ 9 callers
Method
isAll
isAll reports whether the termlist xl represents the set of all types.
types/termlist.go:49
↓ 9 callers
Function
makeSubstMap
makeSubstMap creates a new substitution map mapping tpars[i] to targs[i]. If targs[i] is nil, tpars[i] is not substituted.
types/subst.go:15
↓ 9 callers
Method
offset
(p token.Pos)
cgotool/main.go:73
↓ 9 callers
Function
posFor
posFor reports the left (= start) position of at.
types/errors.go:283
↓ 9 callers
Method
qualifiedName
The first name may be provided, or nil.
syntax/parser.go:2698
↓ 9 callers
Function
rV2T
Given a reflect.Value, returns its rtype.
ssa/interp/reflect.go:56
↓ 9 callers
Function
testPos
(t *testing.T, list []test, prefix, suffix string, extract func(*File) Node)
syntax/nodes_test.go:286
↓ 9 callers
Method
tracef
(format string, args ...interface{})
types/unify.go:89
↓ 8 callers
Method
At
At returns the map entry for the given key. The result is nil if the entry is not present.
types/typemap.go:85
↓ 8 callers
Method
Block
Block returns the basic block to which this instruction belongs.
types/ssa.go:166
↓ 8 callers
Method
CreateFromFiles
CreateFromFiles is a convenience function that adds a conf.CreatePkgs entry to create package of the specified path and parsed files.
loader/loader.go:292
↓ 8 callers
Method
Int64
TODO(adonovan): move everything below into golang.org/x/tools/go/ssa/interp. Int64 returns the numeric value of this constant truncated to fit a signe
types/const.go:123
↓ 8 callers
Method
MethodSet
MethodSet returns the method set of type T. It is thread-safe. If cache is nil, this function is equivalent to types.NewMethodSet(T). Utility functi
types/methodsetcache.go:28
↓ 8 callers
Method
NumMethods
NumMethods returns the number of explicit methods defined for t. For an ordinary or instantiated type t, the receiver base type of these methods will
types/named.go:132
↓ 8 callers
Method
Operands
Partial methods:
types/ssa.go:226
↓ 8 callers
Method
addr
()
types/builder.go:577
↓ 8 callers
Function
allBasic
allBasic reports whether under(t) is a basic type with the specified info. If t is a type parameter, the result is true if isBasic(t, info) is true fo
types/predicates.go:49
↓ 8 callers
Method
emitIf
emitIf emits to f a conditional jump to tblock or fblock based on cond, and updates the control-flow graph. Postcondition: f.currentBlock is nil.
types/emit.go:267
↓ 8 callers
Method
emitStore
emitStore emits to f an instruction to store value val at location addr, applying implicit conversions as required by assignability rules.
types/emit.go:243
↓ 8 callers
Method
eq
(t types.Type, x interface{})
ssa/interp/map.go:20
↓ 8 callers
Method
errorAtf
errorAtf reports an error at a byte column offset relative to the current token start.
syntax/scanner.go:64
↓ 8 callers
Method
exprList
ExpressionList = Expression { "," Expression } .
syntax/parser.go:2732
↓ 8 callers
Function
f2
()
types/testdata/check/issues0.go:53
↓ 8 callers
Function
fv
(x ...int)
types/testdata/check/expr3.go:476
↓ 8 callers
Function
gccTmp
()
cgotool/gcc.go:1619
↓ 8 callers
Function
hasError
(errors []error, substr string)
loader/loader_test.go:785
↓ 8 callers
Function
intConst
intConst returns an 'int' constant that evaluates to i. (i is an int64 in case the host is narrower than the target.)
types/const.go:26
↓ 8 callers
Function
isBlankIdent
AST utilities isBlankIdent returns true iff e is an Ident with name "_". They have no associated types.Object, and thus no type.
types/util.go:22
↓ 8 callers
Method
isEmpty
isEmpty reports whether the termlist xl represents the empty set of types.
types/termlist.go:36
↓ 8 callers
Function
isNumeric
(t Type)
types/predicates.go:18
↓ 8 callers
Method
labeledStmts
TODO(mdempsky): This API feels a bit clumsy. Double check how cmd/compile/internal/ssagen handles this.
types/builder.go:2052
↓ 8 callers
Method
m2
(T)
types/testdata/fixedbugs/issue44688.go:12
↓ 8 callers
Function
mustTypecheck
(t *testing.T, path, source string, info *Info)
types/api_test.go:40
↓ 8 callers
Method
objDecl
objDecl type-checks the declaration of obj in its respective (file) environment. For the meaning of def, see Checker.definedType, in typexpr.go.
types/decl.go:57
↓ 8 callers
Method
p0
()
types/testdata/check/methodsets.go:10
↓ 8 callers
Method
recordAltDecl
(obj Object)
types/decl.go:14
↓ 8 callers
Method
recordUse
(id *Name, obj Object)
types/check.go:548
↓ 8 callers
Method
simpleStmt
---------------------------------------------------------------------------- Statements SimpleStmt = EmptyStmt | ExpressionStmt | SendStmt | IncDecStm
syntax/parser.go:2088
↓ 8 callers
Method
syntaxErrorAt
---------------------------------------------------------------------------- Error handling syntaxErrorAt reports a syntax error at the given position
syntax/parser.go:155
↓ 8 callers
Method
typ
typ type-checks the type expression e and returns its type, or Typ[Invalid]. The type must not be an (uninstantiated) generic type.
types/typexpr.go:142
↓ 8 callers
Method
underIs
underIs calls f with the underlying types of the specific type terms of s and reports whether all calls to f returned true. If there are no specific t
types/typeset.go:129
↓ 8 callers
Method
v0
()
types/testdata/check/methodsets.go:9
↓ 7 callers
Function
BuildPackage
BuildPackage builds an SSA program with IR for a single package. It populates pkg by type-checking the specified file ASTs. All dependencies are loa
ssa/ssautil/load.go:178
↓ 7 callers
Method
CreateFromFilenames
CreateFromFilenames is a convenience function that adds a conf.CreatePkgs entry to create a package of the specified *.go files.
loader/loader.go:285
↓ 7 callers
Method
End
()
types/scope.go:173
↓ 7 callers
Method
Files
Files checks the provided files as part of the checker's package.
types/check.go:301
↓ 7 callers
Method
Func
Func returns the package-level function of the specified name, or nil if not found.
types/ssa.go:1440
↓ 7 callers
Method
ImportWithTests
ImportWithTests is a convenience function that adds path to ImportPkgs, the set of initial source packages located relative to $GOPATH. The package w
loader/loader.go:306
↓ 7 callers
Function
Instantiate
Instantiate instantiates the type orig with the given type arguments targs. orig must be a *Named or a *Signature type. If there is no error, the resu
types/instantiate.go:42
↓ 7 callers
Method
IsAlias
IsAlias reports whether obj is an alias name for a type.
types/object.go:298
↓ 7 callers
Method
IsNil
IsNil returns true if this constant represents a typed or untyped nil value.
types/const.go:114
↓ 7 callers
Function
NewChecker
NewChecker returns a new Checker instance for a given package. Package files may be added incrementally via checker.Files.
types/check.go:221
↓ 7 callers
Function
NewName
---------------------------------------------------------------------------- Expressions
syntax/nodes.go:135
↓ 7 callers
Method
Tag
Tag returns the i'th field tag for 0 <= i < NumFields().
types/struct.go:48
↓ 7 callers
Method
Type
Type returns a *Type with the same memory layout as dtype when used as the type of a variable or a struct field.
cgotool/gcc.go:2274
← previous
next →
201–300 of 3,220, ranked by callers