MCPcopy Create free account

hub / github.com/alaingilbert/agl / functions

Functions2,276 in github.com/alaingilbert/agl

↓ 548 callersFunctionNewTest
(src string, opts ...TestOption)
pkg/agl/infer_test.go:67
↓ 469 callersFunctionWithMutEnforced
(v bool)
pkg/agl/infer_test.go:61
↓ 455 callersFunctiontestCodeGen2
(t *testing.T, expected string, test *Test, opts ...GeneratorOption)
pkg/agl/codegen_test.go:25
↓ 411 callersMethodSetType
(a ast.Node, t types.Type, opts ...SetTypeOption)
pkg/agl/infer.go:223
↓ 241 callersMethodString
()
pkg/types/types.go:15
↓ 228 callersMethodDefineFn
(nenv *Env, name string, fnStr string, opts ...SetTypeOption)
pkg/agl/env.go:1248
↓ 200 callersMethodgenExpr
(e ast.Expr)
pkg/agl/codegen.go:880
↓ 156 callersMethodTypeAt
(row, col int)
pkg/agl/infer_test.go:98
↓ 151 callersMethodPos
()
pkg/ast/ast.go:38
↓ 146 callersMethoderrorf
(n ast.Node, f string, args ...any)
pkg/agl/infer.go:82
↓ 136 callersMethodDefine
(n ast.Node, name string, typ types.Type, opts ...SetTypeOption)
pkg/agl/env.go:1273
↓ 120 callersMethodGetType
(n ast.Node)
pkg/agl/infer.go:180
↓ 113 callersMethodexpect
(tok token.Token)
pkg/parser/parser.go:337
↓ 111 callersMethodexpr
(e ast.Expr)
pkg/agl/infer.go:955
↓ 101 callersFunctionUnwrap
(t Type)
pkg/types/types.go:712
↓ 101 callersMethodnext
Advance to the next non-comment token. In the process, collect any comment groups encountered, and remember the last lead and line comments. A lead c
pkg/parser/parser.go:253
↓ 91 callersMethodT
(name string, typ Type)
pkg/types/types.go:815
↓ 82 callersMethodGoStrType
()
pkg/types/types.go:14
↓ 81 callersMethodEnd
position of first character belonging to the node
pkg/ast/ast.go:39
↓ 80 callersMethodGetType
(x ast.Node)
pkg/agl/env.go:1392
↓ 80 callersMethodNext
()
pkg/agl/core/core.go:1303
↓ 78 callersMethodGetType2
(n ast.Node)
pkg/agl/infer.go:189
↓ 77 callersMethodUnwrap
()
pkg/agl/core/core.go:90
↓ 76 callersMethodGet
(name string)
pkg/agl/env.go:1196
↓ 73 callersMethodContains
(pkg string)
pkg/agl/infer.go:362
↓ 71 callersMethodGetType2
(x ast.Node, fset *token.FileSet)
pkg/agl/env.go:1399
↓ 71 callersMethodIsValid
IsValid reports whether the position is valid.
pkg/token/position.go:92
↓ 69 callersFunctiontrace
(p *parser, msg string)
pkg/parser/parser.go:127
↓ 69 callersFunctionun
Usage pattern: defer un(trace(p, "..."))
pkg/parser/parser.go:134
↓ 68 callersFunctionto
(v any)
pkg/agl/utils.go:131
↓ 65 callersFunctionEmitWith
(g *Generator, n ast.Node)
pkg/agl/codegen.go:1565
↓ 63 callersFunctionWithDesc
(desc string)
pkg/agl/infer.go:217
↓ 62 callersMethodError
()
pkg/agl/utils.go:123
↓ 61 callersMethodGoStr
()
pkg/types/types.go:13
↓ 60 callersMethodGetFn
(name string)
pkg/agl/env.go:1229
↓ 58 callersFunctiontestGenOutput
(src string)
e2eTests/e2e_test.go:67
↓ 57 callersFunctionMakeOptionSome
(t T)
pkg/agl/core/core.go:119
↓ 54 callersMethodIsNone
()
pkg/agl/core/core.go:86
↓ 54 callersMethodPosition
Position returns the Position value for the given file position p. If p is out of bounds, it is adjusted to match the File.Offset behavior. Calling f.
pkg/token/position.go:400
↓ 52 callersMethodnext
Read the next Unicode char into s.ch. s.ch < 0 means end-of-file. For optimization, there is some overlap between this method and s.scanIdentifier.
pkg/scanner/scanner.go:59
↓ 45 callersMethodIter
()
pkg/agl/core/core.go:1299
↓ 42 callersMethodGetNameInfo
(name string)
pkg/agl/env.go:1215
↓ 36 callersMethodIntoRecv
(idTT Type)
pkg/types/types.go:819
↓ 34 callersMethodAdd
(depth int, lbl string)
pkg/agl/env.go:388
↓ 32 callersFunctionWalk
TODO(gri): Investigate if providing a closure to Walk leads to simpler use (and may help eliminate Inspect in turn). Walk traverses an AST in depth-fi
pkg/ast/walk.go:33
↓ 32 callersMethoderror
(pos token.Pos, msg string)
pkg/parser/parser.go:295
↓ 29 callersMethodprintf
printf is a convenience wrapper that takes care of print errors.
pkg/ast/print.go:128
↓ 27 callersMethodEmit
(s string, opts ...EmitOption)
pkg/agl/codegen.go:305
↓ 27 callersFunctionenosys
()
docs/wasm_exec.js:8
↓ 26 callersMethodGetGoType2
(pkgName string, x goast.Node, keepRaw bool)
pkg/agl/env.go:1831
↓ 25 callersMethodGetParam
(i int)
pkg/types/types.go:804
↓ 25 callersMethoderrorExpected
(pos token.Pos, msg string)
pkg/parser/parser.go:318
↓ 25 callersMethodincrPrefix
(clb func() string)
pkg/agl/codegen.go:1085
↓ 25 callersMethodstmt
(s ast.Stmt)
pkg/agl/infer.go:1087
↓ 24 callersFunctionMapJoin
(e Emitter, a []T, clb func(T) string, sep string)
pkg/agl/codegen.go:1555
↓ 24 callersMethodexpectSemi
expectSemi consumes a semicolon and returns the applicable line comment.
pkg/parser/parser.go:369
↓ 24 callersMethodgenStmt
(s ast.Stmt)
pkg/agl/codegen.go:832
↓ 22 callersMethodPos
(n ast.Node)
pkg/agl/infer.go:4348
↓ 22 callersMethoderror
(offs int, msg string)
pkg/scanner/scanner.go:157
↓ 21 callersFunctionwalkList
(v Visitor, list []N)
pkg/ast/walk.go:19
↓ 20 callersFunctioncmpTypesLoose
(a, b types.Type)
pkg/agl/infer.go:3449
↓ 20 callersMethodgenExprs
(e []ast.Expr)
pkg/agl/codegen.go:3909
↓ 19 callersFunctionReplGenM
(t Type, m map[string]Type)
pkg/types/types.go:949
↓ 19 callersMethodparseType
---------------------------------------------------------------------------- Types
pkg/parser/parser.go:642
↓ 18 callersMethodwithEnv
(clb func())
pkg/agl/infer.go:168
↓ 17 callersMethodKeys
()
pkg/agl/infer.go:354
↓ 17 callersMethodName
Name returns the file name of file f as registered with AddFile.
pkg/token/position.go:116
↓ 17 callersMethodSetTypeForce
(a ast.Node, t types.Type)
pkg/agl/infer.go:193
↓ 17 callersMethodcloseScope
()
pkg/parser/resolver.go:100
↓ 17 callersMethodparseRhs
()
pkg/parser/parser.go:2415
↓ 16 callersFunctionmergeB
mergeB returns the concatenated before-statements of the given fragments.
pkg/agl/codegen.go:4434
↓ 16 callersMethodopenScope
(pos token.Pos)
pkg/parser/resolver.go:89
↓ 16 callersMethodparseIdent
()
pkg/parser/parser.go:530
↓ 15 callersMethodBase
Base returns the base offset of file f as registered with AddFile.
pkg/token/position.go:121
↓ 15 callersFunctionInArray
InArray returns either or not a string is in an array
pkg/agl/utils.go:241
↓ 15 callersFunctionMust
Must ...
pkg/agl/utils.go:164
↓ 15 callersMethodwithOptType
(n ast.Node, t types.Type, clb func())
pkg/agl/infer.go:140
↓ 14 callersMethodInferFile
(fileName string, f *ast.File, fset *token.FileSet, mutEnforced bool)
pkg/agl/infer.go:40
↓ 14 callersMethodparseExpr
The result may be a type or even a raw type ([...]int).
pkg/parser/parser.go:2407
↓ 13 callersFunctionMapJoin
(a []T, clb func(T) string, sep string)
pkg/utils/utils.go:67
↓ 13 callersFunctionfnvHash
(by []byte)
pkg/agl/core/core.go:1124
↓ 12 callersMethodLen
()
pkg/agl/core/core.go:1330
↓ 12 callersFunctionNewEnv
(fset *token.FileSet)
pkg/agl/env.go:1163
↓ 11 callersMethodContains
(el T)
pkg/agl/core/core.go:1665
↓ 11 callersFunctionTernary
Ternary ...
pkg/utils/utils.go:72
↓ 11 callersMethodcheckLambdaArg
checkLambdaArg type-checks a callback argument against the inferred function type want. A short function literal is assigned want directly; other form
pkg/agl/infer.go:2712
↓ 10 callersFunctionAglCleanupIntString
(s string)
pkg/agl/core/core.go:2152
↓ 10 callersMethodConcrete
(typs []Type)
pkg/types/types.go:825
↓ 10 callersMethodError
()
main.go:137
↓ 10 callersMethodIsSome
()
pkg/agl/core/core.go:82
↓ 10 callersFunctionNewFileSet
NewFileSet creates a new file set.
pkg/token/position.go:437
↓ 10 callersMethodadvance
advance consumes tokens until the current token p.tok is in the 'to' set, or token.EOF. For error recovery.
pkg/parser/parser.go:419
↓ 10 callersFunctioncmpTypes
(a, b types.Type)
pkg/agl/infer.go:3467
↓ 10 callersFunctionfuncTypeToFuncType
(name string, expr *ast.FuncType, env *Env, fset *token.FileSet, native bool)
pkg/agl/env.go:195
↓ 10 callersFunctionlineAt
(fset *token.FileSet, pos token.Pos)
pkg/ast/import.go:66
↓ 10 callersFunctionlower
(ch rune)
pkg/scanner/scanner.go:440
↓ 10 callersMethodparseBlockStmt
()
pkg/parser/parser.go:1699
↓ 10 callersMethodpush
push pops all nodes that appear lexically before n and then pushes n on the stack.
pkg/ast/commentmap.go:94
↓ 9 callersFunctionincNestLev
(p *parser)
pkg/parser/parser.go:142
↓ 9 callersMethodloadPkgAglStd
(depth int, t *TreeDrawer, nenv *Env, path, pkgName string, m *PkgVisited)
pkg/agl/env.go:794
next →1–100 of 2,276, ranked by callers