Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alaingilbert/agl
/ functions
Functions
2,276 in github.com/alaingilbert/agl
⨍
Functions
2,276
◇
Types & classes
311
↓ 9 callers
Method
parseSimpleStmt
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 callers
Method
set
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 callers
Method
Emit
(string)
pkg/agl/codegen.go:1546
↓ 8 callers
Method
File
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 callers
Function
NewPkgVisited
()
pkg/agl/infer.go:350
↓ 8 callers
Function
NormalizeTypeForMonomorphization
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 callers
Function
assert
(cond bool, msg string)
pkg/parser/parser.go:411
↓ 8 callers
Method
checkLambdaArgWithReturn
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 callers
Method
embeddedElem
(x ast.Expr)
pkg/parser/parser.go:1416
↓ 8 callers
Method
exprs
(s []ast.Expr)
pkg/agl/infer.go:945
↓ 8 callers
Method
genStmts
(s []ast.Stmt)
pkg/agl/codegen.go:3930
↓ 8 callers
Method
parseIdentOrMutIdent
()
pkg/parser/parser.go:534
↓ 8 callers
Method
peek
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 callers
Method
AddError
(n ast.Node, msg string)
pkg/agl/env.go:43
↓ 7 callers
Method
GetFieldName
(field string)
pkg/types/types.go:336
↓ 7 callers
Method
GetTypeFn
(n ast.Node)
pkg/agl/infer.go:176
↓ 7 callers
Method
Insert
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 callers
Function
Inspect
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 callers
Method
IsDefinedFor
(n ast.Node)
pkg/agl/infer.go:107
↓ 7 callers
Method
IsGeneric
()
pkg/types/types.go:782
↓ 7 callers
Function
MakeResultOk
(t T)
pkg/agl/core/core.go:177
↓ 7 callers
Function
NewInferrer
(env *Env)
pkg/agl/infer.go:36
↓ 7 callers
Function
ParseSrc
(src string)
pkg/agl/infer.go:21
↓ 7 callers
Method
Size
Size returns the size of file f as registered with AddFile.
pkg/token/position.go:126
↓ 7 callers
Method
String1
()
pkg/types/types.go:1323
↓ 7 callers
Method
WithGenMapping
(m map[string]types.Type, clb func())
pkg/agl/codegen.go:70
↓ 7 callers
Method
WithInlineStmt
(clb func())
pkg/agl/codegen.go:77
↓ 7 callers
Function
WrapIf
(s, prefix, suffix string)
pkg/utils/utils.go:99
↓ 7 callers
Function
assert
(pred bool, msg ...string)
pkg/agl/utils.go:99
↓ 7 callers
Function
decNestLev
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 callers
Method
lineFor
lineFor returns the line of pos, ignoring line directive adjustments.
pkg/parser/parser.go:195
↓ 7 callers
Method
switch2
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 callers
Method
trace
(format string, args ...any)
pkg/parser/resolver.go:75
↓ 7 callers
Method
tryIdentOrTypeOrShortFn
()
pkg/parser/parser.go:1594
↓ 7 callers
Method
walkStmts
(list []ast.Stmt)
pkg/parser/resolver.go:244
↓ 6 callers
Function
AglBuildArray
(it Iterator[T])
pkg/agl/core/core.go:2566
↓ 6 callers
Function
AllowUnused
()
pkg/agl/codegen.go:101
↓ 6 callers
Method
Exit
(ctx context.Context)
language_server/main.go:65
↓ 6 callers
Method
IsExported
IsExported reports whether id starts with an upper-case letter.
pkg/ast/ast.go:894
↓ 6 callers
Method
LineStart
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 callers
Function
NewGenerator
(env *Env, a, b *ast.File, imports map[string]*ast.ImportSpec, fset *token.FileSet, opts ...GeneratorOption)
pkg/agl/codegen.go:113
↓ 6 callers
Function
NewScope
NewScope creates a new scope nested in the outer scope.
pkg/ast/scope.go:26
↓ 6 callers
Method
NextBack
()
pkg/agl/core/core.go:1325
↓ 6 callers
Function
ReplGen
ReplGen replaces every generic type parameter called name with newTyp.
pkg/types/types.go:1148
↓ 6 callers
Method
ReplaceGenericParameter
(name string, typ Type)
pkg/types/types.go:913
↓ 6 callers
Method
Sort
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 callers
Method
atComma
(context string, follow token.Token)
pkg/parser/parser.go:396
↓ 6 callers
Method
declare
(decl, data any, scope *ast.Scope, kind ast.ObjKind, idents ...*ast.Ident)
pkg/parser/resolver.go:128
↓ 6 callers
Function
isDecimal
returns lower-case ch iff ch is ASCII letter
pkg/scanner/scanner.go:441
↓ 6 callers
Method
next
()
pkg/ast/commentmap.go:79
↓ 6 callers
Method
parseList
(inRhs bool)
pkg/parser/parser.go:631
↓ 6 callers
Method
parseParameters
(result bool)
pkg/parser/parser.go:1279
↓ 6 callers
Method
parseQualifiedIdent
(ident *ast.Ident)
pkg/parser/parser.go:659
↓ 6 callers
Method
parseStmtList
---------------------------------------------------------------------------- Blocks
pkg/parser/parser.go:1662
↓ 6 callers
Method
stmts
(s []ast.Stmt)
pkg/agl/infer.go:939
↓ 6 callers
Method
tryIdentOrTypeNoShortFn
()
pkg/parser/parser.go:1590
↓ 5 callers
Function
AglIteratorForEach
(it I, f func(T) AglVoid)
pkg/agl/core/core.go:1412
↓ 5 callers
Function
AglPrint
(a ...any)
experiments/equatable_vec/main.go:26
↓ 5 callers
Function
AglVecDropFirst
(a []T, k int)
pkg/agl/core/core.go:204
↓ 5 callers
Function
AglVecDropLast
(a []T, k int)
pkg/agl/core/core.go:214
↓ 5 callers
Method
Clone
()
pkg/agl/core/core.go:1320
↓ 5 callers
Method
DefinePkg
(name, path string)
pkg/agl/env.go:1262
↓ 5 callers
Method
Error
()
pkg/agl/infer.go:78
↓ 5 callers
Function
GenCore
(packageName string)
pkg/agl/codegen.go:5466
↓ 5 callers
Method
Generate
()
pkg/agl/codegen.go:605
↓ 5 callers
Method
GetInfo
(x ast.Node)
pkg/agl/env.go:1388
↓ 5 callers
Function
Last
(arr []T)
pkg/agl/utils.go:155
↓ 5 callers
Method
Lookup
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 callers
Function
Or
Or return "a" if it is non-zero otherwise "b"
pkg/agl/utils.go:236
↓ 5 callers
Function
ParseFile
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 callers
Method
PrintErrors
()
pkg/agl/infer_test.go:49
↓ 5 callers
Method
String1
()
pkg/types/types.go:445
↓ 5 callers
Method
SubEnv
()
pkg/agl/env.go:1174
↓ 5 callers
Function
WithNode
(n ast.Node)
pkg/agl/codegen.go:299
↓ 5 callers
Method
WithoutEmit
(clb func())
pkg/agl/codegen.go:63
↓ 5 callers
Method
checkBalance
()
pkg/token/tree.go:93
↓ 5 callers
Method
declareList
(list *ast.FieldList, kind ast.ObjKind)
pkg/parser/resolver.go:534
↓ 5 callers
Method
errorf
(offs int, format string, args ...any)
pkg/scanner/scanner.go:164
↓ 5 callers
Function
filterType
(typ Expr, f Filter, export bool)
pkg/ast/filter.go:164
↓ 5 callers
Function
mapGen
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 callers
Function
noop
(_ ...any)
pkg/agl/utils.go:16
↓ 5 callers
Method
parsePrimaryExpr2
()
pkg/parser/parser.go:2190
↓ 5 callers
Method
printTrace
(a ...any)
pkg/parser/parser.go:112
↓ 5 callers
Method
switch3
(tok0, tok1 token.Token, ch2 rune, tok2 token.Token)
pkg/scanner/scanner.go:827
↓ 5 callers
Method
update
()
pkg/token/tree.go:211
↓ 5 callers
Method
walkExprs
(list []ast.Expr)
pkg/parser/resolver.go:229
↓ 4 callers
Function
AglIteratorContainsWhere
(it I, f func(T) bool)
pkg/agl/core/core.go:1399
↓ 4 callers
Function
AglIteratorMap
(it I, f func(T) R)
pkg/agl/core/core.go:1582
↓ 4 callers
Function
Find
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 callers
Function
FindGen
FindGen returns a map of substitutions to be made eg: "T: IntType"
pkg/types/types.go:1186
↓ 4 callers
Method
IsErr
()
pkg/agl/core/core.go:139
↓ 4 callers
Method
Peek
()
pkg/agl/core/core.go:914
↓ 4 callers
Function
ReleaseMode
()
pkg/agl/codegen.go:107
↓ 4 callers
Function
WithDefinition
(i *Info)
pkg/agl/infer.go:205
↓ 4 callers
Function
WithDefinition1
(i DefinitionProvider)
pkg/agl/infer.go:211
↓ 4 callers
Method
decrPrefix
(clb func() string)
pkg/agl/codegen.go:1093
↓ 4 callers
Function
encodeVLQ
VLQ encoding for source maps (see https://sourcemaps.info/spec.html)
pkg/agl/codegen.go:167
↓ 4 callers
Method
expectClosing
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 callers
Method
extractLhsIdents
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 callers
Method
genDecls
(f *ast.File)
pkg/agl/codegen.go:5256
← previous
next →
101–200 of 2,276, ranked by callers