MCPcopy Create free account

hub / github.com/Effect-TS/tsgo / functions

Functions2,947 in github.com/Effect-TS/tsgo

↓ 8 callersMethodResolveToGlobalSymbol
ResolveToGlobalSymbol follows aliases and up to two simple variable indirections so rules can recognize references to the original global symbol.
internal/typeparser/helpers.go:83
↓ 8 callersFunctioncompileAndGetCheckerAndSourceFileInternal
compileAndGetCheckerAndSourceFileInternal is a copy of compileAndGetCheckerAndSourceFile for use in internal (package typeparser) tests that need acce
internal/typeparser/helpers_test.go:70
↓ 8 callersFunctiondurationInputItems
(t *testing.T, source string, position int)
internal/completions/fourslash_test.go:127
↓ 8 callersMethodextractInvariantType
extractInvariantType gets the type argument from an invariant property. Invariant<A> is encoded as (_: A) => A, so we extract the return type (same as
internal/typeparser/helpers.go:57
↓ 8 callersFunctionparseSource
(source string)
internal/typeparser/module_identifier_test.go:11
↓ 8 callersFunctionrunEffectBaseline
runEffectBaseline compares actual output with reference baseline. It only writes to the filesystem when the actual content differs from the reference
internal/effecttest/baseline.go:587
↓ 8 callersMethodunsupportedComment
unsupportedComment creates a placeholder identifier for unsupported conversions. This produces /* Not supported conversion: <text> */ in the emitted o
internal/schemagen/schemagen.go:72
↓ 8 callersFunctionwalkLeavesMatching
walkLeavesMatching performs a BFS from the given start node indices, walking outgoing edges. For each node, it checks if any outgoing neighbors match
internal/layergraph/providers.go:17
↓ 7 callersMethodContextTag
ContextTag parses a v3 Context.Tag type and extracts Identifier, Shape parameters. Returns nil if the type is not a v3 Context.Tag.
internal/typeparser/context_tag.go:13
↓ 7 callersMethodDFS
DFS performs an iterative pre-order depth-first search, yielding (index, data) pairs. Neighbors are visited in deterministic edge-index order.
internal/graph/graph.go:516
↓ 7 callersFunctionFindEffectModuleIdentifier
FindEffectModuleIdentifier finds the local name for the Effect module from imports. It checks both namespace imports (import * as X from "effect/Effec
internal/typeparser/module_identifier.go:11
↓ 7 callersMethodGetBarrelImportPackages
GetBarrelImportPackages returns normalized package names configured for barrel imports. Defaults to an empty list when unset.
etscore/options.go:309
↓ 7 callersMethodGetEffectYieldGeneratorFunction
(node *ast.Node)
internal/typeparser/effect_context.go:34
↓ 7 callersMethodGetImportAliases
GetImportAliases returns normalized import aliases keyed by lower-cased package names. Defaults to an empty map when unset.
etscore/options.go:318
↓ 7 callersMethodGetNamespaceImportPackages
GetNamespaceImportPackages returns normalized package names configured for namespace imports. Defaults to an empty list when unset.
etscore/options.go:300
↓ 7 callersMethodGetTopLevelNamedReexports
GetTopLevelNamedReexports returns the normalized top-level named reexports mode. Defaults to "ignore" when unset or invalid.
etscore/options.go:327
↓ 7 callersMethodRemoveNode
RemoveNode removes the node at the given index and all its incident edges.
internal/graph/graph.go:112
↓ 7 callersFunctionaddOne
(n: number)
testdata/tests/effect-v3/missedPipeableOpportunity.ts:19
↓ 7 callersFunctionaddOne
(n: number)
testdata/tests/effect-v4/missedPipeableOpportunity.ts:18
↓ 7 callersFunctionassertEffectGenFunctionReturnType
(t *testing.T, version bundledeffect.EffectVersion, source string, want string)
internal/typeparser/effect_gen_test.go:34
↓ 7 callersFunctionassess
( input: Assessment.Input )
_packages/tsgo/src/setup/assessment.ts:218
↓ 7 callersMethodconnectSlices
(fromSlice *GraphSlice, toSlice *GraphSlice, kind ExecutionLinkKind)
internal/typeparser/execution_flow.go:88
↓ 7 callersFunctioncreateOpaqueTypeAlias
createOpaqueTypeAlias creates: export type <name> = <schemaId>.<ns>.<member><typeof inferFrom>
internal/refactors/make_schema_opaque.go:179
↓ 7 callersFunctionextractNodeInfo
extractNodeInfo computes the LayerGraphNodeInfo for a given AST node.
internal/layergraph/extract.go:232
↓ 7 callersFunctionfnFunctionStarItems
(t *testing.T, source string, position int)
internal/completions/fourslash_test.go:99
↓ 7 callersMethodprocessNode
processNode recursively converts a TypeScript type AST node into a Schema expression.
internal/schemagen/schemagen.go:78
↓ 7 callersFunctionreplaceExpressionViaStatement
replaceExpressionViaStatement replaces an expression node by finding its containing VariableStatement, rebuilding it with the new expression as initia
internal/refactors/async_await_to_gen.go:64
↓ 6 callersFunctionAcquireProgram
AcquireProgram acquires a slot from the program semaphore.
internal/effecttest/vfs.go:26
↓ 6 callersFunctionEffectTsGoRootPath
()
internal/bundledeffect/effect.go:22
↓ 6 callersFunctionEncodeMermaidURL
EncodeMermaidURL encodes a Mermaid diagram string into a pako-compatible URL fragment. It JSON-serializes {"code": diagram}, compresses with zlib at m
internal/layergraph/mermaidurl.go:13
↓ 6 callersFunctionExtractLayerGraph
ExtractLayerGraph builds a directed graph of Layer composition from the given AST nodes. It performs a DFS with a two-pass approach using an explicit
internal/layergraph/extract.go:23
↓ 6 callersFunctionExtractOutlineGraph
ExtractOutlineGraph builds a simplified dependency graph from the full layer graph. It keeps only leaf nodes (deduplicated by symbol) and connects the
internal/layergraph/outline.go:14
↓ 6 callersFunctionMountEffect
(version EffectVersion, testfs map[string]any)
internal/bundledeffect/effect.go:89
↓ 6 callersFunctionParseLazyExpression
ParseLazyExpression parses an arrow function or function expression, extracting its inner expression. When thunk is true, the function must have zero
internal/typeparser/lazy_expression.go:19
↓ 6 callersFunctionReleaseProgram
ReleaseProgram releases a slot back to the program semaphore, clears per-program caches to allow GC of the program, and triggers GC.
internal/effecttest/vfs.go:30
↓ 6 callersFunctionResolveEffectPluginOptionsForSourceFile
ResolveEffectPluginOptionsForSourceFile resolves ordered path-scoped diagnostic overrides for a file.
internal/pluginoptions/resolver.go:12
↓ 6 callersMethodStrictEffectType
StrictEffectType returns the parsed Effect type only if the type's symbol name is "Effect". This filters out types like Stream, Layer, HttpApp.Default
internal/typeparser/effect_type.go:126
↓ 6 callersFunctionbuildState
( entries: ReadonlyArray<RuleEntry>, groups: ReadonlyArray<GroupInfo>, startIndex: number, searchText:
_packages/tsgo/src/setup/rule-prompt.ts:491
↓ 6 callersFunctioncompileAndGetCheckerAndSourceFileWithEffectVersionInternal
(t *testing.T, version bundledeffect.EffectVersion, source string)
internal/typeparser/helpers_test.go:123
↓ 6 callersFunctioncontextSelfInClassesItems
(t *testing.T, source string, position int)
internal/completions/fourslash_test.go:141
↓ 6 callersFunctiondeleteNodeFromList
* Delete a node from a list (array or object properties), handling commas properly
_packages/tsgo/src/setup/changes.ts:72
↓ 6 callersFunctioneffectFnCloneNodeList
effectFnCloneNodeList deep-clones all nodes in a NodeList, returning a new synthesized NodeList.
internal/fixables/effect_fn_opportunity.go:335
↓ 6 callersFunctioneffectSQLModelSelfInClassesItems
(t *testing.T, source string, position int)
internal/completions/fourslash_test.go:158
↓ 6 callersFunctioneffectSelfInClassesItems
(t *testing.T, source string, position int)
internal/completions/fourslash_test.go:134
↓ 6 callersFunctionfindCompletionLabel
(items []*lsproto.CompletionItem, label string)
internal/effecttest/completion_test.go:13
↓ 6 callersFunctiongetFirstVariableDeclarationType
getFirstVariableDeclarationType finds the first variable declaration in the source file and returns its type and the declaration node (for use as atLo
internal/typeparser/helpers_test.go:207
↓ 6 callersFunctionimul
imul emulates JavaScript's Math.imul: 32-bit integer multiplication that discards overflow (keeps only the lower 32 bits).
internal/keybuilder/keybuilder.go:34
↓ 6 callersFunctionnewSyntheticNamespaceSymbol
(name string)
etslshooks/document_symbols.go:229
↓ 6 callersFunctionparseSource
(source string)
internal/completion/position_test.go:12
↓ 6 callersMethodprocessNodeList
processNodeList processes a list of type nodes, converting each to a Schema expression.
internal/schemagen/schemagen.go:455
↓ 6 callersFunctionrpcMakeClassesItems
(t *testing.T, source string, position int)
internal/completions/fourslash_test.go:165
↓ 6 callersFunctionstripWhitespace
(s string)
internal/typeparser/data_first_signature_test.go:291
↓ 6 callersFunctionstructFieldTag
(typ reflect.Type, fieldName string, tagName string)
etscore/options_schema_test.go:379
↓ 6 callersMethodvisitNode
(node *ast.Node)
internal/typeparser/execution_flow.go:110
↓ 5 callersMethodBFS
BFS performs a breadth-first search traversal, yielding (index, data) pairs level by level. Neighbors are visited in deterministic edge-index order.
internal/graph/graph.go:597
↓ 5 callersFunctionByName
ByName finds a rule by name in a slice. Returns nil if not found.
internal/rule/rule.go:41
↓ 5 callersMethodDataFirstOrLastCall
(node *ast.Node)
internal/typeparser/data_first_signature.go:18
↓ 5 callersMethodEdges
Edges iterates all edges as (index, edge) pairs, sorted by index.
internal/graph/graph.go:246
↓ 5 callersMethodExtendsEffectV3Service
ExtendsEffectV3Service checks if a class declaration extends Effect.Service<Self>()(key, options). It detects the double-call pattern: class X exten
internal/typeparser/extends_effect_service.go:25
↓ 5 callersMethodGeneratorFunction
()
internal/typeparser/effect_fn.go:34
↓ 5 callersMethodGetEdge
GetEdge returns the edge at the given index. The second return value is false if the edge does not exist.
internal/graph/graph.go:177
↓ 5 callersMethodGetLayerGraphFollowDepth
GetLayerGraphFollowDepth returns the configured layer graph follow depth, or 0 if not set.
etscore/options.go:282
↓ 5 callersMethodInsertNodeBefore
(sourceFile *ast.SourceFile, before *ast.Node, newNode *ast.Node, blankLineBetween bool, leadingTriviaOption c
internal/rewriter/tracker.go:105
↓ 5 callersMethodIsNodeReferenceToEffectContextModuleApi
(node *ast.Node, memberName string)
internal/typeparser/context_type.go:36
↓ 5 callersMethodIsNodeReferenceToEffectLayerModuleApi
IsNodeReferenceToEffectLayerModuleApi reports whether node resolves to a member exported by the "effect" package from a module that exports the Layer
internal/typeparser/layer_type.go:143
↓ 5 callersMethodIsOff
IsOff returns true if the severity disables the diagnostic.
etscore/severity.go:62
↓ 5 callersMethodIsPipeableType
IsPipeableType returns true if the type has a callable "pipe" property, indicating it supports the pipeable pattern (e.g., value.pipe(f1, f2, ...)).
internal/typeparser/pipeable.go:10
↓ 5 callersMethodIsSchemaType
IsSchemaType returns true if the type is a Schema type (v4 or v3).
internal/typeparser/schema_type.go:41
↓ 5 callersMethodIsSkipFile
IsSkipFile returns true if a skip-file directive applies to the given rule. Unlike IsSuppressed, this only considers true file-level skip-file directi
internal/directives/parser.go:235
↓ 5 callersMethodPackageJsonForSourceFile
PackageJsonForSourceFile returns the nearest package.json contents for a source file, or nil. Results are cached per source file on EffectLinks for th
internal/typeparser/packagejson.go:17
↓ 5 callersFunctionParseSeverity
ParseSeverity parses a severity string into a Severity constant. Valid values: "off", "warning", "warn", "error", "suggestion", "message", "skip-file"
etscore/severity.go:22
↓ 5 callersMethodServiceType
ServiceType parses a v4 service type and extracts Identifier, Shape parameters. Returns nil if the type is not a v4 service.
internal/typeparser/service_type.go:34
↓ 5 callersMethodStrictIsEffectType
StrictIsEffectType returns true if the type has the Effect variance struct AND the type's symbol name is "Effect". This filters out types like Stream,
internal/typeparser/effect_type.go:149
↓ 5 callersMethodTopo
Topo performs a topological sort using Kahn's algorithm, yielding (index, data) pairs. Only meaningful for acyclic graphs. For cyclic graphs, nodes in
internal/graph/graph.go:633
↓ 5 callersFunctionbuildChainGraph
buildChainGraph creates: A→B→C
internal/graph/graph_test.go:25
↓ 5 callersFunctionclassificationTypes
(tp *typeparser.TypeParser, c *checker.Checker, node *ast.Node)
etslshooks/document_symbols.go:387
↓ 5 callersFunctioncompareNodesByOrder
compareNodesByOrder compares two nodes by provides count descending, then requires count descending.
internal/layergraph/magic.go:161
↓ 5 callersFunctioncompileAndGetCheckerAndSourceFileWithEffectV4Internal
(t *testing.T, source string)
internal/typeparser/helpers_test.go:115
↓ 5 callersFunctiondecodeJSONTag
(field reflect.StructField, key string)
etscore/options_schema_test.go:355
↓ 5 callersFunctiondouble
(e: Effect.Effect<number>)
testdata/tests/effect-v3/missedPipeableOpportunity.ts:20
↓ 5 callersFunctiondouble
(e: Effect.Effect<number>)
testdata/tests/effect-v4/missedPipeableOpportunity.ts:19
↓ 5 callersFunctioneffectFnBuildReplacement
effectFnBuildReplacement builds the complete Effect.fn/fnUntraced replacement AST node and applies it via tracker.ReplaceNode.
internal/fixables/effect_fn_opportunity.go:129
↓ 5 callersFunctionescapeNewlines
escapeNewlines replaces newlines with \n for baseline display.
internal/effecttest/baseline.go:465
↓ 5 callersFunctionfindVariableInitializerCallByName
(t *testing.T, sf *ast.SourceFile, name string)
internal/typeparser/data_first_signature_test.go:295
↓ 5 callersFunctionfn
()
testdata/tests/effect-v3/globalDate.ts:30
↓ 5 callersFunctionformatExecutionSourceNode
(sf *ast.SourceFile, node *ast.Node)
internal/effecttest/baseline.go:457
↓ 5 callersFunctiongetNodeSourceFile
getNodeSourceFile walks up the parent chain to find the SourceFile ancestor.
internal/layergraph/format.go:76
↓ 5 callersMethodisEmpty
isEmpty returns true if no style preferences are configured.
internal/autoimportstyle/stylepolicy.go:87
↓ 5 callersFunctionmermaidEntityEncode
mermaidEntityEncode replaces Mermaid-special characters with Mermaid HTML entity codes. Uses single-pass character-by-character replacement to avoid d
internal/layergraph/format.go:16
↓ 5 callersFunctionnormalizePackageName
(pkg string)
etscore/options.go:365
↓ 5 callersFunctionopaqueExportModifiers
(tracker *rewriter.Tracker)
internal/refactors/make_schema_opaque.go:153
↓ 5 callersFunctionparseTestUnits
parseTestUnits parses a test file into multiple test units based on @filename directives.
internal/effecttest/runner.go:64
↓ 5 callersFunctionrenderPaddedLine
(text: string, initialPadding: string, endPadding: string, columns: number)
_packages/tsgo/src/setup/rule-prompt.ts:182
↓ 5 callersFunctionrepoRoot
(t *testing.T)
internal/rules/rules_json_test.go:137
↓ 5 callersMethodresolveAliasedSymbol
(sym *ast.Symbol)
internal/typeparser/helpers.go:70
↓ 5 callersFunctionschemaBrandItems
(t *testing.T, source string, position int)
internal/completions/fourslash_test.go:172
↓ 5 callersMethodsortedNeighborsDirected
sortedNeighborsDirected returns neighbor node indices reachable via edges in the given direction, sorted by edge index for deterministic traversal ord
internal/graph/graph.go:475
↓ 5 callersFunctionverifyLocalBaselineInlayHints
(t *testing.T, f *fourslash.FourslashTest, testContent string, fileName string, preferences *lsutil.UserPrefer
internal/effecttest/inlay_hints_baseline_test.go:21
↓ 5 callersMethodvisitNodesAndConnectSlice
(nodes []*ast.Node, targetSlice *GraphSlice, kind ExecutionLinkKind)
internal/typeparser/execution_flow.go:146
↓ 4 callersFunctionCyrb53
Cyrb53 computes a fast non-cryptographic hash of the input string, producing a 16-character zero-padded hex string from two uint32 halves. This is a G
internal/keybuilder/keybuilder.go:14
← previousnext →101–200 of 2,947, ranked by callers