Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/tsgo
/ functions
Functions
2,947 in github.com/Effect-TS/tsgo
⨍
Functions
2,947
◇
Types & classes
1,081
↓ 2 callers
Function
triple
(e: Effect.Effect<number>)
testdata/tests/effect-v4/missedPipeableOpportunity.ts:27
↓ 2 callers
Method
tryGetLayerApiMethod
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 callers
Function
typeToDetail
(c *checker.Checker, t *checker.Type, node *ast.Node)
etslshooks/document_symbols.go:310
↓ 2 callers
Method
typesEqual
typesEqual checks if two types are bidirectionally assignable.
internal/schemagen/structural.go:198
↓ 2 callers
Function
unwrapTransparentExpression
(node *ast.Node)
internal/rules/redundant_map_error.go:357
↓ 1 callers
Method
#getWrapper
(key: string)
testdata/tests/effect-v4/issue179_remainingCases.ts:39
↓ 1 callers
Method
#innerEffect
(a: number, b: number)
testdata/tests/effect-v4/issue179_remainingCases.ts:27
↓ 1 callers
Method
#innerOne
(a: number)
testdata/tests/effect-v4/issue179_remainingCases.ts:35
↓ 1 callers
Method
#innerSync
(a: number, b: number)
testdata/tests/effect-v4/issue179_remainingCases.ts:31
↓ 1 callers
Function
AllErrorCodes
AllErrorCodes returns all unique error codes handled by any fixable.
internal/fixables/fixables.go:62
↓ 1 callers
Function
AllFixIDs
AllFixIDs returns all unique fix IDs from all fixables.
internal/fixables/fixables.go:77
↓ 1 callers
Function
AnalyzeEffectDoNotation
AnalyzeEffectDoNotation finds all references to Effect.Do-style helpers.
internal/rules/effect_do_notation.go:46
↓ 1 callers
Function
AnalyzeEffectMapFlatten
AnalyzeEffectMapFlatten finds adjacent Effect.map(...), Effect.flatten pairs in pipe/pipeable flows.
internal/rules/effect_map_flatten.go:48
↓ 1 callers
Function
AnalyzeExtendsNativeError
(tp *typeparser.TypeParser, c *checker.Checker, sf *ast.SourceFile)
internal/rules/extends_native_error.go:36
↓ 1 callers
Function
AnalyzeMultipleCatchTag
(tp *typeparser.TypeParser, c *checker.Checker, sf *ast.SourceFile)
internal/rules/multiple_catch_tag.go:54
↓ 1 callers
Function
AnalyzeNestedEffectGenYield
(tp *typeparser.TypeParser, sf *ast.SourceFile)
internal/rules/nested_effect_gen_yield.go:44
↓ 1 callers
Function
AnalyzeNodeBuiltinImport
(tp *typeparser.TypeParser, _ *checker.Checker, sf *ast.SourceFile)
internal/rules/node_builtin_import.go:91
↓ 1 callers
Function
AnalyzeOutdatedApi
AnalyzeOutdatedApi finds all usages of Effect v3 APIs in an Effect v4 project.
internal/rules/outdated_api.go:67
↓ 1 callers
Function
AnalyzeRedundantGeneratorMapError
(tp *typeparser.TypeParser, c *checker.Checker, sf *ast.SourceFile)
internal/rules/redundant_map_error.go:56
↓ 1 callers
Function
AnalyzeRedundantGeneratorOrDie
(tp *typeparser.TypeParser, c *checker.Checker, sf *ast.SourceFile)
internal/rules/redundant_or_die.go:53
↓ 1 callers
Function
ByErrorCode
ByErrorCode finds all fixables that handle a given error code.
internal/fixables/fixables.go:51
↓ 1 callers
Function
ByName
ByName finds a codegen by name in a slice. Returns nil if not found.
internal/codegen/codegen.go:14
↓ 1 callers
Function
DiagnosticsEnabled
DiagnosticsEnabled reports whether Effect diagnostics are enabled for the parsed config in the current program.
etscore/options.go:181
↓ 1 callers
Function
DoDocumentSymbolsBaseline
DoDocumentSymbolsBaseline generates a .symbols.txt baseline for Effect tests.
internal/effecttest/document_symbols_baseline.go:12
↓ 1 callers
Function
DoEffectErrorBaseline
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 callers
Function
DoExecutionFlowBaseline
DoExecutionFlowBaseline generates a .flows.txt index baseline and per-source Mermaid baselines for Effect tests.
internal/effecttest/baseline.go:322
↓ 1 callers
Function
DoLayerGraphBaseline
DoLayerGraphBaseline generates a .layers.txt baseline for Effect tests.
internal/effecttest/baseline.go:472
↓ 1 callers
Function
DoPipingFlowBaseline
DoPipingFlowBaseline generates a .pipings.txt baseline for Effect tests.
internal/effecttest/baseline.go:230
↓ 1 callers
Function
DoQuickFixBaseline
DoQuickFixBaseline generates a .quickfixes.txt baseline for Effect tests.
internal/effecttest/quickfix_baseline.go:152
↓ 1 callers
Function
DoRefactorBaseline
DoRefactorBaseline generates a .refactors.txt baseline for Effect refactor tests.
internal/effecttest/refactor_baseline.go:113
↓ 1 callers
Function
DocumentSymbolTestCasesDir
DocumentSymbolTestCasesDir returns the path to the Effect document-symbol test cases directory.
internal/effecttest/document_symbols_runner.go:24
↓ 1 callers
Method
EffectSubtype
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 callers
Method
EffectType
EffectType parses an Effect type and extracts A, E, R parameters.
etsapi/type_parser.go:57
↓ 1 callers
Method
ExecutionFlow
(sf *ast.SourceFile)
internal/typeparser/execution_flow.go:342
↓ 1 callers
Method
ExtendsDataTaggedError
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 callers
Method
ExtendsEffectModelClass
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 callers
Method
ExtendsEffectSqlModelClass
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 callers
Method
ExtendsSchemaClass
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 callers
Method
ExtendsSchemaRequestClass
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 callers
Method
FiberType
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 callers
Method
FilterEdges
FilterEdges removes all edges whose data does not satisfy the predicate. All nodes are preserved.
internal/graph/graph.go:424
↓ 1 callers
Method
FilterNodes
FilterNodes removes all nodes that do not satisfy the predicate. Incident edges of removed nodes are also removed.
internal/graph/graph.go:410
↓ 1 callers
Function
FormatLayerGraph
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 callers
Method
GetAllowedDuplicatedPackages
GetAllowedDuplicatedPackages returns the list of package names allowed to have multiple versions, or nil if none are configured.
etscore/options.go:291
↓ 1 callers
Method
GetCompletionsEnabled
()
etscore/options.go:217
↓ 1 callers
Method
GetEffectFn
GetEffectFn returns the configured effectFn variants, or the default ["span"] when unset/empty.
etscore/options.go:186
↓ 1 callers
Method
GetPackageJsonInfo
(pkgJsonPath string)
internal/typeparser/packagejson.go:12
↓ 1 callers
Method
GetQuickinfoEnabled
()
etscore/options.go:210
↓ 1 callers
Method
GetRefactorsEnabled
()
etscore/options.go:203
↓ 1 callers
Method
GetSourceFileMetaData
(path tspath.Path)
internal/completions/context_self_in_classes.go:134
↓ 1 callers
Method
HandlesCode
HandlesCode returns true if this fixable handles the given error code.
internal/fixable/fixable.go:36
↓ 1 callers
Function
HasIndexSignatures
HasIndexSignatures checks whether an interface or type alias has index signatures. Used by typeToEffectSchemaClass to determine applicability.
internal/schemagen/schemagen.go:717
↓ 1 callers
Method
IncomingEdges
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 callers
Function
IsEffectCode
IsEffectCode returns true if code is in the Effect diagnostic range (377000-377999).
internal/rule/rule.go:71
↓ 1 callers
Method
IsEffectSubtype
IsEffectSubtype returns true if the type is an Effect subtype (has variance struct + "_tag" or "get").
internal/typeparser/effect_type.go:172
↓ 1 callers
Method
IsExpressionEffectModule
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 callers
Method
IsFiberType
IsFiberType returns true if the type is a Fiber type (has variance struct + "await" and "poll").
internal/typeparser/effect_type.go:195
↓ 1 callers
Method
IsInsideEffectFn
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 callers
Method
IsNodeReferenceToEffectParseResultModuleApi
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 callers
Method
IsNodeReferenceToEffectSchemaParserModuleApi
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 callers
Method
IsNodeReferenceToModule
(node *ast.Node, desc PackageSourceFileDescriptor)
internal/typeparser/module_export_reference.go:74
↓ 1 callers
Method
IsSafelyPipeableCallee
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 callers
Method
IsYieldableErrorType
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 callers
Method
LayerType
LayerType parses a Layer type and extracts ROut, E, RIn parameters.
etsapi/type_parser.go:65
↓ 1 callers
Function
LocalConstructor
(/** @effect-identifier */ identifier: string)
testdata/tests/effect-v3/deterministicKeys_custom.ts:53
↓ 1 callers
Function
LocalConstructor
(/** @effect-identifier */ identifier: string)
testdata/tests/effect-v4/deterministicKeys_custom.ts:51
↓ 1 callers
Method
MapEdges
MapEdges applies fn to every edge's data in-place.
internal/graph/graph.go:444
↓ 1 callers
Function
MetadataPresets
()
internal/rules/metadata.go:21
↓ 1 callers
Method
Neighbors
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 callers
Function
NewContext
NewContext creates a completion Context from the completion callback parameters.
internal/completion/context.go:29
↓ 1 callers
Function
NewContext
NewContext creates a refactor Context from the refactor provider callback parameters.
internal/refactor/context.go:32
↓ 1 callers
Function
NewContext
NewContext creates a fixable Context from the standard code-fix request parameters.
internal/fixable/context.go:36
↓ 1 callers
Function
NewStructuralSchemaGen
NewStructuralSchemaGen creates a StructuralSchemaGen for type-checker-based schema generation.
internal/schemagen/structural.go:55
↓ 1 callers
Method
OutgoingEdges
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 callers
Method
ParseEffectFnOpportunity
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 callers
Method
Process
Process generates schema statements for one or more named types. It populates internal state and returns accumulated statements.
internal/schemagen/structural.go:596
↓ 1 callers
Method
ProcessInterfaceDeclaration
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 callers
Method
ProcessTypeAliasDeclaration
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 callers
Method
PromiseType
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 callers
Function
RefactorTestCasesDir
RefactorTestCasesDir returns the path to the Effect refactor test cases directory.
internal/effecttest/refactor_runner.go:20
↓ 1 callers
Function
Register
Register wires Effect-specific tsconfig merge hooks into TypeScript-Go.
internal/effectconfigraw/hooks.go:15
↓ 1 callers
Function
Run
Run executes Effect diagnostics for a source file and returns diagnostics without emitting them.
internal/rulerunner/diagnostics.go:29
↓ 1 callers
Method
ScanExistingSchemas
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 callers
Function
TestCasesDir
TestCasesDir returns the path to the Effect test cases directory for the given version.
internal/effecttest/runner.go:31
↓ 1 callers
Function
addHundred
(e: Effect.Effect<number>)
testdata/tests/effect-v3/missedPipeableOpportunity.ts:40
↓ 1 callers
Function
addHundred
(e: Effect.Effect<number>)
testdata/tests/effect-v4/missedPipeableOpportunity.ts:39
↓ 1 callers
Function
allSymbolDeclarationsInsideNode
(symbol *ast.Symbol, node *ast.Node)
internal/rules/redundant_map_error.go:282
↓ 1 callers
Function
allSymbolDeclarationsOutsideNode
(symbol *ast.Symbol, node *ast.Node)
internal/rules/redundant_map_error.go:294
↓ 1 callers
Method
analyzeEffectContextForSourceFile
(sf *ast.SourceFile)
internal/typeparser/effect_context.go:85
↓ 1 callers
Function
analyzeLayerMergeAllCall
analyzeLayerMergeAllCall checks a call expression for Layer.mergeAll interdependencies.
internal/rules/layer_merge_all_with_dependencies.go:85
↓ 1 callers
Function
analyzeMultipleCatchTagCandidate
(tp *typeparser.TypeParser, c *checker.Checker, transformation *typeparser.PipingFlowTransformation)
internal/rules/multiple_catch_tag.go:104
↓ 1 callers
Function
analyzeRedundantGeneratorMapErrorCandidate
(tp *typeparser.TypeParser, c *checker.Checker, sf *ast.SourceFile, generatorCallNode *ast.Node, generatorFunc
internal/rules/redundant_map_error.go:134
↓ 1 callers
Function
analyzeRedundantGeneratorOrDieCandidate
(tp *typeparser.TypeParser, sf *ast.SourceFile, generatorCallNode *ast.Node, generatorFunction *ast.FunctionEx
internal/rules/redundant_or_die.go:123
↓ 1 callers
Function
analyzeRedundantMapErrorFlowCandidate
(tp *typeparser.TypeParser, sf *ast.SourceFile, flow *typeparser.PipingFlow)
internal/rules/redundant_map_error.go:89
↓ 1 callers
Function
analyzeRedundantOrDieFlowCandidate
(tp *typeparser.TypeParser, sf *ast.SourceFile, flow *typeparser.PipingFlow)
internal/rules/redundant_or_die.go:86
↓ 1 callers
Function
analyzeRedundantSchemaTagIdentifierNode
(tp *typeparser.TypeParser, _ *checker.Checker, sf *ast.SourceFile, node *ast.Node)
internal/rules/redundant_schema_tag_identifier.go:70
↓ 1 callers
Function
analyzeRunEffectInsideEffectNode
analyzeRunEffectInsideEffectNode checks a single call expression for Effect.run* inside an Effect generator.
internal/rules/run_effect_inside_effect.go:90
↓ 1 callers
Function
analyzeSchemaStructWithTagNode
analyzeSchemaStructWithTagNode checks a call expression for Schema.Struct({ _tag: Schema.Literal("...") }).
internal/rules/schema_struct_with_tag.go:76
↓ 1 callers
Function
analyzeSchemaUnionOfLiteralsNode
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 callers
Function
analyzeUnnecessaryArrowBlockNode
(sf *ast.SourceFile, n *ast.Node)
internal/rules/unnecessary_arrow_block.go:71
← previous
next →
501–600 of 2,947, ranked by callers