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/engine/src/ast/BindingElement.ts
engine/src/ast/BindingElement.ts
import ts from "typescript"; export const isRest = (bindingElement: ts.BindingElement) => bindingElement.dotDotDotToken != null; export const isObjectRest = (bindingElement: ts.BindingElement) => ts.isObjectBindingPattern(bindingElement.parent) && isRest(bindingElement); export const isShorthand = (bindingElemen...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/ast/getRawText.ts
engine/src/ast/getRawText.ts
import ts from "typescript"; import { TransformedNodeTree } from "../transformation/TransformedNodeTree.generated"; import { unescapeChar } from "../util/text/escapeChar"; import { isSingleQuote } from "./isSingleQuote"; /** * Returns the raw text that the user operator on (e.g. for text selections). * * For string...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/ast/getCommentId.ts
engine/src/ast/getCommentId.ts
import ts from "typescript"; import { getSyntaxKindLabel } from "./getSyntaxKindLabel"; export function getCommentId(comment: ts.CommentRange): string { return `${comment.pos}-${comment.end}-${getSyntaxKindLabel(comment.kind)}`; }
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/ast/AssignmentExpression.ts
engine/src/ast/AssignmentExpression.ts
import { ast } from "../matcher"; import { matchFromParent } from "./matchFromParent"; export const isLeftSideOf = () => matchFromParent((child) => ast.assignmentExpression({ left: child, }) );
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/ast/Condition.ts
engine/src/ast/Condition.ts
import ts from "typescript"; import { Context } from "../matcher/engine/Context"; import { isAncestor } from "./isAncestor"; export const isIfStatementCondition = ( expression: ts.Expression, context: Context ): boolean => { const parent = context.getTrueParent(expression); return ts.isIfStatement(parent) && i...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/ast/getParentAttribute.ts
engine/src/ast/getParentAttribute.ts
import ts from "typescript"; import { forEachChildWithAttribute } from "./forEachChildWithAttribute.generated"; /** * Returns the attribute under which a node is linked to its parent. * * @param node * @param parent Optional - explicit parent can be provided if it * does not match node.parent, e.g. on tran...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/ast/FunctionLike.ts
engine/src/ast/FunctionLike.ts
import ts, { isReturnStatement } from "typescript"; export const functionLikeNodeKinds = [ ts.SyntaxKind.ArrowFunction, ts.SyntaxKind.Constructor, ts.SyntaxKind.FunctionDeclaration, ts.SyntaxKind.FunctionExpression, ts.SyntaxKind.GetAccessor, ts.SyntaxKind.MethodDeclaration, ts.SyntaxKind.SetAccessor, ];...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/ast/isLastStatementInBlock.ts
engine/src/ast/isLastStatementInBlock.ts
import ts from "typescript"; import { isBlockLike } from ".."; export function isLastStatementInBlock(statement: ts.Statement): boolean { const { parent } = statement; if (!isBlockLike(parent)) { return false; } const { statements } = parent; return statements.indexOf(statement) === statements.length ...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/ast/matchFromParent.ts
engine/src/ast/matchFromParent.ts
import ts from "typescript"; import { path } from "../matcher"; import { temporaryValue } from "../matcher/capture"; import { Context } from "../matcher/engine/Context"; import { Predicate } from "../matcher/predicate/Predicate"; // TODO move to matcher? export function matchFromParent( matchChild: ( child: Pred...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/ast/escapeTextForTemplate.ts
engine/src/ast/escapeTextForTemplate.ts
import { escapeChar } from "../util/text/escapeChar"; /** * Insert an additional backslash for escaping when there's an even number of backslashes * preceding backtick, and escape potential template sequence '${'. */ export const escapeTextForTemplate = (text: string) => escapeChar("`", text.replace(/\${/g, "\\${...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/ast/getInitializerExpressions.ts
engine/src/ast/getInitializerExpressions.ts
import ts from "typescript"; /** * Returns the initializers that are used for the (potentially many) variables that * are declared in a parameter or variable declaration. */ export const getInitializerExpressions = ( declaration: ts.ParameterDeclaration | ts.VariableDeclaration ): Array<ts.Expression> => { cons...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/ast/ScopeNode.ts
engine/src/ast/ScopeNode.ts
import ts from "typescript"; import { getFirstAncestor, getFirstAncestorOrSelfOfKind, } from "./getFirstAncestor"; const CORE_FUNCTION_KINDS = [ ts.SyntaxKind.ArrowFunction, ts.SyntaxKind.FunctionDeclaration, ts.SyntaxKind.FunctionExpression, ts.SyntaxKind.Constructor, ts.SyntaxKind.MethodDeclaration, ...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/ast/NodeRange.ts
engine/src/ast/NodeRange.ts
import ts from "typescript"; import { Range } from "../util/text/Range"; import { getElseKeyword } from "./IfStatement"; function getStartLineRange(node: ts.Node, characterCount: number): Range { const start = node.getStart(); return new Range(start, start + characterCount); } export const fullNode = (node: ts.No...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/ast/Keywords.ts
engine/src/ast/Keywords.ts
import ts from "typescript"; // Keywords: numbers 81 - 159 in the SyntaxKind enum export const KEYWORDS = [ ts.SyntaxKind.BreakKeyword, ts.SyntaxKind.CaseKeyword, ts.SyntaxKind.CatchKeyword, ts.SyntaxKind.ClassKeyword, ts.SyntaxKind.ConstKeyword, ts.SyntaxKind.ContinueKeyword, ts.SyntaxKind.DebuggerKeywo...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/ast/isGlobalNaN.ts
engine/src/ast/isGlobalNaN.ts
import ts from "typescript"; import { Context } from "../matcher/engine/Context"; import { GlobalProperty } from "./GlobalProperty"; import { isGlobalIdentifier } from "./isGlobalIdentifier"; export const isGlobalNaN = ( node: ts.Node, context: Context ): node is ts.Identifier => isGlobalIdentifier(node, context...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/ast/getDeclarationRoot.ts
engine/src/ast/getDeclarationRoot.ts
import ts from "typescript"; import { findIdentifierPatternContainer } from "./findIdentifierPatternContainer"; export const getDeclarationRoot = ( node: ts.Node ): ts.ParameterDeclaration | ts.VariableDeclaration | undefined => { if (ts.isOmittedExpression(node)) { node = node.parent; } if (ts.isBindingE...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/ast/VariableStatement.ts
engine/src/ast/VariableStatement.ts
import ts from "typescript"; import { isSingleDeclarationList } from "./VariableDeclarationList"; export const isSingleDeclarationStatement = ( variableStatement: ts.VariableStatement ): boolean => isSingleDeclarationList(variableStatement.declarationList);
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/ast/findNodesContainingPosition.ts
engine/src/ast/findNodesContainingPosition.ts
import ts from "typescript"; import { findNodesContainingRange } from "./findNodesContainingRange"; export const findNodesContainingPosition = ( position: number, sourceFile: ts.SourceFile ): Array<ts.Node> => findNodesContainingRange(position, position, sourceFile);
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/ast/VariableDeclaration.ts
engine/src/ast/VariableDeclaration.ts
import { ast } from "../matcher"; import { matchFromParent } from "./matchFromParent"; export const isNameOf = () => matchFromParent((child) => ast.variableDeclaration({ name: child, }) );
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/ast/JsxElement.ts
engine/src/ast/JsxElement.ts
import ts from "typescript"; export const JsxElement = Object.freeze({ isTagName(node: ts.JsxTagNameExpression) { const { parent } = node; return ( (ts.isJsxOpeningElement(parent) || ts.isJsxClosingElement(parent) || ts.isJsxSelfClosingElement(parent)) && parent.tagName === node ...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/ast/ScopeNode.test.ts
engine/src/ast/ScopeNode.test.ts
import { createParseAndAugmentFunction } from "../augmentation/createParseAndAugmentFunction"; import { isScopeNode } from "./ScopeNode"; const parseAndAugment = createParseAndAugmentFunction(); const parse = async (source: string) => (await parseAndAugment(source)).sourceFile; describe("ScopeNode", () => { descr...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/ast/AssignmentOperatorMapping.ts
engine/src/ast/AssignmentOperatorMapping.ts
import ts from "typescript"; type AssignmentOperatorConfig = { regularOperator: ts.BinaryOperator; assignmentOperator: ts.BinaryOperator; isCommutative: boolean; isSafe: boolean; }; const operatorConfigs: Array<AssignmentOperatorConfig> = [ { regularOperator: ts.SyntaxKind.PlusToken, assignmentOpera...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/ast/isStaticTextLiteral.ts
engine/src/ast/isStaticTextLiteral.ts
import ts from "typescript"; export function isStaticTextLiteral( node: ts.Node ): node is ts.NoSubstitutionTemplateLiteral | ts.StringLiteral { return ts.isStringLiteral(node) || ts.isNoSubstitutionTemplateLiteral(node); }
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/ast/hasFlag.ts
engine/src/ast/hasFlag.ts
import ts from "typescript"; import { Flags } from "../util/Flags"; export function hasFlag(node: ts.Node, flag: number): boolean { return Flags.isSet(node.flags, flag); }
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/ast/isMethodCallTarget.ts
engine/src/ast/isMethodCallTarget.ts
import ts from "typescript"; export function isMethodCallTarget(occurrence: ts.Expression) { return ( ts.isPropertyAccessExpression(occurrence) && ts.isCallExpression(occurrence.parent) && occurrence.parent.expression === occurrence ); }
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/ast/getRelativeTextPosition.ts
engine/src/ast/getRelativeTextPosition.ts
import ts from "typescript"; /** * @param position * Position inside the source file. * @returns Index inside the text of the element. */ export const getRelativeTextPosition = ( position: number, node: | ts.StringLiteral | ts.NoSubstitutionTemplateLiteral | ts.TemplateHead | ts.Temp...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/ast/IfStatement.ts
engine/src/ast/IfStatement.ts
import ts from "typescript"; export const getElseKeyword = ( ifStatement: ts.IfStatement ): ts.Node | undefined => ifStatement .getChildren() .find((node) => node.kind === ts.SyntaxKind.ElseKeyword); export const getElseStatements = ( ifStatement: ts.IfStatement ): Array<ts.Statement> => { const { els...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/ast/getLeadingComments.ts
engine/src/ast/getLeadingComments.ts
import ts from "typescript"; export function getLeadingComments(node: ts.Node) { return ts.getLeadingCommentRanges( node.getSourceFile().getFullText(), node.getFullStart() ); }
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/ast/Node.ts
engine/src/ast/Node.ts
import ts from "typescript"; import { findIdentifierPatternContainer } from "./findIdentifierPatternContainer"; import { isSyntaxKind } from "./getSyntaxKindLabel"; export const isNode = (object: any): object is ts.Node => isSyntaxKind(object.kind); /** * @returns true if the modifier is set on the node. */ expor...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/ast/findNodeById.ts
engine/src/ast/findNodeById.ts
import ts from "typescript"; import { getId } from "./getId"; export const findNodeById = ( root: ts.Node, nodeId: string ): ts.Node | undefined => { let result: ts.Node | undefined = undefined; (function visitor(node: ts.Node) { if (getId(node) === nodeId) { result = node; return; } ts...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/SourceFileNodeAugmentation.ts
engine/src/augmentation/SourceFileNodeAugmentation.ts
import ts from "typescript"; import { Context } from "../matcher/engine/Context"; import { Augmentation } from "./Augmentation"; import { AugmentationErrorHandler } from "./AugmentationErrorHandler"; /** * Augments a full AST. Tree Augmentation can optimize the their performance by storing information * while traver...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/MatchAugmentation.ts
engine/src/augmentation/MatchAugmentation.ts
import ts from "typescript"; import { getId } from "../ast/getId"; import { Context } from "../matcher/engine/Context"; import { AnyMatch } from "../matcher/engine/Match"; import { PatternCandidates, PatternMatcherClass, } from "../matcher/engine/PatternMatcher"; import { Augmentation } from "./Augmentation"; /** ...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/OnDemandAugmentation.ts
engine/src/augmentation/OnDemandAugmentation.ts
import ts from "typescript"; import { Context } from "../matcher/engine/Context"; export class OnDemandAugmentation<VALUE> { readonly type = "on-demand"; readonly id; readonly computeValue; constructor({ id, computeValue, }: { id: string; computeValue: (node: ts.Node, context: Context) => V...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/AugmentationErrorHandler.ts
engine/src/augmentation/AugmentationErrorHandler.ts
import ts from "typescript"; import { SourceFileNodeAugmentation } from "./SourceFileNodeAugmentation"; export type AugmentationErrorHandler = ( augmentation: SourceFileNodeAugmentation<any>, node: ts.Node, error: any ) => void;
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/TraverseAstAugmentation.ts
engine/src/augmentation/TraverseAstAugmentation.ts
import ts from "typescript"; import { visitSelfAndEachDescendant } from "../ast/visitSelfAndEachDescendant"; import { Context } from "../matcher/engine/Context"; import { AugmentationErrorHandler } from "./AugmentationErrorHandler"; import { SourceFileNodeAugmentation } from "./SourceFileNodeAugmentation"; export clas...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/Augmentation.ts
engine/src/augmentation/Augmentation.ts
import ts from "typescript"; import { Context } from "../matcher/engine/Context"; import { PatternCandidates } from "../matcher/engine/PatternMatcher"; import { AugmentationErrorHandler } from "./AugmentationErrorHandler"; type BaseAugmentationType<VALUE> = { readonly id: string; getValue(node: ts.Node, context: ...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/SourceFileAugmentation.ts
engine/src/augmentation/SourceFileAugmentation.ts
import ts from "typescript"; import { Context } from "../matcher/engine/Context"; import { Augmentation } from "./Augmentation"; import { AugmentationErrorHandler } from "./AugmentationErrorHandler"; export class SourceFileAugmentation<VALUE> { readonly type = "source-file"; constructor( readonly id: string, ...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/CoreAugmentations.ts
engine/src/augmentation/CoreAugmentations.ts
import { AncestorAugmentation } from "./ancestor/AncestorAugmentation"; import { Augmentation } from "./Augmentation"; import { CommentAugmentation } from "./comment/CommentAugmentation"; import { DescendantAugmentation } from "./descendant/DescendantAugmentation"; import { NamedFunctionCallsAugmentation } from "./name...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/createParseAndAugmentFunction.ts
engine/src/augmentation/createParseAndAugmentFunction.ts
import ts from "typescript"; import { getId } from "../ast/getId"; import { NodeIndex } from "../matcher/engine/NodeIndex"; import { PatternMatcherEngine } from "../matcher/engine/PatternMatcherEngine"; import { parse } from "../parser/parse"; import { ScriptMetadata } from "../matcher/engine/ScriptMetadata"; import { ...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/scope/ScopeAugmentation.test.ts
engine/src/augmentation/scope/ScopeAugmentation.test.ts
import assert from "assert"; import ts from "typescript"; import { createParseAndAugmentFunction } from "../createParseAndAugmentFunction"; import { BindingKind } from "./BindingKind"; import { assertBindingDeclarations } from "./import/assertBindingDeclarations"; import { BindingReferenceAugmentation } from "./referen...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/scope/Scope.ts
engine/src/augmentation/scope/Scope.ts
import ts from "typescript"; import { getId } from "../../ast/getId"; import { ScopeNode } from "../../ast/ScopeNode"; import { Binding, BindingDeclaration } from "./Binding"; export class Scope { readonly bindings: Map<string, Binding>; constructor( /** * Scope node, e.g. the function or block this scop...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/scope/BindingKind.ts
engine/src/augmentation/scope/BindingKind.ts
/** * @see https://exploringjs.com/es6/ch_variables.html for more about scope in JavaScript */ export class BindingKind { readonly label: string; readonly isHoisted: boolean; readonly isReassignable: boolean; readonly isFunction: boolean; static GLOBAL = new BindingKind("global", false, true, false); sta...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/scope/Binding.ts
engine/src/augmentation/scope/Binding.ts
import ts from "typescript"; import { BindingKind } from "./BindingKind"; import { BindingReference } from "./reference/BindingReference"; import { ImportInformation } from "./import/ImportInformation"; import { Scope } from "./Scope"; import { isAncestor } from "../../ast/isAncestor"; export type BindingDeclaration =...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/scope/Scope.test.ts
engine/src/augmentation/scope/Scope.test.ts
import _ from "lodash"; import { createParseAndAugmentFunction } from "../createParseAndAugmentFunction"; import { BindingReferenceAugmentation } from "./reference/BindingReferenceAugmentation"; import { ScopeAugmentation } from "./ScopeAugmentation"; const parseAndAugment = createParseAndAugmentFunction([ ScopeAugm...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/scope/ScopeAugmentation.ts
engine/src/augmentation/scope/ScopeAugmentation.ts
import ts from "typescript"; import { getDeclarationRoot } from "../../ast/getDeclarationRoot"; import { isFunctionScopeNode, isScopeNode } from "../../ast/ScopeNode"; import * as VariableDeclarationKind from "../../ast/VariableDeclarationKind"; import { getVariableDeclarationKind } from "../../ast/VariableDeclarationK...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/scope/reference/BindingReference.ts
engine/src/augmentation/scope/reference/BindingReference.ts
import ts from "typescript"; import { Binding } from "../Binding"; export class BindingReference { constructor( readonly identifier: ts.Identifier, readonly binding: Binding, /** * True when this binding reference changes the value of the variable. * This is the case for declarations that init...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/scope/reference/BindingReferenceAugmentation.ts
engine/src/augmentation/scope/reference/BindingReferenceAugmentation.ts
import ts from "typescript"; import { findIdentifierPatternContainer } from "../../../ast/findIdentifierPatternContainer"; import { getId } from "../../../ast/getId"; import { BinaryOperator } from "../../../ast/BinaryOperator"; import { getFunctionScopeNode, isScopeNode } from "../../../ast/ScopeNode"; import { Contex...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/scope/reference/BindingReferenceAugmentation.test.ts
engine/src/augmentation/scope/reference/BindingReferenceAugmentation.test.ts
import * as ts from "typescript"; import { getId } from "../../../ast/getId"; import { Context } from "../../../matcher/engine/Context"; import "../../../test/JestExtension"; import { createParseAndAugmentFunction } from "../../createParseAndAugmentFunction"; import { Binding } from "../Binding"; import { assertBinding...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/scope/import/ScopeAugmentationImports.test.ts
engine/src/augmentation/scope/import/ScopeAugmentationImports.test.ts
import { createParseAndAugmentFunction } from "../../createParseAndAugmentFunction"; import { Scope } from "../Scope"; import { ScopeAugmentation } from "../ScopeAugmentation"; async function parseAndAugment(source: string) { const { sourceFile, context } = await createParseAndAugmentFunction([ ScopeAugmentation...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/scope/import/assertBindingDeclarations.ts
engine/src/augmentation/scope/import/assertBindingDeclarations.ts
import * as ts from "typescript"; import { getId } from "../../../ast/getId"; import { Binding } from "../Binding"; export function assertBindingDeclarations( binding: Binding | undefined, ...expectedDeclarations: Array<ts.Identifier> ) { expect(binding).toBeDefined(); expect(binding!.declaringNodes.map(getId)...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/scope/import/ImportInformation.ts
engine/src/augmentation/scope/import/ImportInformation.ts
export interface ImportInformation { /** * True if this import is importing the default export of the source. */ isDefault: boolean; /** * True if this import is a namespace import. */ isNamespace: boolean; /** * True if the import is dynamic, i.e. the import source is resolved at runtime. ...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/scope/import/DefaultImportInformation.ts
engine/src/augmentation/scope/import/DefaultImportInformation.ts
import ts from "typescript"; import { ImportInformation } from "./ImportInformation"; import { isStaticTextLiteral } from "../../../ast/isStaticTextLiteral"; export class DefaultImportInformation implements ImportInformation { constructor(readonly importDeclaration: ts.ImportDeclaration) {} readonly isDefault = t...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/descendant/DescendantAugmentation.ts
engine/src/augmentation/descendant/DescendantAugmentation.ts
import ts from "typescript"; import { visitSelfAndEachDescendant } from "../../ast/visitSelfAndEachDescendant"; import { Context } from "../../matcher/engine/Context"; import { arrayValueProvider } from "../../util/collection/ArrayValueProvider"; import { DeferredList } from "../../util/collection/DeferredList"; import...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/test/generateAugmentationTestSuite.ts
engine/src/augmentation/test/generateAugmentationTestSuite.ts
import * as _ from "lodash"; import ts from "typescript"; import { findNodeById } from "../../ast/findNodeById"; import { getId } from "../../ast/getId"; import { Augmentation } from "../../augmentation/Augmentation"; import { CoreAugmentations } from "../../augmentation/CoreAugmentations"; import { createParseAndAugme...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/test/parseAugmentationTestSpecification.ts
engine/src/augmentation/test/parseAugmentationTestSpecification.ts
import { parseMarkdownTestSpecification } from "../../test/parseMarkdownTestSpecification"; import { AugmentationTestSpecification } from "./AugmentationTestSpecification"; export function parseAugmentationTestSpecification( content: string ): AugmentationTestSpecification { const sectionContents = parseMarkdownTe...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/test/AugmentationTestSpecification.ts
engine/src/augmentation/test/AugmentationTestSpecification.ts
export type AugmentationTestSpecification = { input: string; expectedAugmentations: Record< string, { match: boolean; captures: Record<string, any> | undefined; data: Record<string, any> | undefined; } >; };
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/true-parent/TrueParentAugmentation.ts
engine/src/augmentation/true-parent/TrueParentAugmentation.ts
import ts from "typescript"; import { OnDemandAugmentation } from "../OnDemandAugmentation"; /** * Parent AST node when ignoring parentheses. */ export const TrueParentAugmentation = new OnDemandAugmentation<ts.Node>({ id: "true-parent", computeValue: (node: ts.Node) => { let { parent } = node; while (pa...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/comment/parseComments.ts
engine/src/augmentation/comment/parseComments.ts
import { Range } from "../../util/text/Range"; import { CommentSet } from "./CommentSet"; const IS_ESCAPED = 0b0000_0001; const IS_INSIDE_SINGLE_LINE_COMMENT = 0b0000_0010; const IS_INSIDE_MULTI_LINE_COMMENT = 0b0000_0100; const IS_INSIDE_DOUBLE_QUOTES = 0b0000_1000; const IS_INSIDE_SINGLE_QUOTES = 0b0001_0000; cons...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/comment/CommentAugmentation.ts
engine/src/augmentation/comment/CommentAugmentation.ts
import ts from "typescript"; import { Context } from "../../matcher/engine/Context"; import { AugmentationErrorHandler } from "../AugmentationErrorHandler"; import { SourceFileAugmentation } from "../SourceFileAugmentation"; import { CommentSet } from "./CommentSet"; import { parseComments } from "./parseComments"; ex...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/comment/CommentSet.ts
engine/src/augmentation/comment/CommentSet.ts
import { Range } from "../../util/text/Range"; /** * Set that contains the comments from a single source file. * * Assumptions: * - single source file * - original comments parsed from text * - file not modified */ export class CommentSet { constructor(readonly comments: Array<Range>) {} filter(f: (comment...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/comment/parseComments.test.ts
engine/src/augmentation/comment/parseComments.test.ts
import _ from "lodash"; import { Range } from "../../util/text/Range"; import { parseComments } from "./parseComments"; describe("parseComments", () => { describe("multi line comments", () => { it("should parse single multi-line comment", () => { expect(parseComments(`/* comment */`).comments).toEqual([ ...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/comment/CommentAugmentation.test.ts
engine/src/augmentation/comment/CommentAugmentation.test.ts
import { Range } from "../../util/text/Range"; import { createParseAndAugmentFunction } from "../createParseAndAugmentFunction"; import { CommentAugmentation } from "./CommentAugmentation"; const parseAndAugment = createParseAndAugmentFunction([CommentAugmentation]); describe("CommentAugmentation", () => { it("shou...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/named-function-calls/NamedFunctionCallsAugmentation.ts
engine/src/augmentation/named-function-calls/NamedFunctionCallsAugmentation.ts
import ts from "typescript"; import { Context } from "../../matcher/engine/Context"; import { arrayValueProvider } from "../../util/collection/ArrayValueProvider"; import { DeferredList } from "../../util/collection/DeferredList"; import { OnDemandAugmentation } from "../OnDemandAugmentation"; export const NamedFuncti...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/augmentation/ancestor/AncestorAugmentation.ts
engine/src/augmentation/ancestor/AncestorAugmentation.ts
import ts from "typescript"; import { Context } from "../../matcher/engine/Context"; import { arrayValueProvider } from "../../util/collection/ArrayValueProvider"; import { DeferredList } from "../../util/collection/DeferredList"; import { OnDemandAugmentation } from "../OnDemandAugmentation"; export const AncestorAug...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/ParseResult.ts
engine/src/parser/ParseResult.ts
import ts from "typescript"; import { TypeSystem } from "../ast/TypeSystem"; import { ScriptRangeWithExtension } from "./file-type/ScriptRange"; export type ParseResult = { /** * Parsed syntax tree. */ sourceFile: ts.SourceFile; typeSystem: TypeSystem; } & ScriptRangeWithExtension;
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/parse.ts
engine/src/parser/parse.ts
import ts from "typescript"; import { TypeSystem } from "../ast/TypeSystem"; import { CancellationToken } from "../util/concurrency/CancellationToken"; import { NullCancellationToken } from "../util/concurrency/NullCancellationToken"; import { getFileExtension } from "../util/fs/getFileExtension"; import { EmbeddedSour...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/parseEmbeddedSources.ts
engine/src/parser/compiler-host/parseEmbeddedSources.ts
import * as ts from "typescript"; import { getEmbeddedScripts } from "../file-type/FileTypes"; import { ScriptRangeWithExtension } from "../file-type/ScriptRange"; // P42 uses the latest ES version with TS39 Stage 4 proposals (currently ES2022). export const DEFAULT_SCRIPT_TARGET = ts.ScriptTarget.ES2022; export type...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/SourceFileContentCompilerHost.ts
engine/src/parser/compiler-host/SourceFileContentCompilerHost.ts
import ts from "typescript"; import { SourceFileContent } from "./SourceFileContent"; export abstract class SourceFileContentCompilerHost implements ts.CompilerHost { protected sources = new Map<string, SourceFileContent>(); constructor( sourceFileContents: Array<SourceFileContent>, protected parent: ts.C...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/SourceFileContent.ts
engine/src/parser/compiler-host/SourceFileContent.ts
export type SourceFileContent = { path: string; extension: string | undefined; content: string; };
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/SourceFileCompilerHost.ts
engine/src/parser/compiler-host/SourceFileCompilerHost.ts
import ts from "typescript"; import { SourceFileContent } from "./SourceFileContent"; import { SourceFileContentCompilerHost } from "./SourceFileContentCompilerHost"; export abstract class SourceFileCompilerHost extends SourceFileContentCompilerHost { // cached source files private sourceFiles = new Map<string, ts...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/EmbeddedSourcesCompilerHost.ts
engine/src/parser/compiler-host/EmbeddedSourcesCompilerHost.ts
import ts from "typescript"; import { EmbeddedSourceParseResult, parseEmbeddedSources, } from "./parseEmbeddedSources"; import { SourceFileCompilerHost } from "./SourceFileCompilerHost"; import { SourceFileContent } from "./SourceFileContent"; export class EmbeddedSourcesCompilerHost extends SourceFileCompilerHost...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2022.object.ts
engine/src/parser/compiler-host/ts-lib/lib.es2022.object.ts
const fileData = { fileName: `/lib.es2022.object.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ninterface ObjectConstructor{hasOwn(o:object,v:PropertyK...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2018.asynciterable.ts
engine/src/parser/compiler-host/ts-lib/lib.es2018.asynciterable.ts
const fileData = { fileName: `/lib.es2018.asynciterable.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\n/// <reference lib="es2015.symbol" />\n/// <refe...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2015.ts
engine/src/parser/compiler-host/ts-lib/lib.es2015.ts
const fileData = { fileName: `/lib.es2015.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\n/// <reference lib="es5" />\n/// <reference lib="es2015.core" ...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2018.ts
engine/src/parser/compiler-host/ts-lib/lib.es2018.ts
const fileData = { fileName: `/lib.es2018.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\n/// <reference lib="es2017" />\n/// <reference lib="es2018.asy...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2019.symbol.ts
engine/src/parser/compiler-host/ts-lib/lib.es2019.symbol.ts
const fileData = { fileName: `/lib.es2019.symbol.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ninterface Symbol{readonly description:string|undefined;...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2015.symbol.wellknown.ts
engine/src/parser/compiler-host/ts-lib/lib.es2015.symbol.wellknown.ts
const fileData = { fileName: `/lib.es2015.symbol.wellknown.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\n/// <reference lib="es2015.symbol" />\ninterf...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2021.string.ts
engine/src/parser/compiler-host/ts-lib/lib.es2021.string.ts
const fileData = { fileName: `/lib.es2021.string.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ninterface String{replaceAll(searchValue:string|RegExp,r...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2021.promise.ts
engine/src/parser/compiler-host/ts-lib/lib.es2021.promise.ts
const fileData = { fileName: `/lib.es2021.promise.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ninterface AggregateError extends Error{errors:any[]}in...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.esnext.weakref.ts
engine/src/parser/compiler-host/ts-lib/lib.esnext.weakref.ts
const fileData = { fileName: `/lib.esnext.weakref.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ninterface WeakRef<T extends object>{readonly[Symbol.to...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2017.intl.ts
engine/src/parser/compiler-host/ts-lib/lib.es2017.intl.ts
const fileData = { fileName: `/lib.es2017.intl.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ndeclare namespace Intl{interface DateTimeFormatPartTypesR...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2020.date.ts
engine/src/parser/compiler-host/ts-lib/lib.es2020.date.ts
const fileData = { fileName: `/lib.es2020.date.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\n/// <reference lib="es2020.intl" />\ninterface Date{toLoc...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2022.array.ts
engine/src/parser/compiler-host/ts-lib/lib.es2022.array.ts
const fileData = { fileName: `/lib.es2022.array.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ninterface Array<T>{at(index:number):T|undefined;}interfa...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2021.weakref.ts
engine/src/parser/compiler-host/ts-lib/lib.es2021.weakref.ts
const fileData = { fileName: `/lib.es2021.weakref.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ninterface WeakRef<T extends object>{readonly[Symbol.to...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2020.ts
engine/src/parser/compiler-host/ts-lib/lib.es2020.ts
const fileData = { fileName: `/lib.es2020.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\n/// <reference lib="es2019" />\n/// <reference lib="es2020.big...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2015.collection.ts
engine/src/parser/compiler-host/ts-lib/lib.es2015.collection.ts
const fileData = { fileName: `/lib.es2015.collection.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ninterface Map<K,V>{clear():void;delete(key:K):boole...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2017.ts
engine/src/parser/compiler-host/ts-lib/lib.es2017.ts
const fileData = { fileName: `/lib.es2017.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\n/// <reference lib="es2016" />\n/// <reference lib="es2017.obj...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2019.ts
engine/src/parser/compiler-host/ts-lib/lib.es2019.ts
const fileData = { fileName: `/lib.es2019.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\n/// <reference lib="es2018" />\n/// <reference lib="es2019.arr...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/DefaultLibCompilerHost.ts
engine/src/parser/compiler-host/ts-lib/DefaultLibCompilerHost.ts
import ts from "typescript"; import { SourceFileCompilerHost } from "../SourceFileCompilerHost"; import { SourceFileContent } from "../SourceFileContent"; import es2015 from "./lib.es2015"; import es2015_collection from "./lib.es2015.collection"; import es2015_core from "./lib.es2015.core"; import es2015_generator fr...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2019.object.ts
engine/src/parser/compiler-host/ts-lib/lib.es2019.object.ts
const fileData = { fileName: `/lib.es2019.object.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\n/// <reference lib="es2015.iterable" />\ninterface Obje...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2020.symbol.wellknown.ts
engine/src/parser/compiler-host/ts-lib/lib.es2020.symbol.wellknown.ts
const fileData = { fileName: `/lib.es2020.symbol.wellknown.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\n/// <reference lib="es2015.iterable" />\n/// ...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2015.iterable.ts
engine/src/parser/compiler-host/ts-lib/lib.es2015.iterable.ts
const fileData = { fileName: `/lib.es2015.iterable.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\n/// <reference lib="es2015.symbol" />\ninterface Symb...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2015.symbol.ts
engine/src/parser/compiler-host/ts-lib/lib.es2015.symbol.ts
const fileData = { fileName: `/lib.es2015.symbol.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ninterface SymbolConstructor{readonly prototype:Symbol;(...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2016.ts
engine/src/parser/compiler-host/ts-lib/lib.es2016.ts
const fileData = { fileName: `/lib.es2016.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\n/// <reference lib="es2015" />\n/// <reference lib="es2016.arr...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.esnext.string.ts
engine/src/parser/compiler-host/ts-lib/lib.esnext.string.ts
const fileData = { fileName: `/lib.esnext.string.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ninterface String{replaceAll(searchValue:string|RegExp,r...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2015.core.ts
engine/src/parser/compiler-host/ts-lib/lib.es2015.core.ts
const fileData = { fileName: `/lib.es2015.core.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ninterface Array<T>{find<S extends T>(predicate:(this:void...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.esnext.promise.ts
engine/src/parser/compiler-host/ts-lib/lib.esnext.promise.ts
const fileData = { fileName: `/lib.esnext.promise.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ninterface AggregateError extends Error{errors:any[]}in...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2015.promise.ts
engine/src/parser/compiler-host/ts-lib/lib.es2015.promise.ts
const fileData = { fileName: `/lib.es2015.promise.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ninterface PromiseConstructor{readonly prototype:Promis...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2020.sharedmemory.ts
engine/src/parser/compiler-host/ts-lib/lib.es2020.sharedmemory.ts
const fileData = { fileName: `/lib.es2020.sharedmemory.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ninterface Atomics{add(typedArray:BigInt64Array|Bi...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false
lgrammel/js-assistant
https://github.com/lgrammel/js-assistant/blob/01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6/engine/src/parser/compiler-host/ts-lib/lib.es2016.array.include.ts
engine/src/parser/compiler-host/ts-lib/lib.es2016.array.include.ts
const fileData = { fileName: `/lib.es2016.array.include.d.ts`, // File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) text: `/// <reference no-default-lib="true"/>\ninterface Array<T>{includes(searchElement:T,from...
typescript
MIT
01d9bce026eeea02efb17f2ce50a1fadb4fd6ba6
2026-01-05T04:58:33.174500Z
false