mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-19 01:41:30 +00:00
Implement object literal parsing; Instantiate classes from object literals
Essentially, if the contextual type is a class with a constructor that takes zero arguments or doesn't have a constructor at all, an object literal can be used to initialize a new instance of that class with preset values.
This commit is contained in:
@ -71,7 +71,11 @@ export enum CommonFlags {
|
||||
/** Is a virtual method. */
|
||||
VIRTUAL = 1 << 26,
|
||||
/** Is the main function. */
|
||||
MAIN = 1 << 27
|
||||
MAIN = 1 << 27,
|
||||
|
||||
// Other
|
||||
|
||||
QUOTED = 1 << 28
|
||||
}
|
||||
|
||||
/** Path delimiter inserted between file system levels. */
|
||||
|
Reference in New Issue
Block a user