UI/UX: Adiciona campo opcional para colagem manual de transcrição no VideoMind

This commit is contained in:
2026-06-05 22:19:33 +00:00
parent 281005a8bc
commit 3781c848da
2395 changed files with 242184 additions and 20 deletions
+9204
View File
File diff suppressed because one or more lines are too long
+1
View File
File diff suppressed because one or more lines are too long
+9199
View File
File diff suppressed because one or more lines are too long
+9210
View File
File diff suppressed because one or more lines are too long
+1
View File
File diff suppressed because one or more lines are too long
+135
View File
@@ -0,0 +1,135 @@
export declare const enum Chars {
Null = 0,
Backspace = 8,
Tab = 9,
LineFeed = 10,
VerticalTab = 11,
FormFeed = 12,
CarriageReturn = 13,
Space = 32,
Exclamation = 33,
DoubleQuote = 34,
Hash = 35,
Dollar = 36,
Percent = 37,
Ampersand = 38,
SingleQuote = 39,
LeftParen = 40,
RightParen = 41,
Asterisk = 42,
Plus = 43,
Comma = 44,
Hyphen = 45,
Period = 46,
Slash = 47,
Zero = 48,
One = 49,
Two = 50,
Three = 51,
Four = 52,
Five = 53,
Six = 54,
Seven = 55,
Eight = 56,
Nine = 57,
Colon = 58,
Semicolon = 59,
LessThan = 60,
EqualSign = 61,
GreaterThan = 62,
QuestionMark = 63,
UpperA = 65,
UpperB = 66,
UpperC = 67,
UpperD = 68,
UpperE = 69,
UpperF = 70,
UpperG = 71,
UpperH = 72,
UpperI = 73,
UpperJ = 74,
UpperK = 75,
UpperL = 76,
UpperM = 77,
UpperN = 78,
UpperO = 79,
UpperP = 80,
UpperQ = 81,
UpperR = 82,
UpperS = 83,
UpperT = 84,
UpperU = 85,
UpperV = 86,
UpperW = 87,
UpperX = 88,
UpperY = 89,
UpperZ = 90,
LeftBracket = 91,
Backslash = 92,
RightBracket = 93,
Caret = 94,
Underscore = 95,
Backtick = 96,
LowerA = 97,
LowerB = 98,
LowerC = 99,
LowerD = 100,
LowerE = 101,
LowerF = 102,
LowerG = 103,
LowerH = 104,
LowerI = 105,
LowerJ = 106,
LowerK = 107,
LowerL = 108,
LowerM = 109,
LowerN = 110,
LowerO = 111,
LowerP = 112,
LowerQ = 113,
LowerR = 114,
LowerS = 115,
LowerT = 116,
LowerU = 117,
LowerV = 118,
LowerW = 119,
LowerX = 120,
LowerY = 121,
LowerZ = 122,
LeftBrace = 123,
VerticalBar = 124,
RightBrace = 125,
Tilde = 126,
Delete = 127,
NextLine = 133,
NonBreakingSpace = 160,
Ogham = 5760,
EnQuad = 8192,
EmQuad = 8193,
EnSpace = 8194,
EmSpace = 8195,
ThreePerEmSpace = 8196,
FourPerEmSpace = 8197,
SixPerEmSpace = 8198,
FigureSpace = 8199,
PunctuationSpace = 8200,
ThinSpace = 8201,
HairSpace = 8202,
ZeroWidthSpace = 8203,
ZeroWidthJoiner = 8204,
ZeroWidthNonJoiner = 8205,
LineSeparator = 8232,
ParagraphSeparator = 8233,
NarrowNoBreakSpace = 8239,
MathematicalSpace = 8287,
IdeographicSpace = 12288,
ZeroWidthNoBreakSpace = 65279,
ByteOrderMark = 65519,
NonBMPMax = 1114111,
LeadSurrogateMin = 55296,
LeadSurrogateMax = 56319,
TrailSurrogateMin = 56320,
TrailSurrogateMax = 57343,
UTF16Max = 65535,
NonBMPMin = 65536
}
+130
View File
@@ -0,0 +1,130 @@
import { Token } from './token';
import { type Parser } from './parser/parser';
export declare const enum Context {
None = 0,
Strict = 1,
Module = 2,
InSwitch = 4,
InGlobal = 8,
InClass = 16,
AllowRegExp = 32,
TaggedTemplate = 64,
InIteration = 128,
SuperProperty = 256,
SuperCall = 512,
InYieldContext = 1024,
InAwaitContext = 2048,
InReturnContext = 4096,
InArgumentList = 8192,
InConstructor = 16384,
InMethodOrFunction = 32768,
AllowNewTarget = 65536,
DisallowIn = 131072,
AllowEscapedKeyword = 262144,
InStaticBlock = 524288
}
export declare const enum PropertyKind {
None = 0,
Method = 1,
Computed = 2,
Shorthand = 4,
Generator = 8,
Async = 16,
Static = 32,
Constructor = 64,
ClassField = 128,
Getter = 256,
Setter = 512,
Accessor = 1024,
Extends = 2048,
Literal = 4096,
PrivateField = 8192,
GetSet = 768
}
export declare const enum BindingKind {
None = 0,
ArgumentList = 1,
Empty = 2,
Variable = 4,
Let = 8,
Const = 16,
Class = 32,
FunctionLexical = 64,
FunctionStatement = 128,
CatchPattern = 256,
CatchIdentifier = 512,
Async = 1024,
Generator = 1024,
AsyncFunctionLexical = 1088,
GeneratorFunctionLexical = 1088,
AsyncGeneratorFunctionLexical = 1088,
CatchIdentifierOrPattern = 768,
LexicalOrFunction = 68,
LexicalBinding = 248
}
export declare const enum Origin {
None = 0,
Statement = 1,
BlockStatement = 2,
TopLevel = 4,
Declaration = 8,
Arrow = 16,
ForStatement = 32,
Export = 64
}
export declare const enum AssignmentKind {
None = 0,
Assignable = 1,
CannotAssign = 2
}
export declare const enum DestructuringKind {
None = 0,
HasToDestruct = 8,
CannotDestruct = 16,
Assignable = 32,
SeenProto = 64,
Await = 128,
Yield = 256
}
export declare const enum Flags {
None = 0,
NewLine = 1,
HasConstructor = 32,
Octal = 64,
NonSimpleParameterList = 128,
HasStrictReserved = 256,
StrictEvalArguments = 512,
DisallowCall = 1024,
HasOptionalChaining = 2048,
EightAndNine = 4096
}
export declare const enum HoistedClassFlags {
None = 0,
Hoisted = 1,
Export = 2
}
export declare const enum HoistedFunctionFlags {
None = 0,
Hoisted = 1,
Export = 2
}
export declare function matchOrInsertSemicolon(parser: Parser, context: Context): void;
export declare function isValidStrictMode(parser: Parser, index: number, tokenIndex: number, tokenValue: string): 0 | 1;
export declare function optionalBit(parser: Parser, context: Context, t: Token): 0 | 1;
export declare function consumeOpt(parser: Parser, context: Context, t: Token): boolean;
export declare function consume(parser: Parser, context: Context, t: Token): void;
export declare function reinterpretToPattern(parser: Parser, node: any): void;
export declare function validateBindingIdentifier(parser: Parser, context: Context, kind: BindingKind, t: Token, skipEvalArgCheck: 0 | 1): void;
export declare function validateFunctionName(parser: Parser, context: Context, t: Token): void;
export declare function isStrictReservedWord(parser: Parser, context: Context, t: Token): boolean;
export declare function isPropertyWithPrivateFieldKey(expr: any): boolean;
export declare function isValidLabel(parser: Parser, labels: any, name: string, isIterationStatement: 0 | 1): 0 | 1;
export declare function validateAndDeclareLabel(parser: Parser, labels: any, name: string): void;
export declare function isValidIdentifier(context: Context, t: Token): boolean;
export declare function classifyIdentifier(parser: Parser, context: Context, t: Token): any;
export type Location = {
readonly index: number;
readonly line: number;
readonly column: number;
};
export declare function getOwnProperty<T>(object: Record<string | number, T>, key: string | number): T | undefined;
+190
View File
@@ -0,0 +1,190 @@
import { type _Node, type SourceLocation } from './estree';
import { type Location } from './common';
export declare const enum Errors {
Unexpected = 0,
StrictOctalEscape = 1,
TemplateOctalLiteral = 2,
TemplateEightAndNine = 3,
InvalidPrivateIdentifier = 4,
InvalidUnicodeEscapeSequence = 5,
InvalidCodePoint = 6,
InvalidHexEscapeSequence = 7,
StrictDecimalWithLeadingZero = 8,
StrictOctalLiteral = 9,
ExpectedNumberInRadix = 10,
MissingExponent = 11,
InvalidBigInt = 12,
IDStartAfterNumber = 13,
InvalidEightAndNine = 14,
StrictEightAndNine = 15,
UnterminatedString = 16,
UnterminatedTemplate = 17,
UnterminatedComment = 18,
InvalidDynamicUnicode = 19,
IllegalCharacter = 20,
MissingHexDigits = 21,
InvalidImplicitOctal = 22,
InvalidStringLT = 23,
InvalidEscapeIdentifier = 24,
ExpectedToken = 25,
CantAssignTo = 26,
InvalidLHSAsyncArrow = 27,
SuperNoConstructor = 28,
InvalidSuperProperty = 29,
UnexpectedToken = 30,
AwaitInParameter = 31,
YieldInParameter = 32,
InvalidExponentiationLHS = 33,
UnterminatedRegExp = 34,
UnexpectedTokenRegExpFlag = 35,
DuplicateRegExpFlag = 36,
AccessorWrongArgs = 37,
BadSetterRestParameter = 38,
DeclNoName = 39,
StrictFunctionName = 40,
RestMissingArg = 41,
InvalidGeneratorGetter = 42,
InvalidGeneratorSetter = 43,
InvalidComputedPropName = 44,
InvalidGetSetGenerator = 45,
InvalidAsyncGetter = 46,
InvalidGenMethodShorthand = 47,
InvalidLineBreak = 48,
InvalidArrowDestructLHS = 49,
InvalidBindingDestruct = 50,
InvalidAsyncArrow = 51,
StaticPrototype = 52,
InvalidConstructor = 53,
DuplicateConstructor = 54,
InvalidIncDecTarget = 55,
InvalidIncDecNew = 56,
InvalidAssignmentTarget = 57,
InvalidRestTrailing = 58,
DeclarationMissingInitializer = 59,
ForInOfLoopInitializer = 60,
ForInOfLoopMultiBindings = 61,
InvalidShorthandPropInit = 62,
DuplicateProto = 63,
InvalidLetBoundName = 64,
InvalidNewUnary = 65,
IllegalUseStrict = 66,
DisallowedLetInStrict = 67,
IllegalContinue = 68,
IllegalBreak = 69,
InvalidLetBracket = 70,
InvalidDestructuringTarget = 71,
RestDefaultInitializer = 72,
InvalidRestNotLast = 73,
InvalidRestArg = 74,
InvalidRestDefault = 75,
StrictFunction = 76,
SloppyFunction = 77,
WebCompatFunction = 78,
ClassForbiddenAsStatement = 79,
CantAssignToInOfForLoop = 80,
InvalidAssignmentInOfForLoop = 81,
InvalidForAwait = 82,
InvalidTemplateContinuation = 83,
RestrictedLetProduction = 84,
UnexpectedLetStrictReserved = 85,
InvalidCatchParams = 86,
InvalidCatchParamDefault = 87,
NoCatchOrFinally = 88,
MultipleDefaultsInSwitch = 89,
NewlineAfterThrow = 90,
StrictWith = 91,
IllegalReturn = 92,
InvalidForLHSBinding = 93,
InvalidNewTarget = 94,
InvalidEscapedKeyword = 95,
MissingPrivateIdentifier = 96,
DisallowedInContext = 97,
AwaitOutsideAsync = 98,
InvalidStrictLet = 99,
InvalidLetConstBinding = 100,
InvalidLetClassName = 101,
KeywordNotId = 102,
InvalidImportExportSloppy = 103,
UnicodeOverflow = 104,
InvalidExportImportSource = 105,
InvalidKeywordAsAlias = 106,
InvalidDefaultImport = 107,
TrailingDecorators = 108,
GeneratorConstructor = 109,
AwaitIdentInModuleOrAsyncFunc = 110,
YieldIdentInModule = 111,
HtmlCommentInWebCompat = 112,
StrictInvalidLetInExprPos = 113,
NotAssignableLetArgs = 114,
ForOfLet = 115,
InvalidInvokedBlockBodyArrow = 116,
InvalidAccessedBlockBodyArrow = 117,
UnexpectedStrictReserved = 118,
StrictEvalArguments = 119,
InvalidDecoratorSemicolon = 120,
StrictDelete = 121,
InvalidPatternTail = 122,
AsyncFunctionInSingleStatementContext = 123,
InvalidTernaryYield = 124,
InvalidArrowPostfix = 125,
InvalidObjLitKeyStar = 126,
DeletePrivateField = 127,
InvalidStaticClassFieldConstructor = 128,
InvalidClassFieldConstructor = 129,
InvalidClassFieldArgEval = 130,
InvalidGeneratorFunction = 131,
AsyncRestrictedProd = 132,
UnexpectedCharAfterObjLit = 133,
InvalidObjLitKey = 134,
InvalidKeyToken = 135,
LabelRedeclaration = 136,
InvalidNestedStatement = 137,
UnknownLabel = 138,
InvalidImportTail = 139,
InvalidJSONImportBinding = 140,
ImportNotOneArg = 141,
InvalidImportNew = 142,
InvalidSpreadInImport = 143,
IncompleteArrow = 144,
DuplicateBinding = 145,
DuplicatePrivateIdentifier = 146,
DuplicateExportBinding = 147,
UndeclaredExportedBinding = 148,
UnexpectedPrivateField = 149,
DuplicateLetConstBinding = 150,
CantAssignToValidRHS = 151,
ContinuousNumericSeparator = 152,
TrailingNumericSeparator = 153,
InvalidJSXAttributeValue = 154,
ExpectedJSXClosingTag = 155,
AdjacentJSXElements = 156,
InvalidNonEmptyJSXExpr = 157,
DuplicateIdentifier = 158,
ShadowedCatchClause = 159,
InvalidDotProperty = 160,
UnclosedSpreadElement = 161,
CatchWithoutTry = 162,
FinallyWithoutTry = 163,
UnCorrespondingFragmentTag = 164,
InvalidCoalescing = 165,
OptionalChainingNoTemplate = 166,
OptionalChainingNoSuper = 167,
OptionalChainingNoNew = 168,
ImportMetaOutsideModule = 169,
InvalidLeadingDecorator = 170,
InvalidExportName = 171,
InvalidExportReference = 172,
InvalidSuperPrivate = 173,
InvalidImportMeta = 174,
InvalidEscapedImportMeta = 175,
InvalidAwaitAsIdentifier = 176,
InvalidAwaitInStaticBlock = 177
}
export declare class ParseError extends SyntaxError implements _Node {
start: number;
end: number;
range: [number, number];
loc: SourceLocation;
description: string;
constructor(start: Location, end: Location, type: Errors, ...params: string[]);
}
+518
View File
@@ -0,0 +1,518 @@
export interface _Node {
start?: number;
end?: number;
range?: [number, number];
loc?: SourceLocation | null;
}
export interface SourceLocation {
source?: string | null;
start: Position;
end: Position;
}
export interface Position {
line: number;
column: number;
}
export type Labels = any;
export type IdentifierOrExpression = Identifier | Expression | ArrowFunctionExpression;
export type ArgumentExpression = ArrayExpression | AssignmentExpression | ConditionalExpression | Literal | SpreadElement | BinaryExpression | LogicalExpression | SequenceExpression;
export type CommentType = 'SingleLine' | 'MultiLine' | 'HTMLOpen' | 'HTMLClose' | 'HashbangComment';
export interface Comment extends _Node {
type: CommentType;
value: string;
}
export type Node = AccessorProperty | ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BigIntLiteral | BinaryExpression | BlockStatement | BreakStatement | CallExpression | ChainExpression | ImportExpression | CatchClause | ClassBody | ClassDeclaration | ClassExpression | ConditionalExpression | ContinueStatement | DebuggerStatement | Decorator | DoWhileStatement | EmptyStatement | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ExportSpecifier | ExpressionStatement | PropertyDefinition | ForInStatement | ForOfStatement | ForStatement | FunctionDeclaration | FunctionExpression | Identifier | IfStatement | ImportDeclaration | ImportDefaultSpecifier | ImportAttribute | ImportNamespaceSpecifier | ImportSpecifier | JSXNamespacedName | JSXAttribute | JSXClosingElement | JSXClosingFragment | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXFragment | JSXIdentifier | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | JSXMemberExpression | JSXText | LabeledStatement | Literal | LogicalExpression | MemberExpression | MetaProperty | MethodDefinition | NewExpression | ObjectExpression | ObjectPattern | ParenthesizedExpression | PrivateIdentifier | Program | Property | RegExpLiteral | RestElement | ReturnStatement | SequenceExpression | SpreadElement | StaticBlock | Super | SwitchCase | SwitchStatement | TaggedTemplateExpression | TemplateElement | TemplateLiteral | ThisExpression | ThrowStatement | TryStatement | UpdateExpression | UnaryExpression | VariableDeclaration | VariableDeclarator | WhileStatement | WithStatement | YieldExpression;
export type BindingPattern = ArrayPattern | ObjectPattern | Identifier;
export type ClassElement = FunctionExpression | MethodDefinition;
export type DeclarationStatement = ClassDeclaration | ClassExpression | ExportDefaultDeclaration | ExportAllDeclaration | ExportNamedDeclaration | FunctionDeclaration;
export type EntityName = Identifier;
export type ExportDeclaration = ClassDeclaration | ClassExpression | FunctionDeclaration | VariableDeclaration;
export type Expression = ArrowFunctionExpression | AssignmentExpression | BinaryExpression | ConditionalExpression | MetaProperty | ChainExpression | JSXClosingElement | JSXClosingFragment | JSXExpressionContainer | JSXOpeningElement | JSXOpeningFragment | JSXSpreadChild | LogicalExpression | NewExpression | RestElement | SequenceExpression | SpreadElement | AwaitExpression | LeftHandSideExpression | UnaryExpression | UpdateExpression | YieldExpression;
export type ForInitializer = Expression | VariableDeclaration;
export { ForInitializer as ForInitialiser };
export type ImportClause = ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier;
export type IterationStatement = DoWhileStatement | ForInStatement | ForOfStatement | ForStatement | WhileStatement;
export type JSXChild = JSXElement | JSXExpression | JSXFragment | JSXText;
export type JSXExpression = JSXEmptyExpression | JSXSpreadChild | JSXExpressionContainer;
export type JSXTagNameExpression = JSXIdentifier | JSXMemberExpression | JSXNamespacedName;
export type LeftHandSideExpression = CallExpression | ChainExpression | ImportExpression | ClassExpression | ClassDeclaration | FunctionExpression | LiteralExpression | MemberExpression | PrimaryExpression | TaggedTemplateExpression;
export type LiteralExpression = Literal | TemplateLiteral;
export type ObjectLiteralElementLike = MethodDefinition | Property | RestElement | SpreadElement;
export type Parameter = AssignmentPattern | RestElement | ArrayPattern | ObjectPattern | Identifier;
export type PrimaryExpression = ArrayExpression | ArrayPattern | ClassExpression | FunctionExpression | Identifier | JSXElement | JSXFragment | JSXOpeningElement | Literal | LiteralExpression | MetaProperty | ObjectExpression | ObjectPattern | Super | TemplateLiteral | ThisExpression;
export type PrimaryExpressionExtended = ArrayExpression | ArrowFunctionExpression | ArrayPattern | AwaitExpression | Expression | ClassExpression | FunctionExpression | Identifier | JSXElement | JSXFragment | JSXOpeningElement | Literal | LiteralExpression | MetaProperty | ObjectExpression | ObjectPattern | PrivateIdentifier | NewExpression | Super | TemplateLiteral | ThisExpression | UnaryExpression | UpdateExpression;
export type PropertyName = Identifier | Literal;
export type Statement = BlockStatement | BreakStatement | ContinueStatement | DebuggerStatement | DeclarationStatement | EmptyStatement | ExpressionStatement | IfStatement | IterationStatement | ImportDeclaration | LabeledStatement | ReturnStatement | SwitchStatement | ThrowStatement | TryStatement | VariableDeclaration | WithStatement;
interface ClassDeclarationBase extends _Node {
id: Identifier | null;
body: ClassBody;
superClass: Expression | null;
decorators?: Decorator[];
}
interface FunctionDeclarationBase extends _Node {
id: Identifier | null;
generator: boolean;
async: boolean;
params: Parameter[];
body?: BlockStatement | null;
}
export interface BlockStatementBase extends _Node {
body: Statement[];
}
export interface ArrayExpression extends _Node {
type: 'ArrayExpression';
elements: (Expression | SpreadElement | null)[];
}
export interface ArrayPattern extends _Node {
type: 'ArrayPattern';
elements: Expression[];
}
export interface ArrowFunctionExpression extends _Node {
type: 'ArrowFunctionExpression';
params: Parameter[];
body: Expression | BlockStatement;
async: boolean;
expression: boolean;
generator: false;
}
export interface AssignmentExpression extends _Node {
type: 'AssignmentExpression';
operator: string;
left: Expression;
right: Expression;
}
export interface AssignmentPattern extends _Node {
type: 'AssignmentPattern';
left: BindingPattern | Identifier;
right?: Expression;
}
export interface AwaitExpression extends _Node {
type: 'AwaitExpression';
argument: Expression;
}
export interface BigIntLiteral extends Literal {
bigint: string;
}
export interface BinaryExpression extends _Node {
type: 'BinaryExpression';
operator: string;
left: Expression | PrivateIdentifier;
right: Expression;
}
export interface BlockStatement extends BlockStatementBase {
type: 'BlockStatement';
}
export interface BreakStatement extends _Node {
type: 'BreakStatement';
label: Identifier | null;
}
export interface ImportExpression extends _Node {
type: 'ImportExpression';
source: Expression;
options?: Expression | null;
}
export interface ChainExpression extends _Node {
type: 'ChainExpression';
expression: CallExpression | MemberExpression;
}
export interface CallExpression extends _Node {
type: 'CallExpression';
callee: any;
arguments: (Expression | SpreadElement)[];
optional: boolean;
}
export interface CatchClause extends _Node {
type: 'CatchClause';
param: BindingPattern | Identifier | null;
body: BlockStatement;
}
export interface StaticBlock extends BlockStatementBase {
type: 'StaticBlock';
}
export interface ClassBody extends _Node {
type: 'ClassBody';
body: (ClassElement | PropertyDefinition | AccessorProperty | StaticBlock)[];
}
export interface AccessorProperty extends _Node {
type: 'AccessorProperty';
key: PrivateIdentifier | Expression;
value: any;
decorators?: Decorator[];
computed: boolean;
static: boolean;
}
export interface PropertyDefinition extends _Node {
type: 'PropertyDefinition';
key: PrivateIdentifier | Expression;
value: any;
decorators?: Decorator[];
computed: boolean;
static: boolean;
}
export interface PrivateIdentifier extends _Node {
type: 'PrivateIdentifier';
name: string;
}
export interface ClassDeclaration extends ClassDeclarationBase {
type: 'ClassDeclaration';
}
export interface ClassExpression extends ClassDeclarationBase {
type: 'ClassExpression';
}
export interface ConditionalExpression extends _Node {
type: 'ConditionalExpression';
test: Expression;
consequent: Expression;
alternate: Expression;
}
export interface ContinueStatement extends _Node {
type: 'ContinueStatement';
label: Identifier | null;
}
export interface DebuggerStatement extends _Node {
type: 'DebuggerStatement';
}
export interface Decorator extends _Node {
type: 'Decorator';
expression: LeftHandSideExpression;
}
export interface DoWhileStatement extends _Node {
type: 'DoWhileStatement';
test: Expression;
body: Statement;
}
export interface EmptyStatement extends _Node {
type: 'EmptyStatement';
}
export interface ExportAllDeclaration extends _Node {
type: 'ExportAllDeclaration';
source: Literal;
exported: Identifier | Literal | null;
attributes: ImportAttribute[];
}
export interface ExportDefaultDeclaration extends _Node {
type: 'ExportDefaultDeclaration';
declaration: ExportDeclaration | Expression;
}
export interface ExportNamedDeclaration extends _Node {
type: 'ExportNamedDeclaration';
declaration: ExportDeclaration | null;
specifiers: ExportSpecifier[];
source: Literal | null;
attributes: ImportAttribute[];
}
export interface ExportSpecifier extends _Node {
type: 'ExportSpecifier';
local: Identifier | Literal;
exported: Identifier | Literal;
}
export interface ExpressionStatement extends _Node {
type: 'ExpressionStatement';
expression: Expression;
directive?: string;
}
export interface ForInStatement extends _Node {
type: 'ForInStatement';
left: ForInitializer;
right: Expression;
body: Statement;
}
export interface ForOfStatement extends _Node {
type: 'ForOfStatement';
left: ForInitializer;
right: Expression;
body: Statement;
await: boolean;
}
export interface ForStatement extends _Node {
type: 'ForStatement';
init: Expression | ForInitializer | null;
test: Expression | null;
update: Expression | null;
body: Statement;
}
export interface FunctionDeclaration extends FunctionDeclarationBase {
type: 'FunctionDeclaration';
}
export interface FunctionExpression extends FunctionDeclarationBase {
type: 'FunctionExpression';
}
export interface Identifier extends _Node {
type: 'Identifier';
name: string;
}
export interface IfStatement extends _Node {
type: 'IfStatement';
test: Expression;
consequent: Statement;
alternate: Statement | null;
}
export interface ImportDeclaration extends _Node {
type: 'ImportDeclaration';
source: Literal;
specifiers: ImportClause[];
attributes: ImportAttribute[];
}
export interface ImportAttribute extends _Node {
type: 'ImportAttribute';
key: Identifier | Literal;
value: Literal;
}
export interface ImportDefaultSpecifier extends _Node {
type: 'ImportDefaultSpecifier';
local: Identifier;
}
export interface ImportNamespaceSpecifier extends _Node {
type: 'ImportNamespaceSpecifier';
local: Identifier;
}
export interface ImportSpecifier extends _Node {
type: 'ImportSpecifier';
local: Identifier;
imported: Identifier | Literal;
}
export interface JSXNamespacedName extends _Node {
type: 'JSXNamespacedName';
namespace: JSXIdentifier | JSXMemberExpression;
name: JSXIdentifier;
}
export type JSXAttributeValue = JSXIdentifier | Literal | JSXElement | JSXFragment | JSXExpressionContainer | JSXSpreadChild | null;
export interface JSXAttribute extends _Node {
type: 'JSXAttribute';
name: JSXNamespacedName | JSXIdentifier;
value: JSXAttributeValue;
}
export interface JSXClosingElement extends _Node {
type: 'JSXClosingElement';
name: JSXTagNameExpression;
}
export interface JSXClosingFragment extends _Node {
type: 'JSXClosingFragment';
}
export interface JSXElement extends _Node {
type: 'JSXElement';
openingElement: JSXOpeningElement;
closingElement: JSXClosingElement | null;
children: JSXChild[];
}
export interface JSXEmptyExpression extends _Node {
type: 'JSXEmptyExpression';
}
export interface JSXExpressionContainer extends _Node {
type: 'JSXExpressionContainer';
expression: Expression | JSXEmptyExpression;
}
export interface JSXFragment extends _Node {
type: 'JSXFragment';
openingFragment: JSXOpeningFragment;
closingFragment: JSXClosingFragment;
children: JSXChild[];
}
export interface JSXIdentifier extends _Node {
type: 'JSXIdentifier';
name: string;
}
export interface JSXMemberExpression extends _Node {
type: 'JSXMemberExpression';
object: JSXTagNameExpression;
property: JSXIdentifier;
}
export interface JSXOpeningElement extends _Node {
type: 'JSXOpeningElement';
selfClosing: boolean;
name: JSXTagNameExpression;
attributes: (JSXAttribute | JSXSpreadAttribute)[];
}
export interface JSXOpeningFragment extends _Node {
type: 'JSXOpeningFragment';
}
export interface JSXSpreadAttribute extends _Node {
type: 'JSXSpreadAttribute';
argument: Expression;
}
export interface JSXSpreadChild extends _Node {
type: 'JSXSpreadChild';
expression: Expression | JSXEmptyExpression;
}
export interface JSXText extends _Node {
type: 'JSXText';
value: string;
raw?: string;
}
export interface LabeledStatement extends _Node {
type: 'LabeledStatement';
label: Identifier;
body: Statement;
}
export interface Literal extends _Node {
type: 'Literal';
value: boolean | number | string | null | RegExp | bigint;
raw?: string;
}
export interface LogicalExpression extends _Node {
type: 'LogicalExpression';
operator: string;
left: Expression;
right: Expression;
}
export interface MemberExpression extends _Node {
type: 'MemberExpression';
object: Expression | Super;
property: Expression | PrivateIdentifier;
computed: boolean;
optional: boolean;
}
export type Pattern = Identifier | ObjectPattern | ArrayPattern | RestElement | AssignmentPattern | MemberExpression;
export interface MetaProperty extends _Node {
type: 'MetaProperty';
meta: Identifier;
property: Identifier;
}
export interface MethodDefinition extends _Node {
type: 'MethodDefinition';
key: Expression | PrivateIdentifier | null;
value: FunctionExpression;
computed: boolean;
static: boolean;
kind: 'method' | 'get' | 'set' | 'constructor';
decorators?: Decorator[];
}
export interface NewExpression extends _Node {
type: 'NewExpression';
callee: LeftHandSideExpression;
arguments: Expression[];
}
export interface ObjectExpression extends _Node {
type: 'ObjectExpression';
properties: ObjectLiteralElementLike[];
}
export interface ObjectPattern extends _Node {
type: 'ObjectPattern';
properties: ObjectLiteralElementLike[];
}
export interface Program extends _Node {
type: 'Program';
body: Statement[];
sourceType: 'module' | 'script';
}
export interface ParenthesizedExpression extends _Node {
type: 'ParenthesizedExpression';
expression: Expression;
}
export interface Property extends _Node {
type: 'Property';
key: Expression;
value: Expression | AssignmentPattern | BindingPattern | Identifier;
computed: boolean;
method: boolean;
shorthand: boolean;
kind: 'init' | 'get' | 'set';
}
export interface RegExpLiteral extends Literal {
regex: {
pattern: string;
flags: string;
};
}
export interface RestElement extends _Node {
type: 'RestElement';
argument: BindingPattern | Identifier | Expression | PropertyName;
value?: AssignmentPattern;
}
export interface ReturnStatement extends _Node {
type: 'ReturnStatement';
argument: Expression | null;
}
export interface SequenceExpression extends _Node {
type: 'SequenceExpression';
expressions: Expression[];
}
export type SpreadArgument = BindingPattern | Identifier | Expression | PropertyName | SpreadElement;
export interface SpreadElement extends _Node {
type: 'SpreadElement';
argument: SpreadArgument;
}
export interface Super extends _Node {
type: 'Super';
}
export interface SwitchCase extends _Node {
type: 'SwitchCase';
test: Expression | null;
consequent: Statement[];
}
export interface SwitchStatement extends _Node {
type: 'SwitchStatement';
discriminant: Expression;
cases: SwitchCase[];
}
export interface TaggedTemplateExpression extends _Node {
type: 'TaggedTemplateExpression';
tag: Expression;
quasi: TemplateLiteral;
}
export interface TemplateElement extends _Node {
type: 'TemplateElement';
value: {
raw: string;
cooked: string | null;
};
tail: boolean;
}
export interface TemplateLiteral extends _Node {
type: 'TemplateLiteral';
quasis: TemplateElement[];
expressions: Expression[];
}
export interface ThisExpression extends _Node {
type: 'ThisExpression';
}
export interface ThrowStatement extends _Node {
type: 'ThrowStatement';
argument: Expression;
}
export interface TryStatement extends _Node {
type: 'TryStatement';
block: BlockStatement;
handler: CatchClause | null;
finalizer: BlockStatement | null;
}
export type UnaryOperator = '-' | '+' | '!' | '~' | 'typeof' | 'void' | 'delete';
export type UpdateOperator = '++' | '--';
export interface UpdateExpression extends _Node {
type: 'UpdateExpression';
operator: UpdateOperator;
argument: Expression;
prefix: boolean;
}
export interface UnaryExpression extends _Node {
type: 'UnaryExpression';
operator: UnaryOperator;
prefix: true;
argument: Expression;
}
export interface VariableDeclaration extends _Node {
type: 'VariableDeclaration';
declarations: VariableDeclarator[];
kind: 'let' | 'const' | 'var';
}
export interface VariableDeclarator extends _Node {
type: 'VariableDeclarator';
id: Expression | BindingPattern | Identifier;
init: Expression | null;
definite?: boolean;
}
export interface WhileStatement extends _Node {
type: 'WhileStatement';
test: Expression;
body: Statement;
}
export interface WithStatement extends _Node {
type: 'WithStatement';
object: Expression;
body: Statement;
}
export interface YieldExpression extends _Node {
type: 'YieldExpression';
delegate: boolean;
argument?: Expression | null;
}
+23
View File
@@ -0,0 +1,23 @@
export declare const enum CharFlags {
None = 0,
IdentifierStart = 1,
IdentifierPart = 2,
KeywordCandidate = 4,
LineTerminator = 8,
Decimal = 16,
Octal = 32,
Hex = 64,
Binary = 128,
Exponent = 256,
ImplicitOctalDigits = 512,
CarriageReturn = 1024,
LineFeed = 2048,
Underscore = 4096,
StringLiteral = 8192,
JSXToken = 16384,
Hyphen = 32768
}
export declare const CharTypes: number[];
export declare const isIdPart: number[];
export declare function isIdentifierStart(code: number): boolean;
export declare function isIdentifierPart(code: number): boolean;
+14
View File
@@ -0,0 +1,14 @@
import { LexerState } from './common';
import { Context, type Location } from '../common';
import { type Parser } from '../parser/parser';
export declare const enum CommentType {
Single = 0,
Multi = 1,
HTMLOpen = 2,
HTMLClose = 3,
HashBang = 4
}
export declare function skipHashBang(parser: Parser): void;
export declare function skipSingleHTMLComment(parser: Parser, source: string, state: LexerState, context: Context, type: CommentType, start: Location): LexerState;
export declare function skipSingleLineComment(parser: Parser, source: string, state: LexerState, type: CommentType, start: Location): LexerState;
export declare function skipMultiLineComment(parser: Parser, source: string, state: LexerState): LexerState | void;
+25
View File
@@ -0,0 +1,25 @@
import { Token } from '../token';
import { type Parser } from '../parser/parser';
export declare const enum LexerState {
None = 0,
NewLine = 1,
LastIsCR = 4
}
export declare const enum NumberKind {
ImplicitOctal = 1,
Binary = 2,
Octal = 4,
Hex = 8,
Decimal = 16,
NonOctalDecimal = 32,
Float = 64,
ValidBigIntKind = 128,
DecimalNumberKind = 48
}
export declare function advanceChar(parser: Parser): number;
export declare function consumePossibleSurrogatePair(parser: Parser): number;
export declare function consumeLineFeed(parser: Parser, state: LexerState): void;
export declare function scanNewLine(parser: Parser): void;
export declare function isExoticECMAScriptWhitespace(ch: number): boolean;
export declare function toHex(code: number): number;
export declare function convertTokenType(t: Token): string;
+1
View File
@@ -0,0 +1 @@
export declare function decodeHTMLStrict(text: string): string;
+7
View File
@@ -0,0 +1,7 @@
import { Token } from './../token';
import { Context } from '../common';
import { type Parser } from '../parser/parser';
export declare function scanIdentifier(parser: Parser, context: Context, isValidAsKeyword: 0 | 1): Token;
export declare function scanUnicodeIdentifier(parser: Parser, context: Context): Token;
export declare function scanIdentifierSlowCase(parser: Parser, context: Context, hasEscape: 0 | 1, isValidAsKeyword: number): Token;
export declare function scanPrivateIdentifier(parser: Parser): Token;
+3
View File
@@ -0,0 +1,3 @@
export { scanSingleToken, nextToken } from './scan';
export { skipHashBang } from './comments';
export { advanceChar, consumeLineFeed, scanNewLine, LexerState, convertTokenType } from './common';
+6
View File
@@ -0,0 +1,6 @@
import { Token } from '../token';
import { type Context } from '../common';
import { type Parser } from '../parser/parser';
export declare function scanJSXAttributeValue(parser: Parser, context: Context): Token;
export declare function nextJSXToken(parser: Parser): void;
export declare function rescanJSXIdentifier(parser: Parser): Token;
+5
View File
@@ -0,0 +1,5 @@
import { Context } from '../common';
import { type Parser } from '../parser/parser';
import { Token } from '../token';
import { NumberKind } from './common';
export declare function scanNumber(parser: Parser, context: Context, kind: NumberKind): Token;
+3
View File
@@ -0,0 +1,3 @@
import { type Parser } from '../parser/parser';
import { Token } from '../token';
export declare function scanRegularExpression(parser: Parser): Token;
+6
View File
@@ -0,0 +1,6 @@
import { Token } from '../token';
import { Context } from '../common';
import { type Parser } from '../parser/parser';
import { LexerState } from './common';
export declare function nextToken(parser: Parser, context: Context): void;
export declare function scanSingleToken(parser: Parser, context: Context, state: LexerState): Token;
+13
View File
@@ -0,0 +1,13 @@
import { Context } from '../common';
import { type Parser } from '../parser/parser';
import { Token } from '../token';
export declare const enum Escape {
Empty = -1,
StrictOctal = -2,
EightOrNine = -3,
InvalidHex = -4,
OutOfRange = -5
}
export declare function scanString(parser: Parser, context: Context, quote: number): Token;
export declare function parseEscape(parser: Parser, context: Context, first: number, isTemplate?: 0 | 1): number;
export declare function handleStringError(parser: Parser, code: Escape, isTemplate: 0 | 1): void;
+5
View File
@@ -0,0 +1,5 @@
import { Context } from '../common';
import { type Parser } from '../parser/parser';
import { Token } from '../token';
export declare function scanTemplate(parser: Parser, context: Context): Token;
export declare function scanTemplateTail(parser: Parser, context: Context): Token;
+8
View File
@@ -0,0 +1,8 @@
import { type Program } from './estree';
import { type Options } from './options';
declare const version: string;
export declare function parseScript(source: string, options?: Options): Program;
export declare function parseModule(source: string, options?: Options): Program;
export declare function parse(source: string, options?: Options): Program;
export { type Options, version };
export type * as ESTree from './estree';
+29
View File
@@ -0,0 +1,29 @@
import type * as ESTree from './estree';
import { type Token } from './token';
type OnInsertedSemicolon = (pos: number) => any;
export type OnToken = (token: string, start: number, end: number, loc: ESTree.SourceLocation) => any;
export type OnComment = (type: ESTree.CommentType, value: string, start: number, end: number, loc: ESTree.SourceLocation) => any;
export interface Options {
module?: boolean;
next?: boolean;
ranges?: boolean;
webcompat?: boolean;
loc?: boolean;
raw?: boolean;
globalReturn?: boolean;
impliedStrict?: boolean;
preserveParens?: boolean;
lexical?: boolean;
source?: string;
jsx?: boolean;
onComment?: ESTree.Comment[] | OnComment;
onInsertedSemicolon?: OnInsertedSemicolon;
onToken?: Token[] | OnToken;
uniqueKeyInPattern?: boolean;
}
export type NormalizedOptions = Omit<Options, 'onComment' | 'onToken'> & {
onComment?: OnComment;
onToken?: OnToken;
};
export declare function normalizeOptions(rawOptions: Options): NormalizedOptions;
export {};
+9
View File
@@ -0,0 +1,9 @@
import { Token } from './token';
import type * as ESTree from './estree';
import { Context, type Location } from './common';
import { Parser } from './parser/parser';
import { type Options } from './options';
import { type Scope } from './parser/scope';
export declare function parseSource(source: string, rawOptions?: Options, context?: Context): ESTree.Program;
export declare function parseModuleItem(parser: Parser, context: Context, scope: Scope | undefined): any;
export declare function parseDirective(parser: Parser, context: Context, expression: ESTree.ArgumentExpression | ESTree.SequenceExpression | ESTree.Expression, token: Token, start: Location): ESTree.ExpressionStatement;
+53
View File
@@ -0,0 +1,53 @@
import { Token } from '../token';
import type * as ESTree from '../estree';
import { type Location, Flags, type AssignmentKind, type DestructuringKind } from '../common';
import { Errors } from '../errors';
import { type NormalizedOptions, type OnComment, type OnToken } from '../options';
import { Scope, type ScopeKind } from './scope';
import { PrivateScope } from './private-scope';
export declare class Parser {
readonly source: string;
readonly options: NormalizedOptions;
private lastOnToken;
token: Token;
flags: Flags;
index: number;
line: number;
column: number;
startIndex: number;
end: number;
tokenIndex: number;
startColumn: number;
tokenColumn: number;
tokenLine: number;
startLine: number;
tokenValue: any;
tokenRaw: string;
tokenRegExp: void | {
pattern: string;
flags: string;
};
currentChar: number;
exportedNames: Set<string>;
exportedBindings: Set<string>;
assignable: AssignmentKind | DestructuringKind;
destructible: AssignmentKind | DestructuringKind;
leadingDecorators: {
start?: Location;
decorators: ESTree.Decorator[];
};
constructor(source: string, options?: NormalizedOptions);
getToken(): Token;
setToken(value: Token, replaceLast?: boolean): Token;
get tokenStart(): Location;
get currentLocation(): Location;
finishNode<T extends ESTree.Node>(node: T, start: Location, end: Location | void): T;
addBindingToExports(name: string): void;
declareUnboundVariable(name: string): void;
report(type: Errors, ...params: string[]): never;
createScopeIfLexical(type?: ScopeKind, parent?: Scope): Scope | undefined;
createScope(type?: ScopeKind, parent?: Scope): Scope;
createPrivateScopeIfLexical(parent?: PrivateScope): PrivateScope | undefined;
}
export declare function pushComment(comments: ESTree.Comment[], options: NormalizedOptions): OnComment;
export declare function pushToken(tokens: Token[], options: NormalizedOptions): OnToken;
+16
View File
@@ -0,0 +1,16 @@
import { PropertyKind, type Location } from '../common';
import { type Parser } from './parser';
export declare class PrivateScope {
readonly parser: Parser;
readonly parent?: PrivateScope | undefined;
refs: {
[name: string]: Location[];
};
privateIdentifiers: Map<string, PropertyKind>;
constructor(parser: Parser, parent?: PrivateScope | undefined);
addPrivateIdentifier(name: string, kind: PropertyKind): void;
addPrivateIdentifierRef(name: string): void;
isPrivateIdentifierDefined(name: string): boolean;
validatePrivateIdentifierRefs(): void;
hasPrivateIdentifier(name: string): boolean;
}
+38
View File
@@ -0,0 +1,38 @@
import { Errors } from '../errors';
import { type Location, Context, BindingKind, Origin } from '../common';
import { type Parser } from './parser';
export declare const enum ScopeKind {
ForStatement = 1,
Block = 2,
CatchStatement = 4,
SwitchStatement = 8,
TryStatement = 16,
CatchBlock = 32,
FunctionBody = 64,
FunctionRoot = 128,
FunctionParams = 256,
ArrowParams = 512
}
interface ScopeError {
type: Errors;
params: string[];
start: Location;
end: Location;
}
export declare class Scope {
readonly parser: Parser;
readonly type: ScopeKind;
readonly parent?: Scope | undefined;
scopeError?: ScopeError;
variableBindings: Map<string, BindingKind>;
constructor(parser: Parser, type?: ScopeKind, parent?: Scope | undefined);
createChildScope(type?: ScopeKind): Scope;
addVarOrBlock(context: Context, name: string, kind: BindingKind, origin: Origin): void;
addVarName(context: Context, name: string, kind: BindingKind): void;
hasVariable(name: string): boolean;
addBlockName(context: Context, name: string, kind: BindingKind, origin: Origin): void;
recordScopeError(type: Errors, ...params: string[]): void;
reportScopeError(): void;
}
export declare function createArrowHeadParsingScope(parser: Parser, context: Context, value: string): Scope;
export {};
+167
View File
@@ -0,0 +1,167 @@
export declare const enum Token {
Type = 255,
PrecedenceStart = 8,
Precedence = 3840,
Keyword = 4096,
Contextual = 12288,
Reserved = 20480,
FutureReserved = 36864,
IsExpressionStart = 65536,
IsIdentifier = 143360,
IsInOrOf = 262144,
IsLogical = 524288,
IsAutoSemicolon = 1048576,
IsPatternStart = 2097152,
IsAssignOp = 4194304,
IsBinaryOp = 8388608,
IsUnaryOp = 16842752,
IsUpdateOp = 33619968,
IsMemberOrCallExpression = 67108864,
IsStringOrNumber = 134217728,
IsCoalesce = 268435456,
IsEvalOrArguments = 537079808,
IsClassField = 1073741824,
IsEscaped = -2147483648,
EOF = 1048576,
Identifier = 208897,
NumericLiteral = 134283266,
StringLiteral = 134283267,
RegularExpression = 65540,
FalseKeyword = 86021,
TrueKeyword = 86022,
NullKeyword = 86023,
TemplateContinuation = 67174408,
TemplateSpan = 67174409,
Arrow = 10,
LeftParen = 67174411,
LeftBrace = 2162700,
Period = 67108877,
Ellipsis = 14,
RightBrace = 1074790415,
RightParen = 16,
Semicolon = 1074790417,
Comma = 18,
LeftBracket = 69271571,
RightBracket = 20,
Colon = 21,
QuestionMark = 22,
SingleQuote = 23,
DoubleQuote = 24,
Increment = 33619993,
Decrement = 33619994,
Assign = 1077936155,
ShiftLeftAssign = 4194332,
ShiftRightAssign = 4194333,
LogicalShiftRightAssign = 4194334,
ExponentiationAssign = 4194335,
AddAssign = 4194336,
SubtractAssign = 4194337,
MultiplyAssign = 4194338,
DivideAssign = 4259875,
ModuloAssign = 4194340,
BitwiseXorAssign = 4194341,
BitwiseOrAssign = 4194342,
BitwiseAndAssign = 4194343,
LogicalOrAssign = 4194344,
LogicalAndAssign = 4194345,
CoalesceAssign = 4194346,
TypeofKeyword = 16863275,
DeleteKeyword = 16863276,
VoidKeyword = 16863277,
Negate = 16842798,
Complement = 16842799,
Add = 25233968,
Subtract = 25233969,
InKeyword = 8673330,
InstanceofKeyword = 8411187,
Multiply = 8391476,
Modulo = 8391477,
Divide = 8457014,
Exponentiation = 8391735,
LogicalAnd = 8913720,
LogicalOr = 8913465,
StrictEqual = 8390458,
StrictNotEqual = 8390459,
LooseEqual = 8390460,
LooseNotEqual = 8390461,
LessThanOrEqual = 8390718,
GreaterThanOrEqual = 8390719,
LessThan = 8456256,
GreaterThan = 8390721,
ShiftLeft = 8390978,
ShiftRight = 8390979,
LogicalShiftRight = 8390980,
BitwiseAnd = 8390213,
BitwiseOr = 8389702,
BitwiseXor = 8389959,
VarKeyword = 86088,
LetKeyword = 241737,
ConstKeyword = 86090,
BreakKeyword = 20555,
CaseKeyword = 20556,
CatchKeyword = 20557,
ClassKeyword = 86094,
ContinueKeyword = 20559,
DebuggerKeyword = 20560,
DefaultKeyword = 20561,
DoKeyword = 20562,
ElseKeyword = 20563,
ExportKeyword = 20564,
ExtendsKeyword = 20565,
FinallyKeyword = 20566,
ForKeyword = 20567,
FunctionKeyword = 86104,
IfKeyword = 20569,
ImportKeyword = 86106,
NewKeyword = 86107,
ReturnKeyword = 20572,
SuperKeyword = 86109,
SwitchKeyword = 86110,
ThisKeyword = 86111,
ThrowKeyword = 86112,
TryKeyword = 20577,
WhileKeyword = 20578,
WithKeyword = 20579,
ImplementsKeyword = 36964,
InterfaceKeyword = 36965,
PackageKeyword = 36966,
PrivateKeyword = 36967,
ProtectedKeyword = 36968,
PublicKeyword = 36969,
StaticKeyword = 36970,
YieldKeyword = 241771,
AsKeyword = 77932,
AsyncKeyword = 209005,
AwaitKeyword = 209006,
ConstructorKeyword = 12399,
GetKeyword = 209008,
SetKeyword = 209009,
AccessorKeyword = 12402,
FromKeyword = 209011,
OfKeyword = 471156,
EnumKeyword = 86133,
Eval = 537079926,
Arguments = 537079927,
EscapedReserved = -2147483528,
EscapedFutureReserved = -2147483527,
AnyIdentifier = 209018,
PrivateIdentifier = 123,
BigIntLiteral = 134283388,
Coalesce = 276824445,
QuestionMarkPeriod = 67108990,
WhiteSpace = 127,
Illegal = 128,
CarriageReturn = 129,
PrivateField = 130,
Template = 131,
Decorator = 132,
Target = 209029,
Meta = 209030,
LineFeed = 135,
EscapeStart = 136,
JSXText = 137
}
export declare const KeywordDescTable: string[];
export declare const descKeywordTable: {
[key: string]: Token;
};
+2
View File
@@ -0,0 +1,2 @@
export declare const isIDContinue: (code: number) => boolean;
export declare const isIDStart: (code: number) => boolean;