-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #177 from blade-lang/172-merge-wire-into-blade
172 merge wire into blade
- Loading branch information
Showing
85 changed files
with
2,080 additions
and
349,732 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
#!-- This file is autogenerated by scripts/ast.b | ||
/** | ||
* base Decl class | ||
*/ | ||
class Decl { | ||
var doc | ||
} | ||
|
||
/** | ||
* Var Decl representation | ||
* @serializable | ||
*/ | ||
class VarDecl < Decl { | ||
|
||
/** | ||
* VarDecl(name, value) | ||
* @constructor | ||
*/ | ||
VarDecl(name, value) { | ||
self.name = name | ||
self.value = value | ||
} | ||
|
||
@to_json() { | ||
return { | ||
type: 'VarDecl', | ||
name: self.name, | ||
value: self.value, | ||
} | ||
} | ||
} | ||
|
||
/** | ||
* Function Decl representation | ||
* @serializable | ||
*/ | ||
class FunctionDecl < Decl { | ||
|
||
/** | ||
* FunctionDecl(name, params, body) | ||
* @constructor | ||
*/ | ||
FunctionDecl(name, params, body) { | ||
self.name = name | ||
self.params = params | ||
self.body = body | ||
} | ||
|
||
@to_json() { | ||
return { | ||
type: 'FunctionDecl', | ||
name: self.name, | ||
params: self.params, | ||
body: self.body, | ||
} | ||
} | ||
} | ||
|
||
/** | ||
* Method Decl representation | ||
* @serializable | ||
*/ | ||
class MethodDecl < Decl { | ||
|
||
/** | ||
* MethodDecl(name, params, body, is_static) | ||
* @constructor | ||
*/ | ||
MethodDecl(name, params, body, is_static) { | ||
self.name = name | ||
self.params = params | ||
self.body = body | ||
self.is_static = is_static | ||
} | ||
|
||
@to_json() { | ||
return { | ||
type: 'MethodDecl', | ||
name: self.name, | ||
params: self.params, | ||
body: self.body, | ||
is_static: self.is_static, | ||
} | ||
} | ||
} | ||
|
||
/** | ||
* Property Decl representation | ||
* @serializable | ||
*/ | ||
class PropertyDecl < Decl { | ||
|
||
/** | ||
* PropertyDecl(name, value, is_static) | ||
* @constructor | ||
*/ | ||
PropertyDecl(name, value, is_static) { | ||
self.name = name | ||
self.value = value | ||
self.is_static = is_static | ||
} | ||
|
||
@to_json() { | ||
return { | ||
type: 'PropertyDecl', | ||
name: self.name, | ||
value: self.value, | ||
is_static: self.is_static, | ||
} | ||
} | ||
} | ||
|
||
/** | ||
* Class Decl representation | ||
* @serializable | ||
*/ | ||
class ClassDecl < Decl { | ||
|
||
/** | ||
* ClassDecl(name, superclass, properties, methods) | ||
* @constructor | ||
*/ | ||
ClassDecl(name, superclass, properties, methods) { | ||
self.name = name | ||
self.superclass = superclass | ||
self.properties = properties | ||
self.methods = methods | ||
} | ||
|
||
@to_json() { | ||
return { | ||
type: 'ClassDecl', | ||
name: self.name, | ||
superclass: self.superclass, | ||
properties: self.properties, | ||
methods: self.methods, | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!-- This file is autogenerated by scripts/ast.b | ||
/** | ||
* base Defn class | ||
*/ | ||
class Defn { | ||
} | ||
|
||
/** | ||
* Doc Defn representation | ||
* @serializable | ||
*/ | ||
class DocDefn < Defn { | ||
|
||
/** | ||
* DocDefn(data) | ||
* @constructor | ||
*/ | ||
DocDefn(data) { | ||
self.data = data | ||
} | ||
|
||
@to_json() { | ||
return { | ||
type: 'DocDefn', | ||
data: self.data, | ||
} | ||
} | ||
} | ||
|
Oops, something went wrong.