Skip to content

Commit 56fe3df

Browse files
committed
Release v0.9.4
1 parent 8363aa9 commit 56fe3df

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

Diff for: dist/asc.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/assemblyscript.d.ts

+9-7
Original file line numberDiff line numberDiff line change
@@ -966,8 +966,6 @@ declare module "assemblyscript/src/ast" {
966966
SWITCHCASE = 62,
967967
COMMENT = 63
968968
}
969-
/** Checks if a node represents a constant value. */
970-
export function nodeIsConstantValue(kind: NodeKind): boolean;
971969
/** Base class of all nodes. */
972970
export abstract class Node {
973971
/** Node kind indicator. */
@@ -1049,6 +1047,12 @@ declare module "assemblyscript/src/ast" {
10491047
static createVariableDeclaration(name: IdentifierExpression, type: TypeNode | null, initializer: Expression | null, decorators: DecoratorNode[] | null, flags: CommonFlags, range: Range): VariableDeclaration;
10501048
static createVoidStatement(expression: Expression, range: Range): VoidStatement;
10511049
static createWhileStatement(condition: Expression, statement: Statement, range: Range): WhileStatement;
1050+
/** Tests if this node is a literal of the specified kind. */
1051+
isLiteralKind(literalKind: LiteralKind): boolean;
1052+
/** Tests if this node is a literal of a numeric kind (float or integer). */
1053+
get isNumericLiteral(): boolean;
1054+
/** Tests whether this node is guaranteed to compile to a constant value. */
1055+
get compilesToConst(): boolean;
10521056
}
10531057
export abstract class TypeNode extends Node {
10541058
/** Whether nullable or not. */
@@ -1183,8 +1187,6 @@ declare module "assemblyscript/src/ast" {
11831187
ARRAY = 4,
11841188
OBJECT = 5
11851189
}
1186-
/** Checks if the given node represents a numeric (float or integer) literal. */
1187-
export function isNumericLiteral(node: Expression): boolean;
11881190
/** Base class of all literal expressions. */
11891191
export abstract class LiteralExpression extends Expression {
11901192
/** Specific literal kind. */
@@ -3941,8 +3943,8 @@ declare module "assemblyscript/src/program" {
39413943
parent: Element);
39423944
lookup(name: string): Element | null;
39433945
}
3944-
/** An resolved index signature. */
3945-
export class IndexSignature extends VariableLikeElement {
3946+
/** A resolved index signature. */
3947+
export class IndexSignature extends TypedElement {
39463948
/** Constructs a new index prototype. */
39473949
constructor(
39483950
/** Parent class. */
@@ -5087,7 +5089,6 @@ declare module "assemblyscript/src/definitions" {
50875089
static build(program: Program): string;
50885090
private sb;
50895091
private indentLevel;
5090-
private unknown;
50915092
/** Constructs a new WebIDL builder. */
50925093
constructor(program: Program, includePrivate?: boolean);
50935094
visitGlobal(name: string, element: Global): void;
@@ -5247,6 +5248,7 @@ declare module "assemblyscript/src/index" {
52475248
export * from "assemblyscript/src/types";
52485249
import * as util from "assemblyscript/src/util/index";
52495250
export { util };
5251+
export * from "assemblyscript/src/util/index";
52505252
}
52515253
declare module "assemblyscript/src/extra/ast" {
52525254
/**

Diff for: dist/assemblyscript.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/assemblyscript.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/sdk.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const BINARYEN_VERSION = "91.0.0-nightly.20200310";
22
const LONG_VERSION = "4.0.0";
3-
const ASSEMBLYSCRIPT_VERSION = "0.9.3";
3+
const ASSEMBLYSCRIPT_VERSION = "0.9.4";
44

55
// AMD/require.js (browser)
66
if (typeof define === "function" && define.amd) {

0 commit comments

Comments
 (0)