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
green
(str: string)
_packages/tsgo/src/setup/diff-renderer.ts:9
↓ 1 callers
Function
handleProcess
(entries: ReadonlyArray<RuleEntry>, groups: ReadonlyArray<GroupInfo>)
_packages/tsgo/src/setup/rule-prompt.ts:528
↓ 1 callers
Function
hasAccessorsTrue
hasAccessorsTrue checks if an options object literal has `accessors: true`.
internal/refactors/write_tag_class_accessors.go:147
↓ 1 callers
Function
hasExpectedLeakingComment
(sourceText string, pos int, leakedServiceName string)
internal/rules/leaking_requirements.go:178
↓ 1 callers
Function
hasLeakableServiceAnnotation
hasLeakableServiceAnnotation checks if a type's declarations contain the @effect-leakable-service JSDoc annotation.
internal/rules/leaking_requirements.go:303
↓ 1 callers
Function
hasOuterContextualFunctionType
(tp *typeparser.TypeParser, c *checker.Checker, node *ast.Node)
internal/rules/effect_fn_implicit_any.go:114
↓ 1 callers
Function
hasReturnTypeAnnotation
hasReturnTypeAnnotation checks if a function node has an explicit return type annotation.
internal/typeparser/effect_fn_opportunity.go:203
↓ 1 callers
Function
hoistSensitiveReferenceSymbol
(c *checker.Checker, node *ast.Node)
internal/rules/redundant_map_error.go:306
↓ 1 callers
Function
indentedJSON
(value any, prefix string)
internal/rules/rules_json_test.go:795
↓ 1 callers
Function
intPtr
(value int)
etscore/options_test.go:167
↓ 1 callers
Function
intersectStringSlices
intersectStringSlices returns the elements that appear in both slices.
internal/rules/leaking_requirements.go:341
↓ 1 callers
Function
isAllowedConstructor
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 callers
Function
isAsAnyAsLayerForm
isAsAnyAsLayerForm checks if a node is already in the `(expr as any) as Layer.Layer<T>` form.
internal/refactors/layer_magic.go:380
↓ 1 callers
Function
isAssignmentExpression
isAssignmentExpression checks if an expression is an assignment (=, ??=, &&=, ||=).
internal/rules/floating_effect.go:131
↓ 1 callers
Function
isCatchCallee
isCatchCallee checks if a node references one of the Effect module catch functions.
internal/rules/catch_unfailable_effect.go:66
↓ 1 callers
Function
isDeclarationName
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 callers
Function
isDisableStyleFix
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 callers
Function
isEffectDiagnostic
(diag *ast.Diagnostic)
etscheckerhooks/external_library_test.go:95
↓ 1 callers
Function
isEffectVoidReference
(tp *typeparser.TypeParser, node *ast.Node)
internal/rules/catch_to_ignore.go:117
↓ 1 callers
Function
isEnvPropertyAccess
(node *ast.Node)
internal/rules/process_env.go:91
↓ 1 callers
Function
isErrorDeclaration
(tp *typeparser.TypeParser, c *checker.Checker, node *ast.Node)
etslshooks/document_symbols.go:441
↓ 1 callers
Function
isExpectedLeakingServiceSuppressed
(c *checker.Checker, startNode *ast.Node, leakedServiceName string)
internal/rules/leaking_requirements.go:151
↓ 1 callers
Function
isGeneratorFunctionNode
(node *ast.Node)
internal/typeparser/effect_fn.go:93
↓ 1 callers
Function
isGlobalErrorCatchCallee
isGlobalErrorCatchCallee checks if a node references one of the Effect module catch APIs.
internal/rules/global_error_in_effect_catch.go:109
↓ 1 callers
Function
isHarnessConfigFile
(fileName string)
internal/effecttest/effect_in_failure_ts2589_test.go:214
↓ 1 callers
Function
isHoistSensitiveValueReference
(node *ast.Node)
internal/rules/redundant_map_error.go:330
↓ 1 callers
Function
isInHeritageClause
isInHeritageClause checks if a node is inside a heritage clause (extends/implements).
internal/refactors/wrap_with_effect_gen.go:86
↓ 1 callers
Function
isInsideTypeOnlyHeritageExpression
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 callers
Function
isLayerDeclaration
(tp *typeparser.TypeParser, c *checker.Checker, node *ast.Node)
etslshooks/document_symbols.go:418
↓ 1 callers
Function
isLayerModuleCall
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 callers
Function
isLibFile
(fileName string)
internal/effecttest/inlay_hints_baseline_test.go:174
↓ 1 callers
Function
isPipeCallNode
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 callers
Function
isPipeableAtIndex
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 callers
Function
isPrintableInput
(input: Terminal.UserInput)
_packages/tsgo/src/setup/rule-prompt.ts:368
↓ 1 callers
Function
isPromiseTypeString
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 callers
Function
isSchemaDeclaration
(tp *typeparser.TypeParser, c *checker.Checker, node *ast.Node)
etslshooks/document_symbols.go:454
↓ 1 callers
Function
isSelfReferentialTypeAliasReference
(symbol *ast.Symbol, location *ast.Node)
internal/rules/unnecessary_typeof_type.go:191
↓ 1 callers
Function
isServiceDeclaration
(tp *typeparser.TypeParser, c *checker.Checker, node *ast.Node)
etslshooks/document_symbols.go:428
↓ 1 callers
Function
isSimpleIdentifier
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 callers
Function
isTsConfigFile
(file: string)
_packages/tsgo/src/setup/tsconfig-prompt.ts:11
↓ 1 callers
Function
isUnknownCatchCallee
isUnknownCatchCallee checks if a node references one of the Effect module catch APIs.
internal/rules/unknown_in_effect_catch.go:109
↓ 1 callers
Function
isV4SchemaClassExpression
(tp *typeparser.TypeParser, c *checker.Checker, expr *ast.Node)
internal/rules/new_schema_class.go:87
↓ 1 callers
Function
isVoidCallback
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 callers
Function
isVoidLikeEffectSuccess
(t *checker.Type)
internal/rules/catch_to_ignore.go:124
↓ 1 callers
Function
jsonFieldName
(field reflect.StructField)
etscore/options_schema_test.go:367
↓ 1 callers
Function
jsonFieldName
(field reflect.StructField)
internal/rules/rules_json_test.go:775
↓ 1 callers
Function
layerFromInternal
(layer *typeparser.Layer)
etsapi/type_parser.go:128
↓ 1 callers
Function
layerMagicResultFromInternal
(result *layergraph.LayerMagicResult)
etsapi/layer_magic.go:45
↓ 1 callers
Function
layerSymbolName
(sf *ast.SourceFile, node *ast.Node)
etslshooks/document_symbols.go:515
↓ 1 callers
Function
lazy
(f: () => A)
testdata/tests/effect-v3/returnEffectInGenNoDiagnostics.ts:10
↓ 1 callers
Function
lazy
(f: () => A)
testdata/tests/effect-v4/returnEffectInGenNoDiagnostics.ts:8
↓ 1 callers
Function
mapperCanBeHoisted
(c *checker.Checker, generatorFunctionNode *ast.Node, hoistLocation *ast.Node, mapperNode *ast.Node)
internal/rules/redundant_map_error.go:244
↓ 1 callers
Function
matchClassPattern
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 callers
Function
matchClassWithDefaultLayer
matchClassWithDefaultLayer checks if a class declaration has a Default layer property with Scope in RIn.
internal/rules/scope_in_layer_effect.go:139
↓ 1 callers
Function
matchCustomPattern
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 callers
Function
matchEffectGenCall
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 callers
Function
matchLayerEffectCall
matchLayerEffectCall checks if a call expression is Layer.effect*() with Scope in RIn.
internal/rules/scope_in_layer_effect.go:89
↓ 1 callers
Function
matchRunEffectApi
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 callers
Function
matchSchemaSyncMethod
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 callers
Function
matchesSearch
(entry: RuleEntry, searchText: string)
_packages/tsgo/src/setup/rule-prompt.ts:347
↓ 1 callers
Function
maxConcurrentPrograms
()
internal/effecttest/vfs.go:19
↓ 1 callers
Function
maxRuleSeverity
(left: RuleSeverity, right: RuleSeverity)
_packages/tsgo/src/presets.ts:55
↓ 1 callers
Function
mergeEffectOptions
(target, source *etscore.EffectPluginOptions, sourcePluginRaw *collections.OrderedMap[string, any])
internal/effectconfigraw/hooks.go:46
↓ 1 callers
Function
mergeHighlightRanges
(ranges: ReadonlyArray<HighlightRange>)
_packages/tsgo/src/setup/rule-prompt.ts:189
↓ 1 callers
Function
migrationHintText
(m Migration)
internal/rules/outdated_api.go:152
↓ 1 callers
Function
missingEffectContextRelatedInformation
(c *checker.Checker, ctx *rule.Context, errorNode *ast.Node, missingTypes []*checker.Type)
internal/rules/missing_effect_context.go:94
↓ 1 callers
Function
multipleCatchTagRelatedInformation
(ctx *rule.Context, match MultipleCatchTagMatch)
internal/rules/multiple_catch_tag.go:211
↓ 1 callers
Function
multiplyBy
(n: number)
testdata/tests/effect-v3/missedPipeableOpportunity.ts:21
↓ 1 callers
Function
multiplyBy
(n: number)
testdata/tests/effect-v4/missedPipeableOpportunity.ts:20
↓ 1 callers
Function
mustFindFourslashFileContent
(t *testing.T, testContent string, fileName string)
internal/effecttest/inlay_hints_baseline_test.go:68
↓ 1 callers
Function
nestedObject
(root map[string]any, keys ...string)
etscore/options_schema_test.go:395
↓ 1 callers
Function
nextExecutionFlowMermaidFileName
(baselineName string, sourceFileName string, usedNames map[string]int)
internal/effecttest/baseline.go:395
↓ 1 callers
Function
nodeContains
(ancestor *ast.Node, target *ast.Node)
internal/rules/missing_effect_context.go:268
↓ 1 callers
Function
nodeSourceText
(sf *ast.SourceFile, node *ast.Node)
internal/rules/redundant_map_error.go:369
↓ 1 callers
Function
normalizeEffectVersionForBaseline
(version string)
internal/effecttest/baseline.go:193
↓ 1 callers
Function
normalizeImportAliases
(aliases map[string]string)
etscore/options.go:352
↓ 1 callers
Function
normalizeStartIndex
(length: number, startIndex: number)
_packages/tsgo/src/setup/rule-prompt.ts:361
↓ 1 callers
Function
omitArgAt
(nodes []*ast.Node, index int)
internal/typeparser/data_first_signature.go:149
↓ 1 callers
Function
otherPluginSchema
(existing map[string]any)
etscore/options_schema_test.go:244
↓ 1 callers
Function
outlineNodeProvidesType
(c *checker.Checker, node layergraph.LayerOutlineGraphNodeInfo, target *checker.Type)
internal/rules/missing_effect_context.go:235
↓ 1 callers
Function
overlapsAnyTagType
(c *checker.Checker, current *checker.Type, previous []*checker.Type)
internal/rules/multiple_catch_tag.go:183
↓ 1 callers
Function
packageFSCache
(version EffectVersion, packageName string)
internal/bundledeffect/effect.go:52
↓ 1 callers
Function
packageNameFromSpecifier
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 callers
Method
parseEffectFnCall
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 callers
Function
parseEffectFnIife
(tp *typeparser.TypeParser, node *ast.Node)
internal/rules/effect_fn_iife.go:89
↓ 1 callers
Method
parseEffectFnOpportunityInner
parseEffectFnOpportunityInner contains the actual parsing logic for ParseEffectFnOpportunity.
internal/typeparser/effect_fn_opportunity.go:66
↓ 1 callers
Function
parseFn
()
testdata/tests/effect-v3/preferSchemaOverJson.ts:55
↓ 1 callers
Function
parseFn
()
testdata/tests/effect-v4/preferSchemaOverJson.ts:48
↓ 1 callers
Function
parseLeakedRequirements
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 callers
Function
parseNormalizedStringMapStrict
(value any)
etscore/options_parser.go:281
↓ 1 callers
Function
parseOverrideOptions
(value any)
etscore/options_parser.go:340
↓ 1 callers
Function
parseOverrides
(value any)
etscore/options_parser.go:310
↓ 1 callers
Function
parsePreviewUnits
parsePreviewUnits parses a preview file into test units. Reuses the same logic as effecttest.parseTestUnits.
internal/rules/rules_json_test.go:469
↓ 1 callers
Function
parseRefactorComment
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 callers
Method
parseServiceVarianceStruct
parseServiceVarianceStruct extracts Identifier and Shape from a Service variance struct type.
internal/typeparser/service_type.go:18
↓ 1 callers
Function
parseSingleArgCall
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 callers
Function
parseTestConfig
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 callers
Function
preferSchemaOverJsonRecommendation
(isV4 bool)
internal/rules/prefer_schema_over_json.go:68
↓ 1 callers
Function
processEnvRoot
(node *ast.Node)
internal/rules/process_env.go:77
↓ 1 callers
Method
processIntersectionType
processIntersectionType converts intersection types to Schema.extend chains.
internal/schemagen/structural.go:361
← previous
next →
801–900 of 2,947, ranked by callers