MCPcopy Create free account

hub / github.com/alaingilbert/agl / functions

Functions2,276 in github.com/alaingilbert/agl

↓ 9 callersMethodparseSimpleStmt
parseSimpleStmt returns true as 2nd result if it parsed the assignment of a range clause (with mode == rangeOk). The returned statement is an assignme
pkg/parser/parser.go:2437
↓ 9 callersMethodset
set updates the existing node at (pos, parent) if present, or inserts a new node if not, so that it refers to file.
pkg/token/tree.go:323
↓ 8 callersMethodEmit
(string)
pkg/agl/codegen.go:1546
↓ 8 callersMethodFile
File returns the file that contains the position p. If no such file is found (for instance for p == [NoPos]), the result is nil.
pkg/token/position.go:583
↓ 8 callersFunctionNewPkgVisited
()
pkg/agl/infer.go:350
↓ 8 callersFunctionNormalizeTypeForMonomorphization
NormalizeTypeForMonomorphization normalizes a type string for use in monomorphized names. It replaces special characters like brackets and asterisks w
pkg/types/types.go:20
↓ 8 callersFunctionassert
(cond bool, msg string)
pkg/parser/parser.go:411
↓ 8 callersMethodcheckLambdaArgWithReturn
checkLambdaArgWithReturn is checkLambdaArg for callbacks whose return type specializes the method's generic result (e.g. Map's R). A short function li
pkg/agl/infer.go:2746
↓ 8 callersMethodembeddedElem
(x ast.Expr)
pkg/parser/parser.go:1416
↓ 8 callersMethodexprs
(s []ast.Expr)
pkg/agl/infer.go:945
↓ 8 callersMethodgenStmts
(s []ast.Stmt)
pkg/agl/codegen.go:3930
↓ 8 callersMethodparseIdentOrMutIdent
()
pkg/parser/parser.go:534
↓ 8 callersMethodpeek
peek returns the byte following the most recently read character without advancing the scanner. If the scanner is at EOF, peek returns 0.
pkg/scanner/scanner.go:103
↓ 7 callersMethodAddError
(n ast.Node, msg string)
pkg/agl/env.go:43
↓ 7 callersMethodGetFieldName
(field string)
pkg/types/types.go:336
↓ 7 callersMethodGetTypeFn
(n ast.Node)
pkg/agl/infer.go:176
↓ 7 callersMethodInsert
Insert Adds a value to the set. Returns whether the value was newly inserted. That is: - If the set did not previously contain this value, true is r
pkg/agl/core/core.go:2518
↓ 7 callersFunctionInspect
Inspect traverses an AST in depth-first order: It starts by calling f(node); node must not be nil. If f returns true, Inspect invokes f recursively fo
pkg/ast/walk.go:476
↓ 7 callersMethodIsDefinedFor
(n ast.Node)
pkg/agl/infer.go:107
↓ 7 callersMethodIsGeneric
()
pkg/types/types.go:782
↓ 7 callersFunctionMakeResultOk
(t T)
pkg/agl/core/core.go:177
↓ 7 callersFunctionNewInferrer
(env *Env)
pkg/agl/infer.go:36
↓ 7 callersFunctionParseSrc
(src string)
pkg/agl/infer.go:21
↓ 7 callersMethodSize
Size returns the size of file f as registered with AddFile.
pkg/token/position.go:126
↓ 7 callersMethodString1
()
pkg/types/types.go:1323
↓ 7 callersMethodWithGenMapping
(m map[string]types.Type, clb func())
pkg/agl/codegen.go:70
↓ 7 callersMethodWithInlineStmt
(clb func())
pkg/agl/codegen.go:77
↓ 7 callersFunctionWrapIf
(s, prefix, suffix string)
pkg/utils/utils.go:99
↓ 7 callersFunctionassert
(pred bool, msg ...string)
pkg/agl/utils.go:99
↓ 7 callersFunctiondecNestLev
decNestLev is used to track nesting depth during parsing to prevent stack exhaustion. It is used along with incNestLev in a similar fashion to how un
pkg/parser/parser.go:153
↓ 7 callersMethodlineFor
lineFor returns the line of pos, ignoring line directive adjustments.
pkg/parser/parser.go:195
↓ 7 callersMethodswitch2
Helper functions for scanning multi-byte tokens such as >> += >>= . Different routines recognize different length tok_i based on matches of ch_i. If a
pkg/scanner/scanner.go:819
↓ 7 callersMethodtrace
(format string, args ...any)
pkg/parser/resolver.go:75
↓ 7 callersMethodtryIdentOrTypeOrShortFn
()
pkg/parser/parser.go:1594
↓ 7 callersMethodwalkStmts
(list []ast.Stmt)
pkg/parser/resolver.go:244
↓ 6 callersFunctionAglBuildArray
(it Iterator[T])
pkg/agl/core/core.go:2566
↓ 6 callersFunctionAllowUnused
()
pkg/agl/codegen.go:101
↓ 6 callersMethodExit
(ctx context.Context)
language_server/main.go:65
↓ 6 callersMethodIsExported
IsExported reports whether id starts with an upper-case letter.
pkg/ast/ast.go:894
↓ 6 callersMethodLineStart
LineStart returns the [Pos] value of the start of the specified line. It ignores any alternative positions set using [File.AddLineColumnInfo]. LineSta
pkg/token/position.go:228
↓ 6 callersFunctionNewGenerator
(env *Env, a, b *ast.File, imports map[string]*ast.ImportSpec, fset *token.FileSet, opts ...GeneratorOption)
pkg/agl/codegen.go:113
↓ 6 callersFunctionNewScope
NewScope creates a new scope nested in the outer scope.
pkg/ast/scope.go:26
↓ 6 callersMethodNextBack
()
pkg/agl/core/core.go:1325
↓ 6 callersFunctionReplGen
ReplGen replaces every generic type parameter called name with newTyp.
pkg/types/types.go:1148
↓ 6 callersMethodReplaceGenericParameter
(name string, typ Type)
pkg/types/types.go:913
↓ 6 callersMethodSort
Sort sorts an [ErrorList]. *[Error] entries are sorted by position, other errors are sorted by error message, and before any *[Error] entry.
pkg/scanner/errors.go:70
↓ 6 callersMethodatComma
(context string, follow token.Token)
pkg/parser/parser.go:396
↓ 6 callersMethoddeclare
(decl, data any, scope *ast.Scope, kind ast.ObjKind, idents ...*ast.Ident)
pkg/parser/resolver.go:128
↓ 6 callersFunctionisDecimal
returns lower-case ch iff ch is ASCII letter
pkg/scanner/scanner.go:441
↓ 6 callersMethodnext
()
pkg/ast/commentmap.go:79
↓ 6 callersMethodparseList
(inRhs bool)
pkg/parser/parser.go:631
↓ 6 callersMethodparseParameters
(result bool)
pkg/parser/parser.go:1279
↓ 6 callersMethodparseQualifiedIdent
(ident *ast.Ident)
pkg/parser/parser.go:659
↓ 6 callersMethodparseStmtList
---------------------------------------------------------------------------- Blocks
pkg/parser/parser.go:1662
↓ 6 callersMethodstmts
(s []ast.Stmt)
pkg/agl/infer.go:939
↓ 6 callersMethodtryIdentOrTypeNoShortFn
()
pkg/parser/parser.go:1590
↓ 5 callersFunctionAglIteratorForEach
(it I, f func(T) AglVoid)
pkg/agl/core/core.go:1412
↓ 5 callersFunctionAglPrint
(a ...any)
experiments/equatable_vec/main.go:26
↓ 5 callersFunctionAglVecDropFirst
(a []T, k int)
pkg/agl/core/core.go:204
↓ 5 callersFunctionAglVecDropLast
(a []T, k int)
pkg/agl/core/core.go:214
↓ 5 callersMethodClone
()
pkg/agl/core/core.go:1320
↓ 5 callersMethodDefinePkg
(name, path string)
pkg/agl/env.go:1262
↓ 5 callersMethodError
()
pkg/agl/infer.go:78
↓ 5 callersFunctionGenCore
(packageName string)
pkg/agl/codegen.go:5466
↓ 5 callersMethodGenerate
()
pkg/agl/codegen.go:605
↓ 5 callersMethodGetInfo
(x ast.Node)
pkg/agl/env.go:1388
↓ 5 callersFunctionLast
(arr []T)
pkg/agl/utils.go:155
↓ 5 callersMethodLookup
Lookup returns the object with the given name if it is found in scope s, otherwise it returns nil. Outer scopes are ignored.
pkg/ast/scope.go:34
↓ 5 callersFunctionOr
Or return "a" if it is non-zero otherwise "b"
pkg/agl/utils.go:236
↓ 5 callersFunctionParseFile
ParseFile parses the source code of a single Go source file and returns the corresponding [ast.File] node. The source code may be provided via the fil
pkg/parser/interface.go:84
↓ 5 callersMethodPrintErrors
()
pkg/agl/infer_test.go:49
↓ 5 callersMethodString1
()
pkg/types/types.go:445
↓ 5 callersMethodSubEnv
()
pkg/agl/env.go:1174
↓ 5 callersFunctionWithNode
(n ast.Node)
pkg/agl/codegen.go:299
↓ 5 callersMethodWithoutEmit
(clb func())
pkg/agl/codegen.go:63
↓ 5 callersMethodcheckBalance
()
pkg/token/tree.go:93
↓ 5 callersMethoddeclareList
(list *ast.FieldList, kind ast.ObjKind)
pkg/parser/resolver.go:534
↓ 5 callersMethoderrorf
(offs int, format string, args ...any)
pkg/scanner/scanner.go:164
↓ 5 callersFunctionfilterType
(typ Expr, f Filter, export bool)
pkg/ast/filter.go:164
↓ 5 callersFunctionmapGen
mapGen rebuilds a type tree, applying m at each generic type parameter. Leaf types (numeric, string, void, any, ...) are returned unchanged.
pkg/types/types.go:1042
↓ 5 callersFunctionnoop
(_ ...any)
pkg/agl/utils.go:16
↓ 5 callersMethodparsePrimaryExpr2
()
pkg/parser/parser.go:2190
↓ 5 callersMethodprintTrace
(a ...any)
pkg/parser/parser.go:112
↓ 5 callersMethodswitch3
(tok0, tok1 token.Token, ch2 rune, tok2 token.Token)
pkg/scanner/scanner.go:827
↓ 5 callersMethodupdate
()
pkg/token/tree.go:211
↓ 5 callersMethodwalkExprs
(list []ast.Expr)
pkg/parser/resolver.go:229
↓ 4 callersFunctionAglIteratorContainsWhere
(it I, f func(T) bool)
pkg/agl/core/core.go:1399
↓ 4 callersFunctionAglIteratorMap
(it I, f func(T) R)
pkg/agl/core/core.go:1582
↓ 4 callersFunctionFind
Find looks through each value in the list, returning the first one that passes a truth test (predicate), or nil if no value passes the test. The funct
pkg/agl/utils.go:254
↓ 4 callersFunctionFindGen
FindGen returns a map of substitutions to be made eg: "T: IntType"
pkg/types/types.go:1186
↓ 4 callersMethodIsErr
()
pkg/agl/core/core.go:139
↓ 4 callersMethodPeek
()
pkg/agl/core/core.go:914
↓ 4 callersFunctionReleaseMode
()
pkg/agl/codegen.go:107
↓ 4 callersFunctionWithDefinition
(i *Info)
pkg/agl/infer.go:205
↓ 4 callersFunctionWithDefinition1
(i DefinitionProvider)
pkg/agl/infer.go:211
↓ 4 callersMethoddecrPrefix
(clb func() string)
pkg/agl/codegen.go:1093
↓ 4 callersFunctionencodeVLQ
VLQ encoding for source maps (see https://sourcemaps.info/spec.html)
pkg/agl/codegen.go:167
↓ 4 callersMethodexpectClosing
expectClosing is like expect but provides a better error message for the common case of a missing comma before a newline.
pkg/parser/parser.go:360
↓ 4 callersMethodextractLhsIdents
extractLhsIdents extracts identifiers from LHS of an assignment. If LHS is a single TupleExpr, extracts identifiers from it. If requireParens is true
pkg/agl/infer.go:4356
↓ 4 callersMethodgenDecls
(f *ast.File)
pkg/agl/codegen.go:5256
← previousnext →101–200 of 2,276, ranked by callers