MCPcopy Create free account

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

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

↓ 2 callersFunctiontriple
(e: Effect.Effect<number>)
testdata/tests/effect-v4/missedPipeableOpportunity.ts:27
↓ 2 callersMethodtryGetLayerApiMethod
tryGetLayerApiMethod checks if a node references Layer.effect, Layer.succeed, or Layer.sync. Returns the method name ("effect", "succeed", "sync") or
internal/typeparser/effect_fn_opportunity.go:493
↓ 2 callersFunctiontypeToDetail
(c *checker.Checker, t *checker.Type, node *ast.Node)
etslshooks/document_symbols.go:310
↓ 2 callersMethodtypesEqual
typesEqual checks if two types are bidirectionally assignable.
internal/schemagen/structural.go:198
↓ 2 callersFunctionunwrapTransparentExpression
(node *ast.Node)
internal/rules/redundant_map_error.go:357
↓ 1 callersMethod#getWrapper
(key: string)
testdata/tests/effect-v4/issue179_remainingCases.ts:39
↓ 1 callersMethod#innerEffect
(a: number, b: number)
testdata/tests/effect-v4/issue179_remainingCases.ts:27
↓ 1 callersMethod#innerOne
(a: number)
testdata/tests/effect-v4/issue179_remainingCases.ts:35
↓ 1 callersMethod#innerSync
(a: number, b: number)
testdata/tests/effect-v4/issue179_remainingCases.ts:31
↓ 1 callersFunctionAllErrorCodes
AllErrorCodes returns all unique error codes handled by any fixable.
internal/fixables/fixables.go:62
↓ 1 callersFunctionAllFixIDs
AllFixIDs returns all unique fix IDs from all fixables.
internal/fixables/fixables.go:77
↓ 1 callersFunctionAnalyzeEffectDoNotation
AnalyzeEffectDoNotation finds all references to Effect.Do-style helpers.
internal/rules/effect_do_notation.go:46
↓ 1 callersFunctionAnalyzeEffectMapFlatten
AnalyzeEffectMapFlatten finds adjacent Effect.map(...), Effect.flatten pairs in pipe/pipeable flows.
internal/rules/effect_map_flatten.go:48
↓ 1 callersFunctionAnalyzeExtendsNativeError
(tp *typeparser.TypeParser, c *checker.Checker, sf *ast.SourceFile)
internal/rules/extends_native_error.go:36
↓ 1 callersFunctionAnalyzeMultipleCatchTag
(tp *typeparser.TypeParser, c *checker.Checker, sf *ast.SourceFile)
internal/rules/multiple_catch_tag.go:54
↓ 1 callersFunctionAnalyzeNestedEffectGenYield
(tp *typeparser.TypeParser, sf *ast.SourceFile)
internal/rules/nested_effect_gen_yield.go:44
↓ 1 callersFunctionAnalyzeNodeBuiltinImport
(tp *typeparser.TypeParser, _ *checker.Checker, sf *ast.SourceFile)
internal/rules/node_builtin_import.go:91
↓ 1 callersFunctionAnalyzeOutdatedApi
AnalyzeOutdatedApi finds all usages of Effect v3 APIs in an Effect v4 project.
internal/rules/outdated_api.go:67
↓ 1 callersFunctionAnalyzeRedundantGeneratorMapError
(tp *typeparser.TypeParser, c *checker.Checker, sf *ast.SourceFile)
internal/rules/redundant_map_error.go:56
↓ 1 callersFunctionAnalyzeRedundantGeneratorOrDie
(tp *typeparser.TypeParser, c *checker.Checker, sf *ast.SourceFile)
internal/rules/redundant_or_die.go:53
↓ 1 callersFunctionByErrorCode
ByErrorCode finds all fixables that handle a given error code.
internal/fixables/fixables.go:51
↓ 1 callersFunctionByName
ByName finds a codegen by name in a slice. Returns nil if not found.
internal/codegen/codegen.go:14
↓ 1 callersFunctionDiagnosticsEnabled
DiagnosticsEnabled reports whether Effect diagnostics are enabled for the parsed config in the current program.
etscore/options.go:181
↓ 1 callersFunctionDoDocumentSymbolsBaseline
DoDocumentSymbolsBaseline generates a .symbols.txt baseline for Effect tests.
internal/effecttest/document_symbols_baseline.go:12
↓ 1 callersFunctionDoEffectErrorBaseline
DoEffectErrorBaseline generates an error baseline for Effect tests. This writes to our testdata directory instead of typescript-go's.
internal/effecttest/baseline.go:43
↓ 1 callersFunctionDoExecutionFlowBaseline
DoExecutionFlowBaseline generates a .flows.txt index baseline and per-source Mermaid baselines for Effect tests.
internal/effecttest/baseline.go:322
↓ 1 callersFunctionDoLayerGraphBaseline
DoLayerGraphBaseline generates a .layers.txt baseline for Effect tests.
internal/effecttest/baseline.go:472
↓ 1 callersFunctionDoPipingFlowBaseline
DoPipingFlowBaseline generates a .pipings.txt baseline for Effect tests.
internal/effecttest/baseline.go:230
↓ 1 callersFunctionDoQuickFixBaseline
DoQuickFixBaseline generates a .quickfixes.txt baseline for Effect tests.
internal/effecttest/quickfix_baseline.go:152
↓ 1 callersFunctionDoRefactorBaseline
DoRefactorBaseline generates a .refactors.txt baseline for Effect refactor tests.
internal/effecttest/refactor_baseline.go:113
↓ 1 callersFunctionDocumentSymbolTestCasesDir
DocumentSymbolTestCasesDir returns the path to the Effect document-symbol test cases directory.
internal/effecttest/document_symbols_runner.go:24
↓ 1 callersMethodEffectSubtype
EffectSubtype detects types that have the Effect variance struct AND a "_tag" or "get" marker property (e.g., Exit, Option, Either, Pool). Returns nil
internal/typeparser/effect_type.go:155
↓ 1 callersMethodEffectType
EffectType parses an Effect type and extracts A, E, R parameters.
etsapi/type_parser.go:57
↓ 1 callersMethodExecutionFlow
(sf *ast.SourceFile)
internal/typeparser/execution_flow.go:342
↓ 1 callersMethodExtendsDataTaggedError
ExtendsDataTaggedError checks if a class declaration extends Data.TaggedError("key")<Fields>. It detects the pattern: class X extends Data.TaggedErr
internal/typeparser/extends_data_tagged.go:23
↓ 1 callersMethodExtendsEffectModelClass
ExtendsEffectModelClass checks if a class declaration extends Model.Class<Self>(...)({...}) from the effect/unstable/schema module. It detects the dou
internal/typeparser/extends_effect_model_class.go:23
↓ 1 callersMethodExtendsEffectSqlModelClass
ExtendsEffectSqlModelClass checks if a class declaration extends Model.Class<Self>(...)({...}). It detects the double-call pattern: class X extends
internal/typeparser/extends_sql_model_class.go:21
↓ 1 callersMethodExtendsSchemaClass
ExtendsSchemaClass checks if a class declaration extends Schema.Class<Self>("name")({}). It detects the double-call pattern: class X extends Schema.
internal/typeparser/extends_schema_class.go:23
↓ 1 callersMethodExtendsSchemaRequestClass
ExtendsSchemaRequestClass checks if a class declaration extends Schema.RequestClass<Self>("name")({}). Same double-call pattern as ExtendsSchemaClass
internal/typeparser/extends_schema_class.go:37
↓ 1 callersMethodFiberType
FiberType detects types that have the Effect variance struct AND both "await" and "poll" properties. Returns nil if the type is not a Fiber.
internal/typeparser/effect_type.go:178
↓ 1 callersMethodFilterEdges
FilterEdges removes all edges whose data does not satisfy the predicate. All nodes are preserved.
internal/graph/graph.go:424
↓ 1 callersMethodFilterNodes
FilterNodes removes all nodes that do not satisfy the predicate. Incident edges of removed nodes are also removed.
internal/graph/graph.go:410
↓ 1 callersFunctionFormatLayerGraph
FormatLayerGraph renders the full layer graph as a Mermaid flowchart TD with entity-encoded labels. Intentional divergence from .repos reference: this
internal/layergraph/format.go:128
↓ 1 callersMethodGetAllowedDuplicatedPackages
GetAllowedDuplicatedPackages returns the list of package names allowed to have multiple versions, or nil if none are configured.
etscore/options.go:291
↓ 1 callersMethodGetCompletionsEnabled
()
etscore/options.go:217
↓ 1 callersMethodGetEffectFn
GetEffectFn returns the configured effectFn variants, or the default ["span"] when unset/empty.
etscore/options.go:186
↓ 1 callersMethodGetPackageJsonInfo
(pkgJsonPath string)
internal/typeparser/packagejson.go:12
↓ 1 callersMethodGetQuickinfoEnabled
()
etscore/options.go:210
↓ 1 callersMethodGetRefactorsEnabled
()
etscore/options.go:203
↓ 1 callersMethodGetSourceFileMetaData
(path tspath.Path)
internal/completions/context_self_in_classes.go:134
↓ 1 callersMethodHandlesCode
HandlesCode returns true if this fixable handles the given error code.
internal/fixable/fixable.go:36
↓ 1 callersFunctionHasIndexSignatures
HasIndexSignatures checks whether an interface or type alias has index signatures. Used by typeToEffectSchemaClass to determine applicability.
internal/schemagen/schemagen.go:717
↓ 1 callersMethodIncomingEdges
IncomingEdges returns the edge indices for all incoming edges to the given node. The returned indices preserve insertion order.
internal/graph/graph.go:200
↓ 1 callersFunctionIsEffectCode
IsEffectCode returns true if code is in the Effect diagnostic range (377000-377999).
internal/rule/rule.go:71
↓ 1 callersMethodIsEffectSubtype
IsEffectSubtype returns true if the type is an Effect subtype (has variance struct + "_tag" or "get").
internal/typeparser/effect_type.go:172
↓ 1 callersMethodIsExpressionEffectModule
IsExpressionEffectModule reports whether node resolves to the Effect module namespace (e.g., the `Effect` in `import { Effect } from "effect"`).
internal/typeparser/effect_type.go:241
↓ 1 callersMethodIsFiberType
IsFiberType returns true if the type is a Fiber type (has variance struct + "await" and "poll").
internal/typeparser/effect_type.go:195
↓ 1 callersMethodIsInsideEffectFn
IsInsideEffectFn checks if a function node is already the first argument of an Effect.fn, Effect.fnGen, or Effect.fnUntraced call.
internal/typeparser/effect_fn_opportunity.go:26
↓ 1 callersMethodIsNodeReferenceToEffectParseResultModuleApi
IsNodeReferenceToEffectParseResultModuleApi reports whether node resolves to a member exported by the "effect" package from a module that exports the
internal/typeparser/schema_type.go:176
↓ 1 callersMethodIsNodeReferenceToEffectSchemaParserModuleApi
IsNodeReferenceToEffectSchemaParserModuleApi reports whether node resolves to a member exported by the "effect" package from a module that exports the
internal/typeparser/schema_type.go:205
↓ 1 callersMethodIsNodeReferenceToModule
(node *ast.Node, desc PackageSourceFileDescriptor)
internal/typeparser/module_export_reference.go:74
↓ 1 callersMethodIsSafelyPipeableCallee
IsSafelyPipeableCallee returns true if a callee expression can be safely extracted into a pipe argument without losing `this` context. This is used by
internal/typeparser/pipeable.go:31
↓ 1 callersMethodIsYieldableErrorType
IsYieldableErrorType reports whether the given type is assignable to Cause.YieldableError from the "effect" package. Returns false for never and any t
internal/typeparser/yieldable_error.go:17
↓ 1 callersMethodLayerType
LayerType parses a Layer type and extracts ROut, E, RIn parameters.
etsapi/type_parser.go:65
↓ 1 callersFunctionLocalConstructor
(/** @effect-identifier */ identifier: string)
testdata/tests/effect-v3/deterministicKeys_custom.ts:53
↓ 1 callersFunctionLocalConstructor
(/** @effect-identifier */ identifier: string)
testdata/tests/effect-v4/deterministicKeys_custom.ts:51
↓ 1 callersMethodMapEdges
MapEdges applies fn to every edge's data in-place.
internal/graph/graph.go:444
↓ 1 callersFunctionMetadataPresets
()
internal/rules/metadata.go:21
↓ 1 callersMethodNeighbors
Neighbors returns all neighbor node indices (union of outgoing targets and incoming sources), deduplicated and sorted by index for determinism.
internal/graph/graph.go:379
↓ 1 callersFunctionNewContext
NewContext creates a completion Context from the completion callback parameters.
internal/completion/context.go:29
↓ 1 callersFunctionNewContext
NewContext creates a refactor Context from the refactor provider callback parameters.
internal/refactor/context.go:32
↓ 1 callersFunctionNewContext
NewContext creates a fixable Context from the standard code-fix request parameters.
internal/fixable/context.go:36
↓ 1 callersFunctionNewStructuralSchemaGen
NewStructuralSchemaGen creates a StructuralSchemaGen for type-checker-based schema generation.
internal/schemagen/structural.go:55
↓ 1 callersMethodOutgoingEdges
OutgoingEdges returns the edge indices for all outgoing edges from the given node. The returned indices preserve insertion order.
internal/graph/graph.go:194
↓ 1 callersMethodParseEffectFnOpportunity
ParseEffectFnOpportunity detects whether a function node can be converted to Effect.fn. Returns nil if the node is not an eligible candidate.
internal/typeparser/effect_fn_opportunity.go:55
↓ 1 callersMethodProcess
Process generates schema statements for one or more named types. It populates internal state and returns accumulated statements.
internal/schemagen/structural.go:596
↓ 1 callersMethodProcessInterfaceDeclaration
ProcessInterfaceDeclaration generates schema statements for an interface declaration. When preferClass is true and there are no index signatures, gene
internal/schemagen/schemagen.go:545
↓ 1 callersMethodProcessTypeAliasDeclaration
ProcessTypeAliasDeclaration generates schema statements for a type alias declaration. When preferClass is true and the type is an object literal witho
internal/schemagen/schemagen.go:579
↓ 1 callersMethodPromiseType
PromiseType returns t when it is the global Promise type or a reference to it. It intentionally does not match arbitrary thenables or PromiseLike valu
internal/typeparser/promise_type.go:9
↓ 1 callersFunctionRefactorTestCasesDir
RefactorTestCasesDir returns the path to the Effect refactor test cases directory.
internal/effecttest/refactor_runner.go:20
↓ 1 callersFunctionRegister
Register wires Effect-specific tsconfig merge hooks into TypeScript-Go.
internal/effectconfigraw/hooks.go:15
↓ 1 callersFunctionRun
Run executes Effect diagnostics for a source file and returns diagnostics without emitting them.
internal/rulerunner/diagnostics.go:29
↓ 1 callersMethodScanExistingSchemas
ScanExistingSchemas looks for existing schema variables in scope and records them in the hoisted map, so they can be reused instead of regenerated.
internal/schemagen/structural.go:570
↓ 1 callersFunctionTestCasesDir
TestCasesDir returns the path to the Effect test cases directory for the given version.
internal/effecttest/runner.go:31
↓ 1 callersFunctionaddHundred
(e: Effect.Effect<number>)
testdata/tests/effect-v3/missedPipeableOpportunity.ts:40
↓ 1 callersFunctionaddHundred
(e: Effect.Effect<number>)
testdata/tests/effect-v4/missedPipeableOpportunity.ts:39
↓ 1 callersFunctionallSymbolDeclarationsInsideNode
(symbol *ast.Symbol, node *ast.Node)
internal/rules/redundant_map_error.go:282
↓ 1 callersFunctionallSymbolDeclarationsOutsideNode
(symbol *ast.Symbol, node *ast.Node)
internal/rules/redundant_map_error.go:294
↓ 1 callersMethodanalyzeEffectContextForSourceFile
(sf *ast.SourceFile)
internal/typeparser/effect_context.go:85
↓ 1 callersFunctionanalyzeLayerMergeAllCall
analyzeLayerMergeAllCall checks a call expression for Layer.mergeAll interdependencies.
internal/rules/layer_merge_all_with_dependencies.go:85
↓ 1 callersFunctionanalyzeMultipleCatchTagCandidate
(tp *typeparser.TypeParser, c *checker.Checker, transformation *typeparser.PipingFlowTransformation)
internal/rules/multiple_catch_tag.go:104
↓ 1 callersFunctionanalyzeRedundantGeneratorMapErrorCandidate
(tp *typeparser.TypeParser, c *checker.Checker, sf *ast.SourceFile, generatorCallNode *ast.Node, generatorFunc
internal/rules/redundant_map_error.go:134
↓ 1 callersFunctionanalyzeRedundantGeneratorOrDieCandidate
(tp *typeparser.TypeParser, sf *ast.SourceFile, generatorCallNode *ast.Node, generatorFunction *ast.FunctionEx
internal/rules/redundant_or_die.go:123
↓ 1 callersFunctionanalyzeRedundantMapErrorFlowCandidate
(tp *typeparser.TypeParser, sf *ast.SourceFile, flow *typeparser.PipingFlow)
internal/rules/redundant_map_error.go:89
↓ 1 callersFunctionanalyzeRedundantOrDieFlowCandidate
(tp *typeparser.TypeParser, sf *ast.SourceFile, flow *typeparser.PipingFlow)
internal/rules/redundant_or_die.go:86
↓ 1 callersFunctionanalyzeRedundantSchemaTagIdentifierNode
(tp *typeparser.TypeParser, _ *checker.Checker, sf *ast.SourceFile, node *ast.Node)
internal/rules/redundant_schema_tag_identifier.go:70
↓ 1 callersFunctionanalyzeRunEffectInsideEffectNode
analyzeRunEffectInsideEffectNode checks a single call expression for Effect.run* inside an Effect generator.
internal/rules/run_effect_inside_effect.go:90
↓ 1 callersFunctionanalyzeSchemaStructWithTagNode
analyzeSchemaStructWithTagNode checks a call expression for Schema.Struct({ _tag: Schema.Literal("...") }).
internal/rules/schema_struct_with_tag.go:76
↓ 1 callersFunctionanalyzeSchemaUnionOfLiteralsNode
analyzeSchemaUnionOfLiteralsNode checks if a call expression is Schema.Union(...) where all arguments are Schema.Literal(...) calls.
internal/rules/schema_union_of_literals.go:79
↓ 1 callersFunctionanalyzeUnnecessaryArrowBlockNode
(sf *ast.SourceFile, n *ast.Node)
internal/rules/unnecessary_arrow_block.go:71
← previousnext →501–600 of 2,947, ranked by callers