@@ -4404,6 +4404,30 @@ declare module "assemblyscript/src/compiler" {
44044404 classInstance : Class ,
44054405 /** Statements to append to also being returned. Created if omitted. */
44064406 stmts ?: ExpressionRef [ ] ) : ExpressionRef [ ] ;
4407+ /** Makes a call to `abort`, if present, otherwise creates a trap. */
4408+ makeAbort (
4409+ /** Message argument of type string, if any. */
4410+ message : Expression | null ,
4411+ /** Code location to report when aborting. */
4412+ codeLocation : Node ) : ExpressionRef ;
4413+ /** Makes a runtime non-null check, e.g. on `<Type>possiblyNull` or `possiblyNull!`. */
4414+ makeRuntimeNonNullCheck (
4415+ /** Expression being checked. */
4416+ expr : ExpressionRef ,
4417+ /** Type of the expression. */
4418+ type : Type ,
4419+ /** Report node. */
4420+ reportNode : Node ) : ExpressionRef ;
4421+ /** Makes a runtime upcast check, e.g. on `<Child>parent`. */
4422+ makeRuntimeUpcastCheck (
4423+ /** Expression being upcast. */
4424+ expr : ExpressionRef ,
4425+ /** Type of the expression. */
4426+ type : Type ,
4427+ /** Type casting to. */
4428+ toType : Type ,
4429+ /** Report node. */
4430+ reportNode : Node ) : ExpressionRef ;
44074431 }
44084432}
44094433declare module "assemblyscript/src/builtins" {
@@ -4412,7 +4436,7 @@ declare module "assemblyscript/src/builtins" {
44124436 * @module builtins
44134437 */ /***/
44144438 import { Compiler } from "assemblyscript/src/compiler" ;
4415- import { Node , Expression , CallExpression } from "assemblyscript/src/ast" ;
4439+ import { Expression , CallExpression } from "assemblyscript/src/ast" ;
44164440 import { Type } from "assemblyscript/src/types" ;
44174441 import { ExpressionRef } from "assemblyscript/src/module" ;
44184442 import { FunctionPrototype } from "assemblyscript/src/program" ;
@@ -4874,8 +4898,6 @@ declare module "assemblyscript/src/builtins" {
48744898 reportNode : CallExpression ,
48754899 /** Indicates that contextual type is ASM type. */
48764900 isAsm ?: boolean ) : ExpressionRef ;
4877- /** Compiles an abort wired to the conditionally imported 'abort' function. */
4878- export function compileAbort ( compiler : Compiler , message : Expression | null , reportNode : Node ) : ExpressionRef ;
48794901 /** Compiles the `visit_globals` function. */
48804902 export function compileVisitGlobals ( compiler : Compiler ) : void ;
48814903 /** Compiles the `visit_members` function. */
0 commit comments