MCPcopy Create free account

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

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

↓ 4 callersMethodDFSPostOrder
DFSPostOrder performs an iterative post-order depth-first search, yielding (index, data) pairs. Children are emitted before their parents. Neighbors a
internal/graph/graph.go:556
↓ 4 callersFunctionDiscoverTestCases
DiscoverTestCases finds all .ts test files in the test cases directory for the given version.
internal/effecttest/runner.go:36
↓ 4 callersFunctionEnterCommandLineMode
EnterCommandLineMode sets the CLI mode flag to true and returns a restore function that reverts it to its previous value. Intended for use with defer:
etscore/climode.go:12
↓ 4 callersMethodExtendsContextService
ExtendsContextService checks if a class declaration extends Context.Service<Self, Shape>()(key). It detects the double-call pattern: class X extends
internal/typeparser/extends_context_service.go:24
↓ 4 callersMethodGetTypeAtLocation
GetTypeAtLocation returns the checker type for node using the parser's safety guards.
etsapi/type_parser.go:49
↓ 4 callersMethodIsAcyclic
IsAcyclic returns true if the graph contains no cycles. Uses iterative DFS with recursion stack tracking to detect back edges.
internal/graph/graph.go:680
↓ 4 callersMethodIsGenerator
()
internal/typeparser/effect_fn.go:30
↓ 4 callersMethodIsLayerType
IsLayerType returns true if the type has the Layer variance struct.
internal/typeparser/layer_type.go:114
↓ 4 callersMethodNeighborsDirected
NeighborsDirected returns the neighbor node indices reachable via edges in the given direction. For Outgoing, returns target nodes. For Incoming, retu
internal/graph/graph.go:331
↓ 4 callersFunctionNewFixTransformer
NewFixTransformer creates a FixTransformer from the given resolved Effect options. Returns nil if the preferences are empty (no packages configured).
internal/autoimportstyle/stylepolicy.go:21
↓ 4 callersFunctionParseAccessedExpressionForCompletion
ParseAccessedExpressionForCompletion finds the accessed expression at the given cursor position. It handles three cases: - extends Schema.Tag| — curso
internal/completion/position.go:32
↓ 4 callersMethodStreamType
StreamType parses a Stream type and extracts A, E, R parameters. For v3, Stream carries the Effect variance struct, so this delegates to EffectType.
internal/typeparser/stream_type.go:13
↓ 4 callersFunctionToCategory
ToCategory converts a Severity to the corresponding diagnostics.Category for diagnostic reporting. This function stays here because etscore cannot imp
internal/directives/parser.go:16
↓ 4 callersFunctionapplyPresetDiagnosticSeverities
( currentSeverities: Readonly<Record<string, RuleSeverity>>, presetNames: ReadonlyArray<DiagnosticPresetNa
_packages/tsgo/src/presets.ts:100
↓ 4 callersFunctioncompareRuleSeverity
(left: RuleSeverity, right: RuleSeverity)
_packages/tsgo/src/presets.ts:51
↓ 4 callersFunctioncontextSelfInClassesItemsWithPackageJSON
(t *testing.T, source string, position int)
internal/completions/fourslash_test.go:148
↓ 4 callersFunctioncreateTrackerContext
* Create a ChangeTracker context
_packages/tsgo/src/setup/changes.ts:213
↓ 4 callersFunctionemptyFileChangesResult
()
_packages/tsgo/src/setup/changes.ts:25
↓ 4 callersFunctionfindAsyncFunction
findAsyncFunction walks the ancestor chain from token to find the nearest async function declaration, function expression, or arrow function.
internal/refactors/async_await_to_gen.go:126
↓ 4 callersFunctionfindDependencyCollectionProperty
( rootObj: ts.ObjectLiteralExpression, dependencyType: "dependencies" | "devDependencies" )
_packages/tsgo/src/setup/changes.ts:109
↓ 4 callersFunctionfindIdentifierByText
(t *testing.T, sf *ast.SourceFile, text string, occurrence int)
internal/typeparser/helpers_test.go:171
↓ 4 callersFunctionfindParentOfKind
findParentOfKind walks up the parent chain to find a node of the given kind.
internal/refactors/async_await_to_gen.go:115
↓ 4 callersFunctionformatExecutionType
(c *checker.Checker, typ *checker.Type)
internal/effecttest/baseline.go:450
↓ 4 callersFunctionformatLocation
formatLocation returns a human-readable location string for a node. If the node is in the same source file as fromSourceFile, returns "ln {line} col {
internal/layergraph/format.go:90
↓ 4 callersFunctiongetNodeText
getNodeText returns the trimmed source text of a node.
internal/layergraph/format.go:62
↓ 4 callersFunctiongetTypeDisplayName
getTypeDisplayName returns the string representation of a type with no truncation.
internal/layergraph/format.go:108
↓ 4 callersFunctionhasDiagnosticCode
(diags []string, prefix string)
internal/effecttest/effect_in_failure_ts2589_test.go:96
↓ 4 callersFunctionisEffectSymbolDeclaration
(node *ast.Node)
etslshooks/document_symbols.go:496
↓ 4 callersFunctionisPrimitiveType
isPrimitiveType checks if a type (or any member of a union type) is a primitive type.
internal/rules/non_object_effect_service_type.go:171
↓ 4 callersFunctionmermaidSafe
mermaidSafe encodes a string for use in Mermaid subgraph headers (nested format). It normalizes whitespace, truncates, and encodes only quotes and ang
internal/layergraph/format.go:46
↓ 4 callersFunctionnewEffectDocumentSymbol
( tp *typeparser.TypeParser, c *checker.Checker, sf *ast.SourceFile, langService *ls.LanguageService, nod
etslshooks/document_symbols.go:290
↓ 4 callersFunctionnewNamedDocumentSymbol
( sf *ast.SourceFile, langService *ls.LanguageService, node *ast.Node, name string, detail *string, kind
etslshooks/document_symbols.go:247
↓ 4 callersFunctionnoDataFirst
(value: string)
testdata/tests/effect-v4-refactors/pipeableToDatafirst.ts:12
↓ 4 callersFunctionnoDataFirst
(value: string)
testdata/tests/effect-v3-refactors/pipeableToDatafirst.ts:13
↓ 4 callersFunctionreflectedSchemaForStruct
(typ reflect.Type)
etscore/options_schema_test.go:267
↓ 4 callersFunctionremoveFromSlice
removeFromSlice removes the first occurrence of val from slice.
internal/graph/graph.go:149
↓ 4 callersFunctionrenderDivider
(columns: number, legendText?: string)
_packages/tsgo/src/setup/rule-prompt.ts:316
↓ 4 callersFunctiontransformBodyAwaitToYield
transformBodyAwaitToYield replaces all AwaitExpression nodes in the body with the result of onAwait. Returns a deep-cloned, fully synthetic tree.
internal/refactors/async_await_to_gen.go:166
↓ 4 callersMethodvisitEachChildWithUsageTarget
(node *ast.Node, target *GraphSlice)
internal/typeparser/execution_flow.go:168
↓ 3 callersFunctionAnalyzeUnnecessaryEffectGen
AnalyzeUnnecessaryEffectGen finds all Effect.gen calls that contain only a single yield* statement and can be replaced with the yielded expression dir
internal/rules/unnecessary_effect_gen.go:46
↓ 3 callersMethodAppendToUniqueTypesMap
AppendToUniqueTypesMap deduplicates types using bidirectional assignability checks. It unrolls union types, skips excluded types (via shouldExclude),
internal/typeparser/unique_types_map.go:19
↓ 3 callersFunctionCreateString
CreateString computes the expected key string for a class declaration. It takes the source file name, package name, package directory, class name, and
internal/keybuilder/keybuilder.go:43
↓ 3 callersMethodDiscoverPackages
DiscoverPackages iterates all source files in the program, resolves each one's nearest package.json, and returns a deduplicated list of discovered pac
internal/typeparser/discover.go:148
↓ 3 callersMethodEffectSchemaTypes
EffectSchemaTypes extracts the A (Type) and E (Encoded) types from a Schema type. Returns nil if the type is not a recognized Schema type or types can
internal/typeparser/schema_type.go:56
↓ 3 callersMethodExtendsEffectTag
ExtendsEffectTag checks if a class declaration extends Effect.Tag("key")<Self, Shape>(). It detects the pattern: class X extends Effect.Tag("key")<X
internal/typeparser/extends_effect_tag.go:24
↓ 3 callersMethodExtendsSchemaTaggedError
ExtendsSchemaTaggedError checks if a class declaration extends Schema.TaggedError<T>("identifier")("tag", { ... }).
internal/typeparser/extends_schema_tagged.go:125
↓ 3 callersMethodGetDebugEnabled
()
etscore/options.go:224
↓ 3 callersMethodGetEffectiveSeverityAndMarkUsed
GetEffectiveSeverityAndMarkUsed returns the effective severity and marks the directive as used if it affected the result. This is used to track unused
internal/directives/parser.go:248
↓ 3 callersFunctionGetFunctionLikeName
GetFunctionLikeName returns the name string from a function-like node. Handles FunctionDeclaration, FunctionExpression, MethodDeclaration (with identi
internal/typeparser/function_node.go:10
↓ 3 callersFunctionGetFunctionLikeParameters
GetFunctionLikeParameters returns the parameters NodeList from a function-like node. Handles ArrowFunction, FunctionExpression, FunctionDeclaration, a
internal/typeparser/function_node.go:86
↓ 3 callersFunctionGetFunctionLikeTypeParameters
GetFunctionLikeTypeParameters returns the type parameters NodeList from a function-like node. Handles ArrowFunction, FunctionExpression, FunctionDecla
internal/typeparser/function_node.go:70
↓ 3 callersMethodGetMermaidBaseURL
GetMermaidBaseURL resolves the MermaidProvider value to a full base URL. - "" or "mermaid.live" → "https://mermaid.live/edit#" - "mermaid.com" → "http
etscore/options.go:266
↓ 3 callersMethodGetPipeableMinArgCount
GetPipeableMinArgCount returns the configured minimum pipeable arg count, or 2 if not set.
etscore/options.go:241
↓ 3 callersMethodGetSourceFileMetaData
(path tspath.Path)
internal/typeparser/packagejson.go:11
↓ 3 callersMethodGetUnusedNextLineDirectives
GetUnusedNextLineDirectives returns next-line directives that did not suppress any diagnostic. This is used to report unusedDirective warnings.
internal/directives/parser.go:325
↓ 3 callersMethodHasEnablingDirective
HasEnablingDirective returns true if any file-level section directive or next-line directive enables the given rule (i.e., sets it to a non-off, non-s
internal/directives/parser.go:295
↓ 3 callersMethodIsContextTag
IsContextTag returns true if the type has the Context.Tag variance struct.
internal/typeparser/context_tag.go:70
↓ 3 callersMethodIsNodeReferenceToEffectDataModuleApi
(node *ast.Node, memberName string)
internal/typeparser/data_type.go:39
↓ 3 callersMethodIsNodeReferenceToEffectPackageExport
IsNodeReferenceToEffectPackageExport reports whether node resolves to a member exported by any module in the "effect" npm package. Unlike IsNodeRefere
internal/typeparser/effect_type.go:255
↓ 3 callersMethodRemoveEdge
RemoveEdge removes the edge at the given index.
internal/graph/graph.go:214
↓ 3 callersFunctionResolveDiagnosticSeverityForFile
ResolveDiagnosticSeverityForFile resolves ordered diagnostic severity overrides for a file.
internal/pluginoptions/resolver.go:40
↓ 3 callersFunctionapplyTextChanges
* Apply text changes to original text and return the result
_packages/tsgo/test/setup/setup-cli.test.ts:37
↓ 3 callersFunctionassertSingleTransformation
(t *testing.T, sf *ast.SourceFile, flow *PipingFlow, wantKind TransformationKind, wantCallee string, wantArgs
internal/typeparser/data_first_signature_test.go:258
↓ 3 callersFunctionassessDependency
(packageName: string)
_packages/tsgo/src/setup/assessment.ts:86
↓ 3 callersFunctionbuildEffectInFailureTS2589Case
(mode string)
internal/effecttest/effect_in_failure_ts2589_test.go:43
↓ 3 callersMethodbuildParsedPipeCallResult
( call *ast.CallExpression, subject *ast.Node, args []*ast.Node, kind TransformationKind, )
internal/typeparser/piping_flow.go:132
↓ 3 callersFunctioncheckEffectFnImplicitAnyParameters
(ctx *rule.Context, callNode *ast.Node, params []*ast.Node)
internal/rules/effect_fn_implicit_any.go:86
↓ 3 callersFunctioncloneEffectOptions
(source *etscore.EffectPluginOptions)
internal/effectconfigraw/hooks.go:221
↓ 3 callersFunctioncloneKeyPatterns
(source []etscore.KeyPattern)
internal/effectconfigraw/hooks.go:259
↓ 3 callersFunctioncloneOptions
(config *etscore.EffectPluginOptions)
internal/pluginoptions/resolver.go:107
↓ 3 callersFunctioncollectChildIndices
collectChildIndices gathers graph node indices for the given AST nodes, filtering out nodes that aren't in the graph.
internal/layergraph/extract.go:416
↓ 3 callersFunctioncollectDiagnosticStringsFromContent
(t testing.TB, content string)
internal/effecttest/effect_in_failure_ts2589_test.go:105
↓ 3 callersFunctioncomputeChanges
( assessment: Assessment.State, target: Target.State )
_packages/tsgo/src/setup/changes.ts:819
↓ 3 callersFunctioncreateOpaqueInterface
createOpaqueInterface creates: export interface <name> extends <heritage> { }
internal/refactors/make_schema_opaque.go:160
↓ 3 callersFunctiondebugFlowNodeText
(sf *ast.SourceFile, node *ast.Node)
etslshooks/document_symbols.go:318
↓ 3 callersFunctiondfsPostOrderWithOrder
dfsPostOrderWithOrder performs an iterative post-order DFS with custom node ordering. Neighbors are sorted by provides count descending, then requires
internal/layergraph/magic.go:99
↓ 3 callersMethodextendsSchemaTagged
extendsSchemaTagged checks if a class declaration extends Schema.<memberName> with the double-call pattern: class X extends Schema.TaggedClass<X>("i
internal/typeparser/extends_schema_tagged.go:25
↓ 3 callersMethodextractCalleeAndArgs
(node *ast.Node)
internal/typeparser/execution_flow.go:79
↓ 3 callersMethodextractContravariantType
extractContravariantType gets the type argument from a contravariant property. Contravariant<A> is encoded as (_: A) => void, so we get the first para
internal/typeparser/helpers.go:31
↓ 3 callersFunctionextractNodeText
extractNodeText gets the source text of a node, skipping leading trivia.
internal/rules/service_not_as_class.go:169
↓ 3 callersFunctionfindFirstEffectFnCall
(t *testing.T, tp *TypeParser, sf *ast.SourceFile)
internal/typeparser/effect_fn_test.go:10
↓ 3 callersFunctionfindFlowByNode
(t *testing.T, sf *ast.SourceFile, flows []*PipingFlow, node *ast.Node)
internal/typeparser/data_first_signature_test.go:247
↓ 3 callersFunctionfindInterfaceOrTypeAlias
findInterfaceOrTypeAlias walks the ancestor chain from the token at the cursor to find an InterfaceDeclaration or TypeAliasDeclaration whose name over
internal/refactors/type_to_effect_schema.go:22
↓ 3 callersFunctionfindSingleReturnExpression
findSingleReturnExpression finds the expression from a single return statement in a block.
internal/typeparser/effect_fn_opportunity.go:315
↓ 3 callersFunctionformatRange
(r lsproto.Range)
internal/effecttest/document_symbols_baseline.go:92
↓ 3 callersFunctiongetRootObject
* Get the root object literal from a JSON source file
_packages/tsgo/src/setup/changes.ts:58
↓ 3 callersFunctioninferNamespaceName
inferNamespaceName derives a namespace name from the last segment of a module specifier path. For example, "effect/Effect" → "Effect", "effect" → "eff
internal/autoimportstyle/stylepolicy.go:253
↓ 3 callersFunctionlayerServiceNameFromExpression
layerServiceNameFromExpression resolves an expression to a service name string. When the expression is the `this` keyword, it walks up the AST to find
internal/typeparser/effect_fn_opportunity.go:512
↓ 3 callersFunctionlazyEffectLikeTypeName
(c *checker.Checker, tp *typeparser.TypeParser, t *checker.Type, atLocation *ast.Node)
internal/rules/lazy_effect.go:179
↓ 3 callersFunctionmakeAssessmentState
* Helper to create a minimal Assessment.State for testing
_packages/tsgo/test/setup/diff-renderer.test.ts:56
↓ 3 callersFunctionmergeSeverityMaps
(target, source map[string]etscore.Severity)
internal/effectconfigraw/hooks.go:291
↓ 3 callersFunctionnativeBackendTsdkPath
(packageName: string)
_packages/tsgo/src/setup/consts.ts:54
↓ 3 callersMethodnodeText
(sourceFile *ast.SourceFile, node *ast.Node)
internal/rewriter/tracker.go:146
↓ 3 callersMethodparseAllLiterals
parseAllLiterals tries to parse a type node as a collection of literal values. Returns (literals, true) on success, (nil, false) if the node contains
internal/schemagen/schemagen.go:410
↓ 3 callersFunctionparseJsonMethod
parseJsonMethod checks if a call expression is JSON.parse or JSON.stringify. Returns the call expression node if it matches, nil otherwise.
internal/rules/prefer_schema_over_json.go:78
↓ 3 callersMethodparseVarianceStruct
parseVarianceStruct extracts A, E, R from a variance struct type.
internal/typeparser/effect_type.go:99
↓ 3 callersFunctionprepareTestFS
prepareTestFS detects Effect imports or explicit version markers in test files and mounts real Effect packages into the fourslash VFS.
etstesthooks/init.go:16
↓ 3 callersMethodprocessMembers
processMembers handles property signatures and index signatures from type members.
internal/schemagen/schemagen.go:474
↓ 3 callersFunctionrenamedAndNeedsOptions
(newName string, optionsInstructions string)
internal/rules/outdated_api_db.go:29
↓ 3 callersMethodresolveTraversalConfig
resolveTraversalConfig returns the start nodes and direction for a traversal, applying defaults when the config fields are empty.
internal/graph/graph.go:500
← previousnext →201–300 of 2,947, ranked by callers