MCPcopy Create free account

hub / github.com/alaingilbert/agl / functions

Functions2,276 in github.com/alaingilbert/agl

↓ 2 callersMethodGetDirect
(name string)
pkg/agl/env.go:1188
↓ 2 callersMethodGoStr
()
pkg/types/types.go:178
↓ 2 callersMethodHash
()
pkg/agl/core/core.go:987
↓ 2 callersMethodInit
Init prepares the scanner s to tokenize the text src by setting the scanner at the beginning of src. The scanner uses the file set file for position i
pkg/scanner/scanner.go:133
↓ 2 callersMethodIsEmpty
Returns the exact remaining length of the iterator.
pkg/agl/core/core.go:1331
↓ 2 callersFunctionIsExported
IsExported reports whether name starts with an upper-case letter.
pkg/ast/ast.go:891
↓ 2 callersFunctionIsExported
IsExported reports whether name starts with an upper-case letter.
pkg/token/token.go:378
↓ 2 callersFunctionMakeOptionNone
()
pkg/agl/core/core.go:123
↓ 2 callersMethodMergeLine
MergeLine merges a line with the following line. It is akin to replacing the newline character at the end of the line with a space (to not change the
pkg/token/position.go:153
↓ 2 callersFunctionNewAglError
(msg string)
pkg/agl/utils.go:127
↓ 2 callersFunctionNewIdent
---------------------------------------------------------------------------- Convenience functions for Idents NewIdent creates a new [Ident] without p
pkg/ast/ast.go:888
↓ 2 callersFunctionNewNonZeroErr
(v int)
pkg/agl/core/core.go:458
↓ 2 callersMethodPkgName
()
pkg/agl/codegen.go:748
↓ 2 callersMethodRead
Read calls decode to deserialize a file set into s; s must not be nil.
pkg/token/serialize.go:24
↓ 2 callersFunctionSliceSeq
(s []T)
pkg/agl/utils.go:295
↓ 2 callersMethodString
()
pkg/types/types.go:532
↓ 2 callersFunctionTrue
()
pkg/utils/utils.go:10
↓ 2 callersMethodVisit
(node Node)
pkg/ast/walk.go:16
↓ 2 callersMethodaddExtension
(extName string, ext ExtensionTest)
pkg/agl/codegen.go:5435
↓ 2 callersMethodall
all returns an iterator over the tree t. If t is modified during the iteration, some files may not be visited. No file will be visited multiple times.
pkg/token/tree.go:131
↓ 2 callersMethodcallExprSelectorExpr
(expr *ast.CallExpr, call *ast.SelectorExpr)
pkg/agl/infer.go:1348
↓ 2 callersMethodcheck
check asserts that each node's height, subtree, and parent link is correct.
pkg/token/tree.go:78
↓ 2 callersMethodconsumeCommentGroup
Consume a group of adjacent comments, add it to the parser's comments list, and return it together with the line at which the last comment in the grou
pkg/parser/parser.go:223
↓ 2 callersMethodembeddedTerm
()
pkg/parser/parser.go:1435
↓ 2 callersMethodeol
()
pkg/ast/commentmap.go:75
↓ 2 callersMethoderror
(pos token.Pos, msg string)
pkg/ast/resolve.go:21
↓ 2 callersFunctionexprToString
exprToString returns a basic string representation of an expression (e.g., type)
pkg/agl/infer.go:284
↓ 2 callersMethodfile
(p Pos)
pkg/token/position.go:561
↓ 2 callersFunctionfilterCompositeLit
(lit *CompositeLit, filter Filter, export bool)
pkg/ast/filter.go:123
↓ 2 callersFunctionfilterDecl
(decl Decl, f Filter, export bool)
pkg/ast/filter.go:247
↓ 2 callersFunctionfilterExprList
(list []Expr, filter Filter, export bool)
pkg/ast/filter.go:131
↓ 2 callersFunctionfilterFieldList
(fields *FieldList, filter Filter, export bool)
pkg/ast/filter.go:88
↓ 2 callersFunctionfilterPackage
(pkg *Package, f Filter, export bool)
pkg/ast/filter.go:300
↓ 2 callersFunctionfindInterfaceMethod
findInterfaceMethod recursively searches for a method in an interface hierarchy
pkg/agl/infer.go:645
↓ 2 callersFunctionfuncDeclTypeToFuncType
(name string, expr *ast.FuncDecl, env *Env, fset *token.FileSet, native bool)
pkg/agl/env.go:175
↓ 2 callersMethodgenBinaryExpr
(expr *ast.BinaryExpr)
pkg/agl/codegen.go:3618
↓ 2 callersMethodgenCallExprSelectorExpr
(expr *ast.CallExpr, x *ast.SelectorExpr)
pkg/agl/codegen.go:2615
↓ 2 callersFunctiongenCode
(fileName string, src []byte, mutEnforced bool)
main.go:983
↓ 2 callersMethodgenDecl
(d ast.Decl)
pkg/agl/codegen.go:4077
↓ 2 callersMethodgenEnumMatchClauses
genEnumMatchClauses emits the if/else-if chain for the clauses of a match over an enum value. firstIfPrefix is emitted before the first clause's "if";
pkg/agl/codegen.go:1573
↓ 2 callersMethodgenEnumPatternArgs
genEnumPatternArgs emits the bindings extracting each destructured enum argument of an if/guard-let enum pattern (eg: x := aglTmp1.SomeProp_0).
pkg/agl/codegen.go:4888
↓ 2 callersMethodgenExtension
(ext Extension)
pkg/agl/codegen.go:317
↓ 2 callersMethodgenFuncDecl
(decl *ast.FuncDecl)
pkg/agl/codegen.go:5276
↓ 2 callersMethodgenFuncType
(expr *ast.FuncType)
pkg/agl/codegen.go:2034
↓ 2 callersMethodgenTupleDestructure
genTupleDestructure emits the tuple destructuring statements for a multi-value if/guard-let (eg: aglVar1 := aglTmp1.Unwrap(); a, b := aglVar1.Arg0, ag
pkg/agl/codegen.go:4906
↓ 2 callersFunctiongetGoRecv
(e goast.Expr)
pkg/agl/env.go:71
↓ 2 callersFunctiongoFuncTypeToFuncType
(name, pkgName string, expr *goast.FuncType, env *Env, keepRaw bool)
pkg/agl/env.go:112
↓ 2 callersFunctionhandleTupleExprWithType
(prefix, n string, v *ast.TupleExpr, out *string, e EmitterFunc, paramType types.Type)
pkg/agl/codegen.go:1107
↓ 2 callersFunctionimportComment
(s Spec)
pkg/ast/import.go:86
↓ 2 callersMethodinferEnumPatternDestructure
inferEnumPatternDestructure handles enum pattern matching in if/guard-let statements (eg: if let MyEnum.SomeProp(x, y) := someEnumValue). It infers rh
pkg/agl/infer.go:5472
↓ 2 callersMethodinferOptionTupleDestructure
inferOptionTupleDestructure handles tuple destructuring for multiple LHS values in if/guard-let statements. kind is used in error messages (eg: "if le
pkg/agl/infer.go:5520
↓ 2 callersMethodinferStructType
(sT types.StructType, expr *ast.SelectorExpr)
pkg/agl/infer.go:1194
↓ 2 callersMethodinit
(file *token.File, src []byte, mode Mode)
pkg/parser/parser.go:77
↓ 2 callersFunctionisDigit
(ch rune)
pkg/scanner/scanner.go:331
↓ 2 callersFunctionisHex
(ch rune)
pkg/scanner/scanner.go:442
↓ 2 callersFunctionisIntType
(t types.Type)
pkg/agl/infer.go:1054
↓ 2 callersFunctionisTypeSwitchAssert
(x ast.Expr)
pkg/parser/parser.go:2892
↓ 2 callersMethodloadAglFile
(depth int, t *TreeDrawer, nenv *Env, prefix, path, pkgName string, m *PkgVisited)
pkg/agl/env.go:824
↓ 2 callersFunctionloadAglImports
(fileName string, depth int, t *TreeDrawer, env, nenv *Env, node *ast.File, m *PkgVisited, fset *token.FileSet
pkg/agl/env.go:358
↓ 2 callersFunctionloadImports
(fileName string, depth int, t *TreeDrawer, env, nenv *Env, imports [][]string, m *PkgVisited)
pkg/agl/env.go:396
↓ 2 callersMethodloadVendor2
(depth int, t *TreeDrawer, nenv *Env, path string, m *PkgVisited)
pkg/agl/env.go:835
↓ 2 callersMethodnext0
Advance to the next token.
pkg/parser/parser.go:158
↓ 2 callersFunctionnumericTypeName
numericTypeName returns the name used for a numeric type in the "agl.<Name>.<Method>" extension functions (e.g. "agl.I64.Sqrt" / "AglI64Sqrt"), or ""
pkg/agl/utils.go:32
↓ 2 callersFunctionp
(a ...any)
pkg/agl/utils.go:76
↓ 2 callersMethodparseArrayFieldOrTypeInstance
(x *ast.Ident)
pkg/parser/parser.go:722
↓ 2 callersMethodparseBinaryExpr
parseBinaryExpr parses a (possibly) binary expression. If x is non-nil, it is used as the left operand. TODO(rfindley): parseBinaryExpr has become ov
pkg/parser/parser.go:2377
↓ 2 callersMethodparseCallExpr
(callType string)
pkg/parser/parser.go:2510
↓ 2 callersMethodparseDecl
(sync map[token.Token]bool)
pkg/parser/parser.go:3556
↓ 2 callersMethodparseDotsType
()
pkg/parser/parser.go:937
↓ 2 callersMethodparseExprList
---------------------------------------------------------------------------- Common productions If lhs is set, result list elements which are identifi
pkg/parser/parser.go:594
↓ 2 callersFunctionparseFuncDeclFromStringHelper
(name, s string, env *Env, fset *token.FileSet)
pkg/agl/env.go:273
↓ 2 callersMethodparseFuncType
()
pkg/parser/parser.go:1303
↓ 2 callersFunctionparseFuncTypeFromStringHelper
(name, s string, env *Env, fset *token.FileSet, native bool)
pkg/agl/env.go:266
↓ 2 callersMethodparseGenDecl
(keyword token.Token, f parseSpecFunction)
pkg/parser/parser.go:3464
↓ 2 callersMethodparseIdentHelper
(mutPos token.Pos)
pkg/parser/parser.go:548
↓ 2 callersMethodparseIfHeader
parseIfHeader is an adjusted version of parser.header in cmd/compile/internal/syntax/parser.go, which has been tuned for better error handling.
pkg/parser/parser.go:2605
↓ 2 callersMethodparseIfLetExpr
(pos token.Pos)
pkg/parser/parser.go:2665
↓ 2 callersMethodparseLiteralValue
(typ ast.Expr)
pkg/parser/parser.go:2168
↓ 2 callersMethodparsePrimaryExpr
(x ast.Expr)
pkg/parser/parser.go:2186
↓ 2 callersMethodparsePrimaryExprHelper
(x ast.Expr, braceAllowed bool)
pkg/parser/parser.go:2194
↓ 2 callersMethodparseTypeParameters
()
pkg/parser/parser.go:1259
↓ 2 callersMethodparseValue
()
pkg/parser/parser.go:2123
↓ 2 callersMethodposition
(p Pos, adjusted bool)
pkg/token/position.go:378
↓ 2 callersFunctionprocessSpec
(path, entryName string, node *goast.File, fset *gotoken.FileSet, s goast.Spec, env *Env, pkgName string, tryL
pkg/agl/env.go:646
↓ 2 callersFunctionreadSource
If src != nil, readSource converts src to a []byte if possible; otherwise it returns an error. If src == nil, readSource returns the result of reading
pkg/parser/interface.go:24
↓ 2 callersMethodreplaceChild
(parent, old, new *node)
pkg/token/tree.go:217
↓ 2 callersMethodresolve
If x is an identifier, resolve attempts to resolve x by looking up the object it denotes. If no object is found and collectUnresolved is set, x is mar
pkg/parser/resolver.go:196
↓ 2 callersMethodrotateLeft
rotateLeft rotates the subtree rooted at node x. turning (x a (y b c)) into (y (x a b) c).
pkg/token/tree.go:288
↓ 2 callersMethodrotateRight
rotateRight rotates the subtree rooted at node y. turning (y (x a b) c) into (x a (y b c)).
pkg/token/tree.go:268
↓ 2 callersMethodscanEscape
scanEscape parses an escape sequence where rune is the accepted escaped quote. In case of a syntax error, it stops at the offending character (without
pkg/scanner/scanner.go:619
↓ 2 callersFunctionsearchInts
----------------------------------------------------------------------------- Helper functions
pkg/token/position.go:612
↓ 2 callersMethodsetExtensionDecl
(fnName string, decl *ast.FuncDecl)
pkg/agl/codegen.go:5444
↓ 2 callersMethodsetInt32
(addr, v)
docs/wasm_exec.js:124
↓ 2 callersMethodshortVarDecl
(decl *ast.AssignStmt)
pkg/parser/resolver.go:158
↓ 2 callersFunctionsortComments
sortComments sorts the list of comment groups in source order.
pkg/ast/commentmap.go:17
↓ 2 callersFunctionsortSpecs
(fset *token.FileSet, f *File, d *GenDecl, specs []Spec)
pkg/ast/import.go:112
↓ 2 callersFunctionstripCR
(b []byte, comment bool)
pkg/scanner/scanner.go:762
↓ 2 callersMethodswitch4
(tok0, tok1 token.Token, ch2 rune, tok2, tok3 token.Token)
pkg/scanner/scanner.go:839
↓ 2 callersFunctiontestCodeGen1
(t *testing.T, got, expected string)
pkg/agl/codegen_test.go:31
↓ 2 callersFunctiontrailingDigits
(text []byte)
pkg/scanner/scanner.go:309
← previousnext →301–400 of 2,276, ranked by callers