mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-05-25 13:41:25 +00:00
Update dist files
This commit is contained in:
parent
bf597a06c6
commit
b835cba265
2
dist/asc.js
vendored
2
dist/asc.js
vendored
File diff suppressed because one or more lines are too long
2
dist/asc.js.map
vendored
2
dist/asc.js.map
vendored
File diff suppressed because one or more lines are too long
84
dist/assemblyscript.d.ts
vendored
84
dist/assemblyscript.d.ts
vendored
@ -268,6 +268,7 @@ declare module 'assemblyscript/src/diagnosticMessages.generated' {
|
|||||||
Type_expected = 1110,
|
Type_expected = 1110,
|
||||||
A_default_clause_cannot_appear_more_than_once_in_a_switch_statement = 1113,
|
A_default_clause_cannot_appear_more_than_once_in_a_switch_statement = 1113,
|
||||||
Duplicate_label_0 = 1114,
|
Duplicate_label_0 = 1114,
|
||||||
|
An_export_assignment_cannot_have_modifiers = 1120,
|
||||||
Octal_literals_are_not_allowed_in_strict_mode = 1121,
|
Octal_literals_are_not_allowed_in_strict_mode = 1121,
|
||||||
Digit_expected = 1124,
|
Digit_expected = 1124,
|
||||||
Hexadecimal_digit_expected = 1125,
|
Hexadecimal_digit_expected = 1125,
|
||||||
@ -906,34 +907,35 @@ declare module 'assemblyscript/src/ast' {
|
|||||||
DO = 31,
|
DO = 31,
|
||||||
EMPTY = 32,
|
EMPTY = 32,
|
||||||
EXPORT = 33,
|
EXPORT = 33,
|
||||||
EXPORTIMPORT = 34,
|
EXPORTDEFAULT = 34,
|
||||||
EXPRESSION = 35,
|
EXPORTIMPORT = 35,
|
||||||
FOR = 36,
|
EXPRESSION = 36,
|
||||||
IF = 37,
|
FOR = 37,
|
||||||
IMPORT = 38,
|
IF = 38,
|
||||||
RETURN = 39,
|
IMPORT = 39,
|
||||||
SWITCH = 40,
|
RETURN = 40,
|
||||||
THROW = 41,
|
SWITCH = 41,
|
||||||
TRY = 42,
|
THROW = 42,
|
||||||
VARIABLE = 43,
|
TRY = 43,
|
||||||
VOID = 44,
|
VARIABLE = 44,
|
||||||
WHILE = 45,
|
VOID = 45,
|
||||||
CLASSDECLARATION = 46,
|
WHILE = 46,
|
||||||
ENUMDECLARATION = 47,
|
CLASSDECLARATION = 47,
|
||||||
ENUMVALUEDECLARATION = 48,
|
ENUMDECLARATION = 48,
|
||||||
FIELDDECLARATION = 49,
|
ENUMVALUEDECLARATION = 49,
|
||||||
FUNCTIONDECLARATION = 50,
|
FIELDDECLARATION = 50,
|
||||||
IMPORTDECLARATION = 51,
|
FUNCTIONDECLARATION = 51,
|
||||||
INDEXSIGNATUREDECLARATION = 52,
|
IMPORTDECLARATION = 52,
|
||||||
INTERFACEDECLARATION = 53,
|
INDEXSIGNATUREDECLARATION = 53,
|
||||||
METHODDECLARATION = 54,
|
INTERFACEDECLARATION = 54,
|
||||||
NAMESPACEDECLARATION = 55,
|
METHODDECLARATION = 55,
|
||||||
TYPEDECLARATION = 56,
|
NAMESPACEDECLARATION = 56,
|
||||||
VARIABLEDECLARATION = 57,
|
TYPEDECLARATION = 57,
|
||||||
DECORATOR = 58,
|
VARIABLEDECLARATION = 58,
|
||||||
EXPORTMEMBER = 59,
|
DECORATOR = 59,
|
||||||
SWITCHCASE = 60,
|
EXPORTMEMBER = 60,
|
||||||
COMMENT = 61
|
SWITCHCASE = 61,
|
||||||
|
COMMENT = 62
|
||||||
}
|
}
|
||||||
/** Checks if a node represents a constant value. */
|
/** Checks if a node represents a constant value. */
|
||||||
export function nodeIsConstantValue(kind: NodeKind): bool;
|
export function nodeIsConstantValue(kind: NodeKind): bool;
|
||||||
@ -995,6 +997,7 @@ declare module 'assemblyscript/src/ast' {
|
|||||||
static createEnumDeclaration(name: IdentifierExpression, members: EnumValueDeclaration[], decorators: DecoratorNode[] | null, flags: CommonFlags, range: Range): EnumDeclaration;
|
static createEnumDeclaration(name: IdentifierExpression, members: EnumValueDeclaration[], decorators: DecoratorNode[] | null, flags: CommonFlags, range: Range): EnumDeclaration;
|
||||||
static createEnumValueDeclaration(name: IdentifierExpression, value: Expression | null, flags: CommonFlags, range: Range): EnumValueDeclaration;
|
static createEnumValueDeclaration(name: IdentifierExpression, value: Expression | null, flags: CommonFlags, range: Range): EnumValueDeclaration;
|
||||||
static createExportStatement(members: ExportMember[] | null, path: StringLiteralExpression | null, isDeclare: bool, range: Range): ExportStatement;
|
static createExportStatement(members: ExportMember[] | null, path: StringLiteralExpression | null, isDeclare: bool, range: Range): ExportStatement;
|
||||||
|
static createExportDefaultStatement(declaration: DeclarationStatement, range: Range): ExportDefaultStatement;
|
||||||
static createExportImportStatement(name: IdentifierExpression, externalName: IdentifierExpression, range: Range): ExportImportStatement;
|
static createExportImportStatement(name: IdentifierExpression, externalName: IdentifierExpression, range: Range): ExportImportStatement;
|
||||||
static createExportMember(name: IdentifierExpression, externalName: IdentifierExpression | null, range: Range): ExportMember;
|
static createExportMember(name: IdentifierExpression, externalName: IdentifierExpression | null, range: Range): ExportMember;
|
||||||
static createExpressionStatement(expression: Expression): ExpressionStatement;
|
static createExpressionStatement(expression: Expression): ExpressionStatement;
|
||||||
@ -1515,6 +1518,12 @@ declare module 'assemblyscript/src/ast' {
|
|||||||
/** Whether this is a declared export. */
|
/** Whether this is a declared export. */
|
||||||
isDeclare: bool;
|
isDeclare: bool;
|
||||||
}
|
}
|
||||||
|
/** Represents an `export default` statement. */
|
||||||
|
export class ExportDefaultStatement extends Statement {
|
||||||
|
kind: NodeKind;
|
||||||
|
/** Declaration being exported as default. */
|
||||||
|
declaration: DeclarationStatement;
|
||||||
|
}
|
||||||
/** Represents an expression that is used as a statement. */
|
/** Represents an expression that is used as a statement. */
|
||||||
export class ExpressionStatement extends Statement {
|
export class ExpressionStatement extends Statement {
|
||||||
kind: NodeKind;
|
kind: NodeKind;
|
||||||
@ -3097,6 +3106,7 @@ declare module 'assemblyscript/src/program' {
|
|||||||
private initializeExports;
|
private initializeExports;
|
||||||
/** Initializes a single `export` member. Does not handle `export *`. */
|
/** Initializes a single `export` member. Does not handle `export *`. */
|
||||||
private initializeExport;
|
private initializeExport;
|
||||||
|
private initializeExportDefault;
|
||||||
/** Initializes an `import` statement. */
|
/** Initializes an `import` statement. */
|
||||||
private initializeImports;
|
private initializeImports;
|
||||||
/** Initializes a single `import` declaration. Does not handle `import *`. */
|
/** Initializes a single `import` declaration. Does not handle `import *`. */
|
||||||
@ -3981,9 +3991,7 @@ declare module 'assemblyscript/src/compiler' {
|
|||||||
checkCallSignature(signature: Signature, numArguments: i32, hasThis: bool, reportNode: Node): bool;
|
checkCallSignature(signature: Signature, numArguments: i32, hasThis: bool, reportNode: Node): bool;
|
||||||
/** Compiles a direct call to a concrete function. */
|
/** Compiles a direct call to a concrete function. */
|
||||||
compileCallDirect(instance: Function, argumentExpressions: Expression[], reportNode: Node, thisArg?: ExpressionRef, contextualFlags?: ContextualFlags): ExpressionRef;
|
compileCallDirect(instance: Function, argumentExpressions: Expression[], reportNode: Node, thisArg?: ExpressionRef, contextualFlags?: ContextualFlags): ExpressionRef;
|
||||||
compileCallInline(instance: Function, argumentExpressions: Expression[], thisArg: ExpressionRef, reportNode: Node, canAlias?: bool): ExpressionRef;
|
makeCallInline(instance: Function, operands: ExpressionRef[] | null, thisArg?: ExpressionRef, immediatelyDropped?: bool): ExpressionRef;
|
||||||
private compileCallInlinePrechecked;
|
|
||||||
makeCallInlinePrechecked(instance: Function, operands: ExpressionRef[] | null, thisArg?: ExpressionRef, immediatelyDropped?: bool): ExpressionRef;
|
|
||||||
/** Gets the trampoline for the specified function. */
|
/** Gets the trampoline for the specified function. */
|
||||||
ensureTrampoline(original: Function): Function;
|
ensureTrampoline(original: Function): Function;
|
||||||
/** Makes sure that the argument count helper global is present and returns its name. */
|
/** Makes sure that the argument count helper global is present and returns its name. */
|
||||||
@ -4663,6 +4671,7 @@ declare module 'assemblyscript/src/parser' {
|
|||||||
parseNamespace(tn: Tokenizer, flags: CommonFlags, decorators: DecoratorNode[] | null, startPos: i32): NamespaceDeclaration | null;
|
parseNamespace(tn: Tokenizer, flags: CommonFlags, decorators: DecoratorNode[] | null, startPos: i32): NamespaceDeclaration | null;
|
||||||
parseExport(tn: Tokenizer, startPos: i32, isDeclare: bool): ExportStatement | null;
|
parseExport(tn: Tokenizer, startPos: i32, isDeclare: bool): ExportStatement | null;
|
||||||
parseExportMember(tn: Tokenizer): ExportMember | null;
|
parseExportMember(tn: Tokenizer): ExportMember | null;
|
||||||
|
parseExportDefaultAlias(tn: Tokenizer, startPos: i32, defaultStart: i32, defaultEnd: i32): ExportStatement;
|
||||||
parseImport(tn: Tokenizer): ImportStatement | null;
|
parseImport(tn: Tokenizer): ImportStatement | null;
|
||||||
parseImportDeclaration(tn: Tokenizer): ImportDeclaration | null;
|
parseImportDeclaration(tn: Tokenizer): ImportDeclaration | null;
|
||||||
parseExportImport(tn: Tokenizer, startPos: i32): ExportImportStatement | null;
|
parseExportImport(tn: Tokenizer, startPos: i32): ExportImportStatement | null;
|
||||||
@ -4815,7 +4824,7 @@ declare module 'assemblyscript/src/extra/ast' {
|
|||||||
*
|
*
|
||||||
* @module extra/ast
|
* @module extra/ast
|
||||||
*/ /***/
|
*/ /***/
|
||||||
import { Node, Source, CommonTypeNode, TypeName, TypeParameterNode, SignatureNode, IdentifierExpression, LiteralExpression, FloatLiteralExpression, IntegerLiteralExpression, StringLiteralExpression, RegexpLiteralExpression, ArrayLiteralExpression, AssertionExpression, BinaryExpression, CallExpression, CommaExpression, ElementAccessExpression, FunctionExpression, NewExpression, ParenthesizedExpression, PropertyAccessExpression, TernaryExpression, UnaryPostfixExpression, UnaryExpression, UnaryPrefixExpression, ClassExpression, ObjectLiteralExpression, Statement, BlockStatement, BreakStatement, ContinueStatement, DoStatement, EmptyStatement, ExportImportStatement, ExportStatement, ExpressionStatement, ForStatement, IfStatement, ImportStatement, InstanceOfExpression, ReturnStatement, SwitchStatement, ThrowStatement, TryStatement, VariableStatement, WhileStatement, ClassDeclaration, EnumDeclaration, EnumValueDeclaration, FieldDeclaration, FunctionDeclaration, ImportDeclaration, IndexSignatureDeclaration, InterfaceDeclaration, MethodDeclaration, NamespaceDeclaration, TypeDeclaration, VariableDeclaration, DecoratorNode, ParameterNode, ExportMember, SwitchCase, DeclarationStatement } from 'assemblyscript/src/ast';
|
import { Node, Source, CommonTypeNode, TypeName, TypeParameterNode, SignatureNode, IdentifierExpression, LiteralExpression, FloatLiteralExpression, IntegerLiteralExpression, StringLiteralExpression, RegexpLiteralExpression, ArrayLiteralExpression, AssertionExpression, BinaryExpression, CallExpression, CommaExpression, ElementAccessExpression, FunctionExpression, NewExpression, ParenthesizedExpression, PropertyAccessExpression, TernaryExpression, UnaryPostfixExpression, UnaryExpression, UnaryPrefixExpression, ClassExpression, ObjectLiteralExpression, Statement, BlockStatement, BreakStatement, ContinueStatement, DoStatement, EmptyStatement, ExportImportStatement, ExportStatement, ExportDefaultStatement, ExpressionStatement, ForStatement, IfStatement, ImportStatement, InstanceOfExpression, ReturnStatement, SwitchStatement, ThrowStatement, TryStatement, VariableStatement, WhileStatement, ClassDeclaration, EnumDeclaration, EnumValueDeclaration, FieldDeclaration, FunctionDeclaration, ImportDeclaration, IndexSignatureDeclaration, InterfaceDeclaration, MethodDeclaration, NamespaceDeclaration, TypeDeclaration, VariableDeclaration, DecoratorNode, ParameterNode, ExportMember, SwitchCase, DeclarationStatement } from 'assemblyscript/src/ast';
|
||||||
/** An AST builder. */
|
/** An AST builder. */
|
||||||
export class ASTBuilder {
|
export class ASTBuilder {
|
||||||
/** Rebuilds the textual source from the specified AST, as far as possible. */
|
/** Rebuilds the textual source from the specified AST, as far as possible. */
|
||||||
@ -4856,26 +4865,27 @@ declare module 'assemblyscript/src/extra/ast' {
|
|||||||
visitBlockStatement(node: BlockStatement): void;
|
visitBlockStatement(node: BlockStatement): void;
|
||||||
visitBreakStatement(node: BreakStatement): void;
|
visitBreakStatement(node: BreakStatement): void;
|
||||||
visitContinueStatement(node: ContinueStatement): void;
|
visitContinueStatement(node: ContinueStatement): void;
|
||||||
visitClassDeclaration(node: ClassDeclaration): void;
|
visitClassDeclaration(node: ClassDeclaration, isDefault?: bool): void;
|
||||||
visitDoStatement(node: DoStatement): void;
|
visitDoStatement(node: DoStatement): void;
|
||||||
visitEmptyStatement(node: EmptyStatement): void;
|
visitEmptyStatement(node: EmptyStatement): void;
|
||||||
visitEnumDeclaration(node: EnumDeclaration): void;
|
visitEnumDeclaration(node: EnumDeclaration, isDefault?: bool): void;
|
||||||
visitEnumValueDeclaration(node: EnumValueDeclaration): void;
|
visitEnumValueDeclaration(node: EnumValueDeclaration): void;
|
||||||
visitExportImportStatement(node: ExportImportStatement): void;
|
visitExportImportStatement(node: ExportImportStatement): void;
|
||||||
visitExportMember(node: ExportMember): void;
|
visitExportMember(node: ExportMember): void;
|
||||||
visitExportStatement(node: ExportStatement): void;
|
visitExportStatement(node: ExportStatement): void;
|
||||||
|
visitExportDefaultStatement(node: ExportDefaultStatement): void;
|
||||||
visitExpressionStatement(node: ExpressionStatement): void;
|
visitExpressionStatement(node: ExpressionStatement): void;
|
||||||
visitFieldDeclaration(node: FieldDeclaration): void;
|
visitFieldDeclaration(node: FieldDeclaration): void;
|
||||||
visitForStatement(node: ForStatement): void;
|
visitForStatement(node: ForStatement): void;
|
||||||
visitFunctionDeclaration(node: FunctionDeclaration): void;
|
visitFunctionDeclaration(node: FunctionDeclaration, isDefault?: bool): void;
|
||||||
visitFunctionCommon(node: FunctionDeclaration): void;
|
visitFunctionCommon(node: FunctionDeclaration): void;
|
||||||
visitIfStatement(node: IfStatement): void;
|
visitIfStatement(node: IfStatement): void;
|
||||||
visitImportDeclaration(node: ImportDeclaration): void;
|
visitImportDeclaration(node: ImportDeclaration): void;
|
||||||
visitImportStatement(node: ImportStatement): void;
|
visitImportStatement(node: ImportStatement): void;
|
||||||
visitIndexSignatureDeclaration(node: IndexSignatureDeclaration): void;
|
visitIndexSignatureDeclaration(node: IndexSignatureDeclaration): void;
|
||||||
visitInterfaceDeclaration(node: InterfaceDeclaration): void;
|
visitInterfaceDeclaration(node: InterfaceDeclaration, isDefault?: bool): void;
|
||||||
visitMethodDeclaration(node: MethodDeclaration): void;
|
visitMethodDeclaration(node: MethodDeclaration): void;
|
||||||
visitNamespaceDeclaration(node: NamespaceDeclaration): void;
|
visitNamespaceDeclaration(node: NamespaceDeclaration, isDefault?: bool): void;
|
||||||
visitReturnStatement(node: ReturnStatement): void;
|
visitReturnStatement(node: ReturnStatement): void;
|
||||||
visitSwitchCase(node: SwitchCase): void;
|
visitSwitchCase(node: SwitchCase): void;
|
||||||
visitSwitchStatement(node: SwitchStatement): void;
|
visitSwitchStatement(node: SwitchStatement): void;
|
||||||
|
2
dist/assemblyscript.js
vendored
2
dist/assemblyscript.js
vendored
File diff suppressed because one or more lines are too long
2
dist/assemblyscript.js.map
vendored
2
dist/assemblyscript.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user