MCPcopy Create free account

hub / github.com/alaingilbert/agl / functions

Functions2,276 in github.com/alaingilbert/agl

↓ 4 callersMethodgenSpec
(s ast.Spec, tok token.Token)
pkg/agl/codegen.go:3977
↓ 4 callersFunctionimportName
(s Spec)
pkg/ast/import.go:78
↓ 4 callersFunctionimportPath
(s Spec)
pkg/ast/import.go:70
↓ 4 callersMethodinferReturnTypeFromLambdaBody
(lambda *ast.ShortFuncLit)
pkg/agl/infer.go:2774
↓ 4 callersFunctionisNumericType
(t types.Type)
pkg/agl/infer.go:1068
↓ 4 callersMethodlocate
locate returns a pointer to the variable that holds the node identified by k, along with its parent, if any. If the key is not present, it returns a p
pkg/token/tree.go:112
↓ 4 callersMethodlspNode
(n ast.Node)
pkg/agl/env.go:1330
↓ 4 callersMethodlspNodeOrCreate
(n ast.Node)
pkg/agl/env.go:1334
↓ 4 callersMethodmakeExpr
(s ast.Stmt, want string)
pkg/parser/parser.go:2587
↓ 4 callersFunctionpackIndexExpr
packIndexExpr returns an IndexExpr x[expr0] or IndexListExpr x[expr0, ...].
pkg/parser/parser.go:3665
↓ 4 callersMethodparseMutIdent
(mutPos token.Pos)
pkg/parser/parser.go:544
↓ 4 callersMethodparseParameterList
(name0 *ast.Ident, typ0 ast.Expr, closing token.Token, dddok bool)
pkg/parser/parser.go:1069
↓ 4 callersMethodrebalanceUp
rebalanceUp visits each excessively unbalanced ancestor of x, restoring balance by rotating it. x is a node that has just been mutated, and so the he
pkg/token/tree.go:239
↓ 4 callersMethodresolveList
(list *ast.FieldList)
pkg/parser/resolver.go:523
↓ 4 callersMethodsafeHeight
()
pkg/token/tree.go:204
↓ 4 callersMethodsetLeft
(y *node)
pkg/token/tree.go:190
↓ 4 callersMethodsetRight
(y *node)
pkg/token/tree.go:197
↓ 4 callersFunctiontestCodeGenFn
(src string)
pkg/agl/codegen_test.go:37
↓ 4 callersMethodwithAsType
(clb func())
pkg/agl/codegen.go:49
↓ 4 callersMethodwithEnv
(clb func(*Env))
pkg/agl/env.go:53
↓ 4 callersMethodwithReturnType
(t types.Type, clb func())
pkg/agl/infer.go:161
↓ 3 callersMethodAddFile
AddFile adds a new file with a given filename, base offset, and file size to the file set s and returns the file. Multiple files may have the same nam
pkg/token/position.go:467
↓ 3 callersFunctionAglIteratorAllSatisfy
(it I, pred func(T) bool)
pkg/agl/core/core.go:1382
↓ 3 callersFunctionAglIteratorFilter
(it I, f func(T) bool)
pkg/agl/core/core.go:1440
↓ 3 callersFunctionAglIteratorRPosition
(it I, f func(T) bool)
pkg/agl/core/core.go:722
↓ 3 callersFunctionAglVecEq__Eq
(lhs, rhs AglVecEq[T])
experiments/equatable_vec/main.go:59
↓ 3 callersFunctionAglVecFilter
(v AglVec[T])
experiments/equatable_vec/main.go:43
↓ 3 callersFunctionApplyIf
(s string, clb func() string)
pkg/utils/utils.go:84
↓ 3 callersMethodContainsAdd
(pkg string)
pkg/agl/infer.go:367
↓ 3 callersMethodDefineForce
(n ast.Node, name string, typ types.Type)
pkg/agl/env.go:1266
↓ 3 callersMethodErr
()
pkg/agl/core/core.go:173
↓ 3 callersMethodGoStr
()
pkg/types/types.go:301
↓ 3 callersMethodGoStr
()
pkg/types/types.go:751
↓ 3 callersMethodInsert
Insert attempts to insert a named object obj into the scope s. If the scope already contains an object alt with the same name, Insert leaves the scope
pkg/ast/scope.go:42
↓ 3 callersMethodIsKeyword
IsKeyword returns true for tokens corresponding to keywords; it returns false otherwise.
pkg/token/token.go:375
↓ 3 callersMethodIsLiteral
Predicates IsLiteral returns true for tokens corresponding to identifiers and basic type literals; it returns false otherwise.
pkg/token/token.go:365
↓ 3 callersMethodNameStr
()
pkg/types/types.go:525
↓ 3 callersFunctionNewObj
NewObj creates a new object of a given kind and name.
pkg/ast/scope.go:96
↓ 3 callersMethodOffset
Offset returns the offset for the given file position p. If p is before the file's start position (or if p is NoPos), the result is 0; if p is past t
pkg/token/position.go:318
↓ 3 callersMethodPositionFor
PositionFor 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. If adju
pkg/token/position.go:390
↓ 3 callersFunctionRenameGen
RenameGen renames every generic type parameter called name to newName.
pkg/types/types.go:1125
↓ 3 callersMethodRenameGenericParameter
(name, newName string)
pkg/types/types.go:877
↓ 3 callersMethodString
()
pkg/types/types.go:430
↓ 3 callersMethodTypeParamGoStr
()
pkg/types/types.go:569
↓ 3 callersFunctionUnparen
Unparen returns the expression with any enclosing parentheses removed.
pkg/ast/ast.go:1536
↓ 3 callersMethodWrite
(data []byte)
pkg/ast/print.go:89
↓ 3 callersMethod__EQ
(rhs T)
pkg/agl/core/core.go:991
↓ 3 callersMethod_resume
()
docs/wasm_exec.js:555
↓ 3 callersMethodadd
add inserts file into the tree, if not present. It panics if file overlaps with another.
pkg/token/tree.go:308
↓ 3 callersFunctionalterResultBubble
(fnReturn, curr types.Type)
pkg/agl/infer.go:2948
↓ 3 callersFunctioncompareFunctionSignatures
(sig1, sig2 types.FuncType)
pkg/agl/infer.go:3414
↓ 3 callersMethoddeclare
(scope, altScope *Scope, obj *Object)
pkg/ast/resolve.go:29
↓ 3 callersMethoddefineHelper
(n ast.Node, name string, typ types.Type, force bool, opts ...SetTypeOption)
pkg/agl/env.go:1296
↓ 3 callersMethoddelete
delete deletes the node at pos.
pkg/token/tree.go:340
↓ 3 callersMethoddigits
digits accepts the sequence { digit | '_' }. If base <= 10, digits accepts any decimal digit but records the offset (relative to the source start) of
pkg/scanner/scanner.go:450
↓ 3 callersMethoderrorf
(pos token.Pos, format string, args ...any)
pkg/ast/resolve.go:25
↓ 3 callersMethodexpect2
expect2 is like expect, but it returns an invalid position if the expected token is not found.
pkg/parser/parser.go:348
↓ 3 callersFunctionextractIdentifiers
extractIdentifiers extracts all capitalized identifiers from a line of code
main.go:371
↓ 3 callersFunctionfilterFile
(src *File, f Filter, export bool)
pkg/ast/filter.go:271
↓ 3 callersMethodfindNodeAtPosition
(file *ast.File, pos token.Position)
language_server/main.go:292
↓ 3 callersMethodfixOffset
fixOffset fixes an out-of-bounds offset such that 0 <= offset <= f.size.
pkg/token/position.go:273
↓ 3 callersFunctiongenCode1
(fileName string, src, coreGoImports []byte, mutEnforced, allowUnused, releaseFlag bool)
main.go:953
↓ 3 callersMethodgenIdent
(expr *ast.Ident)
pkg/agl/codegen.go:974
↓ 3 callersFunctiongetCheck
(t types.Type)
pkg/agl/codegen.go:1368
↓ 3 callersFunctionifExprHasExplicitReturns
(ifExpr *ast.IfExpr)
pkg/agl/codegen.go:797
↓ 3 callersFunctionisLetter
(ch rune)
pkg/scanner/scanner.go:327
↓ 3 callersFunctionisTypeElem
isTypeElem reports whether x is a (possibly parenthesized) type element expression. The result is false if x could be a type element OR an ordinary (v
pkg/parser/parser.go:3450
↓ 3 callersMethodjoinList
(l *ast.FieldList)
pkg/agl/codegen.go:5450
↓ 3 callersMethodkey
()
pkg/token/tree.go:53
↓ 3 callersFunctionlitname
(prefix rune)
pkg/scanner/scanner.go:563
↓ 3 callersMethodmakeKey
(x ast.Node)
pkg/agl/env.go:1378
↓ 3 callersMethodnext
()
pkg/token/tree.go:169
↓ 3 callersMethodparseArrayType
"[" has already been consumed, and lbrack is its position. If len != nil it is the already consumed array length.
pkg/parser/parser.go:694
↓ 3 callersMethodparseBody
()
pkg/parser/parser.go:1687
↓ 3 callersMethodparseIfExpr
()
pkg/parser/parser.go:2819
↓ 3 callersMethodparseStmt
()
pkg/parser/parser.go:3154
↓ 3 callersMethodparseTypeInstance
(typ ast.Expr)
pkg/parser/parser.go:1558
↓ 3 callersMethodparseTypeName
If the result is an identifier, it is not resolved.
pkg/parser/parser.go:673
↓ 3 callersMethodpop
pop pops all nodes that appear lexically before pos (i.e., whose lexical extent has ended before or at pos). It returns the last node popped.
pkg/ast/commentmap.go:102
↓ 3 callersFunctionrangeElemType
rangeElemType returns the element type of a RangeType or RangeInclusiveType, or nil if t is neither.
pkg/agl/utils.go:20
↓ 3 callersMethodsafePos
safePos returns a valid file position for a given position: If pos is valid to begin with, safePos returns pos. If pos is out-of-range, safePos return
pkg/parser/parser.go:489
↓ 3 callersMethodscanIdentifier
scanIdentifier reads the string of valid identifier characters at s.offset. It must only be called when s.ch is known to be a valid letter. Be carefu
pkg/scanner/scanner.go:385
↓ 3 callersMethodsprintf
(format string, args ...any)
pkg/parser/resolver.go:79
↓ 3 callersMethodvalidateGuardBody
validateGuardBody checks that a guard body is non-empty, infers it, and ensures it ends with a return/break/continue statement.
pkg/agl/infer.go:5561
↓ 2 callersMethodAddLine
AddLine adds the line offset for a new line. The line offset must be larger than the offset for the previous line and smaller than the file size; othe
pkg/token/position.go:141
↓ 2 callersMethodAddLineColumnInfo
AddLineColumnInfo adds alternative file, line, and column number information for a given file offset. The offset must be larger than the offset for th
pkg/token/position.go:264
↓ 2 callersFunctionAglBuildSet
(it Iterator[T])
pkg/agl/core/core.go:2554
↓ 2 callersFunctionAglIteratorContains
(it I, el T)
pkg/agl/core/core.go:1395
↓ 2 callersFunctionAglIteratorFilterMap
(it Iterator[T], f func(T) Option[R])
pkg/agl/core/core.go:637
↓ 2 callersFunctionAglIteratorMin
(it Iterator[T])
pkg/agl/core/core.go:1673
↓ 2 callersFunctionAglSequenceContainsWhere
(s Sequence[T], pred func(T) bool)
pkg/agl/core/core.go:760
↓ 2 callersMethodClose
()
language_server/main.go:655
↓ 2 callersFunctionCoreFns
()
pkg/agl/env.go:1150
↓ 2 callersMethodDefine1
(n ast.Node, name string, typ types.Type, opts ...SetTypeOption)
pkg/agl/env.go:1279
↓ 2 callersMethodDefineFnNative2
(name string, fnT types.FuncType, opts ...SetTypeOption)
pkg/agl/env.go:1258
↓ 2 callersMethodFNoEmit
(g *Generator)
pkg/agl/codegen.go:4446
↓ 2 callersFunctionFilter
Filter ...
pkg/agl/utils.go:281
↓ 2 callersFunctionFindIdxIter
FindIdxIter ...
pkg/agl/utils.go:269
↓ 2 callersMethodGenerate2
()
pkg/agl/codegen.go:522
↓ 2 callersMethodGenerateFrags
(line int)
pkg/agl/codegen.go:458
← previousnext →201–300 of 2,276, ranked by callers