repo stringlengths 7 64 | file_url stringlengths 81 338 | file_path stringlengths 5 257 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:25:31 2026-01-05 01:50:38 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/merge-nested-if/src/MergeNestedIfCandidate.ts | code-assist/merge-nested-if/src/MergeNestedIfCandidate.ts | import { Match } from "@p42/engine";
import ts from "typescript";
export interface MergeNestedIfCandidate
extends Match<
ts.IfStatement,
{
innerIf: ts.IfStatement;
},
undefined
> {}
| typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/merge-nested-if/src/index.ts | code-assist/merge-nested-if/src/index.ts |
import { CodeAssistMetadata, CodeAssistType } from "@p42/engine";
import metadata from "./code-assist.json";
import { MergeNestedIfCandidate } from "./MergeNestedIfCandidate";
import { MergeNestedIfMatcher } from "./MergeNestedIfMatcher";
import { MergeNestedIfTransformation } from "./MergeNestedIfTransformation";
ex... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/introduce-early-return/src/IntroduceEarlyReturnMatch.ts | code-assist/introduce-early-return/src/IntroduceEarlyReturnMatch.ts |
import { Context, FunctionLike, Loop, Match } from "@p42/engine";
import ts from "typescript";
export type IntroduceEarlyReturnMatchType = Match<
ts.IfStatement,
{
container: Loop.Loop | FunctionLike.FunctionLike;
},
undefined
>;
export class IntroduceEarlyReturnMatch
implements IntroduceEarlyReturnMat... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/introduce-early-return/src/IntroduceEarlyReturnMatcher.ts | code-assist/introduce-early-return/src/IntroduceEarlyReturnMatcher.ts |
import {
capture,
Context,
FunctionLike,
isLastStatementInBlock,
Loop,
matchers as m,
PatternMatcher,
predicates as p,
} from "@p42/engine";
import ts from "typescript";
import {
IntroduceEarlyReturnMatch,
IntroduceEarlyReturnMatchType,
} from "./IntroduceEarlyReturnMatch";
const { ast } = m;
con... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/introduce-early-return/src/index.ts | code-assist/introduce-early-return/src/index.ts |
import { CodeAssistMetadata, CodeAssistType } from "@p42/engine";
import metadata from "./code-assist.json";
import { IntroduceEarlyReturnMatch } from "./IntroduceEarlyReturnMatch";
import { IntroduceEarlyReturnMatcher } from "./IntroduceEarlyReturnMatcher";
import { IntroduceEarlyReturnTransformation } from "./Introd... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/introduce-early-return/src/IntroduceEarlyReturnTransformation.ts | code-assist/introduce-early-return/src/IntroduceEarlyReturnTransformation.ts |
import {
ActionZone,
CodeAssistLevel,
createActionZones,
factory,
IfStatement,
NodeRange,
Safety,
Suggestion,
Transformation,
TransformedNodeTree,
} from "@p42/engine";
import ts from "typescript";
import { IntroduceEarlyReturnMatch } from "./IntroduceEarlyReturnMatch";
export class IntroduceEarly... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/invert-condition/src/InvertConditionMatcher.ts | code-assist/invert-condition/src/InvertConditionMatcher.ts |
import UndefinedAliasAugmentation from "@p42/augmentation-undefined-alias";
import {
capture,
Context,
matchers as m,
PatternMatcher,
predicates as p,
} from "@p42/engine";
import ts from "typescript";
import { InvertConditionCandidate } from "./InvertConditionCandidate";
const { ast } = m;
export class In... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/invert-condition/src/InvertConditionCandidate.ts | code-assist/invert-condition/src/InvertConditionCandidate.ts | import { Match } from "@p42/engine";
import ts from "typescript";
export interface InvertConditionCandidate
extends Match<
ts.ConditionalExpression | ts.IfStatement,
{
/**
* Overall condition, including ! prefix.
*/
condition: ts.Expression;
/**
* Inner condition (insi... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/invert-condition/src/InvertConditionTransformation.ts | code-assist/invert-condition/src/InvertConditionTransformation.ts |
import { nullishConstant } from "@p42/augmentation-undefined-alias";
import {
ActionZone,
CodeAssistLevel,
createActionZones,
factory,
getIndicatorText,
matchers as m,
NodeRange,
predicates as p,
Range,
Safety,
Suggestion,
Transformation,
TransformedNodeTree,
} from "@p42/engine";
import ts f... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/invert-condition/src/index.ts | code-assist/invert-condition/src/index.ts |
import { CodeAssistMetadata, CodeAssistType } from "@p42/engine";
import metadata from "./code-assist.json";
import { InvertConditionCandidate } from "./InvertConditionCandidate";
import { InvertConditionMatcher } from "./InvertConditionMatcher";
import { InvertConditionTransformation } from "./InvertConditionTransfor... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/flip-operator/src/FlipOperatorMatcher.ts | code-assist/flip-operator/src/FlipOperatorMatcher.ts |
import { matchers as m, PatternMatcher } from "@p42/engine";
import ts from "typescript";
import { FlipOperatorCandidate } from "./FlipOperatorCandidate";
import { flippableOperators } from "./FlipOperatorMapping";
const { ast } = m;
export class FlipOperatorMatcher extends PatternMatcher<FlipOperatorCandidate> {
... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/flip-operator/src/FlipOperatorCandidate.ts | code-assist/flip-operator/src/FlipOperatorCandidate.ts | import { Match } from "@p42/engine";
import ts from "typescript";
export interface FlipOperatorCandidate
extends Match<ts.BinaryExpression, Record<string, never>, undefined> {}
| typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/flip-operator/src/index.ts | code-assist/flip-operator/src/index.ts |
import { CodeAssistMetadata, CodeAssistType } from "@p42/engine";
import metadata from "./code-assist.json";
import { FlipOperatorCandidate } from "./FlipOperatorCandidate";
import { FlipOperatorMatcher } from "./FlipOperatorMatcher";
import { FlipOperatorTransformation } from "./FlipOperatorTransformation";
export d... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/flip-operator/src/FlipOperatorMapping.ts | code-assist/flip-operator/src/FlipOperatorMapping.ts |
import ts from "typescript";
const flippedOperators = new Map<ts.BinaryOperator, ts.BinaryOperator>();
flippedOperators.set(
ts.SyntaxKind.LessThanToken,
ts.SyntaxKind.GreaterThanToken
);
flippedOperators.set(
ts.SyntaxKind.GreaterThanToken,
ts.SyntaxKind.LessThanToken
);
flippedOperators.set(
ts.SyntaxKin... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/flip-operator/src/FlipOperatorTransformation.ts | code-assist/flip-operator/src/FlipOperatorTransformation.ts |
import {
ActionZone,
BinaryOperator,
Condition,
createActionZones,
isSideEffectFree,
matchers as m,
NodeRange,
Safety,
SafetyMessageList,
Transformation,
TransformedNodeTree,
} from "@p42/engine";
import ts from "typescript";
import { FlipOperatorCandidate } from "./FlipOperatorCandidate";
import... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/push-operator-into-assignment/src/PushOperatorIntoAssignmentCandidate.ts | code-assist/push-operator-into-assignment/src/PushOperatorIntoAssignmentCandidate.ts | import { Match } from "@p42/engine";
import ts from "typescript";
export interface PushOperatorIntoAssignmentCandidate
extends Match<
ts.BinaryExpression,
{
targetExpression: ts.Expression;
regularOperator: ts.BinaryOperator;
operand: ts.Expression;
isOperandFirst: boolean;
},
... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/push-operator-into-assignment/src/PushOperatorIntoAssignmentTransformation.ts | code-assist/push-operator-into-assignment/src/PushOperatorIntoAssignmentTransformation.ts |
import {
ActionZone,
AssignmentOperatorMapping,
CodeAssistLevel,
createActionZones,
EditorOperation,
NodeRange,
Range,
Safety,
SafetyMessageList,
Suggestion,
matchers as m,
Transformation,
TransformedNodeTree,
} from "@p42/engine";
import { ast } from "@p42/engine/build/matcher";
import ts fr... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/push-operator-into-assignment/src/PushOperatorIntoAssignmentMatcher.ts | code-assist/push-operator-into-assignment/src/PushOperatorIntoAssignmentMatcher.ts | import {
AssignmentOperatorMapping,
capture,
Context,
matchers as m,
PatternMatcher,
predicates as p,
} from "@p42/engine";
import ts from "typescript";
import { PushOperatorIntoAssignmentCandidate } from "./PushOperatorIntoAssignmentCandidate";
const { ast, type } = m;
export class PushOperatorIntoAssign... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/push-operator-into-assignment/src/index.ts | code-assist/push-operator-into-assignment/src/index.ts |
import { CodeAssistMetadata, CodeAssistType } from "@p42/engine";
import metadata from "./code-assist.json";
import { PushOperatorIntoAssignmentCandidate } from "./PushOperatorIntoAssignmentCandidate";
import { PushOperatorIntoAssignmentMatcher } from "./PushOperatorIntoAssignmentMatcher";
import { PushOperatorIntoAss... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/replace-void-0-with-undefined/src/ReplaceVoid0WithUndefinedMatcher.ts | code-assist/replace-void-0-with-undefined/src/ReplaceVoid0WithUndefinedMatcher.ts |
import UndefinedAliasAugmentation, {
undefinedAlias,
} from "@p42/augmentation-undefined-alias";
import { matchers as m, PatternMatcher } from "@p42/engine";
import ts from "typescript";
import { ReplaceVoid0WithUndefinedCandidate } from "./ReplaceVoid0WithUndefinedCandidate";
const { ast } = m;
export class Repla... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/replace-void-0-with-undefined/src/index.ts | code-assist/replace-void-0-with-undefined/src/index.ts |
import { CodeAssistMetadata, CodeAssistType } from "@p42/engine";
import metadata from "./code-assist.json";
import { ReplaceVoid0WithUndefinedCandidate } from "./ReplaceVoid0WithUndefinedCandidate";
import { ReplaceVoid0WithUndefinedMatcher } from "./ReplaceVoid0WithUndefinedMatcher";
import { ReplaceVoid0WithUndefin... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/replace-void-0-with-undefined/src/ReplaceVoid0WithUndefinedTransformation.ts | code-assist/replace-void-0-with-undefined/src/ReplaceVoid0WithUndefinedTransformation.ts |
import {
ActionZone,
CodeAssistLevel,
createActionZones,
NodeRange,
Safety,
Suggestion,
Transformation,
TransformedNodeTree,
} from "@p42/engine";
import { ReplaceVoid0WithUndefinedCandidate } from "./ReplaceVoid0WithUndefinedCandidate";
export class ReplaceVoid0WithUndefinedTransformation extends Tra... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/replace-void-0-with-undefined/src/ReplaceVoid0WithUndefinedCandidate.ts | code-assist/replace-void-0-with-undefined/src/ReplaceVoid0WithUndefinedCandidate.ts |
import { Match } from "@p42/engine";
import ts from "typescript";
export interface ReplaceVoid0WithUndefinedCandidate
extends Match<ts.VoidExpression, Record<string, never>, undefined> {}
| typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/convert-let-to-const/src/ConvertLetToConstCandidate.ts | code-assist/convert-let-to-const/src/ConvertLetToConstCandidate.ts | import { Match } from "@p42/engine";
import ts from "typescript";
export interface ConvertLetToConstCandidate
extends Match<ts.VariableDeclarationList, Record<string, never>, undefined> {}
| typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/convert-let-to-const/src/ConvertLetToConstMatcher.ts | code-assist/convert-let-to-const/src/ConvertLetToConstMatcher.ts | import {
matchers as m,
PatternMatcher,
predicates as p,
VariableDeclarationKind,
} from "@p42/engine";
import ts from "typescript";
import { ConvertLetToConstCandidate } from "./ConvertLetToConstCandidate";
const { ast } = m;
export class ConvertLetToConstMatcher extends PatternMatcher<ConvertLetToConstCandi... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/convert-let-to-const/src/ConvertLetToConstTransformation.ts | code-assist/convert-let-to-const/src/ConvertLetToConstTransformation.ts | import {
ActionZone,
CodeAssistLevel,
createActionZones,
NodeRange,
Safety,
Suggestion,
Transformation,
TransformedNodeTree,
VariableDeclarationKind,
} from "@p42/engine";
import { ConvertLetToConstCandidate } from "./ConvertLetToConstCandidate";
export class ConvertLetToConstTransformation extends T... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/convert-let-to-const/src/index.ts | code-assist/convert-let-to-const/src/index.ts | import { CodeAssistMetadata, CodeAssistType } from "@p42/engine";
import metadata from "./code-assist.json";
import { ConvertLetToConstCandidate } from "./ConvertLetToConstCandidate";
import { ConvertLetToConstMatcher } from "./ConvertLetToConstMatcher";
import { ConvertLetToConstTransformation } from "./ConvertLetToCo... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/convert-array-index-of-to-array-includes/src/ConvertArrayIndexOfToArrayIncludesMatcher.ts | code-assist/convert-array-index-of-to-array-includes/src/ConvertArrayIndexOfToArrayIncludesMatcher.ts |
import {
capture,
Context,
matchers as m,
PatternMatcher,
predicates as p,
} from "@p42/engine";
import ts from "typescript";
import {
ConvertArrayIndexOfToArrayIncludesMatch,
ConvertArrayIndexOfToArrayIncludesMatchType,
} from "./ConvertArrayIndexOfToArrayIncludesMatch";
const { ast } = m;
export clas... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/convert-array-index-of-to-array-includes/src/index.ts | code-assist/convert-array-index-of-to-array-includes/src/index.ts |
import { CodeAssistMetadata, CodeAssistType } from "@p42/engine";
import metadata from "./code-assist.json";
import { ConvertArrayIndexOfToArrayIncludesMatch } from "./ConvertArrayIndexOfToArrayIncludesMatch";
import { ConvertArrayIndexOfToArrayIncludesMatcher } from "./ConvertArrayIndexOfToArrayIncludesMatcher";
impo... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/convert-array-index-of-to-array-includes/src/ConvertArrayIndexOfToArrayIncludesTransformation.ts | code-assist/convert-array-index-of-to-array-includes/src/ConvertArrayIndexOfToArrayIncludesTransformation.ts |
import {
ActionZone,
CodeAssistLevel,
createActionZones,
factory,
isGlobalNaN,
NodeRange,
Safety,
Suggestion,
Transformation,
TransformedNodeTree,
} from "@p42/engine";
import { ConvertArrayIndexOfToArrayIncludesMatch } from "./ConvertArrayIndexOfToArrayIncludesMatch";
export class ConvertArrayInd... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/convert-array-index-of-to-array-includes/src/ConvertArrayIndexOfToArrayIncludesMatch.ts | code-assist/convert-array-index-of-to-array-includes/src/ConvertArrayIndexOfToArrayIncludesMatch.ts |
import { Context, Match } from "@p42/engine";
import ts from "typescript";
export type ConvertArrayIndexOfToArrayIncludesMatchType = Match<
ts.BinaryExpression,
{
indexOfCall: ts.CallExpression;
indexOfPropertyAccess: ts.PropertyAccessExpression;
firstParameter: ts.Expression;
isNegated: boolean;
... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/convert-function-to-object-method/src/ConvertFunctionToObjectMethodMatcher.ts | code-assist/convert-function-to-object-method/src/ConvertFunctionToObjectMethodMatcher.ts | import { capture, matchers as m, PatternMatcher } from "@p42/engine";
import ts from "typescript";
import { ConvertFunctionToObjectMethodCandidate } from "./ConvertFunctionToObjectMethodCandidate";
const { ast } = m;
export class ConvertFunctionToObjectMethodMatcher extends PatternMatcher<ConvertFunctionToObjectMetho... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/convert-function-to-object-method/src/ConvertFunctionToObjectMethodTransformation.ts | code-assist/convert-function-to-object-method/src/ConvertFunctionToObjectMethodTransformation.ts |
import {
ActionZone,
CodeAssistLevel,
createActionZones,
NodeRange,
Range,
Safety,
Suggestion,
Transformation,
TransformedNodeTree,
} from "@p42/engine";
import { ConvertFunctionToObjectMethodCandidate } from "./ConvertFunctionToObjectMethodCandidate";
export class ConvertFunctionToObjectMethodTrans... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/convert-function-to-object-method/src/ConvertFunctionToObjectMethodCandidate.ts | code-assist/convert-function-to-object-method/src/ConvertFunctionToObjectMethodCandidate.ts | import { Match } from "@p42/engine";
import ts from "typescript";
export interface ConvertFunctionToObjectMethodCandidate
extends Match<
ts.PropertyAssignment,
{
name: string;
functionExpression: ts.FunctionExpression;
},
undefined
> {}
| typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/convert-function-to-object-method/src/index.ts | code-assist/convert-function-to-object-method/src/index.ts |
import { CodeAssistMetadata, CodeAssistType } from "@p42/engine";
import metadata from "./code-assist.json";
import { ConvertFunctionToObjectMethodCandidate } from "./ConvertFunctionToObjectMethodCandidate";
import { ConvertFunctionToObjectMethodMatcher } from "./ConvertFunctionToObjectMethodMatcher";
import { Convert... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/pull-operator-out-of-assignment/src/PullOperatorOutOfAssignmentTransformation.ts | code-assist/pull-operator-out-of-assignment/src/PullOperatorOutOfAssignmentTransformation.ts |
import {
ActionZone,
AssignmentOperatorMapping,
createActionZones,
EditorOperation,
NodeRange,
Range,
Safety,
SafetyMessageList,
Transformation,
TransformedNodeTree,
} from "@p42/engine";
import ts from "typescript";
import { PullOperatorOutOfAssignmentCandidate } from "./PullOperatorOutOfAssignmen... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/pull-operator-out-of-assignment/src/PullOperatorOutOfAssignmentCandidate.ts | code-assist/pull-operator-out-of-assignment/src/PullOperatorOutOfAssignmentCandidate.ts | import { Match } from "@p42/engine";
import ts from "typescript";
export interface PullOperatorOutOfAssignmentCandidate
extends Match<
ts.BinaryExpression,
{
targetExpression: ts.Expression;
assignmentOperator: ts.BinaryOperator;
operand: ts.Expression;
},
{
regularOperator: t... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/pull-operator-out-of-assignment/src/PullOperatorOutOfAssignmentMatcher.ts | code-assist/pull-operator-out-of-assignment/src/PullOperatorOutOfAssignmentMatcher.ts | import {
AssignmentOperatorMapping,
capture,
Context,
matchers as m,
PatternMatcher,
predicates as p,
} from "@p42/engine";
import ts from "typescript";
import { PullOperatorOutOfAssignmentCandidate } from "./PullOperatorOutOfAssignmentCandidate";
const { ast } = m;
export class PullOperatorOutOfAssignmen... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/pull-operator-out-of-assignment/src/index.ts | code-assist/pull-operator-out-of-assignment/src/index.ts |
import { CodeAssistMetadata, CodeAssistType } from "@p42/engine";
import metadata from "./code-assist.json";
import { PullOperatorOutOfAssignmentCandidate } from "./PullOperatorOutOfAssignmentCandidate";
import { PullOperatorOutOfAssignmentMatcher } from "./PullOperatorOutOfAssignmentMatcher";
import { PullOperatorOut... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/convert-new-array-to-array-literal/src/ConvertNewArrayToArrayLiteralMatcher.ts | code-assist/convert-new-array-to-array-literal/src/ConvertNewArrayToArrayLiteralMatcher.ts |
import {
capture,
Context,
matchers as m,
PatternMatcher,
predicates as p,
} from "@p42/engine";
import ts from "typescript";
import {
ConvertNewArrayToArrayLiteralMatch,
ConvertNewArrayToArrayLiteralMatchType,
} from "./ConvertNewArrayToArrayLiteralMatch";
const { ast } = m;
export class ConvertNewArr... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/convert-new-array-to-array-literal/src/ConvertNewArrayToArrayLiteralTransformation.ts | code-assist/convert-new-array-to-array-literal/src/ConvertNewArrayToArrayLiteralTransformation.ts |
import {
ActionZone,
createActionZones,
matchers as m,
NodeRange,
Safety,
SafetyMessageList,
Transformation,
TransformedNodeTree,
} from "@p42/engine";
import ts from "typescript";
import { ConvertNewArrayToArrayLiteralMatch } from "./ConvertNewArrayToArrayLiteralMatch";
const { type } = m;
export cl... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/convert-new-array-to-array-literal/src/ConvertNewArrayToArrayLiteralMatch.ts | code-assist/convert-new-array-to-array-literal/src/ConvertNewArrayToArrayLiteralMatch.ts |
import { Context, Match } from "@p42/engine";
import ts from "typescript";
export type ConvertNewArrayToArrayLiteralMatchType = Match<
ts.NewExpression,
{
type: ts.TypeNode | undefined;
},
undefined
>;
export class ConvertNewArrayToArrayLiteralMatch
implements ConvertNewArrayToArrayLiteralMatchType
{
... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/convert-new-array-to-array-literal/src/index.ts | code-assist/convert-new-array-to-array-literal/src/index.ts |
import { CodeAssistMetadata, CodeAssistType } from "@p42/engine";
import metadata from "./code-assist.json";
import { ConvertNewArrayToArrayLiteralMatch } from "./ConvertNewArrayToArrayLiteralMatch";
import { ConvertNewArrayToArrayLiteralMatcher } from "./ConvertNewArrayToArrayLiteralMatcher";
import { ConvertNewArray... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/convert-math-pow-to-exponentiation/src/ConvertMathPowToExponentiationMatcher.ts | code-assist/convert-math-pow-to-exponentiation/src/ConvertMathPowToExponentiationMatcher.ts | import {
capture,
matchers as m,
PatternMatcher,
predicates as p,
} from "@p42/engine";
import ts from "typescript";
import { ConvertMathPowToExponentiationCandidate } from "./ConvertMathPowToExponentiationCandidate";
const { ast } = m;
export class ConvertMathPowToExponentiationMatcher extends PatternMatcher... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/convert-math-pow-to-exponentiation/src/ConvertMathPowToExponentiationCandidate.ts | code-assist/convert-math-pow-to-exponentiation/src/ConvertMathPowToExponentiationCandidate.ts | import { Match } from "@p42/engine";
import ts from "typescript";
export interface ConvertMathPowToExponentiationCandidate
extends Match<
ts.CallExpression,
{
base: ts.Expression;
exponent: ts.Expression;
},
undefined
> {}
| typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/convert-math-pow-to-exponentiation/src/ConvertMathPowToExponentiationTransformation.ts | code-assist/convert-math-pow-to-exponentiation/src/ConvertMathPowToExponentiationTransformation.ts | import {
ActionZone,
CodeAssistLevel,
createActionZones,
NodeRange,
Safety,
Suggestion,
Transformation,
TransformedNodeTree,
} from "@p42/engine";
import ts from "typescript";
import { ConvertMathPowToExponentiationCandidate } from "./ConvertMathPowToExponentiationCandidate";
export class ConvertMathPo... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/convert-math-pow-to-exponentiation/src/index.ts | code-assist/convert-math-pow-to-exponentiation/src/index.ts | import { CodeAssistMetadata, CodeAssistType } from "@p42/engine";
import metadata from "./code-assist.json";
import { ConvertMathPowToExponentiationCandidate } from "./ConvertMathPowToExponentiationCandidate";
import { ConvertMathPowToExponentiationMatcher } from "./ConvertMathPowToExponentiationMatcher";
import { Conv... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/flatten-array-rest-property/src/FlattenArrayRestPropertyMatcher.ts | code-assist/flatten-array-rest-property/src/FlattenArrayRestPropertyMatcher.ts |
import {
BindingPattern,
Context,
getId,
matchers as m,
PatternMatcher,
predicates as p,
} from "@p42/engine";
import ts from "typescript";
import {
FlattenArrayRestPropertyMatch,
FlattenArrayRestPropertyMatchType,
} from "./FlattenArrayRestPropertyMatch";
const { ast } = m;
export class FlattenArray... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/flatten-array-rest-property/src/FlattenArrayRestPropertyMatch.ts | code-assist/flatten-array-rest-property/src/FlattenArrayRestPropertyMatch.ts |
import { Context, Match } from "@p42/engine";
import ts from "typescript";
export type FlattenArrayRestPropertyMatchType = Match<
ts.BindingElement | ts.SpreadElement,
Record<string, never>,
| {
type: ts.SyntaxKind.BindingElement;
innerExpression: ts.ArrayBindingPattern;
outerExpression: ts.Ar... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/flatten-array-rest-property/src/FlattenArrayRestPropertyTransformation.ts | code-assist/flatten-array-rest-property/src/FlattenArrayRestPropertyTransformation.ts |
import {
ActionZone,
CodeAssistLevel,
createActionZones,
NodeRange,
Range,
Safety,
Suggestion,
Transformation,
TransformedNodeTree,
} from "@p42/engine";
import ts from "typescript";
import { FlattenArrayRestPropertyMatch } from "./FlattenArrayRestPropertyMatch";
export class FlattenArrayRestPropert... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/flatten-array-rest-property/src/index.ts | code-assist/flatten-array-rest-property/src/index.ts |
import { CodeAssistMetadata, CodeAssistType } from "@p42/engine";
import metadata from "./code-assist.json";
import { FlattenArrayRestPropertyMatch } from "./FlattenArrayRestPropertyMatch";
import { FlattenArrayRestPropertyMatcher } from "./FlattenArrayRestPropertyMatcher";
import { FlattenArrayRestPropertyTransformat... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/replace-expression-with-existing-variable/src/ReplaceExpressionWithExistingVariableMatcher.ts | code-assist/replace-expression-with-existing-variable/src/ReplaceExpressionWithExistingVariableMatcher.ts |
import {
Binding,
capture,
Context,
Expression,
isNodeStructureEqual,
matchers as m,
PatternMatcher,
} from "@p42/engine";
import ts from "typescript";
import {
ReplaceExpressionWithExistingVariableMatch,
ReplaceExpressionWithExistingVariableMatchType,
} from "./ReplaceExpressionWithExistingVariableM... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/replace-expression-with-existing-variable/src/ReplaceExpressionWithExistingVariableMatch.ts | code-assist/replace-expression-with-existing-variable/src/ReplaceExpressionWithExistingVariableMatch.ts |
import { Binding, Context, Match } from "@p42/engine";
import ts from "typescript";
export type ReplaceExpressionWithExistingVariableMatchType = Match<
ts.Expression,
{
binding: Binding;
variableDeclaration: ts.VariableDeclaration;
},
undefined
>;
export class ReplaceExpressionWithExistingVariableMat... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/replace-expression-with-existing-variable/src/ReplaceExpressionWithExistingVariableTransformation.ts | code-assist/replace-expression-with-existing-variable/src/ReplaceExpressionWithExistingVariableTransformation.ts |
import {
ActionZone,
createActionZones,
NodeRange,
Safety,
SafetyMessageList,
Transformation,
TransformedNodeTree,
} from "@p42/engine";
import { ReplaceExpressionWithExistingVariableMatch } from "./ReplaceExpressionWithExistingVariableMatch";
export class ReplaceExpressionWithExistingVariableTransforma... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/replace-expression-with-existing-variable/src/index.ts | code-assist/replace-expression-with-existing-variable/src/index.ts |
import { CodeAssistMetadata, CodeAssistType } from "@p42/engine";
import metadata from "./code-assist.json";
import { ReplaceExpressionWithExistingVariableMatch } from "./ReplaceExpressionWithExistingVariableMatch";
import { ReplaceExpressionWithExistingVariableMatcher } from "./ReplaceExpressionWithExistingVariableMa... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/use-eq-eq-null/src/UseEqEqNullMatcher.ts | code-assist/use-eq-eq-null/src/UseEqEqNullMatcher.ts |
import EqualityCheckAugmentation from "@p42/augmentation-equality-check";
import {
nullishCheck,
NullishCheckAugmentation,
} from "@p42/augmentation-nullish-check";
import UndefinedAliasAugmentation from "@p42/augmentation-undefined-alias";
import { capture, PatternMatcher } from "@p42/engine";
import ts from "typ... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/use-eq-eq-null/src/UseEqEqNullTransformation.ts | code-assist/use-eq-eq-null/src/UseEqEqNullTransformation.ts |
import {
ActionZone,
CodeAssistLevel,
createActionZones,
isSideEffectFree,
NodeRange,
Safety,
Suggestion,
Transformation,
TransformedNodeTree,
} from "@p42/engine";
import ts from "typescript";
import { getComparison } from "./getComparison";
import { UseEqEqNullCandidate } from "./UseEqEqNullCandida... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/use-eq-eq-null/src/index.ts | code-assist/use-eq-eq-null/src/index.ts |
import { CodeAssistMetadata, CodeAssistType } from "@p42/engine";
import metadata from "./code-assist.json";
import { UseEqEqNullCandidate } from "./UseEqEqNullCandidate";
import { UseEqEqNullMatcher } from "./UseEqEqNullMatcher";
import { UseEqEqNullTransformation } from "./UseEqEqNullTransformation";
export default... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/use-eq-eq-null/src/getComparison.ts | code-assist/use-eq-eq-null/src/getComparison.ts |
import ts from "typescript";
import { UseEqEqNullCandidate } from "./UseEqEqNullCandidate";
export function getComparison(match: UseEqEqNullCandidate) {
return match.captures.isNegated
? ts.SyntaxKind.ExclamationEqualsToken
: ts.SyntaxKind.EqualsEqualsToken;
}
| typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/use-eq-eq-null/src/UseEqEqNullCandidate.ts | code-assist/use-eq-eq-null/src/UseEqEqNullCandidate.ts | import { Match } from "@p42/engine";
import ts from "typescript";
export interface UseEqEqNullCandidate
extends Match<
ts.BinaryExpression,
{
isNegated: boolean;
checkedExpression: ts.Expression;
},
undefined
> {}
| typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/merge-nested-else-if/src/MergeNestedElseIfCandidate.ts | code-assist/merge-nested-else-if/src/MergeNestedElseIfCandidate.ts | import { Match } from "@p42/engine";
import ts from "typescript";
export interface MergeNestedElseIfCandidate
extends Match<
ts.IfStatement,
{
innerIf: ts.IfStatement;
},
undefined
> {}
| typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/merge-nested-else-if/src/MergeNestedElseIfTransformation.ts | code-assist/merge-nested-else-if/src/MergeNestedElseIfTransformation.ts |
import {
ActionZone,
CodeAssistLevel,
createActionZones,
NodeRange,
Safety,
Suggestion,
Transformation,
TransformedNodeTree,
} from "@p42/engine";
import { MergeNestedElseIfCandidate } from "./MergeNestedElseIfCandidate";
export class MergeNestedElseIfTransformation extends Transformation<MergeNestedE... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/merge-nested-else-if/src/MergeNestedElseIfMatcher.ts | code-assist/merge-nested-else-if/src/MergeNestedElseIfMatcher.ts |
import { capture, matchers as m, PatternMatcher } from "@p42/engine";
import ts from "typescript";
import { MergeNestedElseIfCandidate } from "./MergeNestedElseIfCandidate";
const { ast } = m;
export class MergeNestedElseIfMatcher extends PatternMatcher<MergeNestedElseIfCandidate> {
candidates = {
nodes: [ts.S... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/merge-nested-else-if/src/index.ts | code-assist/merge-nested-else-if/src/index.ts |
import { CodeAssistMetadata, CodeAssistType } from "@p42/engine";
import metadata from "./code-assist.json";
import { MergeNestedElseIfCandidate } from "./MergeNestedElseIfCandidate";
import { MergeNestedElseIfMatcher } from "./MergeNestedElseIfMatcher";
import { MergeNestedElseIfTransformation } from "./MergeNestedEl... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/move-interface-member/src/MoveInterfaceMemberMatch.ts | code-assist/move-interface-member/src/MoveInterfaceMemberMatch.ts |
import { Context, MoveMatch } from "@p42/engine";
import ts from "typescript";
export class MoveInterfaceMemberMatch extends MoveMatch<
ts.InterfaceDeclaration,
ts.TypeElement
> {
constructor(
node: ts.InterfaceDeclaration,
captures: {
selectedChildren: Array<ts.TypeElement>;
},
data: unde... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/move-interface-member/src/MoveInterfaceMemberMatcher.ts | code-assist/move-interface-member/src/MoveInterfaceMemberMatcher.ts |
import { capture, matchers as m, PatternMatcher } from "@p42/engine";
import ts from "typescript";
import { MoveInterfaceMemberMatch } from "./MoveInterfaceMemberMatch";
const { ast } = m;
export class MoveInterfaceMemberMatcher extends PatternMatcher<MoveInterfaceMemberMatch> {
constructor() {
super(MoveInter... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/move-interface-member/src/index.ts | code-assist/move-interface-member/src/index.ts |
import {
CodeAssistMetadata,
CodeAssistType,
MoveTransformation,
} from "@p42/engine";
import ts from "typescript";
import metadata from "./code-assist.json";
import { MoveInterfaceMemberMatch } from "./MoveInterfaceMemberMatch";
import { MoveInterfaceMemberMatcher } from "./MoveInterfaceMemberMatcher";
export ... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/move-const-to-outer-scope/src/MoveConstToOuterScopeMatcher.ts | code-assist/move-const-to-outer-scope/src/MoveConstToOuterScopeMatcher.ts |
import {
isConstantExpression,
matchers as m,
PatternMatcher,
predicates as p,
} from "@p42/engine";
import ts from "typescript";
import { MoveConstToOuterScopeMatch } from "./MoveConstToOuterScopeMatch";
const { ast } = m;
export class MoveConstToOuterScopeMatcher extends PatternMatcher<MoveConstToOuterScop... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/move-const-to-outer-scope/src/MoveConstToOuterScopeMatch.ts | code-assist/move-const-to-outer-scope/src/MoveConstToOuterScopeMatch.ts |
import { Context, Match } from "@p42/engine";
import ts from "typescript";
type MoveConstToOuterScopeNode = ts.VariableDeclaration;
type MoveConstToOuterScopeCaptures = Record<string, never>;
type MoveConstToOuterScopeData = undefined;
export class MoveConstToOuterScopeMatch
implements
Match<
MoveConstTo... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/move-const-to-outer-scope/src/MoveConstToOuterScopeTransformation.ts | code-assist/move-const-to-outer-scope/src/MoveConstToOuterScopeTransformation.ts |
import {
ActionZone,
CodeAssistLevel,
createActionZones,
EditorOperation,
NodeRange,
Safety,
SafetyMessageList,
Statement,
Suggestion,
Transformation,
TransformedNodeTree,
VariableDeclarationKind,
VariableStatement,
} from "@p42/engine";
import { MoveConstToOuterScopeMatch } from "./MoveConst... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/move-const-to-outer-scope/src/index.ts | code-assist/move-const-to-outer-scope/src/index.ts |
import { CodeAssistMetadata, CodeAssistType } from "@p42/engine";
import metadata from "./code-assist.json";
import { MoveConstToOuterScopeMatch } from "./MoveConstToOuterScopeMatch";
import { MoveConstToOuterScopeMatcher } from "./MoveConstToOuterScopeMatcher";
import { MoveConstToOuterScopeTransformation } from "./M... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/remove-unnecessary-template/src/RemoveUnnecessaryTemplateMatcher.ts | code-assist/remove-unnecessary-template/src/RemoveUnnecessaryTemplateMatcher.ts | import {
capture,
Context,
matchers as m,
PatternMatcher,
predicates as p,
} from "@p42/engine";
import ts from "typescript";
import { RemoveUnnecessaryTemplateCandidate } from "./RemoveUnnecessaryTemplateCandidate";
const { ast, constraint } = m;
export class RemoveUnnecessaryTemplateMatcher extends Patter... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/remove-unnecessary-template/src/RemoveUnnecessaryTemplateCandidate.ts | code-assist/remove-unnecessary-template/src/RemoveUnnecessaryTemplateCandidate.ts | import { Match } from "@p42/engine";
import ts from "typescript";
export interface RemoveUnnecessaryTemplateCandidate
extends Match<
ts.TemplateExpression,
{
expression: ts.Expression;
},
{
isStringLike: boolean;
}
> {}
| typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/remove-unnecessary-template/src/index.ts | code-assist/remove-unnecessary-template/src/index.ts |
import { CodeAssistMetadata, CodeAssistType } from "@p42/engine";
import metadata from "./code-assist.json";
import { RemoveUnnecessaryTemplateCandidate } from "./RemoveUnnecessaryTemplateCandidate";
import { RemoveUnnecessaryTemplateMatcher } from "./RemoveUnnecessaryTemplateMatcher";
import { RemoveUnnecessaryTempla... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/remove-unnecessary-template/src/RemoveUnnecessaryTemplateTransformation.ts | code-assist/remove-unnecessary-template/src/RemoveUnnecessaryTemplateTransformation.ts |
import {
ActionZone,
CodeAssistLevel,
createActionZones,
NodeRange,
Range,
Safety,
Suggestion,
Transformation,
TransformedNodeTree,
} from "@p42/engine";
import { RemoveUnnecessaryTemplateCandidate } from "./RemoveUnnecessaryTemplateCandidate";
export class RemoveUnnecessaryTemplateTransformation ex... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/convert-conditional-expression-to-if-else/src/ConvertConditionalExpressionToIfElseCandidate.ts | code-assist/convert-conditional-expression-to-if-else/src/ConvertConditionalExpressionToIfElseCandidate.ts | import { Match } from "@p42/engine";
import ts from "typescript";
export interface ConvertConditionalExpressionToIfElseCandidate
extends Match<
ts.ReturnStatement | ts.ExpressionStatement,
{
assignmentExpression: ts.BinaryExpression;
conditionalExpression: ts.ConditionalExpression;
type: "r... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/convert-conditional-expression-to-if-else/src/ConvertConditionalExpressionToIfElseTransformation.ts | code-assist/convert-conditional-expression-to-if-else/src/ConvertConditionalExpressionToIfElseTransformation.ts |
import {
ActionZone,
CodeAssistLevel,
createActionZones,
NodeRange,
Safety,
Suggestion,
Transformation,
TransformedNodeTree,
} from "@p42/engine";
import ts from "typescript";
import { ConvertConditionalExpressionToIfElseCandidate } from "./ConvertConditionalExpressionToIfElseCandidate";
export class ... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/convert-conditional-expression-to-if-else/src/index.ts | code-assist/convert-conditional-expression-to-if-else/src/index.ts |
import { CodeAssistMetadata, CodeAssistType } from "@p42/engine";
import metadata from "./code-assist.json";
import { ConvertConditionalExpressionToIfElseCandidate } from "./ConvertConditionalExpressionToIfElseCandidate";
import { ConvertConditionalExpressionToIfElseMatcher } from "./ConvertConditionalExpressionToIfEl... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/convert-conditional-expression-to-if-else/src/ConvertConditionalExpressionToIfElseMatcher.ts | code-assist/convert-conditional-expression-to-if-else/src/ConvertConditionalExpressionToIfElseMatcher.ts | import {
capture,
matchers as m,
PatternMatcher,
predicates as p,
} from "@p42/engine";
import ts from "typescript";
import { ConvertConditionalExpressionToIfElseCandidate } from "./ConvertConditionalExpressionToIfElseCandidate";
const { ast } = m;
export class ConvertConditionalExpressionToIfElseMatcher exte... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/expand-self-closing-jsx-element/src/ExpandSelfClosingJsxElementCandidate.ts | code-assist/expand-self-closing-jsx-element/src/ExpandSelfClosingJsxElementCandidate.ts | import { Match } from "@p42/engine";
import ts from "typescript";
export interface ExpandSelfClosingJsxElementCandidate
extends Match<ts.JsxSelfClosingElement, Record<string, never>, undefined> {}
| typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/expand-self-closing-jsx-element/src/ExpandSelfClosingJsxElementMatcher.ts | code-assist/expand-self-closing-jsx-element/src/ExpandSelfClosingJsxElementMatcher.ts | import { matchers as m, PatternMatcher } from "@p42/engine";
import ts from "typescript";
import { ExpandSelfClosingJsxElementCandidate } from "./ExpandSelfClosingJsxElementCandidate";
const { ast } = m;
export class ExpandSelfClosingJsxElementMatcher extends PatternMatcher<ExpandSelfClosingJsxElementCandidate> {
c... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/expand-self-closing-jsx-element/src/index.ts | code-assist/expand-self-closing-jsx-element/src/index.ts |
import { CodeAssistMetadata, CodeAssistType } from "@p42/engine";
import metadata from "./code-assist.json";
import { ExpandSelfClosingJsxElementCandidate } from "./ExpandSelfClosingJsxElementCandidate";
import { ExpandSelfClosingJsxElementMatcher } from "./ExpandSelfClosingJsxElementMatcher";
import { ExpandSelfClosi... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/expand-self-closing-jsx-element/src/ExpandSelfClosingJsxElementTransformation.ts | code-assist/expand-self-closing-jsx-element/src/ExpandSelfClosingJsxElementTransformation.ts |
import {
ActionZone,
createActionZones,
NodeRange,
Safety,
Transformation,
TransformedNodeTree,
} from "@p42/engine";
import { ExpandSelfClosingJsxElementCandidate } from "./ExpandSelfClosingJsxElementCandidate";
export class ExpandSelfClosingJsxElementTransformation extends Transformation<ExpandSelfClosi... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/inline-return/src/buildDataflow.ts | code-assist/inline-return/src/buildDataflow.ts |
import { Binding, BindingReference, Flags } from "@p42/engine";
import ts from "typescript";
import { Dataflow } from "./Dataflow";
import { DataflowNode } from "./DataflowNode";
import { getFlowNode } from "./getFlowNode";
export function buildDataflow(binding: Binding): Dataflow | undefined {
const dataflow = new... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/inline-return/src/InlineReturnMatcher.ts | code-assist/inline-return/src/InlineReturnMatcher.ts | import {
Binding,
BindingKind,
BindingReference,
capture,
Flags,
getBlockChildParent,
getFunctionScopeNode,
isBlockLike,
matchers as m,
PatternMatcher,
} from "@p42/engine";
import ts from "typescript";
import { buildDataflow } from "./buildDataflow";
import { getFlowNode } from "./getFlowNode";
imp... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/inline-return/src/getFlowNode.ts | code-assist/inline-return/src/getFlowNode.ts |
import ts from "typescript";
export function getFlowNode(node: ts.Node): ts.FlowNode | undefined {
return (node as any).flowNode as ts.FlowNode | undefined;
}
| typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/inline-return/src/InlineReturnCandidate.ts | code-assist/inline-return/src/InlineReturnCandidate.ts | import { Binding, Match } from "@p42/engine";
import ts from "typescript";
export interface InlineReturnCandidate
extends Match<
ts.ExpressionStatement,
{
variableName: string;
variableBinding: Binding;
assignedExpression: ts.Expression;
removableReturnStatement: ts.ReturnStatement | ... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/inline-return/src/index.ts | code-assist/inline-return/src/index.ts |
import { CodeAssistMetadata, CodeAssistType } from "@p42/engine";
import metadata from "./code-assist.json";
import { InlineReturnCandidate } from "./InlineReturnCandidate";
import { InlineReturnMatcher } from "./InlineReturnMatcher";
import { InlineReturnTransformation } from "./InlineReturnTransformation";
export d... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/inline-return/src/Dataflow.ts | code-assist/inline-return/src/Dataflow.ts |
import ts from "typescript";
import { DataflowNode } from "./DataflowNode";
import { getFlowNode } from "./getFlowNode";
export class Dataflow {
readonly nodes = new Map<ts.FlowNode, DataflowNode>();
getDownstreamNodes(node: ts.Node): Set<DataflowNode> | undefined {
const tsFlownode = getFlowNode(node);
... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/inline-return/src/DataflowNode.ts | code-assist/inline-return/src/DataflowNode.ts |
import { BindingReference } from "@p42/engine";
import ts from "typescript";
export class DataflowNode {
readonly tsFlowNode: ts.FlowNode;
readonly bindingReference: BindingReference | undefined;
readonly upstream: Array<DataflowNode> = [];
readonly downstream: Array<DataflowNode> = [];
constructor(
t... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/inline-return/src/InlineReturnTransformation.ts | code-assist/inline-return/src/InlineReturnTransformation.ts |
import {
ActionZone,
CodeAssistLevel,
createActionZones,
isBlockLike,
NodeRange,
Safety,
Statement,
Suggestion,
Transformation,
TransformedNodeTree,
} from "@p42/engine";
import ts from "typescript";
import { InlineReturnCandidate } from "./InlineReturnCandidate";
export class InlineReturnTransfor... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/convert-es-private-to-typescript-private/src/ConvertEsPrivateToTypescriptPrivateMatcher.ts | code-assist/convert-es-private-to-typescript-private/src/ConvertEsPrivateToTypescriptPrivateMatcher.ts |
import {
capture,
matchers as m,
PatternMatcher,
predicates as p,
} from "@p42/engine";
import ts from "typescript";
import { ConvertEsPrivateToTypescriptPrivateMatch } from "./ConvertEsPrivateToTypescriptPrivateMatch";
const { ast } = m;
export class ConvertEsPrivateToTypescriptPrivateMatcher extends Patter... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/convert-es-private-to-typescript-private/src/ConvertEsPrivateToTypescriptPrivateMatch.ts | code-assist/convert-es-private-to-typescript-private/src/ConvertEsPrivateToTypescriptPrivateMatch.ts |
import { Class, Context, Match } from "@p42/engine";
import ts from "typescript";
type ConvertEsPrivateToTypescriptPrivateNode =
| ts.PropertyDeclaration
| ts.MethodDeclaration;
type ConvertEsPrivateToTypescriptPrivateCaptures = {
identifier: ts.PrivateIdentifier;
};
type ConvertEsPrivateToTypescriptPrivateData... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/convert-es-private-to-typescript-private/src/ConvertEsPrivateToTypescriptPrivateTransformation.ts | code-assist/convert-es-private-to-typescript-private/src/ConvertEsPrivateToTypescriptPrivateTransformation.ts |
import {
ActionZone,
createActionZones,
NodeRange,
Range,
Safety,
SafetyMessageList,
Transformation,
TransformedNodeTree,
} from "@p42/engine";
import ts from "typescript";
import { ConvertEsPrivateToTypescriptPrivateMatch } from "./ConvertEsPrivateToTypescriptPrivateMatch";
export class ConvertEsPriv... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/convert-es-private-to-typescript-private/src/index.ts | code-assist/convert-es-private-to-typescript-private/src/index.ts |
import {
CodeAssistMetadata,
CodeAssistType,
} from "@p42/engine";
import { ConvertEsPrivateToTypescriptPrivateMatch } from "./ConvertEsPrivateToTypescriptPrivateMatch";
import { ConvertEsPrivateToTypescriptPrivateMatcher } from "./ConvertEsPrivateToTypescriptPrivateMatcher";
import { ConvertEsPrivateToTypescriptP... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/move-type-literal-member/src/MoveTypeLiteralMemberMatcher.ts | code-assist/move-type-literal-member/src/MoveTypeLiteralMemberMatcher.ts |
import { capture, matchers as m, PatternMatcher } from "@p42/engine";
import ts from "typescript";
import { MoveTypeLiteralMemberMatch } from "./MoveTypeLiteralMemberMatch";
const { ast } = m;
export class MoveTypeLiteralMemberMatcher extends PatternMatcher<MoveTypeLiteralMemberMatch> {
constructor() {
super(M... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/move-type-literal-member/src/MoveTypeLiteralMemberMatch.ts | code-assist/move-type-literal-member/src/MoveTypeLiteralMemberMatch.ts |
import { Context, MoveMatch } from "@p42/engine";
import ts from "typescript";
export class MoveTypeLiteralMemberMatch extends MoveMatch<
ts.TypeLiteralNode,
ts.TypeElement
> {
constructor(
node: ts.TypeLiteralNode,
captures: {
selectedChildren: Array<ts.TypeElement>;
},
data: undefined,
... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/move-type-literal-member/src/index.ts | code-assist/move-type-literal-member/src/index.ts |
import {
CodeAssistMetadata,
CodeAssistType,
MoveTransformation,
} from "@p42/engine";
import ts from "typescript";
import metadata from "./code-assist.json";
import { MoveTypeLiteralMemberMatch } from "./MoveTypeLiteralMemberMatch";
import { MoveTypeLiteralMemberMatcher } from "./MoveTypeLiteralMemberMatcher";
... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/use-string-ends-with/src/UseStringEndsWithCandidate.ts | code-assist/use-string-ends-with/src/UseStringEndsWithCandidate.ts | import { Match } from "@p42/engine";
import ts from "typescript";
export interface UseStringEndsWithCandidate
extends Match<
ts.BinaryExpression | ts.PrefixUnaryExpression,
{
targetString: ts.Identifier;
testedCharacter: ts.StringLiteral;
isNegated: boolean;
},
undefined
> {}
| typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
lgrammel/js-assistant | https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/code-assist/use-string-ends-with/src/UseStringEndsWithMatcher.ts | code-assist/use-string-ends-with/src/UseStringEndsWithMatcher.ts |
import EqualityCheckAugmentation, {
equalityCheck,
} from "@p42/augmentation-equality-check";
import {
capture,
matchers as m,
PatternMatcher,
predicates as p,
} from "@p42/engine";
import ts from "typescript";
import { UseStringEndsWithCandidate } from "./UseStringEndsWithCandidate";
const { ast, type } = ... | typescript | MIT | 01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6 | 2026-01-05T04:58:33.174500Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.