MCPcopy Create free account

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

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

↓ 1 callersFunctiongreen
(str: string)
_packages/tsgo/src/setup/diff-renderer.ts:9
↓ 1 callersFunctionhandleProcess
(entries: ReadonlyArray<RuleEntry>, groups: ReadonlyArray<GroupInfo>)
_packages/tsgo/src/setup/rule-prompt.ts:528
↓ 1 callersFunctionhasAccessorsTrue
hasAccessorsTrue checks if an options object literal has `accessors: true`.
internal/refactors/write_tag_class_accessors.go:147
↓ 1 callersFunctionhasExpectedLeakingComment
(sourceText string, pos int, leakedServiceName string)
internal/rules/leaking_requirements.go:178
↓ 1 callersFunctionhasLeakableServiceAnnotation
hasLeakableServiceAnnotation checks if a type's declarations contain the @effect-leakable-service JSDoc annotation.
internal/rules/leaking_requirements.go:303
↓ 1 callersFunctionhasOuterContextualFunctionType
(tp *typeparser.TypeParser, c *checker.Checker, node *ast.Node)
internal/rules/effect_fn_implicit_any.go:114
↓ 1 callersFunctionhasReturnTypeAnnotation
hasReturnTypeAnnotation checks if a function node has an explicit return type annotation.
internal/typeparser/effect_fn_opportunity.go:203
↓ 1 callersFunctionhoistSensitiveReferenceSymbol
(c *checker.Checker, node *ast.Node)
internal/rules/redundant_map_error.go:306
↓ 1 callersFunctionindentedJSON
(value any, prefix string)
internal/rules/rules_json_test.go:795
↓ 1 callersFunctionintPtr
(value int)
etscore/options_test.go:167
↓ 1 callersFunctionintersectStringSlices
intersectStringSlices returns the elements that appear in both slices.
internal/rules/leaking_requirements.go:341
↓ 1 callersFunctionisAllowedConstructor
isAllowedConstructor checks if a constructor is a passthrough that simply forwards exactly 2 parameters to super(). This pattern is used internally by
internal/rules/overridden_schema_constructor.go:120
↓ 1 callersFunctionisAsAnyAsLayerForm
isAsAnyAsLayerForm checks if a node is already in the `(expr as any) as Layer.Layer<T>` form.
internal/refactors/layer_magic.go:380
↓ 1 callersFunctionisAssignmentExpression
isAssignmentExpression checks if an expression is an assignment (=, ??=, &&=, ||=).
internal/rules/floating_effect.go:131
↓ 1 callersFunctionisCatchCallee
isCatchCallee checks if a node references one of the Effect module catch functions.
internal/rules/catch_unfailable_effect.go:66
↓ 1 callersFunctionisDeclarationName
isDeclarationName checks whether the given node is the name node of a variable or property declaration. This is used to restrict layer hover enrichmen
etslshooks/init.go:326
↓ 1 callersFunctionisDisableStyleFix
isDisableStyleFix returns true if the fix title matches the disable-style pattern: "Disable ... for this line" or "Disable ... for entire file".
internal/effecttest/quickfix_runner.go:17
↓ 1 callersFunctionisEffectDiagnostic
(diag *ast.Diagnostic)
etscheckerhooks/external_library_test.go:95
↓ 1 callersFunctionisEffectVoidReference
(tp *typeparser.TypeParser, node *ast.Node)
internal/rules/catch_to_ignore.go:117
↓ 1 callersFunctionisEnvPropertyAccess
(node *ast.Node)
internal/rules/process_env.go:91
↓ 1 callersFunctionisErrorDeclaration
(tp *typeparser.TypeParser, c *checker.Checker, node *ast.Node)
etslshooks/document_symbols.go:441
↓ 1 callersFunctionisExpectedLeakingServiceSuppressed
(c *checker.Checker, startNode *ast.Node, leakedServiceName string)
internal/rules/leaking_requirements.go:151
↓ 1 callersFunctionisGeneratorFunctionNode
(node *ast.Node)
internal/typeparser/effect_fn.go:93
↓ 1 callersFunctionisGlobalErrorCatchCallee
isGlobalErrorCatchCallee checks if a node references one of the Effect module catch APIs.
internal/rules/global_error_in_effect_catch.go:109
↓ 1 callersFunctionisHarnessConfigFile
(fileName string)
internal/effecttest/effect_in_failure_ts2589_test.go:214
↓ 1 callersFunctionisHoistSensitiveValueReference
(node *ast.Node)
internal/rules/redundant_map_error.go:330
↓ 1 callersFunctionisInHeritageClause
isInHeritageClause checks if a node is inside a heritage clause (extends/implements).
internal/refactors/wrap_with_effect_gen.go:86
↓ 1 callersFunctionisInsideTypeOnlyHeritageExpression
isInsideTypeOnlyHeritageExpression reports whether node is an ExpressionWithTypeArguments or one of its identifier/property-access sub-expressions ins
internal/typeparser/get_type_at_location.go:59
↓ 1 callersFunctionisLayerDeclaration
(tp *typeparser.TypeParser, c *checker.Checker, node *ast.Node)
etslshooks/document_symbols.go:418
↓ 1 callersFunctionisLayerModuleCall
isLayerModuleCall checks if a call expression's callee is a Layer module API call (e.g., Layer.provide, Layer.merge, etc.).
internal/layergraph/extract.go:350
↓ 1 callersFunctionisLibFile
(fileName string)
internal/effecttest/inlay_hints_baseline_test.go:174
↓ 1 callersFunctionisPipeCallNode
isPipeCallNode checks if a synthesized node is a pipe(...) call by checking if the expression is an identifier named "pipe".
internal/refactors/pipeable_to_datafirst.go:177
↓ 1 callersFunctionisPipeableAtIndex
isPipeableAtIndex checks if the type at a given index in a flow is pipeable. Index 0 = subject, index > 0 = transformations[index - 1].outType
internal/rules/missed_pipeable_opportunity.go:149
↓ 1 callersFunctionisPrintableInput
(input: Terminal.UserInput)
_packages/tsgo/src/setup/rule-prompt.ts:368
↓ 1 callersFunctionisPromiseTypeString
isPromiseTypeString checks if the type string represents a Promise<T> and extracts the inner type string.
internal/refactors/write_tag_class_accessors.go:364
↓ 1 callersFunctionisSchemaDeclaration
(tp *typeparser.TypeParser, c *checker.Checker, node *ast.Node)
etslshooks/document_symbols.go:454
↓ 1 callersFunctionisSelfReferentialTypeAliasReference
(symbol *ast.Symbol, location *ast.Node)
internal/rules/unnecessary_typeof_type.go:191
↓ 1 callersFunctionisServiceDeclaration
(tp *typeparser.TypeParser, c *checker.Checker, node *ast.Node)
etslshooks/document_symbols.go:428
↓ 1 callersFunctionisSimpleIdentifier
isSimpleIdentifier checks if a node is a simple identifier or a chain of property accesses with simple identifiers (e.g., `a`, `a.b`, `a.b.c`).
internal/layergraph/extract.go:337
↓ 1 callersFunctionisTsConfigFile
(file: string)
_packages/tsgo/src/setup/tsconfig-prompt.ts:11
↓ 1 callersFunctionisUnknownCatchCallee
isUnknownCatchCallee checks if a node references one of the Effect module catch APIs.
internal/rules/unknown_in_effect_catch.go:109
↓ 1 callersFunctionisV4SchemaClassExpression
(tp *typeparser.TypeParser, c *checker.Checker, expr *ast.Node)
internal/rules/new_schema_class.go:87
↓ 1 callersFunctionisVoidCallback
isVoidCallback checks if a callback argument is a "void callback": either an empty function (block body with zero statements) or a lazy void expressio
internal/rules/effect_map_void.go:45
↓ 1 callersFunctionisVoidLikeEffectSuccess
(t *checker.Type)
internal/rules/catch_to_ignore.go:124
↓ 1 callersFunctionjsonFieldName
(field reflect.StructField)
etscore/options_schema_test.go:367
↓ 1 callersFunctionjsonFieldName
(field reflect.StructField)
internal/rules/rules_json_test.go:775
↓ 1 callersFunctionlayerFromInternal
(layer *typeparser.Layer)
etsapi/type_parser.go:128
↓ 1 callersFunctionlayerMagicResultFromInternal
(result *layergraph.LayerMagicResult)
etsapi/layer_magic.go:45
↓ 1 callersFunctionlayerSymbolName
(sf *ast.SourceFile, node *ast.Node)
etslshooks/document_symbols.go:515
↓ 1 callersFunctionlazy
(f: () => A)
testdata/tests/effect-v3/returnEffectInGenNoDiagnostics.ts:10
↓ 1 callersFunctionlazy
(f: () => A)
testdata/tests/effect-v4/returnEffectInGenNoDiagnostics.ts:8
↓ 1 callersFunctionmapperCanBeHoisted
(c *checker.Checker, generatorFunctionNode *ast.Node, hoistLocation *ast.Node, mapperNode *ast.Node)
internal/rules/redundant_map_error.go:244
↓ 1 callersFunctionmatchClassPattern
matchClassPattern tries to match a class declaration against the supported patterns. Priority: service targets first, then error targets, then custom.
internal/rules/deterministic_keys.go:141
↓ 1 callersFunctionmatchClassWithDefaultLayer
matchClassWithDefaultLayer checks if a class declaration has a Default layer property with Scope in RIn.
internal/rules/scope_in_layer_effect.go:139
↓ 1 callersFunctionmatchCustomPattern
matchCustomPattern checks heritage clause nodes for call expressions with string literal arguments whose parameter declarations contain the @effect-id
internal/rules/deterministic_keys.go:176
↓ 1 callersFunctionmatchEffectGenCall
matchEffectGenCall tries all four Effect generator call patterns and returns the generator function and body for the first match.
etslshooks/inlay_hints.go:100
↓ 1 callersFunctionmatchLayerEffectCall
matchLayerEffectCall checks if a call expression is Layer.effect*() with Scope in RIn.
internal/rules/scope_in_layer_effect.go:89
↓ 1 callersFunctionmatchRunEffectApi
matchRunEffectApi checks if the node references one of the Effect.run* APIs and returns the method name. Returns empty string if no match.
internal/rules/run_effect_inside_effect.go:148
↓ 1 callersFunctionmatchSchemaSyncMethod
matchSchemaSyncMethod checks if the node references one of the Schema sync methods via either the ParseResult module (V3) or the SchemaParser module (
internal/rules/schema_sync_in_effect.go:97
↓ 1 callersFunctionmatchesSearch
(entry: RuleEntry, searchText: string)
_packages/tsgo/src/setup/rule-prompt.ts:347
↓ 1 callersFunctionmaxConcurrentPrograms
()
internal/effecttest/vfs.go:19
↓ 1 callersFunctionmaxRuleSeverity
(left: RuleSeverity, right: RuleSeverity)
_packages/tsgo/src/presets.ts:55
↓ 1 callersFunctionmergeEffectOptions
(target, source *etscore.EffectPluginOptions, sourcePluginRaw *collections.OrderedMap[string, any])
internal/effectconfigraw/hooks.go:46
↓ 1 callersFunctionmergeHighlightRanges
(ranges: ReadonlyArray<HighlightRange>)
_packages/tsgo/src/setup/rule-prompt.ts:189
↓ 1 callersFunctionmigrationHintText
(m Migration)
internal/rules/outdated_api.go:152
↓ 1 callersFunctionmissingEffectContextRelatedInformation
(c *checker.Checker, ctx *rule.Context, errorNode *ast.Node, missingTypes []*checker.Type)
internal/rules/missing_effect_context.go:94
↓ 1 callersFunctionmultipleCatchTagRelatedInformation
(ctx *rule.Context, match MultipleCatchTagMatch)
internal/rules/multiple_catch_tag.go:211
↓ 1 callersFunctionmultiplyBy
(n: number)
testdata/tests/effect-v3/missedPipeableOpportunity.ts:21
↓ 1 callersFunctionmultiplyBy
(n: number)
testdata/tests/effect-v4/missedPipeableOpportunity.ts:20
↓ 1 callersFunctionmustFindFourslashFileContent
(t *testing.T, testContent string, fileName string)
internal/effecttest/inlay_hints_baseline_test.go:68
↓ 1 callersFunctionnestedObject
(root map[string]any, keys ...string)
etscore/options_schema_test.go:395
↓ 1 callersFunctionnextExecutionFlowMermaidFileName
(baselineName string, sourceFileName string, usedNames map[string]int)
internal/effecttest/baseline.go:395
↓ 1 callersFunctionnodeContains
(ancestor *ast.Node, target *ast.Node)
internal/rules/missing_effect_context.go:268
↓ 1 callersFunctionnodeSourceText
(sf *ast.SourceFile, node *ast.Node)
internal/rules/redundant_map_error.go:369
↓ 1 callersFunctionnormalizeEffectVersionForBaseline
(version string)
internal/effecttest/baseline.go:193
↓ 1 callersFunctionnormalizeImportAliases
(aliases map[string]string)
etscore/options.go:352
↓ 1 callersFunctionnormalizeStartIndex
(length: number, startIndex: number)
_packages/tsgo/src/setup/rule-prompt.ts:361
↓ 1 callersFunctionomitArgAt
(nodes []*ast.Node, index int)
internal/typeparser/data_first_signature.go:149
↓ 1 callersFunctionotherPluginSchema
(existing map[string]any)
etscore/options_schema_test.go:244
↓ 1 callersFunctionoutlineNodeProvidesType
(c *checker.Checker, node layergraph.LayerOutlineGraphNodeInfo, target *checker.Type)
internal/rules/missing_effect_context.go:235
↓ 1 callersFunctionoverlapsAnyTagType
(c *checker.Checker, current *checker.Type, previous []*checker.Type)
internal/rules/multiple_catch_tag.go:183
↓ 1 callersFunctionpackageFSCache
(version EffectVersion, packageName string)
internal/bundledeffect/effect.go:52
↓ 1 callersFunctionpackageNameFromSpecifier
packageNameFromSpecifier extracts the npm package name from a bare module specifier. For scoped packages like "@scope/pkg/sub", returns "@scope/pkg".
internal/autoimportstyle/stylepolicy.go:227
↓ 1 callersMethodparseEffectFnCall
parseEffectFnCall detects Effect.fn-family calls with trailing transformation arguments. It reuses the dedicated Effect.fn parsers and only adapts the
internal/typeparser/piping_flow.go:203
↓ 1 callersFunctionparseEffectFnIife
(tp *typeparser.TypeParser, node *ast.Node)
internal/rules/effect_fn_iife.go:89
↓ 1 callersMethodparseEffectFnOpportunityInner
parseEffectFnOpportunityInner contains the actual parsing logic for ParseEffectFnOpportunity.
internal/typeparser/effect_fn_opportunity.go:66
↓ 1 callersFunctionparseFn
()
testdata/tests/effect-v3/preferSchemaOverJson.ts:55
↓ 1 callersFunctionparseFn
()
testdata/tests/effect-v4/preferSchemaOverJson.ts:48
↓ 1 callersFunctionparseLeakedRequirements
parseLeakedRequirements analyzes the service shape to find requirement types that are shared across all effect-typed members. This is the "leaking req
internal/rules/leaking_requirements.go:207
↓ 1 callersFunctionparseNormalizedStringMapStrict
(value any)
etscore/options_parser.go:281
↓ 1 callersFunctionparseOverrideOptions
(value any)
etscore/options_parser.go:340
↓ 1 callersFunctionparseOverrides
(value any)
etscore/options_parser.go:310
↓ 1 callersFunctionparsePreviewUnits
parsePreviewUnits parses a preview file into test units. Reuses the same logic as effecttest.parseTestUnits.
internal/rules/rules_json_test.go:469
↓ 1 callersFunctionparseRefactorComment
parseRefactorComment scans the test file content for a first-line "// refactor: L:C-L:C,L:C-L:C,..." comment (1-based lines and columns). Multiple ran
internal/effecttest/refactor_runner.go:64
↓ 1 callersMethodparseServiceVarianceStruct
parseServiceVarianceStruct extracts Identifier and Shape from a Service variance struct type.
internal/typeparser/service_type.go:18
↓ 1 callersFunctionparseSingleArgCall
parseSingleArgCall detects single-argument call patterns like f(arg). Returns nil when the node is not a single-argument call.
internal/typeparser/piping_flow.go:164
↓ 1 callersFunctionparseTestConfig
parseTestConfig extracts a @test-config JSON object from source comments. Returns a map of extra config to merge into the Effect plugin options.
internal/rules/rules_json_test.go:234
↓ 1 callersFunctionpreferSchemaOverJsonRecommendation
(isV4 bool)
internal/rules/prefer_schema_over_json.go:68
↓ 1 callersFunctionprocessEnvRoot
(node *ast.Node)
internal/rules/process_env.go:77
↓ 1 callersMethodprocessIntersectionType
processIntersectionType converts intersection types to Schema.extend chains.
internal/schemagen/structural.go:361
← previousnext →801–900 of 2,947, ranked by callers