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
↓ 4 callers
Method
genSpec
(s ast.Spec, tok token.Token)
pkg/agl/codegen.go:3977
↓ 4 callers
Function
importName
(s Spec)
pkg/ast/import.go:78
↓ 4 callers
Function
importPath
(s Spec)
pkg/ast/import.go:70
↓ 4 callers
Method
inferReturnTypeFromLambdaBody
(lambda *ast.ShortFuncLit)
pkg/agl/infer.go:2774
↓ 4 callers
Function
isNumericType
(t types.Type)
pkg/agl/infer.go:1068
↓ 4 callers
Method
locate
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 callers
Method
lspNode
(n ast.Node)
pkg/agl/env.go:1330
↓ 4 callers
Method
lspNodeOrCreate
(n ast.Node)
pkg/agl/env.go:1334
↓ 4 callers
Method
makeExpr
(s ast.Stmt, want string)
pkg/parser/parser.go:2587
↓ 4 callers
Function
packIndexExpr
packIndexExpr returns an IndexExpr x[expr0] or IndexListExpr x[expr0, ...].
pkg/parser/parser.go:3665
↓ 4 callers
Method
parseMutIdent
(mutPos token.Pos)
pkg/parser/parser.go:544
↓ 4 callers
Method
parseParameterList
(name0 *ast.Ident, typ0 ast.Expr, closing token.Token, dddok bool)
pkg/parser/parser.go:1069
↓ 4 callers
Method
rebalanceUp
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 callers
Method
resolveList
(list *ast.FieldList)
pkg/parser/resolver.go:523
↓ 4 callers
Method
safeHeight
()
pkg/token/tree.go:204
↓ 4 callers
Method
setLeft
(y *node)
pkg/token/tree.go:190
↓ 4 callers
Method
setRight
(y *node)
pkg/token/tree.go:197
↓ 4 callers
Function
testCodeGenFn
(src string)
pkg/agl/codegen_test.go:37
↓ 4 callers
Method
withAsType
(clb func())
pkg/agl/codegen.go:49
↓ 4 callers
Method
withEnv
(clb func(*Env))
pkg/agl/env.go:53
↓ 4 callers
Method
withReturnType
(t types.Type, clb func())
pkg/agl/infer.go:161
↓ 3 callers
Method
AddFile
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 callers
Function
AglIteratorAllSatisfy
(it I, pred func(T) bool)
pkg/agl/core/core.go:1382
↓ 3 callers
Function
AglIteratorFilter
(it I, f func(T) bool)
pkg/agl/core/core.go:1440
↓ 3 callers
Function
AglIteratorRPosition
(it I, f func(T) bool)
pkg/agl/core/core.go:722
↓ 3 callers
Function
AglVecEq__Eq
(lhs, rhs AglVecEq[T])
experiments/equatable_vec/main.go:59
↓ 3 callers
Function
AglVecFilter
(v AglVec[T])
experiments/equatable_vec/main.go:43
↓ 3 callers
Function
ApplyIf
(s string, clb func() string)
pkg/utils/utils.go:84
↓ 3 callers
Method
ContainsAdd
(pkg string)
pkg/agl/infer.go:367
↓ 3 callers
Method
DefineForce
(n ast.Node, name string, typ types.Type)
pkg/agl/env.go:1266
↓ 3 callers
Method
Err
()
pkg/agl/core/core.go:173
↓ 3 callers
Method
GoStr
()
pkg/types/types.go:301
↓ 3 callers
Method
GoStr
()
pkg/types/types.go:751
↓ 3 callers
Method
Insert
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 callers
Method
IsKeyword
IsKeyword returns true for tokens corresponding to keywords; it returns false otherwise.
pkg/token/token.go:375
↓ 3 callers
Method
IsLiteral
Predicates IsLiteral returns true for tokens corresponding to identifiers and basic type literals; it returns false otherwise.
pkg/token/token.go:365
↓ 3 callers
Method
NameStr
()
pkg/types/types.go:525
↓ 3 callers
Function
NewObj
NewObj creates a new object of a given kind and name.
pkg/ast/scope.go:96
↓ 3 callers
Method
Offset
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 callers
Method
PositionFor
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 callers
Function
RenameGen
RenameGen renames every generic type parameter called name to newName.
pkg/types/types.go:1125
↓ 3 callers
Method
RenameGenericParameter
(name, newName string)
pkg/types/types.go:877
↓ 3 callers
Method
String
()
pkg/types/types.go:430
↓ 3 callers
Method
TypeParamGoStr
()
pkg/types/types.go:569
↓ 3 callers
Function
Unparen
Unparen returns the expression with any enclosing parentheses removed.
pkg/ast/ast.go:1536
↓ 3 callers
Method
Write
(data []byte)
pkg/ast/print.go:89
↓ 3 callers
Method
__EQ
(rhs T)
pkg/agl/core/core.go:991
↓ 3 callers
Method
_resume
()
docs/wasm_exec.js:555
↓ 3 callers
Method
add
add inserts file into the tree, if not present. It panics if file overlaps with another.
pkg/token/tree.go:308
↓ 3 callers
Function
alterResultBubble
(fnReturn, curr types.Type)
pkg/agl/infer.go:2948
↓ 3 callers
Function
compareFunctionSignatures
(sig1, sig2 types.FuncType)
pkg/agl/infer.go:3414
↓ 3 callers
Method
declare
(scope, altScope *Scope, obj *Object)
pkg/ast/resolve.go:29
↓ 3 callers
Method
defineHelper
(n ast.Node, name string, typ types.Type, force bool, opts ...SetTypeOption)
pkg/agl/env.go:1296
↓ 3 callers
Method
delete
delete deletes the node at pos.
pkg/token/tree.go:340
↓ 3 callers
Method
digits
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 callers
Method
errorf
(pos token.Pos, format string, args ...any)
pkg/ast/resolve.go:25
↓ 3 callers
Method
expect2
expect2 is like expect, but it returns an invalid position if the expected token is not found.
pkg/parser/parser.go:348
↓ 3 callers
Function
extractIdentifiers
extractIdentifiers extracts all capitalized identifiers from a line of code
main.go:371
↓ 3 callers
Function
filterFile
(src *File, f Filter, export bool)
pkg/ast/filter.go:271
↓ 3 callers
Method
findNodeAtPosition
(file *ast.File, pos token.Position)
language_server/main.go:292
↓ 3 callers
Method
fixOffset
fixOffset fixes an out-of-bounds offset such that 0 <= offset <= f.size.
pkg/token/position.go:273
↓ 3 callers
Function
genCode1
(fileName string, src, coreGoImports []byte, mutEnforced, allowUnused, releaseFlag bool)
main.go:953
↓ 3 callers
Method
genIdent
(expr *ast.Ident)
pkg/agl/codegen.go:974
↓ 3 callers
Function
getCheck
(t types.Type)
pkg/agl/codegen.go:1368
↓ 3 callers
Function
ifExprHasExplicitReturns
(ifExpr *ast.IfExpr)
pkg/agl/codegen.go:797
↓ 3 callers
Function
isLetter
(ch rune)
pkg/scanner/scanner.go:327
↓ 3 callers
Function
isTypeElem
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 callers
Method
joinList
(l *ast.FieldList)
pkg/agl/codegen.go:5450
↓ 3 callers
Method
key
()
pkg/token/tree.go:53
↓ 3 callers
Function
litname
(prefix rune)
pkg/scanner/scanner.go:563
↓ 3 callers
Method
makeKey
(x ast.Node)
pkg/agl/env.go:1378
↓ 3 callers
Method
next
()
pkg/token/tree.go:169
↓ 3 callers
Method
parseArrayType
"[" 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 callers
Method
parseBody
()
pkg/parser/parser.go:1687
↓ 3 callers
Method
parseIfExpr
()
pkg/parser/parser.go:2819
↓ 3 callers
Method
parseStmt
()
pkg/parser/parser.go:3154
↓ 3 callers
Method
parseTypeInstance
(typ ast.Expr)
pkg/parser/parser.go:1558
↓ 3 callers
Method
parseTypeName
If the result is an identifier, it is not resolved.
pkg/parser/parser.go:673
↓ 3 callers
Method
pop
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 callers
Function
rangeElemType
rangeElemType returns the element type of a RangeType or RangeInclusiveType, or nil if t is neither.
pkg/agl/utils.go:20
↓ 3 callers
Method
safePos
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 callers
Method
scanIdentifier
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 callers
Method
sprintf
(format string, args ...any)
pkg/parser/resolver.go:79
↓ 3 callers
Method
validateGuardBody
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 callers
Method
AddLine
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 callers
Method
AddLineColumnInfo
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 callers
Function
AglBuildSet
(it Iterator[T])
pkg/agl/core/core.go:2554
↓ 2 callers
Function
AglIteratorContains
(it I, el T)
pkg/agl/core/core.go:1395
↓ 2 callers
Function
AglIteratorFilterMap
(it Iterator[T], f func(T) Option[R])
pkg/agl/core/core.go:637
↓ 2 callers
Function
AglIteratorMin
(it Iterator[T])
pkg/agl/core/core.go:1673
↓ 2 callers
Function
AglSequenceContainsWhere
(s Sequence[T], pred func(T) bool)
pkg/agl/core/core.go:760
↓ 2 callers
Method
Close
()
language_server/main.go:655
↓ 2 callers
Function
CoreFns
()
pkg/agl/env.go:1150
↓ 2 callers
Method
Define1
(n ast.Node, name string, typ types.Type, opts ...SetTypeOption)
pkg/agl/env.go:1279
↓ 2 callers
Method
DefineFnNative2
(name string, fnT types.FuncType, opts ...SetTypeOption)
pkg/agl/env.go:1258
↓ 2 callers
Method
FNoEmit
(g *Generator)
pkg/agl/codegen.go:4446
↓ 2 callers
Function
Filter
Filter ...
pkg/agl/utils.go:281
↓ 2 callers
Function
FindIdxIter
FindIdxIter ...
pkg/agl/utils.go:269
↓ 2 callers
Method
Generate2
()
pkg/agl/codegen.go:522
↓ 2 callers
Method
GenerateFrags
(line int)
pkg/agl/codegen.go:458
← previous
next →
201–300 of 2,276, ranked by callers