mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-07-03 08:31:53 +00:00
Initial implementation of 'new'
This doesn't yet call the constructor or use provided parameters and just allocates raw memory
This commit is contained in:
@ -6,14 +6,6 @@ import {
|
||||
Target
|
||||
} from "./compiler";
|
||||
|
||||
import {
|
||||
PATH_DELIMITER,
|
||||
GETTER_PREFIX,
|
||||
SETTER_PREFIX,
|
||||
STATIC_DELIMITER,
|
||||
INSTANCE_DELIMITER
|
||||
} from "./constants";
|
||||
|
||||
import {
|
||||
DiagnosticCode,
|
||||
DiagnosticMessage,
|
||||
@ -81,6 +73,19 @@ import {
|
||||
NativeType
|
||||
} from "./module";
|
||||
|
||||
/** Path delimiter inserted between file system levels. */
|
||||
export const PATH_DELIMITER = "/";
|
||||
/** Substitution used to indicate the parent directory. */
|
||||
export const PARENT_SUBST = "..";
|
||||
/** Function name prefix used for getters. */
|
||||
export const GETTER_PREFIX = "get:";
|
||||
/** Function name prefix used for setters. */
|
||||
export const SETTER_PREFIX = "set:";
|
||||
/** Delimiter used between class names and instance members. */
|
||||
export const INSTANCE_DELIMITER = "#";
|
||||
/** Delimiter used between class and namespace names and static members. */
|
||||
export const STATIC_DELIMITER = ".";
|
||||
|
||||
class QueuedExport {
|
||||
isReExport: bool;
|
||||
referencedName: string;
|
||||
|
Reference in New Issue
Block a user