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
↓ 1 callers
Function
createTransformedDiagnostic
(original *ast.Diagnostic, newCategory tsdiag.Category)
internal/rulerunner/diagnostics.go:194
↓ 1 callers
Function
createTypeAliasTypeRef
createTypeAliasTypeRef creates: <schemaId>.<ns>.<member><typeof <inferFrom>> as a TypeReferenceNode for use in type alias declarations.
internal/refactors/make_schema_opaque.go:144
↓ 1 callers
Function
cryptoRandomUUIDReceiver
(call *ast.CallExpression)
internal/rules/crypto_random_uuid.go:79
↓ 1 callers
Function
cyan
(str: string)
_packages/tsgo/src/setup/diff-renderer.ts:12
↓ 1 callers
Function
cycleSeverity
( current: RuleSeverity, direction: "left" | "right" )
_packages/tsgo/src/setup/rule-info.ts:45
↓ 1 callers
Function
debugFlowTransformationText
(sf *ast.SourceFile, transformation *typeparser.PipingFlowTransformation)
etslshooks/document_symbols.go:332
↓ 1 callers
Function
decodeStructTagJSON
(field reflect.StructField, key string)
internal/rules/rules_json_test.go:763
↓ 1 callers
Method
detectEffectVersionUncached
detectEffectVersionUncached performs the actual version detection logic.
internal/typeparser/discover.go:56
↓ 1 callers
Function
detectFloatingEffect
detectFloatingEffect checks if a node is an expression statement containing an Effect type that is neither yielded nor assigned. Returns nil if the no
internal/rules/floating_effect.go:79
↓ 1 callers
Function
diagnosticCodeString
diagnosticCodeString formats the diagnostic code for display.
internal/effecttest/quickfix_baseline.go:41
↓ 1 callers
Function
diagnosticMessageString
(d *lsproto.Diagnostic)
internal/effecttest/quickfix_baseline.go:54
↓ 1 callers
Function
diagnosticSeveritySchema
()
etscore/options_schema_test.go:205
↓ 1 callers
Method
discoverPackagesUncached
discoverPackagesUncached performs the actual source file scan.
internal/typeparser/discover.go:164
↓ 1 callers
Function
effectFnBuildGenBody
effectFnBuildGenBody builds a generator function expression for a gen opportunity: function*<TypeParams>(params) { ...generatorBody... }
internal/fixables/effect_fn_opportunity.go:216
↓ 1 callers
Function
effectFnBuildLayerMemberReturnStatement
effectFnBuildLayerMemberReturnStatement rebuilds a `return { ... }` statement, replacing the target property's initializer with the synthesized Effect
internal/fixables/effect_fn_opportunity.go:382
↓ 1 callers
Function
effectFnBuildRegularBody
effectFnBuildRegularBody builds the body function for a regular (non-gen) opportunity. For function declarations and arrow functions, creates an anony
internal/fixables/effect_fn_opportunity.go:241
↓ 1 callers
Function
effectFnBuildVarStatement
effectFnBuildVarStatement wraps a call expression in a variable statement: [export] const name = callExpr
internal/fixables/effect_fn_opportunity.go:301
↓ 1 callers
Function
effectFnBuildVarStatementFromEnclosing
effectFnBuildVarStatementFromEnclosing builds a replacement VariableStatement from an existing one, replacing the target node's initializer with callE
internal/fixables/effect_fn_opportunity.go:432
↓ 1 callers
Function
effectFnFindEnclosingReturnedObject
effectFnFindEnclosingReturnedObject returns the enclosing ReturnStatement when the target node is the initializer of a PropertyAssignment inside a ret
internal/fixables/effect_fn_opportunity.go:356
↓ 1 callers
Function
effectFnFindEnclosingVarStatement
effectFnFindEnclosingVarStatement navigates up from a target node (which should be the initializer of a VariableDeclaration) to find the enclosing Var
internal/fixables/effect_fn_opportunity.go:349
↓ 1 callers
Function
effectLanguageServicePluginOverrideOptionsSchema
()
etscore/options_schema_test.go:188
↓ 1 callers
Function
effectLanguageServicePluginOverrideSchema
()
etscore/options_schema_test.go:178
↓ 1 callers
Function
effectLanguageServicePluginSchema
()
etscore/options_schema_test.go:135
↓ 1 callers
Function
ensureNativePreviewDependency
()
_packages/tsgo/src/setup/changes.ts:251
↓ 1 callers
Method
entityNameToDataTypeName
entityNameToDataTypeName maps a type name to a recognized data type name.
internal/schemagen/schemagen.go:352
↓ 1 callers
Function
eraseRenderedLines
(lines: ReadonlyArray<string>, columns: number)
_packages/tsgo/src/setup/rule-prompt.ts:109
↓ 1 callers
Function
evaluatePreview
evaluatePreview creates an in-memory program for a preview fixture and runs the specified rule directly to collect diagnostics. We bypass the checker
internal/rules/rules_json_test.go:274
↓ 1 callers
Function
expressionNodeForMissingEffectError
(node *ast.Node)
internal/fixables/missing_effect_error_catch.go:162
↓ 1 callers
Function
extractSelfTypeName
extractSelfTypeName extracts the name text from a Self type node. For TypeReferenceNode with Identifier typeName → identifier text. For TypeReferenceN
internal/rules/class_self_mismatch.go:142
↓ 1 callers
Function
filterExpectedLeakingRequirements
(c *checker.Checker, reportNode *ast.Node, leaked []*checker.Type)
internal/rules/leaking_requirements.go:132
↓ 1 callers
Function
filterNonPrimitiveTypes
filterNonPrimitiveTypes filters out primitive types (number, string, boolean, literals).
internal/refactors/write_tag_class_accessors.go:172
↓ 1 callers
Function
findCompletionItem
(items []*lsproto.CompletionItem, label string)
internal/completions/fourslash_test.go:90
↓ 1 callers
Function
findEffectPluginRaw
(plugins []any)
internal/effectconfigraw/hooks.go:189
↓ 1 callers
Function
findFirstEffectGenCall
(t *testing.T, tp *TypeParser, sf *ast.SourceFile)
internal/typeparser/effect_gen_test.go:10
↓ 1 callers
Function
findFunctionReturningEffectGen
findFunctionReturningEffectGen walks from the token up the ancestor chain to find a function-like node whose body directly returns an Effect.gen call,
internal/refactors/effect_gen_to_fn.go:76
↓ 1 callers
Function
findLayerModuleName
findLayerModuleName resolves the imported identifier name for the "Layer" export from the "effect" package. Falls back to "Layer" if not found.
internal/layergraph/extract.go:364
↓ 1 callers
Function
findPreviewFile
findPreviewFile locates the preview fixture for a rule, checking v4 first then v3. Returns the version, file path, and source text.
internal/rules/rules_json_test.go:221
↓ 1 callers
Function
findRelatedLayerProviderDiagnostics
( c *checker.Checker, ctx *rule.Context, layerNode *ast.Node, missingTypes []*checker.Type, )
internal/rules/missing_effect_context.go:156
↓ 1 callers
Function
findRelatedProvideLocation
(tp *typeparser.TypeParser, c *checker.Checker, sf *ast.SourceFile, errorNode *ast.Node)
internal/rules/missing_effect_context.go:121
↓ 1 callers
Function
findSubjectNodeAtDepth
findSubjectNodeAtDepth traverses the flow node into arguments to find the subject at the right depth, then deep-clones it.
internal/fixables/missed_pipeable_opportunity.go:110
↓ 1 callers
Function
findTransformationIndexContainingNode
(flow *typeparser.PipingFlow, target *ast.Node)
internal/rules/missing_effect_context.go:255
↓ 1 callers
Function
findTsConfigFiles
( currentDir: string )
_packages/tsgo/src/setup/tsconfig-prompt.ts:16
↓ 1 callers
Function
findUnhandledContexts
findUnhandledContexts returns the source context types that are not assignable to the target context type.
internal/rules/missing_effect_context.go:63
↓ 1 callers
Function
findUnhandledErrors
findUnhandledErrors returns the source error types that are not assignable to the target error type.
internal/rules/missing_effect_error.go:86
↓ 1 callers
Function
findUnhandledLayerContexts
findUnhandledLayerContexts returns the source Layer RIn types that are not assignable to the target RIn type.
internal/rules/missing_layer_context.go:58
↓ 1 callers
Function
firstAvailableFixName
firstAvailableFixName determines which fix variant would be first (highest priority) for the given match, matching the reference implementation's fix
internal/rules/effect_fn_opportunity.go:85
↓ 1 callers
Function
firstNode
(nodes []*ast.Node)
internal/rules/missing_effect_context.go:248
↓ 1 callers
Method
flushPendingBefore
()
internal/rewriter/tracker.go:118
↓ 1 callers
Function
fn
()
testdata/tests/effect-v4/globalDate.ts:29
↓ 1 callers
Function
foo
()
testdata/tests/effect-v3/unnecessaryEffectGen.ts:13
↓ 1 callers
Function
foo
()
testdata/tests/effect-v4/unnecessaryEffectGen.ts:12
↓ 1 callers
Function
formatContextTypes
formatContextTypes formats a slice of context types as a union string (e.g., "EnvA | EnvB").
internal/rules/missing_effect_context.go:78
↓ 1 callers
Function
formatErrorTypes
formatErrorTypes formats a slice of error types as a union string (e.g., "ErrorA | ErrorB").
internal/rules/missing_effect_error.go:101
↓ 1 callers
Function
formatExecutionFlowEdgeLabel
(_ *ast.SourceFile, edge typeparser.ExecutionLink)
internal/effecttest/baseline.go:444
↓ 1 callers
Function
formatExecutionFlowNodeLabel
(c *checker.Checker, sf *ast.SourceFile, node typeparser.ExecutionNode)
internal/effecttest/baseline.go:412
↓ 1 callers
Function
formatInlayHintBaseline
(t *testing.T, fileContent string, result lsproto.InlayHintResponse)
internal/effecttest/inlay_hints_baseline_test.go:81
↓ 1 callers
Function
formatLayerContextTypes
formatLayerContextTypes formats a slice of Layer context types as a union string (e.g., "ServiceA | ServiceB").
internal/rules/missing_layer_context.go:73
↓ 1 callers
Function
formatLayerHover
formatLayerHover builds the Layer hover documentation including providers/requirers summary, Mermaid diagram links, and Layer type parameters.
etslshooks/init.go:227
↓ 1 callers
Function
gatherTargetState
( assessment: Assessment.State, context: GatherTargetContext )
_packages/tsgo/src/setup/target-prompt.ts:22
↓ 1 callers
Function
generateAccessors
generateAccessors generates accessor text directly via InsertText.
internal/refactors/write_tag_class_accessors.go:188
↓ 1 callers
Function
generateDocumentSymbolsBaseline
(fileSymbols []DocumentSymbolsFileResult)
internal/effecttest/document_symbols_baseline.go:29
↓ 1 callers
Function
generateErrorBaseline
generateErrorBaseline creates an error baseline string matching the TypeScript harness format.
internal/effecttest/baseline.go:63
↓ 1 callers
Function
generateExecutionFlowBaseline
( c *checker.Checker, baselineName string, inputFiles []*harnessutil.TestFile, sourceFileGetter func(strin
internal/effecttest/baseline.go:342
↓ 1 callers
Function
generateLayerGraphBaseline
generateLayerGraphBaseline creates a layer graph baseline string.
internal/effecttest/baseline.go:485
↓ 1 callers
Function
generatePipingFlowBaseline
generatePipingFlowBaseline creates a piping flow baseline string.
internal/effecttest/baseline.go:243
↓ 1 callers
Function
generateQuickFixBaseline
generateQuickFixBaseline creates the content for a *.quickfixes.txt baseline file.
internal/effecttest/quickfix_baseline.go:65
↓ 1 callers
Function
generateReadmeExampleConfig
()
internal/rules/rules_json_test.go:685
↓ 1 callers
Function
generateReadmeTable
()
internal/rules/rules_json_test.go:598
↓ 1 callers
Function
generateRefactorBaseline
generateRefactorBaseline creates the content for a *.refactors.txt baseline file.
internal/effecttest/refactor_baseline.go:37
↓ 1 callers
Function
generateTSConfigSchema
()
etscore/options_schema_test.go:75
↓ 1 callers
Function
getAdjustedNode
getAdjustedNode extracts the initializer expression from a declaration node to follow during symbol resolution.
internal/layergraph/extract.go:321
↓ 1 callers
Function
getAllGroups
()
_packages/tsgo/src/setup/rule-info.ts:37
↓ 1 callers
Function
getAllPresets
()
_packages/tsgo/src/setup/rule-info.ts:41
↓ 1 callers
Function
getBodyExpression
getBodyExpression gets the single return expression from a function body. For arrow functions with expression bodies, returns the expression directly.
internal/typeparser/effect_fn_opportunity.go:285
↓ 1 callers
Function
getCompilerOptionsRaw
(raw any)
internal/effectconfigraw/hooks.go:180
↓ 1 callers
Function
getCompletionPackageJsonDirectory
getCompletionPackageJsonDirectory gets the package.json directory for a source file.
internal/completions/context_self_in_classes.go:132
↓ 1 callers
Function
getControlsLegend
(searchText: string)
_packages/tsgo/src/setup/rule-prompt.ts:67
↓ 1 callers
Function
getCurrentDiagnosticSeverities
( plugins: ReadonlyArray<{ name?: string; [key: string]: unknown }> )
_packages/tsgo/src/setup/assessment.ts:171
↓ 1 callers
Function
getDisplayNode
getDisplayNode returns the node used for display purposes. If the node's parent is a variable declaration and the node is the initializer, use the var
internal/layergraph/extract.go:303
↓ 1 callers
Function
getEffectConfig
getEffectConfig retrieves the Effect plugin configuration from the program's compiler options. Returns nil if no Effect config is present.
etscheckerhooks/init.go:28
↓ 1 callers
Function
getEffectPluginRaw
(raw any)
internal/effectconfigraw/hooks.go:170
↓ 1 callers
Function
getFunctionLikeType
getFunctionLikeType returns the return type node from a function-like declaration.
internal/refactors/toggle_return_type_annotation.go:110
↓ 1 callers
Function
getFunctionParameters
getFunctionParameters returns the parameter nodes of a function.
internal/typeparser/effect_fn_opportunity.go:470
↓ 1 callers
Function
getIndentationAtPosition
getIndentationAtPosition returns the whitespace characters from line start to the first non-whitespace.
internal/fixables/disable.go:108
↓ 1 callers
Function
getInferredReturnTypeFromChecker
getInferredReturnTypeFromChecker extracts the return type from a function-like declaration using the type checker. It handles overloaded functions and
internal/refactors/toggle_return_type_annotation.go:126
↓ 1 callers
Method
getInferredTraceName
getInferredTraceName computes a context-aware inferred trace name for a function. It checks (in priority order): 1. Layer service context (ServiceTag.
internal/typeparser/effect_fn_opportunity.go:804
↓ 1 callers
Function
getLineStartPositionForPosition
getLineStartPositionForPosition finds the start of the line containing the given position.
internal/fixables/disable.go:93
↓ 1 callers
Function
getLines
* Get lines from source file text
_packages/tsgo/src/setup/diff-renderer.ts:19
↓ 1 callers
Function
getNodeModifiers
getNodeModifiers returns the modifier list from a function-like node.
internal/refactors/function_to_arrow.go:218
↓ 1 callers
Function
getNodeTextForPropertyLookup
getNodeTextForPropertyLookup extracts the text from an identifier or string literal node for use in property type lookup.
internal/typeparser/expected_and_real_type.go:322
↓ 1 callers
Function
getObjectLiteralElementName
getObjectLiteralElementName returns the name node of an object literal element (PropertyAssignment, ShorthandPropertyAssignment, etc.), or nil.
internal/typeparser/expected_and_real_type.go:301
↓ 1 callers
Function
getPackageJsonDirectory
getPackageJsonDirectory gets the package.json directory for a source file from its metadata.
internal/rules/deterministic_keys.go:252
↓ 1 callers
Function
getParamNamesString
getParamNamesString extracts parameter names from a function node and returns a string like "x, y" or "" if there are no parameters. For destructuring
internal/rules/effect_fn_opportunity.go:202
↓ 1 callers
Function
getPromptEntries
(rules: ReadonlyArray<RuleInfo>)
_packages/tsgo/src/setup/rule-prompt.ts:577
↓ 1 callers
Function
getSeverityShortName
(severity: RuleSeverity)
_packages/tsgo/src/setup/rule-info.ts:67
↓ 1 callers
Function
getSeverityStyle
(severity: RuleSeverity)
_packages/tsgo/src/setup/rule-prompt.ts:85
↓ 1 callers
Function
getSeveritySymbol
(severity: RuleSeverity)
_packages/tsgo/src/setup/rule-prompt.ts:74
↓ 1 callers
Function
getSubjectText
getSubjectText extracts the subject text for the diagnostic message. If the pipeable segment starts at index 0, uses the subject node text directly. O
internal/rules/missed_pipeable_opportunity.go:168
↓ 1 callers
Method
getTypeAtLocationUncached
(node *ast.Node)
internal/typeparser/get_type_at_location.go:22
↓ 1 callers
Function
getTypeParamString
getTypeParamString extracts type parameter names from a function node and returns a string like "<T, U>" or "" if there are no type parameters.
internal/rules/effect_fn_opportunity.go:176
← previous
next →
701–800 of 2,947, ranked by callers