MCPcopy Create free account

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

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

↓ 2 callersFunctioncloneJSON
(value T)
etscore/options_schema_test.go:293
↓ 2 callersFunctioncloneKeyPatterns
(patterns []etscore.KeyPattern)
internal/pluginoptions/resolver.go:145
↓ 2 callersFunctioncloneOverrides
(source []etscore.Override)
internal/effectconfigraw/hooks.go:237
↓ 2 callersFunctioncloneStringMap
(source map[string]string)
internal/effectconfigraw/hooks.go:282
↓ 2 callersFunctioncloneStringSlicePtr
(source *[]string)
internal/effectconfigraw/hooks.go:322
↓ 2 callersFunctioncollectIndices
collectIndices collects the indices from an iter.Seq2 into a slice.
internal/graph/graph_test.go:45
↓ 2 callersFunctioncompileAndGetCheckerAndSourceFileWithEffectV3Internal
(t *testing.T, source string)
internal/typeparser/helpers_test.go:119
↓ 2 callersFunctioncomputeServiceTagKey
computeServiceTagKey computes the deterministic tag key for a service class. Falls back to the class name if keybuilder returns empty.
internal/completions/context_self_in_classes.go:97
↓ 2 callersMethodconsumePendingPrefix
(sourceFile *ast.SourceFile, target *ast.Node)
internal/rewriter/tracker.go:129
↓ 2 callersFunctioncontainsEffect
(supported []string, version string)
internal/rules/rules_json_test.go:594
↓ 2 callersFunctioncreateDiagnosticSeverityObject
( severities: Record<string, RuleSeverity> )
_packages/tsgo/src/setup/changes.ts:158
↓ 2 callersMethodcreateExportSchemaClassDeclaration
createExportSchemaClassDeclaration creates: export class <Name> extends Schema.Class<Name>("Name")({...}) { }
internal/schemagen/schemagen.go:632
↓ 2 callersMethodcreateExportVariableDeclaration
createExportVariableDeclaration creates: export const <name> = <initializer>
internal/schemagen/schemagen.go:612
↓ 2 callersFunctioncreateLspPluginObject
(target: Target.TsConfig)
_packages/tsgo/src/setup/changes.ts:173
↓ 2 callersFunctioncreateOpaqueTypeDecl
createOpaqueTypeDecl creates an interface (if isObject) or type alias for the given schema property.
internal/refactors/make_schema_opaque.go:192
↓ 2 callersFunctioncreateRulePrompt
( rules: ReadonlyArray<RuleInfo>, initialSeverities: Record<string, RuleSeverity> )
_packages/tsgo/src/setup/rule-prompt.ts:588
↓ 2 callersFunctioncreateTypeofReference
createTypeofReference creates: typeof <name>
internal/refactors/make_schema_opaque.go:96
↓ 2 callersFunctionderivePipeableSignatureFromDataFirst
(c *checker.Checker, sig *checker.Signature, subjectIndex int)
internal/typeparser/data_first_signature.go:113
↓ 2 callersFunctioneffectFromInternal
(effect *typeparser.Effect)
etsapi/type_parser.go:121
↓ 2 callersFunctioneffectLanguageServicePluginOptionsSchema
()
etscore/options_schema_test.go:152
↓ 2 callersFunctionenclosingGeneratorCall
(node *ast.Node)
internal/rules/redundant_map_error.go:234
↓ 2 callersFunctionenclosingYieldExpression
(node *ast.Node)
internal/rules/redundant_map_error.go:224
↓ 2 callersMethodensureEffectContextAnalyzed
(node *ast.Node)
internal/typeparser/effect_context.go:63
↓ 2 callersFunctionescapeMermaidLabel
escapeMermaidLabel escapes special characters in a Mermaid label.
internal/graph/graph.go:726
↓ 2 callersMethodextendsSchemaClassLike
extendsSchemaClassLike is the shared implementation for ExtendsSchemaClass and ExtendsSchemaRequestClass.
internal/typeparser/extends_schema_class.go:48
↓ 2 callersFunctionfindClassTypeByName
(t *testing.T, c *checker.Checker, sf *ast.SourceFile, className string)
internal/typeparser/service_type_test.go:77
↓ 2 callersFunctionfindEnclosingVariableName
findEnclosingVariableName walks up from the given node to find an enclosing VariableDeclaration and returns its identifier name, or "" if not found.
internal/completions/fn_function_star.go:76
↓ 2 callersFunctionfindFirstStrictEffect
findFirstStrictEffect returns the first type in the slice that is strictly an Effect type, or nil if none are found. This mirrors the Nano.firstSucces
internal/rules/effect_in_void_success.go:59
↓ 2 callersFunctionfindSchemaVariableDeclaration
findSchemaVariableDeclaration walks the ancestor chain from the cursor to find a VariableDeclaration whose initializer has a Schema type. Returns nil
internal/refactors/make_schema_opaque.go:31
↓ 2 callersFunctionfindTopLevelStatement
findTopLevelStatement walks up the parent chain from node until it finds a node whose parent is the SourceFile.
internal/refactors/async_await_to_gen_try_promise.go:112
↓ 2 callersFunctionformatEffectTypeParams
formatEffectTypeParams formats Effect type parameters (A, E, R) and prepends them to documentation.
etslshooks/init.go:340
↓ 2 callersFunctiongenerateReadme
(committedReadme []byte)
internal/rules/rules_json_test.go:817
↓ 2 callersFunctiongeneratorFunctionKeywordRange
(sf *ast.SourceFile, generatorFunction *ast.FunctionExpression)
internal/rules/redundant_map_error.go:318
↓ 2 callersFunctiongetAllRules
()
_packages/tsgo/src/setup/rule-info.ts:33
↓ 2 callersFunctiongetClosestNodeWithLinks
(store *core.LinkStore[*ast.Node, T], node *ast.Node)
internal/typeparser/effect_context.go:49
↓ 2 callersFunctiongetFilteredEntries
(entries: ReadonlyArray<RuleEntry>, searchText: string)
_packages/tsgo/src/setup/rule-prompt.ts:357
↓ 2 callersMethodgetInferredReturnType
getInferredReturnType extracts the return type from a function-like declaration. It handles overloaded functions (multiple call signatures), type pred
internal/typeparser/expected_and_real_type.go:22
↓ 2 callersFunctiongetInputText
(input: Terminal.UserInput)
_packages/tsgo/src/setup/rule-prompt.ts:380
↓ 2 callersFunctiongetModifiersWithoutAsync
getModifiersWithoutAsync returns a new modifier list with the async keyword removed.
internal/refactors/async_await_to_gen.go:335
↓ 2 callersFunctiongetPackagedBinaryPath
(binaryName: string = "tsgo")
_packages/tsgo/src/cli.ts:195
↓ 2 callersMethodgetPropertyType
getPropertyType extracts the type of a named property from a type.
internal/typeparser/schema_type.go:108
↓ 2 callersFunctionhasScope
hasScope checks if any union member of the given type is a Scope type.
internal/rules/scope_in_layer_effect.go:193
↓ 2 callersFunctioninsertYieldedEffectModuleCall
( tracker *rewriter.Tracker, sf *ast.SourceFile, block *ast.Block, effectModuleIdentifier string, methodN
internal/fixables/run_effect_inside_effect.go:143
↓ 2 callersFunctionisAnyType
(t *checker.Type)
internal/rules/unsafe_effect_type_assertion.go:143
↓ 2 callersFunctionisLikelySelfParameter
(sym *ast.Symbol)
internal/typeparser/data_first_signature.go:141
↓ 2 callersFunctionisPresetEnabled
( presetName: DiagnosticPresetName, severities: Readonly<Record<string, RuleSeverity>> )
_packages/tsgo/src/presets.ts:117
↓ 2 callersFunctionisRuleFixable
isRuleFixable returns true if any of the rule's codes has a non-disable fixable.
internal/rules/rules_json_test.go:189
↓ 2 callersFunctionisSymbolDeclaredInRange
isSymbolDeclaredInRange checks if any of the symbol's declarations fall within the given range.
internal/typeparser/effect_fn_opportunity.go:460
↓ 2 callersFunctionisTypeOnlyHeritageClause
(node *ast.Node)
internal/typeparser/get_type_at_location.go:82
↓ 2 callersFunctionisVoidExpression
isVoidExpression checks if a node is `undefined`, `void 0`, or a parenthesized version of either.
internal/rules/effect_succeed_with_void.go:42
↓ 2 callersFunctionlayerSymbolKind
(node *ast.Node)
etslshooks/document_symbols.go:543
↓ 2 callersFunctionlazyEffectDiagnosticForExportedDeclaration
(ctx *rule.Context, name *ast.Node)
internal/rules/lazy_effect.go:112
↓ 2 callersFunctionlocalInlayBaselineFileName
(t *testing.T)
internal/effecttest/inlay_hints_baseline_test.go:160
↓ 2 callersFunctionlogDerivedPipeableSignatureComparison
(t *testing.T, tp *TypeParser, node *ast.Node)
internal/typeparser/data_first_signature_test.go:158
↓ 2 callersFunctionlspPositionToOffset
(text string, lineMap *lsconv.LSPLineMap, pos lsproto.Position)
internal/effecttest/autoimport_style_consistency_test.go:211
↓ 2 callersFunctionmarshalMetadataJSON
(t *testing.T)
internal/rules/rules_json_test.go:519
↓ 2 callersFunctionmatchesOverride
(override etscore.Override, fileName string, basePath string, useCaseSensitiveFileNames bool)
internal/pluginoptions/resolver.go:67
↓ 2 callersFunctionmergePresetDiagnosticSeverities
( presetNames: ReadonlyArray<DiagnosticPresetName> )
_packages/tsgo/src/presets.ts:85
↓ 2 callersFunctionmermaidEscapeOutputLabel
mermaidEscapeOutputLabel applies standard Mermaid escaping for backslash, brackets, and pipe on top of entity-encoded text. This is used for the outpu
internal/layergraph/format.go:114
↓ 2 callersFunctionnamespaceFixKey
(fix *autoimport.Fix)
internal/autoimportstyle/stylepolicy.go:55
↓ 2 callersFunctionneighborsOutgoingSorted
neighborsOutgoingSorted returns outgoing neighbor indices sorted by the layer ordering: provides count descending, then requires count descending.
internal/layergraph/magic.go:149
↓ 2 callersFunctionnormalizeDiagnosticSeverities
( severities: Readonly<Record<string, RuleSeverity>> )
_packages/tsgo/src/presets.ts:59
↓ 2 callersFunctionnormalizePackageList
(packages []string)
etscore/options.go:339
↓ 2 callersFunctionparseDiagnosticSeverityMap
parseDiagnosticSeverityMap converts a plugin rule configuration map to map[string]Severity.
etscore/options_parser.go:427
↓ 2 callersFunctionparseFunctionReturningEffectGen
parseFunctionReturningEffectGen extracts the Effect.gen call and any pipe args from a function-like node. Returns nil if the function doesn't match.
internal/refactors/effect_gen_to_fn.go:104
↓ 2 callersFunctionparseKeyPatterns
parseKeyPatterns converts a JSON array of key pattern objects to []KeyPattern.
etscore/options_parser.go:447
↓ 2 callersMethodparseLayerVarianceStruct
parseLayerVarianceStruct extracts ROut, E, RIn from a Layer variance struct type.
internal/typeparser/layer_type.go:27
↓ 2 callersFunctionparseNormalizedStringArrayStrict
(value any)
etscore/options_parser.go:263
↓ 2 callersFunctionparseStringArrayLossy
(value any)
etscore/options_parser.go:398
↓ 2 callersFunctionparseStringArrayStrict
(value any)
etscore/options_parser.go:382
↓ 2 callersFunctionprobeBackend
(backend: NativeBackend, cwdRequire: NodeRequire, path: Path.Path)
_packages/tsgo/src/cli.ts:121
↓ 2 callersMethodprocessArrayType
processArrayType converts array types to Schema.Array (wrapping in Schema.mutable for non-readonly).
internal/schemagen/structural.go:395
↓ 2 callersFunctionpromptForTsConfigPath
(currentDir: string)
_packages/tsgo/src/setup/tsconfig-prompt.ts:29
↓ 2 callersFunctionptrTransformations
(in []PipingFlowTransformation)
internal/typeparser/data_first_signature_test.go:283
↓ 2 callersMethodpushHoistedStatement
pushHoistedStatement records a generated statement and its reference generator.
internal/schemagen/structural.go:97
↓ 2 callersFunctionremovePartialChildren
removePartialChildren removes graph nodes for the given AST nodes.
internal/layergraph/extract.go:431
↓ 2 callersFunctionrenderCodeActions
( result: ComputeChangesResult, assessmentState: Assessment.State )
_packages/tsgo/src/setup/diff-renderer.ts:227
↓ 2 callersFunctionreplaceReadmeSection
(content string, startMarker string, endMarker string, body string)
internal/rules/rules_json_test.go:838
↓ 2 callersMethodresolveAlias
resolveAlias returns the configured alias for the given namespace name under the given package, or the namespace name itself if no alias is configured
internal/autoimportstyle/stylepolicy.go:216
↓ 2 callersFunctionresolveAliasSymbol
(c *checker.Checker, symbol *ast.Symbol)
internal/rules/unnecessary_typeof_type.go:184
↓ 2 callersFunctionresolveDiagnosticSeverity
( name: string, severities: Readonly<Record<string, RuleSeverity>> )
_packages/tsgo/src/presets.ts:77
↓ 2 callersFunctionresolvedSymbolType
(c *checker.Checker, symbol *ast.Symbol, location *ast.Node)
internal/rules/unnecessary_typeof_type.go:170
↓ 2 callersFunctionrewriteSpecs
(specs []string, relativeDifference string)
internal/effectconfigraw/hooks.go:155
↓ 2 callersFunctionrunCryptoRandomUUID
(ctx *rule.Context, checkInEffect bool)
internal/rules/crypto_random_uuid.go:36
↓ 2 callersFunctionrunGlobalConsole
(ctx *rule.Context, checkInEffect bool)
internal/rules/global_console.go:45
↓ 2 callersFunctionrunGlobalDate
(ctx *rule.Context, checkInEffect bool)
internal/rules/global_date.go:42
↓ 2 callersFunctionrunGlobalFetch
(ctx *rule.Context, checkInEffect bool)
internal/rules/global_fetch.go:36
↓ 2 callersFunctionrunGlobalRandom
(ctx *rule.Context, checkInEffect bool)
internal/rules/global_random.go:36
↓ 2 callersFunctionrunGlobalTimers
(ctx *rule.Context, checkInEffect bool)
internal/rules/global_timers.go:52
↓ 2 callersFunctionrunProcessEnv
(ctx *rule.Context, checkInEffect bool)
internal/rules/process_env.go:36
↓ 2 callersFunctionselectTsConfigFile
( currentDir: string )
_packages/tsgo/src/setup/tsconfig-prompt.ts:37
↓ 2 callersFunctionserviceFromInternal
(service *typeparser.Service)
etsapi/type_parser.go:135
↓ 2 callersFunctionshouldAddNativePreviewWithDependencyType
(dependencyType: "dependencies" | "devDependencies")
_packages/tsgo/src/setup/changes.ts:246
↓ 2 callersFunctionsignatureString
(c *checker.Checker, sig *checker.Signature)
internal/typeparser/data_first_signature_test.go:240
↓ 2 callersFunctionsplitEffectFnArguments
(args []*ast.Node)
internal/typeparser/effect_fn.go:67
↓ 2 callersFunctionsql
(_strings: TemplateStringsArray, ..._args: ReadonlyArray<unknown>)
testdata/tests/effect-v4-refactors/togglePipeStyle_nestedCallback.ts:6
↓ 2 callersFunctiontoString
(e: Effect.Effect<number>)
testdata/tests/effect-v3/missedPipeableOpportunity.ts:22
↓ 2 callersFunctiontoString
(e: Effect.Effect<number>)
testdata/tests/effect-v4/missedPipeableOpportunity.ts:21
↓ 2 callersFunctiontrimmedNodeText
trimmedNodeText extracts the source text of a node, trimmed of leading trivia.
internal/rules/missed_pipeable_opportunity.go:192
↓ 2 callersFunctiontriple
(e: Effect.Effect<number>)
testdata/tests/effect-v3/missedPipeableOpportunity.ts:28
← previousnext →401–500 of 2,947, ranked by callers