2020-05-10 11:58:07 +02:00
|
|
|
|
|
|
|
export const enum SyntaxKind {
|
2020-05-22 19:50:47 +02:00
|
|
|
EndOfFile = 2,
|
|
|
|
FunctionBody = 4,
|
|
|
|
BoltStringLiteral = 6,
|
|
|
|
BoltIntegerLiteral = 7,
|
|
|
|
BoltIdentifier = 9,
|
|
|
|
BoltOperator = 10,
|
|
|
|
BoltAssignment = 11,
|
2020-05-10 23:50:42 +02:00
|
|
|
BoltComma = 12,
|
|
|
|
BoltSemi = 13,
|
|
|
|
BoltColon = 14,
|
|
|
|
BoltDot = 15,
|
|
|
|
BoltDotDot = 16,
|
|
|
|
BoltRArrow = 17,
|
|
|
|
BoltLArrow = 18,
|
|
|
|
BoltEqSign = 19,
|
|
|
|
BoltGtSign = 20,
|
|
|
|
BoltLtSign = 21,
|
|
|
|
BoltFnKeyword = 23,
|
|
|
|
BoltForeignKeyword = 24,
|
2020-05-22 21:57:42 +02:00
|
|
|
BoltForKeyword = 25,
|
|
|
|
BoltLetKeyword = 26,
|
|
|
|
BoltReturnKeyword = 27,
|
|
|
|
BoltLoopKeyword = 28,
|
|
|
|
BoltYieldKeyword = 29,
|
|
|
|
BoltMatchKeyword = 30,
|
|
|
|
BoltImportKeyword = 31,
|
|
|
|
BoltPubKeyword = 32,
|
|
|
|
BoltModKeyword = 33,
|
|
|
|
BoltMutKeyword = 34,
|
|
|
|
BoltEnumKeyword = 35,
|
|
|
|
BoltStructKeyword = 36,
|
|
|
|
BoltTypeKeyword = 37,
|
|
|
|
BoltTraitKeyword = 38,
|
|
|
|
BoltImplKeyword = 39,
|
|
|
|
BoltParenthesized = 41,
|
|
|
|
BoltBraced = 42,
|
|
|
|
BoltBracketed = 43,
|
|
|
|
BoltSourceFile = 44,
|
|
|
|
BoltQualName = 45,
|
|
|
|
BoltSentence = 46,
|
|
|
|
BoltReferenceTypeExpression = 48,
|
|
|
|
BoltTypeParameter = 49,
|
|
|
|
BoltBindPattern = 51,
|
|
|
|
BoltTypePattern = 52,
|
|
|
|
BoltExpressionPattern = 53,
|
|
|
|
BoltTuplePatternElement = 54,
|
|
|
|
BoltTuplePattern = 55,
|
|
|
|
BoltRecordPatternField = 56,
|
|
|
|
BoltRecordPattern = 57,
|
|
|
|
BoltReferenceExpression = 59,
|
|
|
|
BoltCallExpression = 60,
|
|
|
|
BoltYieldExpression = 61,
|
|
|
|
BoltMatchArm = 62,
|
|
|
|
BoltMatchExpression = 63,
|
|
|
|
BoltCase = 64,
|
|
|
|
BoltCaseExpression = 65,
|
|
|
|
BoltBlockExpression = 66,
|
|
|
|
BoltConstantExpression = 67,
|
|
|
|
BoltReturnStatement = 69,
|
|
|
|
BoltResumeStatement = 70,
|
|
|
|
BoltExpressionStatement = 71,
|
|
|
|
BoltParameter = 72,
|
|
|
|
BoltModule = 75,
|
|
|
|
BoltFunctionDeclaration = 76,
|
|
|
|
BoltVariableDeclaration = 77,
|
|
|
|
BoltPlainImportSymbol = 79,
|
|
|
|
BoltImportDeclaration = 80,
|
|
|
|
BoltTraitDeclaration = 81,
|
|
|
|
BoltImplDeclaration = 82,
|
|
|
|
BoltTypeAliasDeclaration = 83,
|
|
|
|
BoltRecordDeclarationField = 84,
|
|
|
|
BoltRecordDeclaration = 85,
|
|
|
|
JSOperator = 89,
|
|
|
|
JSIdentifier = 90,
|
|
|
|
JSReturnKeyword = 91,
|
|
|
|
JSTryKeyword = 92,
|
|
|
|
JSCatchKeyword = 93,
|
|
|
|
JSCloseBrace = 94,
|
|
|
|
JSCloseBracket = 95,
|
|
|
|
JSCloseParen = 96,
|
|
|
|
JSOpenBrace = 97,
|
|
|
|
JSOpenBracket = 98,
|
|
|
|
JSOpenParen = 99,
|
|
|
|
JSSemi = 100,
|
|
|
|
JSComma = 101,
|
|
|
|
JSDot = 102,
|
|
|
|
JSDotDotDot = 103,
|
|
|
|
JSBindPattern = 105,
|
|
|
|
JSConstantExpression = 107,
|
|
|
|
JSMemberExpression = 108,
|
|
|
|
JSCallExpression = 109,
|
|
|
|
JSBinaryExpression = 110,
|
|
|
|
JSUnaryExpression = 111,
|
|
|
|
JSNewExpression = 112,
|
|
|
|
JSSequenceExpression = 113,
|
|
|
|
JSConditionalExpression = 114,
|
|
|
|
JSReferenceExpression = 115,
|
|
|
|
JSExpressionStatement = 118,
|
|
|
|
JSConditionalStatement = 119,
|
|
|
|
JSParameter = 120,
|
|
|
|
JSFunctionDeclaration = 123,
|
|
|
|
JSArrowFunctionDeclaration = 124,
|
|
|
|
JSLetDeclaration = 125,
|
|
|
|
JSSourceFile = 126,
|
2020-05-10 15:56:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import { TextSpan } from "./text"
|
|
|
|
|
2020-05-10 23:50:42 +02:00
|
|
|
export function setParents(node: Syntax): void;
|
|
|
|
|
2020-05-10 15:56:34 +02:00
|
|
|
export type SyntaxRange = [Syntax, Syntax];
|
|
|
|
|
|
|
|
interface SyntaxBase {
|
|
|
|
kind: SyntaxKind;
|
|
|
|
parentNode: Syntax | null;
|
|
|
|
span: TextSpan | null;
|
|
|
|
}
|
2020-05-22 19:50:47 +02:00
|
|
|
export interface EndOfFile extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.EndOfFile;
|
|
|
|
}
|
|
|
|
|
2020-05-10 15:56:34 +02:00
|
|
|
export interface FunctionBody extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.FunctionBody;
|
|
|
|
}
|
|
|
|
|
|
|
|
export type BoltToken
|
2020-05-22 19:50:47 +02:00
|
|
|
= EndOfFile
|
|
|
|
| BoltStringLiteral
|
2020-05-10 15:56:34 +02:00
|
|
|
| BoltIntegerLiteral
|
|
|
|
| BoltIdentifier
|
|
|
|
| BoltOperator
|
2020-05-10 23:50:42 +02:00
|
|
|
| BoltAssignment
|
2020-05-10 15:56:34 +02:00
|
|
|
| BoltComma
|
|
|
|
| BoltSemi
|
|
|
|
| BoltColon
|
|
|
|
| BoltDot
|
|
|
|
| BoltDotDot
|
|
|
|
| BoltRArrow
|
|
|
|
| BoltLArrow
|
|
|
|
| BoltEqSign
|
2020-05-10 18:21:44 +02:00
|
|
|
| BoltGtSign
|
|
|
|
| BoltLtSign
|
2020-05-10 15:56:34 +02:00
|
|
|
| BoltFnKeyword
|
|
|
|
| BoltForeignKeyword
|
2020-05-22 21:57:42 +02:00
|
|
|
| BoltForKeyword
|
2020-05-10 15:56:34 +02:00
|
|
|
| BoltLetKeyword
|
2020-05-10 18:21:44 +02:00
|
|
|
| BoltReturnKeyword
|
|
|
|
| BoltLoopKeyword
|
|
|
|
| BoltYieldKeyword
|
2020-05-10 18:54:57 +02:00
|
|
|
| BoltMatchKeyword
|
2020-05-10 15:56:34 +02:00
|
|
|
| BoltImportKeyword
|
|
|
|
| BoltPubKeyword
|
|
|
|
| BoltModKeyword
|
2020-05-10 18:21:44 +02:00
|
|
|
| BoltMutKeyword
|
2020-05-10 15:56:34 +02:00
|
|
|
| BoltEnumKeyword
|
|
|
|
| BoltStructKeyword
|
2020-05-22 19:50:47 +02:00
|
|
|
| BoltTypeKeyword
|
2020-05-22 21:57:42 +02:00
|
|
|
| BoltTraitKeyword
|
|
|
|
| BoltImplKeyword
|
2020-05-10 15:56:34 +02:00
|
|
|
| BoltParenthesized
|
|
|
|
| BoltBraced
|
|
|
|
| BoltBracketed
|
|
|
|
|
|
|
|
|
|
|
|
export interface BoltStringLiteral extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltStringLiteral;
|
|
|
|
value: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltIntegerLiteral extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltIntegerLiteral;
|
|
|
|
value: bigint;
|
|
|
|
}
|
|
|
|
|
|
|
|
export type BoltSymbol
|
|
|
|
= BoltIdentifier
|
|
|
|
| BoltOperator
|
|
|
|
|
|
|
|
|
|
|
|
export interface BoltIdentifier extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltIdentifier;
|
|
|
|
text: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltOperator extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltOperator;
|
|
|
|
text: string;
|
|
|
|
}
|
|
|
|
|
2020-05-10 23:50:42 +02:00
|
|
|
export interface BoltAssignment extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltAssignment;
|
|
|
|
operator: string | null;
|
|
|
|
}
|
|
|
|
|
2020-05-10 15:56:34 +02:00
|
|
|
export interface BoltComma extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltComma;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltSemi extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltSemi;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltColon extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltColon;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltDot extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltDot;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltDotDot extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltDotDot;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltRArrow extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltRArrow;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltLArrow extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltLArrow;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltEqSign extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltEqSign;
|
|
|
|
}
|
|
|
|
|
2020-05-10 18:21:44 +02:00
|
|
|
export interface BoltGtSign extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltGtSign;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltLtSign extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltLtSign;
|
|
|
|
}
|
|
|
|
|
2020-05-10 15:56:34 +02:00
|
|
|
export type BoltKeyword
|
|
|
|
= BoltFnKeyword
|
|
|
|
| BoltForeignKeyword
|
2020-05-22 21:57:42 +02:00
|
|
|
| BoltForKeyword
|
2020-05-10 15:56:34 +02:00
|
|
|
| BoltLetKeyword
|
2020-05-10 18:21:44 +02:00
|
|
|
| BoltReturnKeyword
|
|
|
|
| BoltLoopKeyword
|
|
|
|
| BoltYieldKeyword
|
2020-05-10 18:54:57 +02:00
|
|
|
| BoltMatchKeyword
|
2020-05-10 15:56:34 +02:00
|
|
|
| BoltImportKeyword
|
|
|
|
| BoltPubKeyword
|
|
|
|
| BoltModKeyword
|
2020-05-10 18:21:44 +02:00
|
|
|
| BoltMutKeyword
|
2020-05-10 15:56:34 +02:00
|
|
|
| BoltEnumKeyword
|
|
|
|
| BoltStructKeyword
|
2020-05-22 19:50:47 +02:00
|
|
|
| BoltTypeKeyword
|
2020-05-22 21:57:42 +02:00
|
|
|
| BoltTraitKeyword
|
|
|
|
| BoltImplKeyword
|
2020-05-10 15:56:34 +02:00
|
|
|
|
|
|
|
|
|
|
|
export interface BoltFnKeyword extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltFnKeyword;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltForeignKeyword extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltForeignKeyword;
|
|
|
|
}
|
|
|
|
|
2020-05-22 21:57:42 +02:00
|
|
|
export interface BoltForKeyword extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltForKeyword;
|
|
|
|
}
|
|
|
|
|
2020-05-10 15:56:34 +02:00
|
|
|
export interface BoltLetKeyword extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltLetKeyword;
|
|
|
|
}
|
|
|
|
|
2020-05-10 18:21:44 +02:00
|
|
|
export interface BoltReturnKeyword extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltReturnKeyword;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltLoopKeyword extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltLoopKeyword;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltYieldKeyword extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltYieldKeyword;
|
|
|
|
}
|
|
|
|
|
2020-05-10 18:54:57 +02:00
|
|
|
export interface BoltMatchKeyword extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltMatchKeyword;
|
|
|
|
}
|
|
|
|
|
2020-05-10 15:56:34 +02:00
|
|
|
export interface BoltImportKeyword extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltImportKeyword;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltPubKeyword extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltPubKeyword;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltModKeyword extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltModKeyword;
|
|
|
|
}
|
|
|
|
|
2020-05-10 18:21:44 +02:00
|
|
|
export interface BoltMutKeyword extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltMutKeyword;
|
|
|
|
}
|
|
|
|
|
2020-05-10 15:56:34 +02:00
|
|
|
export interface BoltEnumKeyword extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltEnumKeyword;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltStructKeyword extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltStructKeyword;
|
|
|
|
}
|
|
|
|
|
2020-05-22 19:50:47 +02:00
|
|
|
export interface BoltTypeKeyword extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltTypeKeyword;
|
|
|
|
}
|
|
|
|
|
2020-05-22 21:57:42 +02:00
|
|
|
export interface BoltTraitKeyword extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltTraitKeyword;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltImplKeyword extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltImplKeyword;
|
2020-05-10 15:56:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export type BoltPunctuated
|
|
|
|
= BoltParenthesized
|
|
|
|
| BoltBraced
|
|
|
|
| BoltBracketed
|
|
|
|
|
|
|
|
|
|
|
|
export interface BoltParenthesized extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltParenthesized;
|
|
|
|
text: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltBraced extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltBraced;
|
|
|
|
text: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltBracketed extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltBracketed;
|
|
|
|
text: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltSourceFile extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltSourceFile;
|
|
|
|
elements: BoltSourceElement[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltQualName extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltQualName;
|
|
|
|
modulePath: BoltIdentifier[];
|
|
|
|
name: BoltSymbol;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltSentence extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltSentence;
|
|
|
|
tokens: BoltToken[];
|
|
|
|
}
|
|
|
|
|
2020-05-22 19:50:47 +02:00
|
|
|
export type BoltTypeExpression
|
|
|
|
= BoltReferenceTypeExpression
|
2020-05-10 15:56:34 +02:00
|
|
|
|
|
|
|
|
2020-05-22 19:50:47 +02:00
|
|
|
export interface BoltReferenceTypeExpression extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltReferenceTypeExpression;
|
2020-05-10 15:56:34 +02:00
|
|
|
name: BoltQualName;
|
2020-05-22 19:50:47 +02:00
|
|
|
arguments: BoltTypeExpression[] | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltTypeParameter extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltTypeParameter;
|
|
|
|
index: number;
|
|
|
|
name: BoltIdentifier;
|
|
|
|
defaultType: BoltTypeExpression | null;
|
2020-05-10 15:56:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export type BoltPattern
|
|
|
|
= BoltBindPattern
|
|
|
|
| BoltTypePattern
|
|
|
|
| BoltExpressionPattern
|
|
|
|
| BoltTuplePattern
|
|
|
|
| BoltRecordPattern
|
|
|
|
|
|
|
|
|
|
|
|
export interface BoltBindPattern extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltBindPattern;
|
2020-05-10 18:21:44 +02:00
|
|
|
name: BoltIdentifier;
|
2020-05-10 15:56:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltTypePattern extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltTypePattern;
|
2020-05-22 19:50:47 +02:00
|
|
|
type: BoltTypeExpression;
|
2020-05-10 15:56:34 +02:00
|
|
|
nestedPattern: BoltPattern;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltExpressionPattern extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltExpressionPattern;
|
|
|
|
expression: BoltExpression;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltTuplePatternElement extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltTuplePatternElement;
|
|
|
|
index: number;
|
|
|
|
pattern: BoltPattern;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltTuplePattern extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltTuplePattern;
|
|
|
|
elements: BoltTuplePatternElement[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltRecordPatternField extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltRecordPatternField;
|
|
|
|
name: BoltIdentifier;
|
|
|
|
pattern: BoltPattern;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltRecordPattern extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltRecordPattern;
|
2020-05-22 19:50:47 +02:00
|
|
|
name: BoltTypeExpression;
|
2020-05-10 15:56:34 +02:00
|
|
|
fields: BoltRecordPatternField[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export type BoltExpression
|
|
|
|
= BoltReferenceExpression
|
|
|
|
| BoltCallExpression
|
|
|
|
| BoltYieldExpression
|
|
|
|
| BoltMatchExpression
|
|
|
|
| BoltCaseExpression
|
|
|
|
| BoltBlockExpression
|
|
|
|
| BoltConstantExpression
|
|
|
|
|
|
|
|
|
|
|
|
export interface BoltReferenceExpression extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltReferenceExpression;
|
|
|
|
name: BoltQualName;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltCallExpression extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltCallExpression;
|
|
|
|
operator: BoltExpression;
|
|
|
|
operands: BoltExpression[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltYieldExpression extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltYieldExpression;
|
|
|
|
value: BoltExpression;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltMatchArm extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltMatchArm;
|
|
|
|
pattern: BoltPattern;
|
|
|
|
body: BoltExpression;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltMatchExpression extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltMatchExpression;
|
|
|
|
value: BoltExpression;
|
|
|
|
arms: BoltMatchArm[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltCase extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltCase;
|
|
|
|
test: BoltExpression;
|
|
|
|
result: BoltExpression;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltCaseExpression extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltCaseExpression;
|
|
|
|
cases: BoltCase[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltBlockExpression extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltBlockExpression;
|
|
|
|
statements: BoltStatement[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltConstantExpression extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltConstantExpression;
|
|
|
|
value: BoltValue;
|
|
|
|
}
|
|
|
|
|
|
|
|
export type BoltStatement
|
|
|
|
= BoltReturnStatement
|
|
|
|
| BoltResumeStatement
|
|
|
|
| BoltExpressionStatement
|
|
|
|
|
|
|
|
|
|
|
|
export interface BoltReturnStatement extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltReturnStatement;
|
|
|
|
value: BoltExpression | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltResumeStatement extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltResumeStatement;
|
|
|
|
value: BoltExpression;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltExpressionStatement extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltExpressionStatement;
|
|
|
|
expression: BoltExpression;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltParameter extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltParameter;
|
|
|
|
index: number;
|
|
|
|
bindings: BoltPattern;
|
2020-05-22 19:50:47 +02:00
|
|
|
type: BoltTypeExpression | null;
|
2020-05-10 15:56:34 +02:00
|
|
|
defaultValue: BoltExpression | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
export type BoltDeclaration
|
2020-05-22 21:57:42 +02:00
|
|
|
= BoltModule
|
2020-05-10 15:56:34 +02:00
|
|
|
| BoltFunctionDeclaration
|
|
|
|
| BoltVariableDeclaration
|
|
|
|
| BoltImportDeclaration
|
2020-05-22 21:57:42 +02:00
|
|
|
| BoltTraitDeclaration
|
|
|
|
| BoltImplDeclaration
|
|
|
|
| BoltTypeAliasDeclaration
|
2020-05-10 15:56:34 +02:00
|
|
|
| BoltRecordDeclaration
|
|
|
|
|
|
|
|
|
|
|
|
export const enum BoltDeclarationModifiers {
|
2020-05-10 18:21:44 +02:00
|
|
|
Mutable = 1,Public = 2,IsType = 4,IsForeign = 8,}
|
2020-05-10 15:56:34 +02:00
|
|
|
|
|
|
|
export interface BoltModule extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltModule;
|
|
|
|
modifiers: BoltDeclarationModifiers;
|
|
|
|
name: BoltQualName;
|
|
|
|
elements: BoltSourceElement[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltFunctionDeclaration extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltFunctionDeclaration;
|
|
|
|
modifiers: BoltDeclarationModifiers;
|
|
|
|
target: string;
|
|
|
|
name: BoltSymbol;
|
|
|
|
params: BoltParameter[];
|
2020-05-22 19:50:47 +02:00
|
|
|
returnType: BoltTypeExpression | null;
|
2020-05-10 18:54:57 +02:00
|
|
|
body: BoltStatement[];
|
2020-05-10 15:56:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltVariableDeclaration extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltVariableDeclaration;
|
|
|
|
modifiers: BoltDeclarationModifiers;
|
|
|
|
bindings: BoltPattern;
|
2020-05-22 19:50:47 +02:00
|
|
|
type: BoltTypeExpression | null;
|
2020-05-10 15:56:34 +02:00
|
|
|
value: BoltExpression | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
export type BoltImportSymbol
|
|
|
|
= BoltPlainImportSymbol
|
|
|
|
|
|
|
|
|
|
|
|
export interface BoltPlainImportSymbol extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltPlainImportSymbol;
|
|
|
|
name: BoltQualName;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltImportDeclaration extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltImportDeclaration;
|
|
|
|
file: string;
|
|
|
|
symbols: BoltImportSymbol[];
|
|
|
|
}
|
|
|
|
|
2020-05-22 21:57:42 +02:00
|
|
|
export interface BoltTraitDeclaration extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltTraitDeclaration;
|
|
|
|
modifiers: BoltDeclarationModifiers;
|
2020-05-10 15:56:34 +02:00
|
|
|
name: BoltIdentifier;
|
2020-05-22 21:57:42 +02:00
|
|
|
typeParams: BoltTypeParameter[] | null;
|
|
|
|
elements: BoltDeclaration[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltImplDeclaration extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltImplDeclaration;
|
|
|
|
modifiers: BoltDeclarationModifiers;
|
|
|
|
name: BoltIdentifier;
|
|
|
|
trait: BoltTypeExpression;
|
|
|
|
typeParams: BoltTypeParameter[] | null;
|
|
|
|
elements: BoltDeclaration[];
|
2020-05-22 19:50:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltTypeAliasDeclaration extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltTypeAliasDeclaration;
|
|
|
|
modifiers: BoltDeclarationModifiers;
|
|
|
|
name: BoltIdentifier;
|
|
|
|
typeParams: BoltTypeParameter[] | null;
|
|
|
|
typeExpr: BoltTypeExpression;
|
2020-05-10 15:56:34 +02:00
|
|
|
}
|
|
|
|
|
2020-05-22 21:57:42 +02:00
|
|
|
export interface BoltRecordDeclarationField extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltRecordDeclarationField;
|
|
|
|
name: BoltIdentifier;
|
|
|
|
type: BoltTypeExpression;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BoltRecordDeclaration extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.BoltRecordDeclaration;
|
|
|
|
modifiers: BoltDeclarationModifiers;
|
|
|
|
name: BoltQualName;
|
|
|
|
typeParms: BoltTypeParameter[] | null;
|
|
|
|
fields: BoltRecordDeclarationField[];
|
|
|
|
}
|
|
|
|
|
2020-05-10 15:56:34 +02:00
|
|
|
export type BoltSourceElement
|
|
|
|
= BoltSentence
|
|
|
|
| BoltReturnStatement
|
|
|
|
| BoltResumeStatement
|
|
|
|
| BoltExpressionStatement
|
|
|
|
| BoltModule
|
|
|
|
| BoltFunctionDeclaration
|
|
|
|
| BoltVariableDeclaration
|
|
|
|
| BoltImportDeclaration
|
2020-05-22 21:57:42 +02:00
|
|
|
| BoltTraitDeclaration
|
|
|
|
| BoltImplDeclaration
|
|
|
|
| BoltTypeAliasDeclaration
|
|
|
|
| BoltRecordDeclaration
|
2020-05-10 15:56:34 +02:00
|
|
|
|
|
|
|
|
|
|
|
export type JSToken
|
2020-05-22 19:50:47 +02:00
|
|
|
= EndOfFile
|
|
|
|
| JSOperator
|
2020-05-10 15:56:34 +02:00
|
|
|
| JSIdentifier
|
2020-05-22 19:50:47 +02:00
|
|
|
| JSReturnKeyword
|
|
|
|
| JSTryKeyword
|
|
|
|
| JSCatchKeyword
|
2020-05-22 21:29:14 +02:00
|
|
|
| JSCloseBrace
|
|
|
|
| JSCloseBracket
|
|
|
|
| JSCloseParen
|
|
|
|
| JSOpenBrace
|
|
|
|
| JSOpenBracket
|
|
|
|
| JSOpenParen
|
|
|
|
| JSSemi
|
|
|
|
| JSComma
|
|
|
|
| JSDot
|
|
|
|
| JSDotDotDot
|
2020-05-10 15:56:34 +02:00
|
|
|
|
|
|
|
|
|
|
|
export interface JSOperator extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSOperator;
|
|
|
|
text: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface JSIdentifier extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSIdentifier;
|
|
|
|
text: string;
|
|
|
|
}
|
|
|
|
|
2020-05-22 19:50:47 +02:00
|
|
|
export interface JSReturnKeyword extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSReturnKeyword;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface JSTryKeyword extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSTryKeyword;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface JSCatchKeyword extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSCatchKeyword;
|
|
|
|
}
|
|
|
|
|
2020-05-22 21:29:14 +02:00
|
|
|
export interface JSCloseBrace extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSCloseBrace;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface JSCloseBracket extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSCloseBracket;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface JSCloseParen extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSCloseParen;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface JSOpenBrace extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSOpenBrace;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface JSOpenBracket extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSOpenBracket;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface JSOpenParen extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSOpenParen;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface JSSemi extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSSemi;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface JSComma extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSComma;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface JSDot extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSDot;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface JSDotDotDot extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSDotDotDot;
|
|
|
|
}
|
|
|
|
|
2020-05-10 15:56:34 +02:00
|
|
|
export type JSPattern
|
|
|
|
= JSBindPattern
|
|
|
|
|
|
|
|
|
|
|
|
export interface JSBindPattern extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSBindPattern;
|
2020-05-10 18:21:44 +02:00
|
|
|
name: JSIdentifier;
|
2020-05-10 15:56:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export type JSExpression
|
|
|
|
= JSConstantExpression
|
|
|
|
| JSMemberExpression
|
|
|
|
| JSCallExpression
|
|
|
|
| JSBinaryExpression
|
|
|
|
| JSUnaryExpression
|
|
|
|
| JSNewExpression
|
|
|
|
| JSSequenceExpression
|
|
|
|
| JSConditionalExpression
|
|
|
|
| JSReferenceExpression
|
|
|
|
|
|
|
|
|
|
|
|
export interface JSConstantExpression extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSConstantExpression;
|
|
|
|
value: BoltValue;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface JSMemberExpression extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSMemberExpression;
|
|
|
|
value: JSExpression;
|
2020-05-22 21:29:14 +02:00
|
|
|
property: JSIdentifier;
|
2020-05-10 15:56:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface JSCallExpression extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSCallExpression;
|
|
|
|
operator: JSExpression;
|
|
|
|
operands: JSExpression[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface JSBinaryExpression extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSBinaryExpression;
|
|
|
|
left: JSExpression;
|
|
|
|
operator: JSOperator;
|
|
|
|
right: JSExpression;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface JSUnaryExpression extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSUnaryExpression;
|
|
|
|
operator: JSOperator;
|
|
|
|
operand: JSExpression;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface JSNewExpression extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSNewExpression;
|
|
|
|
target: JSExpression;
|
|
|
|
arguments: JSExpression[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface JSSequenceExpression extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSSequenceExpression;
|
|
|
|
expressions: JSExpression[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface JSConditionalExpression extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSConditionalExpression;
|
|
|
|
test: JSExpression;
|
|
|
|
consequent: JSExpression;
|
|
|
|
alternate: JSExpression;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface JSReferenceExpression extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSReferenceExpression;
|
|
|
|
name: string;
|
|
|
|
}
|
|
|
|
|
2020-05-22 19:50:47 +02:00
|
|
|
export type JSSourceElement
|
|
|
|
= JSExpressionStatement
|
|
|
|
| JSConditionalStatement
|
|
|
|
| JSFunctionDeclaration
|
|
|
|
| JSArrowFunctionDeclaration
|
|
|
|
| JSLetDeclaration
|
|
|
|
|
|
|
|
|
2020-05-10 15:56:34 +02:00
|
|
|
export type JSStatement
|
|
|
|
= JSExpressionStatement
|
|
|
|
| JSConditionalStatement
|
|
|
|
|
|
|
|
|
|
|
|
export interface JSExpressionStatement extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSExpressionStatement;
|
|
|
|
expression: JSExpression;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface JSConditionalStatement extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSConditionalStatement;
|
|
|
|
test: JSExpression;
|
|
|
|
consequent: JSStatement[];
|
|
|
|
alternate: JSStatement[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface JSParameter extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSParameter;
|
|
|
|
index: number;
|
|
|
|
bindings: JSPattern;
|
|
|
|
defaultValue: JSExpression | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
export type JSDeclaration
|
|
|
|
= JSFunctionDeclaration
|
|
|
|
| JSArrowFunctionDeclaration
|
|
|
|
| JSLetDeclaration
|
|
|
|
|
|
|
|
|
|
|
|
export const enum JSDeclarationModifiers {
|
|
|
|
IsExported = 1,}
|
|
|
|
|
|
|
|
export interface JSFunctionDeclaration extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSFunctionDeclaration;
|
|
|
|
modifiers: JSDeclarationModifiers;
|
|
|
|
name: JSIdentifier;
|
|
|
|
params: JSParameter[];
|
|
|
|
body: JSStatement[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface JSArrowFunctionDeclaration extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSArrowFunctionDeclaration;
|
|
|
|
name: JSIdentifier;
|
|
|
|
params: JSParameter[];
|
|
|
|
body: JSExpression;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface JSLetDeclaration extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSLetDeclaration;
|
|
|
|
bindings: JSPattern;
|
|
|
|
value: JSExpression | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface JSSourceFile extends SyntaxBase {
|
|
|
|
kind: SyntaxKind.JSSourceFile;
|
|
|
|
elements: JSSourceElement[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export type BoltSyntax
|
|
|
|
= BoltStringLiteral
|
|
|
|
| BoltIntegerLiteral
|
|
|
|
| BoltIdentifier
|
|
|
|
| BoltOperator
|
2020-05-10 23:50:42 +02:00
|
|
|
| BoltAssignment
|
2020-05-10 15:56:34 +02:00
|
|
|
| BoltComma
|
|
|
|
| BoltSemi
|
|
|
|
| BoltColon
|
|
|
|
| BoltDot
|
|
|
|
| BoltDotDot
|
|
|
|
| BoltRArrow
|
|
|
|
| BoltLArrow
|
|
|
|
| BoltEqSign
|
2020-05-10 18:21:44 +02:00
|
|
|
| BoltGtSign
|
|
|
|
| BoltLtSign
|
2020-05-10 15:56:34 +02:00
|
|
|
| BoltFnKeyword
|
|
|
|
| BoltForeignKeyword
|
2020-05-22 21:57:42 +02:00
|
|
|
| BoltForKeyword
|
2020-05-10 15:56:34 +02:00
|
|
|
| BoltLetKeyword
|
2020-05-10 18:21:44 +02:00
|
|
|
| BoltReturnKeyword
|
|
|
|
| BoltLoopKeyword
|
|
|
|
| BoltYieldKeyword
|
2020-05-10 18:54:57 +02:00
|
|
|
| BoltMatchKeyword
|
2020-05-10 15:56:34 +02:00
|
|
|
| BoltImportKeyword
|
|
|
|
| BoltPubKeyword
|
|
|
|
| BoltModKeyword
|
2020-05-10 18:21:44 +02:00
|
|
|
| BoltMutKeyword
|
2020-05-10 15:56:34 +02:00
|
|
|
| BoltEnumKeyword
|
|
|
|
| BoltStructKeyword
|
2020-05-22 19:50:47 +02:00
|
|
|
| BoltTypeKeyword
|
2020-05-22 21:57:42 +02:00
|
|
|
| BoltTraitKeyword
|
|
|
|
| BoltImplKeyword
|
2020-05-10 15:56:34 +02:00
|
|
|
| BoltParenthesized
|
|
|
|
| BoltBraced
|
|
|
|
| BoltBracketed
|
|
|
|
| BoltSourceFile
|
|
|
|
| BoltQualName
|
|
|
|
| BoltSentence
|
2020-05-22 19:50:47 +02:00
|
|
|
| BoltReferenceTypeExpression
|
|
|
|
| BoltTypeParameter
|
2020-05-10 15:56:34 +02:00
|
|
|
| BoltBindPattern
|
|
|
|
| BoltTypePattern
|
|
|
|
| BoltExpressionPattern
|
|
|
|
| BoltTuplePatternElement
|
|
|
|
| BoltTuplePattern
|
|
|
|
| BoltRecordPatternField
|
|
|
|
| BoltRecordPattern
|
|
|
|
| BoltReferenceExpression
|
|
|
|
| BoltCallExpression
|
|
|
|
| BoltYieldExpression
|
|
|
|
| BoltMatchArm
|
|
|
|
| BoltMatchExpression
|
|
|
|
| BoltCase
|
|
|
|
| BoltCaseExpression
|
|
|
|
| BoltBlockExpression
|
|
|
|
| BoltConstantExpression
|
|
|
|
| BoltReturnStatement
|
|
|
|
| BoltResumeStatement
|
|
|
|
| BoltExpressionStatement
|
|
|
|
| BoltParameter
|
|
|
|
| BoltModule
|
|
|
|
| BoltFunctionDeclaration
|
|
|
|
| BoltVariableDeclaration
|
|
|
|
| BoltPlainImportSymbol
|
|
|
|
| BoltImportDeclaration
|
2020-05-22 21:57:42 +02:00
|
|
|
| BoltTraitDeclaration
|
|
|
|
| BoltImplDeclaration
|
2020-05-22 19:50:47 +02:00
|
|
|
| BoltTypeAliasDeclaration
|
2020-05-22 21:57:42 +02:00
|
|
|
| BoltRecordDeclarationField
|
2020-05-10 15:56:34 +02:00
|
|
|
| BoltRecordDeclaration
|
|
|
|
|
|
|
|
|
|
|
|
export type JSSyntax
|
|
|
|
= JSOperator
|
|
|
|
| JSIdentifier
|
2020-05-22 19:50:47 +02:00
|
|
|
| JSReturnKeyword
|
|
|
|
| JSTryKeyword
|
|
|
|
| JSCatchKeyword
|
2020-05-22 21:29:14 +02:00
|
|
|
| JSCloseBrace
|
|
|
|
| JSCloseBracket
|
|
|
|
| JSCloseParen
|
|
|
|
| JSOpenBrace
|
|
|
|
| JSOpenBracket
|
|
|
|
| JSOpenParen
|
|
|
|
| JSSemi
|
|
|
|
| JSComma
|
|
|
|
| JSDot
|
|
|
|
| JSDotDotDot
|
2020-05-10 15:56:34 +02:00
|
|
|
| JSBindPattern
|
|
|
|
| JSConstantExpression
|
|
|
|
| JSMemberExpression
|
|
|
|
| JSCallExpression
|
|
|
|
| JSBinaryExpression
|
|
|
|
| JSUnaryExpression
|
|
|
|
| JSNewExpression
|
|
|
|
| JSSequenceExpression
|
|
|
|
| JSConditionalExpression
|
|
|
|
| JSReferenceExpression
|
|
|
|
| JSExpressionStatement
|
|
|
|
| JSConditionalStatement
|
|
|
|
| JSParameter
|
|
|
|
| JSFunctionDeclaration
|
|
|
|
| JSArrowFunctionDeclaration
|
|
|
|
| JSLetDeclaration
|
|
|
|
| JSSourceFile
|
|
|
|
|
|
|
|
|
|
|
|
export type Syntax
|
2020-05-22 19:50:47 +02:00
|
|
|
= EndOfFile
|
|
|
|
| FunctionBody
|
2020-05-10 15:56:34 +02:00
|
|
|
| BoltStringLiteral
|
|
|
|
| BoltIntegerLiteral
|
|
|
|
| BoltIdentifier
|
|
|
|
| BoltOperator
|
2020-05-10 23:50:42 +02:00
|
|
|
| BoltAssignment
|
2020-05-10 15:56:34 +02:00
|
|
|
| BoltComma
|
|
|
|
| BoltSemi
|
|
|
|
| BoltColon
|
|
|
|
| BoltDot
|
|
|
|
| BoltDotDot
|
|
|
|
| BoltRArrow
|
|
|
|
| BoltLArrow
|
|
|
|
| BoltEqSign
|
2020-05-10 18:21:44 +02:00
|
|
|
| BoltGtSign
|
|
|
|
| BoltLtSign
|
2020-05-10 15:56:34 +02:00
|
|
|
| BoltFnKeyword
|
|
|
|
| BoltForeignKeyword
|
2020-05-22 21:57:42 +02:00
|
|
|
| BoltForKeyword
|
2020-05-10 15:56:34 +02:00
|
|
|
| BoltLetKeyword
|
2020-05-10 18:21:44 +02:00
|
|
|
| BoltReturnKeyword
|
|
|
|
| BoltLoopKeyword
|
|
|
|
| BoltYieldKeyword
|
2020-05-10 18:54:57 +02:00
|
|
|
| BoltMatchKeyword
|
2020-05-10 15:56:34 +02:00
|
|
|
| BoltImportKeyword
|
|
|
|
| BoltPubKeyword
|
|
|
|
| BoltModKeyword
|
2020-05-10 18:21:44 +02:00
|
|
|
| BoltMutKeyword
|
2020-05-10 15:56:34 +02:00
|
|
|
| BoltEnumKeyword
|
|
|
|
| BoltStructKeyword
|
2020-05-22 19:50:47 +02:00
|
|
|
| BoltTypeKeyword
|
2020-05-22 21:57:42 +02:00
|
|
|
| BoltTraitKeyword
|
|
|
|
| BoltImplKeyword
|
2020-05-10 15:56:34 +02:00
|
|
|
| BoltParenthesized
|
|
|
|
| BoltBraced
|
|
|
|
| BoltBracketed
|
|
|
|
| BoltSourceFile
|
|
|
|
| BoltQualName
|
|
|
|
| BoltSentence
|
2020-05-22 19:50:47 +02:00
|
|
|
| BoltReferenceTypeExpression
|
|
|
|
| BoltTypeParameter
|
2020-05-10 15:56:34 +02:00
|
|
|
| BoltBindPattern
|
|
|
|
| BoltTypePattern
|
|
|
|
| BoltExpressionPattern
|
|
|
|
| BoltTuplePatternElement
|
|
|
|
| BoltTuplePattern
|
|
|
|
| BoltRecordPatternField
|
|
|
|
| BoltRecordPattern
|
|
|
|
| BoltReferenceExpression
|
|
|
|
| BoltCallExpression
|
|
|
|
| BoltYieldExpression
|
|
|
|
| BoltMatchArm
|
|
|
|
| BoltMatchExpression
|
|
|
|
| BoltCase
|
|
|
|
| BoltCaseExpression
|
|
|
|
| BoltBlockExpression
|
|
|
|
| BoltConstantExpression
|
|
|
|
| BoltReturnStatement
|
|
|
|
| BoltResumeStatement
|
|
|
|
| BoltExpressionStatement
|
|
|
|
| BoltParameter
|
|
|
|
| BoltModule
|
|
|
|
| BoltFunctionDeclaration
|
|
|
|
| BoltVariableDeclaration
|
|
|
|
| BoltPlainImportSymbol
|
|
|
|
| BoltImportDeclaration
|
2020-05-22 21:57:42 +02:00
|
|
|
| BoltTraitDeclaration
|
|
|
|
| BoltImplDeclaration
|
2020-05-22 19:50:47 +02:00
|
|
|
| BoltTypeAliasDeclaration
|
2020-05-22 21:57:42 +02:00
|
|
|
| BoltRecordDeclarationField
|
2020-05-10 15:56:34 +02:00
|
|
|
| BoltRecordDeclaration
|
|
|
|
| JSOperator
|
|
|
|
| JSIdentifier
|
2020-05-22 19:50:47 +02:00
|
|
|
| JSReturnKeyword
|
|
|
|
| JSTryKeyword
|
|
|
|
| JSCatchKeyword
|
2020-05-22 21:29:14 +02:00
|
|
|
| JSCloseBrace
|
|
|
|
| JSCloseBracket
|
|
|
|
| JSCloseParen
|
|
|
|
| JSOpenBrace
|
|
|
|
| JSOpenBracket
|
|
|
|
| JSOpenParen
|
|
|
|
| JSSemi
|
|
|
|
| JSComma
|
|
|
|
| JSDot
|
|
|
|
| JSDotDotDot
|
2020-05-10 15:56:34 +02:00
|
|
|
| JSBindPattern
|
|
|
|
| JSConstantExpression
|
|
|
|
| JSMemberExpression
|
|
|
|
| JSCallExpression
|
|
|
|
| JSBinaryExpression
|
|
|
|
| JSUnaryExpression
|
|
|
|
| JSNewExpression
|
|
|
|
| JSSequenceExpression
|
|
|
|
| JSConditionalExpression
|
|
|
|
| JSReferenceExpression
|
|
|
|
| JSExpressionStatement
|
|
|
|
| JSConditionalStatement
|
|
|
|
| JSParameter
|
|
|
|
| JSFunctionDeclaration
|
|
|
|
| JSArrowFunctionDeclaration
|
|
|
|
| JSLetDeclaration
|
|
|
|
| JSSourceFile
|
|
|
|
|
|
|
|
|
|
|
|
export function kindToString(kind: SyntaxKind): string;
|
|
|
|
|
2020-05-22 19:50:47 +02:00
|
|
|
export function createEndOfFile(span?: TextSpan | null): EndOfFile;
|
2020-05-10 18:21:44 +02:00
|
|
|
export function createFunctionBody(span?: TextSpan | null): FunctionBody;
|
|
|
|
export function createBoltStringLiteral(value: string, span?: TextSpan | null): BoltStringLiteral;
|
|
|
|
export function createBoltIntegerLiteral(value: bigint, span?: TextSpan | null): BoltIntegerLiteral;
|
|
|
|
export function createBoltIdentifier(text: string, span?: TextSpan | null): BoltIdentifier;
|
|
|
|
export function createBoltOperator(text: string, span?: TextSpan | null): BoltOperator;
|
2020-05-10 23:50:42 +02:00
|
|
|
export function createBoltAssignment(operator: string | null, span?: TextSpan | null): BoltAssignment;
|
2020-05-10 18:21:44 +02:00
|
|
|
export function createBoltComma(span?: TextSpan | null): BoltComma;
|
|
|
|
export function createBoltSemi(span?: TextSpan | null): BoltSemi;
|
|
|
|
export function createBoltColon(span?: TextSpan | null): BoltColon;
|
|
|
|
export function createBoltDot(span?: TextSpan | null): BoltDot;
|
|
|
|
export function createBoltDotDot(span?: TextSpan | null): BoltDotDot;
|
|
|
|
export function createBoltRArrow(span?: TextSpan | null): BoltRArrow;
|
|
|
|
export function createBoltLArrow(span?: TextSpan | null): BoltLArrow;
|
|
|
|
export function createBoltEqSign(span?: TextSpan | null): BoltEqSign;
|
|
|
|
export function createBoltGtSign(span?: TextSpan | null): BoltGtSign;
|
|
|
|
export function createBoltLtSign(span?: TextSpan | null): BoltLtSign;
|
|
|
|
export function createBoltFnKeyword(span?: TextSpan | null): BoltFnKeyword;
|
|
|
|
export function createBoltForeignKeyword(span?: TextSpan | null): BoltForeignKeyword;
|
2020-05-22 21:57:42 +02:00
|
|
|
export function createBoltForKeyword(span?: TextSpan | null): BoltForKeyword;
|
2020-05-10 18:21:44 +02:00
|
|
|
export function createBoltLetKeyword(span?: TextSpan | null): BoltLetKeyword;
|
|
|
|
export function createBoltReturnKeyword(span?: TextSpan | null): BoltReturnKeyword;
|
|
|
|
export function createBoltLoopKeyword(span?: TextSpan | null): BoltLoopKeyword;
|
|
|
|
export function createBoltYieldKeyword(span?: TextSpan | null): BoltYieldKeyword;
|
2020-05-10 18:54:57 +02:00
|
|
|
export function createBoltMatchKeyword(span?: TextSpan | null): BoltMatchKeyword;
|
2020-05-10 18:21:44 +02:00
|
|
|
export function createBoltImportKeyword(span?: TextSpan | null): BoltImportKeyword;
|
|
|
|
export function createBoltPubKeyword(span?: TextSpan | null): BoltPubKeyword;
|
|
|
|
export function createBoltModKeyword(span?: TextSpan | null): BoltModKeyword;
|
|
|
|
export function createBoltMutKeyword(span?: TextSpan | null): BoltMutKeyword;
|
|
|
|
export function createBoltEnumKeyword(span?: TextSpan | null): BoltEnumKeyword;
|
|
|
|
export function createBoltStructKeyword(span?: TextSpan | null): BoltStructKeyword;
|
2020-05-22 19:50:47 +02:00
|
|
|
export function createBoltTypeKeyword(span?: TextSpan | null): BoltTypeKeyword;
|
2020-05-22 21:57:42 +02:00
|
|
|
export function createBoltTraitKeyword(span?: TextSpan | null): BoltTraitKeyword;
|
|
|
|
export function createBoltImplKeyword(span?: TextSpan | null): BoltImplKeyword;
|
2020-05-10 18:21:44 +02:00
|
|
|
export function createBoltParenthesized(text: string, span?: TextSpan | null): BoltParenthesized;
|
|
|
|
export function createBoltBraced(text: string, span?: TextSpan | null): BoltBraced;
|
|
|
|
export function createBoltBracketed(text: string, span?: TextSpan | null): BoltBracketed;
|
|
|
|
export function createBoltSourceFile(elements: BoltSourceElement[], span?: TextSpan | null): BoltSourceFile;
|
|
|
|
export function createBoltQualName(modulePath: BoltIdentifier[], name: BoltSymbol, span?: TextSpan | null): BoltQualName;
|
|
|
|
export function createBoltSentence(tokens: BoltToken[], span?: TextSpan | null): BoltSentence;
|
2020-05-22 19:50:47 +02:00
|
|
|
export function createBoltReferenceTypeExpression(name: BoltQualName, arguments: BoltTypeExpression[] | null, span?: TextSpan | null): BoltReferenceTypeExpression;
|
|
|
|
export function createBoltTypeParameter(index: number, name: BoltIdentifier, defaultType: BoltTypeExpression | null, span?: TextSpan | null): BoltTypeParameter;
|
2020-05-10 18:21:44 +02:00
|
|
|
export function createBoltBindPattern(name: BoltIdentifier, span?: TextSpan | null): BoltBindPattern;
|
2020-05-22 19:50:47 +02:00
|
|
|
export function createBoltTypePattern(type: BoltTypeExpression, nestedPattern: BoltPattern, span?: TextSpan | null): BoltTypePattern;
|
2020-05-10 18:21:44 +02:00
|
|
|
export function createBoltExpressionPattern(expression: BoltExpression, span?: TextSpan | null): BoltExpressionPattern;
|
|
|
|
export function createBoltTuplePatternElement(index: number, pattern: BoltPattern, span?: TextSpan | null): BoltTuplePatternElement;
|
|
|
|
export function createBoltTuplePattern(elements: BoltTuplePatternElement[], span?: TextSpan | null): BoltTuplePattern;
|
|
|
|
export function createBoltRecordPatternField(name: BoltIdentifier, pattern: BoltPattern, span?: TextSpan | null): BoltRecordPatternField;
|
2020-05-22 19:50:47 +02:00
|
|
|
export function createBoltRecordPattern(name: BoltTypeExpression, fields: BoltRecordPatternField[], span?: TextSpan | null): BoltRecordPattern;
|
2020-05-10 18:21:44 +02:00
|
|
|
export function createBoltReferenceExpression(name: BoltQualName, span?: TextSpan | null): BoltReferenceExpression;
|
|
|
|
export function createBoltCallExpression(operator: BoltExpression, operands: BoltExpression[], span?: TextSpan | null): BoltCallExpression;
|
|
|
|
export function createBoltYieldExpression(value: BoltExpression, span?: TextSpan | null): BoltYieldExpression;
|
|
|
|
export function createBoltMatchArm(pattern: BoltPattern, body: BoltExpression, span?: TextSpan | null): BoltMatchArm;
|
|
|
|
export function createBoltMatchExpression(value: BoltExpression, arms: BoltMatchArm[], span?: TextSpan | null): BoltMatchExpression;
|
|
|
|
export function createBoltCase(test: BoltExpression, result: BoltExpression, span?: TextSpan | null): BoltCase;
|
|
|
|
export function createBoltCaseExpression(cases: BoltCase[], span?: TextSpan | null): BoltCaseExpression;
|
|
|
|
export function createBoltBlockExpression(statements: BoltStatement[], span?: TextSpan | null): BoltBlockExpression;
|
|
|
|
export function createBoltConstantExpression(value: BoltValue, span?: TextSpan | null): BoltConstantExpression;
|
|
|
|
export function createBoltReturnStatement(value: BoltExpression | null, span?: TextSpan | null): BoltReturnStatement;
|
|
|
|
export function createBoltResumeStatement(value: BoltExpression, span?: TextSpan | null): BoltResumeStatement;
|
|
|
|
export function createBoltExpressionStatement(expression: BoltExpression, span?: TextSpan | null): BoltExpressionStatement;
|
2020-05-22 19:50:47 +02:00
|
|
|
export function createBoltParameter(index: number, bindings: BoltPattern, type: BoltTypeExpression | null, defaultValue: BoltExpression | null, span?: TextSpan | null): BoltParameter;
|
2020-05-10 18:21:44 +02:00
|
|
|
export function createBoltModule(modifiers: BoltDeclarationModifiers, name: BoltQualName, elements: BoltSourceElement[], span?: TextSpan | null): BoltModule;
|
2020-05-22 19:50:47 +02:00
|
|
|
export function createBoltFunctionDeclaration(modifiers: BoltDeclarationModifiers, target: string, name: BoltSymbol, params: BoltParameter[], returnType: BoltTypeExpression | null, body: BoltStatement[], span?: TextSpan | null): BoltFunctionDeclaration;
|
|
|
|
export function createBoltVariableDeclaration(modifiers: BoltDeclarationModifiers, bindings: BoltPattern, type: BoltTypeExpression | null, value: BoltExpression | null, span?: TextSpan | null): BoltVariableDeclaration;
|
2020-05-10 18:21:44 +02:00
|
|
|
export function createBoltPlainImportSymbol(name: BoltQualName, span?: TextSpan | null): BoltPlainImportSymbol;
|
|
|
|
export function createBoltImportDeclaration(file: string, symbols: BoltImportSymbol[], span?: TextSpan | null): BoltImportDeclaration;
|
2020-05-22 21:57:42 +02:00
|
|
|
export function createBoltTraitDeclaration(modifiers: BoltDeclarationModifiers, name: BoltIdentifier, typeParams: BoltTypeParameter[] | null, elements: BoltDeclaration[], span?: TextSpan | null): BoltTraitDeclaration;
|
|
|
|
export function createBoltImplDeclaration(modifiers: BoltDeclarationModifiers, name: BoltIdentifier, trait: BoltTypeExpression, typeParams: BoltTypeParameter[] | null, elements: BoltDeclaration[], span?: TextSpan | null): BoltImplDeclaration;
|
2020-05-22 19:50:47 +02:00
|
|
|
export function createBoltTypeAliasDeclaration(modifiers: BoltDeclarationModifiers, name: BoltIdentifier, typeParams: BoltTypeParameter[] | null, typeExpr: BoltTypeExpression, span?: TextSpan | null): BoltTypeAliasDeclaration;
|
2020-05-22 21:57:42 +02:00
|
|
|
export function createBoltRecordDeclarationField(name: BoltIdentifier, type: BoltTypeExpression, span?: TextSpan | null): BoltRecordDeclarationField;
|
2020-05-22 19:50:47 +02:00
|
|
|
export function createBoltRecordDeclaration(modifiers: BoltDeclarationModifiers, name: BoltQualName, typeParms: BoltTypeParameter[] | null, fields: BoltRecordDeclarationField[], span?: TextSpan | null): BoltRecordDeclaration;
|
2020-05-10 18:21:44 +02:00
|
|
|
export function createJSOperator(text: string, span?: TextSpan | null): JSOperator;
|
|
|
|
export function createJSIdentifier(text: string, span?: TextSpan | null): JSIdentifier;
|
2020-05-22 19:50:47 +02:00
|
|
|
export function createJSReturnKeyword(span?: TextSpan | null): JSReturnKeyword;
|
|
|
|
export function createJSTryKeyword(span?: TextSpan | null): JSTryKeyword;
|
|
|
|
export function createJSCatchKeyword(span?: TextSpan | null): JSCatchKeyword;
|
2020-05-22 21:29:14 +02:00
|
|
|
export function createJSCloseBrace(span?: TextSpan | null): JSCloseBrace;
|
|
|
|
export function createJSCloseBracket(span?: TextSpan | null): JSCloseBracket;
|
|
|
|
export function createJSCloseParen(span?: TextSpan | null): JSCloseParen;
|
|
|
|
export function createJSOpenBrace(span?: TextSpan | null): JSOpenBrace;
|
|
|
|
export function createJSOpenBracket(span?: TextSpan | null): JSOpenBracket;
|
|
|
|
export function createJSOpenParen(span?: TextSpan | null): JSOpenParen;
|
|
|
|
export function createJSSemi(span?: TextSpan | null): JSSemi;
|
|
|
|
export function createJSComma(span?: TextSpan | null): JSComma;
|
|
|
|
export function createJSDot(span?: TextSpan | null): JSDot;
|
|
|
|
export function createJSDotDotDot(span?: TextSpan | null): JSDotDotDot;
|
2020-05-10 18:21:44 +02:00
|
|
|
export function createJSBindPattern(name: JSIdentifier, span?: TextSpan | null): JSBindPattern;
|
|
|
|
export function createJSConstantExpression(value: BoltValue, span?: TextSpan | null): JSConstantExpression;
|
2020-05-22 21:29:14 +02:00
|
|
|
export function createJSMemberExpression(value: JSExpression, property: JSIdentifier, span?: TextSpan | null): JSMemberExpression;
|
2020-05-10 18:21:44 +02:00
|
|
|
export function createJSCallExpression(operator: JSExpression, operands: JSExpression[], span?: TextSpan | null): JSCallExpression;
|
|
|
|
export function createJSBinaryExpression(left: JSExpression, operator: JSOperator, right: JSExpression, span?: TextSpan | null): JSBinaryExpression;
|
|
|
|
export function createJSUnaryExpression(operator: JSOperator, operand: JSExpression, span?: TextSpan | null): JSUnaryExpression;
|
|
|
|
export function createJSNewExpression(target: JSExpression, arguments: JSExpression[], span?: TextSpan | null): JSNewExpression;
|
|
|
|
export function createJSSequenceExpression(expressions: JSExpression[], span?: TextSpan | null): JSSequenceExpression;
|
|
|
|
export function createJSConditionalExpression(test: JSExpression, consequent: JSExpression, alternate: JSExpression, span?: TextSpan | null): JSConditionalExpression;
|
|
|
|
export function createJSReferenceExpression(name: string, span?: TextSpan | null): JSReferenceExpression;
|
|
|
|
export function createJSExpressionStatement(expression: JSExpression, span?: TextSpan | null): JSExpressionStatement;
|
|
|
|
export function createJSConditionalStatement(test: JSExpression, consequent: JSStatement[], alternate: JSStatement[], span?: TextSpan | null): JSConditionalStatement;
|
|
|
|
export function createJSParameter(index: number, bindings: JSPattern, defaultValue: JSExpression | null, span?: TextSpan | null): JSParameter;
|
|
|
|
export function createJSFunctionDeclaration(modifiers: JSDeclarationModifiers, name: JSIdentifier, params: JSParameter[], body: JSStatement[], span?: TextSpan | null): JSFunctionDeclaration;
|
|
|
|
export function createJSArrowFunctionDeclaration(name: JSIdentifier, params: JSParameter[], body: JSExpression, span?: TextSpan | null): JSArrowFunctionDeclaration;
|
|
|
|
export function createJSLetDeclaration(bindings: JSPattern, value: JSExpression | null, span?: TextSpan | null): JSLetDeclaration;
|
|
|
|
export function createJSSourceFile(elements: JSSourceElement[], span?: TextSpan | null): JSSourceFile;
|
2020-05-10 15:56:34 +02:00
|
|
|
|
2020-05-22 19:50:47 +02:00
|
|
|
export function isEndOfFile(value: any): value is EndOfFile;
|
2020-05-10 15:56:34 +02:00
|
|
|
export function isFunctionBody(value: any): value is FunctionBody;
|
|
|
|
export function isBoltToken(value: any): value is BoltToken;
|
|
|
|
export function isBoltStringLiteral(value: any): value is BoltStringLiteral;
|
|
|
|
export function isBoltIntegerLiteral(value: any): value is BoltIntegerLiteral;
|
|
|
|
export function isBoltSymbol(value: any): value is BoltSymbol;
|
|
|
|
export function isBoltIdentifier(value: any): value is BoltIdentifier;
|
|
|
|
export function isBoltOperator(value: any): value is BoltOperator;
|
2020-05-10 23:50:42 +02:00
|
|
|
export function isBoltAssignment(value: any): value is BoltAssignment;
|
2020-05-10 15:56:34 +02:00
|
|
|
export function isBoltComma(value: any): value is BoltComma;
|
|
|
|
export function isBoltSemi(value: any): value is BoltSemi;
|
|
|
|
export function isBoltColon(value: any): value is BoltColon;
|
|
|
|
export function isBoltDot(value: any): value is BoltDot;
|
|
|
|
export function isBoltDotDot(value: any): value is BoltDotDot;
|
|
|
|
export function isBoltRArrow(value: any): value is BoltRArrow;
|
|
|
|
export function isBoltLArrow(value: any): value is BoltLArrow;
|
|
|
|
export function isBoltEqSign(value: any): value is BoltEqSign;
|
2020-05-10 18:21:44 +02:00
|
|
|
export function isBoltGtSign(value: any): value is BoltGtSign;
|
|
|
|
export function isBoltLtSign(value: any): value is BoltLtSign;
|
2020-05-10 15:56:34 +02:00
|
|
|
export function isBoltKeyword(value: any): value is BoltKeyword;
|
|
|
|
export function isBoltFnKeyword(value: any): value is BoltFnKeyword;
|
|
|
|
export function isBoltForeignKeyword(value: any): value is BoltForeignKeyword;
|
2020-05-22 21:57:42 +02:00
|
|
|
export function isBoltForKeyword(value: any): value is BoltForKeyword;
|
2020-05-10 15:56:34 +02:00
|
|
|
export function isBoltLetKeyword(value: any): value is BoltLetKeyword;
|
2020-05-10 18:21:44 +02:00
|
|
|
export function isBoltReturnKeyword(value: any): value is BoltReturnKeyword;
|
|
|
|
export function isBoltLoopKeyword(value: any): value is BoltLoopKeyword;
|
|
|
|
export function isBoltYieldKeyword(value: any): value is BoltYieldKeyword;
|
2020-05-10 18:54:57 +02:00
|
|
|
export function isBoltMatchKeyword(value: any): value is BoltMatchKeyword;
|
2020-05-10 15:56:34 +02:00
|
|
|
export function isBoltImportKeyword(value: any): value is BoltImportKeyword;
|
|
|
|
export function isBoltPubKeyword(value: any): value is BoltPubKeyword;
|
|
|
|
export function isBoltModKeyword(value: any): value is BoltModKeyword;
|
2020-05-10 18:21:44 +02:00
|
|
|
export function isBoltMutKeyword(value: any): value is BoltMutKeyword;
|
2020-05-10 15:56:34 +02:00
|
|
|
export function isBoltEnumKeyword(value: any): value is BoltEnumKeyword;
|
|
|
|
export function isBoltStructKeyword(value: any): value is BoltStructKeyword;
|
2020-05-22 19:50:47 +02:00
|
|
|
export function isBoltTypeKeyword(value: any): value is BoltTypeKeyword;
|
2020-05-22 21:57:42 +02:00
|
|
|
export function isBoltTraitKeyword(value: any): value is BoltTraitKeyword;
|
|
|
|
export function isBoltImplKeyword(value: any): value is BoltImplKeyword;
|
2020-05-10 15:56:34 +02:00
|
|
|
export function isBoltPunctuated(value: any): value is BoltPunctuated;
|
|
|
|
export function isBoltParenthesized(value: any): value is BoltParenthesized;
|
|
|
|
export function isBoltBraced(value: any): value is BoltBraced;
|
|
|
|
export function isBoltBracketed(value: any): value is BoltBracketed;
|
|
|
|
export function isBoltSourceFile(value: any): value is BoltSourceFile;
|
|
|
|
export function isBoltQualName(value: any): value is BoltQualName;
|
|
|
|
export function isBoltSentence(value: any): value is BoltSentence;
|
2020-05-22 19:50:47 +02:00
|
|
|
export function isBoltTypeExpression(value: any): value is BoltTypeExpression;
|
|
|
|
export function isBoltReferenceTypeExpression(value: any): value is BoltReferenceTypeExpression;
|
|
|
|
export function isBoltTypeParameter(value: any): value is BoltTypeParameter;
|
2020-05-10 15:56:34 +02:00
|
|
|
export function isBoltPattern(value: any): value is BoltPattern;
|
|
|
|
export function isBoltBindPattern(value: any): value is BoltBindPattern;
|
|
|
|
export function isBoltTypePattern(value: any): value is BoltTypePattern;
|
|
|
|
export function isBoltExpressionPattern(value: any): value is BoltExpressionPattern;
|
|
|
|
export function isBoltTuplePatternElement(value: any): value is BoltTuplePatternElement;
|
|
|
|
export function isBoltTuplePattern(value: any): value is BoltTuplePattern;
|
|
|
|
export function isBoltRecordPatternField(value: any): value is BoltRecordPatternField;
|
|
|
|
export function isBoltRecordPattern(value: any): value is BoltRecordPattern;
|
|
|
|
export function isBoltExpression(value: any): value is BoltExpression;
|
|
|
|
export function isBoltReferenceExpression(value: any): value is BoltReferenceExpression;
|
|
|
|
export function isBoltCallExpression(value: any): value is BoltCallExpression;
|
|
|
|
export function isBoltYieldExpression(value: any): value is BoltYieldExpression;
|
|
|
|
export function isBoltMatchArm(value: any): value is BoltMatchArm;
|
|
|
|
export function isBoltMatchExpression(value: any): value is BoltMatchExpression;
|
|
|
|
export function isBoltCase(value: any): value is BoltCase;
|
|
|
|
export function isBoltCaseExpression(value: any): value is BoltCaseExpression;
|
|
|
|
export function isBoltBlockExpression(value: any): value is BoltBlockExpression;
|
|
|
|
export function isBoltConstantExpression(value: any): value is BoltConstantExpression;
|
|
|
|
export function isBoltStatement(value: any): value is BoltStatement;
|
|
|
|
export function isBoltReturnStatement(value: any): value is BoltReturnStatement;
|
|
|
|
export function isBoltResumeStatement(value: any): value is BoltResumeStatement;
|
|
|
|
export function isBoltExpressionStatement(value: any): value is BoltExpressionStatement;
|
|
|
|
export function isBoltParameter(value: any): value is BoltParameter;
|
|
|
|
export function isBoltDeclaration(value: any): value is BoltDeclaration;
|
|
|
|
export function isBoltModule(value: any): value is BoltModule;
|
|
|
|
export function isBoltFunctionDeclaration(value: any): value is BoltFunctionDeclaration;
|
|
|
|
export function isBoltVariableDeclaration(value: any): value is BoltVariableDeclaration;
|
|
|
|
export function isBoltImportSymbol(value: any): value is BoltImportSymbol;
|
|
|
|
export function isBoltPlainImportSymbol(value: any): value is BoltPlainImportSymbol;
|
|
|
|
export function isBoltImportDeclaration(value: any): value is BoltImportDeclaration;
|
2020-05-22 21:57:42 +02:00
|
|
|
export function isBoltTraitDeclaration(value: any): value is BoltTraitDeclaration;
|
|
|
|
export function isBoltImplDeclaration(value: any): value is BoltImplDeclaration;
|
2020-05-22 19:50:47 +02:00
|
|
|
export function isBoltTypeAliasDeclaration(value: any): value is BoltTypeAliasDeclaration;
|
2020-05-22 21:57:42 +02:00
|
|
|
export function isBoltRecordDeclarationField(value: any): value is BoltRecordDeclarationField;
|
2020-05-10 15:56:34 +02:00
|
|
|
export function isBoltRecordDeclaration(value: any): value is BoltRecordDeclaration;
|
2020-05-22 21:57:42 +02:00
|
|
|
export function isBoltSourceElement(value: any): value is BoltSourceElement;
|
2020-05-10 15:56:34 +02:00
|
|
|
export function isJSToken(value: any): value is JSToken;
|
|
|
|
export function isJSOperator(value: any): value is JSOperator;
|
|
|
|
export function isJSIdentifier(value: any): value is JSIdentifier;
|
2020-05-22 19:50:47 +02:00
|
|
|
export function isJSReturnKeyword(value: any): value is JSReturnKeyword;
|
|
|
|
export function isJSTryKeyword(value: any): value is JSTryKeyword;
|
|
|
|
export function isJSCatchKeyword(value: any): value is JSCatchKeyword;
|
2020-05-22 21:29:14 +02:00
|
|
|
export function isJSCloseBrace(value: any): value is JSCloseBrace;
|
|
|
|
export function isJSCloseBracket(value: any): value is JSCloseBracket;
|
|
|
|
export function isJSCloseParen(value: any): value is JSCloseParen;
|
|
|
|
export function isJSOpenBrace(value: any): value is JSOpenBrace;
|
|
|
|
export function isJSOpenBracket(value: any): value is JSOpenBracket;
|
|
|
|
export function isJSOpenParen(value: any): value is JSOpenParen;
|
|
|
|
export function isJSSemi(value: any): value is JSSemi;
|
|
|
|
export function isJSComma(value: any): value is JSComma;
|
|
|
|
export function isJSDot(value: any): value is JSDot;
|
|
|
|
export function isJSDotDotDot(value: any): value is JSDotDotDot;
|
2020-05-10 15:56:34 +02:00
|
|
|
export function isJSPattern(value: any): value is JSPattern;
|
|
|
|
export function isJSBindPattern(value: any): value is JSBindPattern;
|
|
|
|
export function isJSExpression(value: any): value is JSExpression;
|
|
|
|
export function isJSConstantExpression(value: any): value is JSConstantExpression;
|
|
|
|
export function isJSMemberExpression(value: any): value is JSMemberExpression;
|
|
|
|
export function isJSCallExpression(value: any): value is JSCallExpression;
|
|
|
|
export function isJSBinaryExpression(value: any): value is JSBinaryExpression;
|
|
|
|
export function isJSUnaryExpression(value: any): value is JSUnaryExpression;
|
|
|
|
export function isJSNewExpression(value: any): value is JSNewExpression;
|
|
|
|
export function isJSSequenceExpression(value: any): value is JSSequenceExpression;
|
|
|
|
export function isJSConditionalExpression(value: any): value is JSConditionalExpression;
|
|
|
|
export function isJSReferenceExpression(value: any): value is JSReferenceExpression;
|
2020-05-22 19:50:47 +02:00
|
|
|
export function isJSSourceElement(value: any): value is JSSourceElement;
|
2020-05-10 15:56:34 +02:00
|
|
|
export function isJSStatement(value: any): value is JSStatement;
|
|
|
|
export function isJSExpressionStatement(value: any): value is JSExpressionStatement;
|
|
|
|
export function isJSConditionalStatement(value: any): value is JSConditionalStatement;
|
|
|
|
export function isJSParameter(value: any): value is JSParameter;
|
|
|
|
export function isJSDeclaration(value: any): value is JSDeclaration;
|
|
|
|
export function isJSFunctionDeclaration(value: any): value is JSFunctionDeclaration;
|
|
|
|
export function isJSArrowFunctionDeclaration(value: any): value is JSArrowFunctionDeclaration;
|
|
|
|
export function isJSLetDeclaration(value: any): value is JSLetDeclaration;
|
|
|
|
export function isJSSourceFile(value: any): value is JSSourceFile;
|