mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-15 07:51:32 +00:00
Make the transition to ArrayBuffer backed Arrays (#70)
* Traverse base classes when resolving overloads * Implement preliminary TypedArray accessors * Extract decorator flags from common flags to make space * Add '**' overload * Implement basic explicit inlining * Support inlining of instance methods * Reduce number of required locals when inlining * Implement inlining of operator overloads * Fix issues when inlining generic functions
This commit is contained in:
@ -27,7 +27,6 @@ import {
|
||||
} from "./util";
|
||||
|
||||
import {
|
||||
|
||||
Node,
|
||||
NodeKind,
|
||||
Source,
|
||||
@ -162,22 +161,9 @@ export class Parser extends DiagnosticEmitter {
|
||||
while (tn.skip(Token.AT)) {
|
||||
if (startPos < 0) startPos = tn.tokenPos;
|
||||
let decorator = this.parseDecorator(tn);
|
||||
if (!decorator) break;
|
||||
let name = decorator.name;
|
||||
if (name.kind == NodeKind.IDENTIFIER) {
|
||||
let text = (<IdentifierExpression>name).text;
|
||||
if (text == "global") {
|
||||
flags |= CommonFlags.GLOBAL;
|
||||
continue;
|
||||
}
|
||||
if (text == "unmananged") {
|
||||
flags |= CommonFlags.UNMANAGED;
|
||||
continue;
|
||||
}
|
||||
if (text == "sealed") {
|
||||
flags |= CommonFlags.SEALED;
|
||||
continue;
|
||||
}
|
||||
if (!decorator) {
|
||||
this.skipStatement(tn);
|
||||
continue;
|
||||
}
|
||||
if (!decorators) decorators = [];
|
||||
decorators.push(decorator);
|
||||
|
Reference in New Issue
Block a user