|
1 # |
|
2 # Jasy - Web Tooling Framework |
|
3 # Copyright 2013-2014 Sebastian Werner |
|
4 # |
|
5 |
|
6 from __future__ import unicode_literals |
|
7 |
|
8 import jasy.parse.AbstractNode as AbstractNode |
|
9 |
|
10 class Node(AbstractNode.AbstractNode): |
|
11 |
|
12 __slots__ = [ |
|
13 # core data |
|
14 "line", "type", "tokenizer", "start", "end", "rel", "parent", |
|
15 |
|
16 # dynamic added data by other modules |
|
17 "comments", "scope", |
|
18 |
|
19 # node type specific |
|
20 "value", "expression", "body", "functionForm", "parenthesized", "fileId", "params", |
|
21 "name", "readOnly", "initializer", "condition", "isLoop", "isEach", "object", "assignOp", |
|
22 "iterator", "thenPart", "exception", "elsePart", "setup", "postfix", "update", "tryBlock", |
|
23 "block", "defaultIndex", "discriminant", "label", "statements", "finallyBlock", |
|
24 "statement", "variables", "names", "guard", "for", "tail", "expressionClosure" |
|
25 ] |
|
26 |