mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-14 23:41:30 +00:00
Initial parseInt using loads, see #8
This commit is contained in:
@ -2836,6 +2836,7 @@ export class Compiler extends DiagnosticEmitter {
|
||||
compileLiteralExpression(expression: LiteralExpression, contextualType: Type): ExpressionRef {
|
||||
switch (expression.literalKind) {
|
||||
// case LiteralKind.ARRAY:
|
||||
// return this.compileStaticArray(...);
|
||||
|
||||
case LiteralKind.FLOAT: {
|
||||
var floatValue = (<FloatLiteralExpression>expression).value;
|
||||
@ -2903,6 +2904,10 @@ export class Compiler extends DiagnosticEmitter {
|
||||
: this.module.createI32(stringOffset.lo);
|
||||
}
|
||||
|
||||
compileStaticArray(elementType: Type, expressions: Expression): ExpressionRef {
|
||||
throw new Error("not implemented");
|
||||
}
|
||||
|
||||
compileNewExpression(expression: NewExpression, contextualType: Type): ExpressionRef {
|
||||
var resolved = this.program.resolveExpression(expression.expression, this.currentFunction); // reports
|
||||
if (resolved) {
|
||||
|
Reference in New Issue
Block a user