@@ -966,8 +966,6 @@ declare module "assemblyscript/src/ast" {
966
966
SWITCHCASE = 62 ,
967
967
COMMENT = 63
968
968
}
969
- /** Checks if a node represents a constant value. */
970
- export function nodeIsConstantValue ( kind : NodeKind ) : boolean ;
971
969
/** Base class of all nodes. */
972
970
export abstract class Node {
973
971
/** Node kind indicator. */
@@ -1049,6 +1047,12 @@ declare module "assemblyscript/src/ast" {
1049
1047
static createVariableDeclaration ( name : IdentifierExpression , type : TypeNode | null , initializer : Expression | null , decorators : DecoratorNode [ ] | null , flags : CommonFlags , range : Range ) : VariableDeclaration ;
1050
1048
static createVoidStatement ( expression : Expression , range : Range ) : VoidStatement ;
1051
1049
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 ;
1052
1056
}
1053
1057
export abstract class TypeNode extends Node {
1054
1058
/** Whether nullable or not. */
@@ -1183,8 +1187,6 @@ declare module "assemblyscript/src/ast" {
1183
1187
ARRAY = 4 ,
1184
1188
OBJECT = 5
1185
1189
}
1186
- /** Checks if the given node represents a numeric (float or integer) literal. */
1187
- export function isNumericLiteral ( node : Expression ) : boolean ;
1188
1190
/** Base class of all literal expressions. */
1189
1191
export abstract class LiteralExpression extends Expression {
1190
1192
/** Specific literal kind. */
@@ -3941,8 +3943,8 @@ declare module "assemblyscript/src/program" {
3941
3943
parent : Element ) ;
3942
3944
lookup ( name : string ) : Element | null ;
3943
3945
}
3944
- /** An resolved index signature. */
3945
- export class IndexSignature extends VariableLikeElement {
3946
+ /** A resolved index signature. */
3947
+ export class IndexSignature extends TypedElement {
3946
3948
/** Constructs a new index prototype. */
3947
3949
constructor (
3948
3950
/** Parent class. */
@@ -5087,7 +5089,6 @@ declare module "assemblyscript/src/definitions" {
5087
5089
static build ( program : Program ) : string ;
5088
5090
private sb ;
5089
5091
private indentLevel ;
5090
- private unknown ;
5091
5092
/** Constructs a new WebIDL builder. */
5092
5093
constructor ( program : Program , includePrivate ?: boolean ) ;
5093
5094
visitGlobal ( name : string , element : Global ) : void ;
@@ -5247,6 +5248,7 @@ declare module "assemblyscript/src/index" {
5247
5248
export * from "assemblyscript/src/types" ;
5248
5249
import * as util from "assemblyscript/src/util/index" ;
5249
5250
export { util } ;
5251
+ export * from "assemblyscript/src/util/index" ;
5250
5252
}
5251
5253
declare module "assemblyscript/src/extra/ast" {
5252
5254
/**
0 commit comments