MCPcopy Create free account

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

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

↓ 1 callersFunctioncreateTransformedDiagnostic
(original *ast.Diagnostic, newCategory tsdiag.Category)
internal/rulerunner/diagnostics.go:194
↓ 1 callersFunctioncreateTypeAliasTypeRef
createTypeAliasTypeRef creates: <schemaId>.<ns>.<member><typeof <inferFrom>> as a TypeReferenceNode for use in type alias declarations.
internal/refactors/make_schema_opaque.go:144
↓ 1 callersFunctioncryptoRandomUUIDReceiver
(call *ast.CallExpression)
internal/rules/crypto_random_uuid.go:79
↓ 1 callersFunctioncyan
(str: string)
_packages/tsgo/src/setup/diff-renderer.ts:12
↓ 1 callersFunctioncycleSeverity
( current: RuleSeverity, direction: "left" | "right" )
_packages/tsgo/src/setup/rule-info.ts:45
↓ 1 callersFunctiondebugFlowTransformationText
(sf *ast.SourceFile, transformation *typeparser.PipingFlowTransformation)
etslshooks/document_symbols.go:332
↓ 1 callersFunctiondecodeStructTagJSON
(field reflect.StructField, key string)
internal/rules/rules_json_test.go:763
↓ 1 callersMethoddetectEffectVersionUncached
detectEffectVersionUncached performs the actual version detection logic.
internal/typeparser/discover.go:56
↓ 1 callersFunctiondetectFloatingEffect
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 callersFunctiondiagnosticCodeString
diagnosticCodeString formats the diagnostic code for display.
internal/effecttest/quickfix_baseline.go:41
↓ 1 callersFunctiondiagnosticMessageString
(d *lsproto.Diagnostic)
internal/effecttest/quickfix_baseline.go:54
↓ 1 callersFunctiondiagnosticSeveritySchema
()
etscore/options_schema_test.go:205
↓ 1 callersMethoddiscoverPackagesUncached
discoverPackagesUncached performs the actual source file scan.
internal/typeparser/discover.go:164
↓ 1 callersFunctioneffectFnBuildGenBody
effectFnBuildGenBody builds a generator function expression for a gen opportunity: function*<TypeParams>(params) { ...generatorBody... }
internal/fixables/effect_fn_opportunity.go:216
↓ 1 callersFunctioneffectFnBuildLayerMemberReturnStatement
effectFnBuildLayerMemberReturnStatement rebuilds a `return { ... }` statement, replacing the target property's initializer with the synthesized Effect
internal/fixables/effect_fn_opportunity.go:382
↓ 1 callersFunctioneffectFnBuildRegularBody
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 callersFunctioneffectFnBuildVarStatement
effectFnBuildVarStatement wraps a call expression in a variable statement: [export] const name = callExpr
internal/fixables/effect_fn_opportunity.go:301
↓ 1 callersFunctioneffectFnBuildVarStatementFromEnclosing
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 callersFunctioneffectFnFindEnclosingReturnedObject
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 callersFunctioneffectFnFindEnclosingVarStatement
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 callersFunctioneffectLanguageServicePluginOverrideOptionsSchema
()
etscore/options_schema_test.go:188
↓ 1 callersFunctioneffectLanguageServicePluginOverrideSchema
()
etscore/options_schema_test.go:178
↓ 1 callersFunctioneffectLanguageServicePluginSchema
()
etscore/options_schema_test.go:135
↓ 1 callersFunctionensureNativePreviewDependency
()
_packages/tsgo/src/setup/changes.ts:251
↓ 1 callersMethodentityNameToDataTypeName
entityNameToDataTypeName maps a type name to a recognized data type name.
internal/schemagen/schemagen.go:352
↓ 1 callersFunctioneraseRenderedLines
(lines: ReadonlyArray<string>, columns: number)
_packages/tsgo/src/setup/rule-prompt.ts:109
↓ 1 callersFunctionevaluatePreview
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 callersFunctionexpressionNodeForMissingEffectError
(node *ast.Node)
internal/fixables/missing_effect_error_catch.go:162
↓ 1 callersFunctionextractSelfTypeName
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 callersFunctionfilterExpectedLeakingRequirements
(c *checker.Checker, reportNode *ast.Node, leaked []*checker.Type)
internal/rules/leaking_requirements.go:132
↓ 1 callersFunctionfilterNonPrimitiveTypes
filterNonPrimitiveTypes filters out primitive types (number, string, boolean, literals).
internal/refactors/write_tag_class_accessors.go:172
↓ 1 callersFunctionfindCompletionItem
(items []*lsproto.CompletionItem, label string)
internal/completions/fourslash_test.go:90
↓ 1 callersFunctionfindEffectPluginRaw
(plugins []any)
internal/effectconfigraw/hooks.go:189
↓ 1 callersFunctionfindFirstEffectGenCall
(t *testing.T, tp *TypeParser, sf *ast.SourceFile)
internal/typeparser/effect_gen_test.go:10
↓ 1 callersFunctionfindFunctionReturningEffectGen
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 callersFunctionfindLayerModuleName
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 callersFunctionfindPreviewFile
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 callersFunctionfindRelatedLayerProviderDiagnostics
( c *checker.Checker, ctx *rule.Context, layerNode *ast.Node, missingTypes []*checker.Type, )
internal/rules/missing_effect_context.go:156
↓ 1 callersFunctionfindRelatedProvideLocation
(tp *typeparser.TypeParser, c *checker.Checker, sf *ast.SourceFile, errorNode *ast.Node)
internal/rules/missing_effect_context.go:121
↓ 1 callersFunctionfindSubjectNodeAtDepth
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 callersFunctionfindTransformationIndexContainingNode
(flow *typeparser.PipingFlow, target *ast.Node)
internal/rules/missing_effect_context.go:255
↓ 1 callersFunctionfindTsConfigFiles
( currentDir: string )
_packages/tsgo/src/setup/tsconfig-prompt.ts:16
↓ 1 callersFunctionfindUnhandledContexts
findUnhandledContexts returns the source context types that are not assignable to the target context type.
internal/rules/missing_effect_context.go:63
↓ 1 callersFunctionfindUnhandledErrors
findUnhandledErrors returns the source error types that are not assignable to the target error type.
internal/rules/missing_effect_error.go:86
↓ 1 callersFunctionfindUnhandledLayerContexts
findUnhandledLayerContexts returns the source Layer RIn types that are not assignable to the target RIn type.
internal/rules/missing_layer_context.go:58
↓ 1 callersFunctionfirstAvailableFixName
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 callersFunctionfirstNode
(nodes []*ast.Node)
internal/rules/missing_effect_context.go:248
↓ 1 callersMethodflushPendingBefore
()
internal/rewriter/tracker.go:118
↓ 1 callersFunctionfn
()
testdata/tests/effect-v4/globalDate.ts:29
↓ 1 callersFunctionfoo
()
testdata/tests/effect-v3/unnecessaryEffectGen.ts:13
↓ 1 callersFunctionfoo
()
testdata/tests/effect-v4/unnecessaryEffectGen.ts:12
↓ 1 callersFunctionformatContextTypes
formatContextTypes formats a slice of context types as a union string (e.g., "EnvA | EnvB").
internal/rules/missing_effect_context.go:78
↓ 1 callersFunctionformatErrorTypes
formatErrorTypes formats a slice of error types as a union string (e.g., "ErrorA | ErrorB").
internal/rules/missing_effect_error.go:101
↓ 1 callersFunctionformatExecutionFlowEdgeLabel
(_ *ast.SourceFile, edge typeparser.ExecutionLink)
internal/effecttest/baseline.go:444
↓ 1 callersFunctionformatExecutionFlowNodeLabel
(c *checker.Checker, sf *ast.SourceFile, node typeparser.ExecutionNode)
internal/effecttest/baseline.go:412
↓ 1 callersFunctionformatInlayHintBaseline
(t *testing.T, fileContent string, result lsproto.InlayHintResponse)
internal/effecttest/inlay_hints_baseline_test.go:81
↓ 1 callersFunctionformatLayerContextTypes
formatLayerContextTypes formats a slice of Layer context types as a union string (e.g., "ServiceA | ServiceB").
internal/rules/missing_layer_context.go:73
↓ 1 callersFunctionformatLayerHover
formatLayerHover builds the Layer hover documentation including providers/requirers summary, Mermaid diagram links, and Layer type parameters.
etslshooks/init.go:227
↓ 1 callersFunctiongatherTargetState
( assessment: Assessment.State, context: GatherTargetContext )
_packages/tsgo/src/setup/target-prompt.ts:22
↓ 1 callersFunctiongenerateAccessors
generateAccessors generates accessor text directly via InsertText.
internal/refactors/write_tag_class_accessors.go:188
↓ 1 callersFunctiongenerateDocumentSymbolsBaseline
(fileSymbols []DocumentSymbolsFileResult)
internal/effecttest/document_symbols_baseline.go:29
↓ 1 callersFunctiongenerateErrorBaseline
generateErrorBaseline creates an error baseline string matching the TypeScript harness format.
internal/effecttest/baseline.go:63
↓ 1 callersFunctiongenerateExecutionFlowBaseline
( c *checker.Checker, baselineName string, inputFiles []*harnessutil.TestFile, sourceFileGetter func(strin
internal/effecttest/baseline.go:342
↓ 1 callersFunctiongenerateLayerGraphBaseline
generateLayerGraphBaseline creates a layer graph baseline string.
internal/effecttest/baseline.go:485
↓ 1 callersFunctiongeneratePipingFlowBaseline
generatePipingFlowBaseline creates a piping flow baseline string.
internal/effecttest/baseline.go:243
↓ 1 callersFunctiongenerateQuickFixBaseline
generateQuickFixBaseline creates the content for a *.quickfixes.txt baseline file.
internal/effecttest/quickfix_baseline.go:65
↓ 1 callersFunctiongenerateReadmeExampleConfig
()
internal/rules/rules_json_test.go:685
↓ 1 callersFunctiongenerateReadmeTable
()
internal/rules/rules_json_test.go:598
↓ 1 callersFunctiongenerateRefactorBaseline
generateRefactorBaseline creates the content for a *.refactors.txt baseline file.
internal/effecttest/refactor_baseline.go:37
↓ 1 callersFunctiongenerateTSConfigSchema
()
etscore/options_schema_test.go:75
↓ 1 callersFunctiongetAdjustedNode
getAdjustedNode extracts the initializer expression from a declaration node to follow during symbol resolution.
internal/layergraph/extract.go:321
↓ 1 callersFunctiongetAllGroups
()
_packages/tsgo/src/setup/rule-info.ts:37
↓ 1 callersFunctiongetAllPresets
()
_packages/tsgo/src/setup/rule-info.ts:41
↓ 1 callersFunctiongetBodyExpression
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 callersFunctiongetCompilerOptionsRaw
(raw any)
internal/effectconfigraw/hooks.go:180
↓ 1 callersFunctiongetCompletionPackageJsonDirectory
getCompletionPackageJsonDirectory gets the package.json directory for a source file.
internal/completions/context_self_in_classes.go:132
↓ 1 callersFunctiongetControlsLegend
(searchText: string)
_packages/tsgo/src/setup/rule-prompt.ts:67
↓ 1 callersFunctiongetCurrentDiagnosticSeverities
( plugins: ReadonlyArray<{ name?: string; [key: string]: unknown }> )
_packages/tsgo/src/setup/assessment.ts:171
↓ 1 callersFunctiongetDisplayNode
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 callersFunctiongetEffectConfig
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 callersFunctiongetEffectPluginRaw
(raw any)
internal/effectconfigraw/hooks.go:170
↓ 1 callersFunctiongetFunctionLikeType
getFunctionLikeType returns the return type node from a function-like declaration.
internal/refactors/toggle_return_type_annotation.go:110
↓ 1 callersFunctiongetFunctionParameters
getFunctionParameters returns the parameter nodes of a function.
internal/typeparser/effect_fn_opportunity.go:470
↓ 1 callersFunctiongetIndentationAtPosition
getIndentationAtPosition returns the whitespace characters from line start to the first non-whitespace.
internal/fixables/disable.go:108
↓ 1 callersFunctiongetInferredReturnTypeFromChecker
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 callersMethodgetInferredTraceName
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 callersFunctiongetLineStartPositionForPosition
getLineStartPositionForPosition finds the start of the line containing the given position.
internal/fixables/disable.go:93
↓ 1 callersFunctiongetLines
* Get lines from source file text
_packages/tsgo/src/setup/diff-renderer.ts:19
↓ 1 callersFunctiongetNodeModifiers
getNodeModifiers returns the modifier list from a function-like node.
internal/refactors/function_to_arrow.go:218
↓ 1 callersFunctiongetNodeTextForPropertyLookup
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 callersFunctiongetObjectLiteralElementName
getObjectLiteralElementName returns the name node of an object literal element (PropertyAssignment, ShorthandPropertyAssignment, etc.), or nil.
internal/typeparser/expected_and_real_type.go:301
↓ 1 callersFunctiongetPackageJsonDirectory
getPackageJsonDirectory gets the package.json directory for a source file from its metadata.
internal/rules/deterministic_keys.go:252
↓ 1 callersFunctiongetParamNamesString
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 callersFunctiongetPromptEntries
(rules: ReadonlyArray<RuleInfo>)
_packages/tsgo/src/setup/rule-prompt.ts:577
↓ 1 callersFunctiongetSeverityShortName
(severity: RuleSeverity)
_packages/tsgo/src/setup/rule-info.ts:67
↓ 1 callersFunctiongetSeverityStyle
(severity: RuleSeverity)
_packages/tsgo/src/setup/rule-prompt.ts:85
↓ 1 callersFunctiongetSeveritySymbol
(severity: RuleSeverity)
_packages/tsgo/src/setup/rule-prompt.ts:74
↓ 1 callersFunctiongetSubjectText
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 callersMethodgetTypeAtLocationUncached
(node *ast.Node)
internal/typeparser/get_type_at_location.go:22
↓ 1 callersFunctiongetTypeParamString
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
← previousnext →701–800 of 2,947, ranked by callers