Skip to content

Commit f5a3a41

Browse files
committed
feat<NodeFeatures>: Update Nodefeatures
- Added Field, FIeldSignature, FieldDefinition, Read, Write, ReadWrite and Interface - Sorted according to Fig 2.2 p.10 Constanzes Batchlor Thesis. -Added Todos and Comments for NodeFeatures
1 parent 0510e21 commit f5a3a41

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

NodeFeatures.py

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,28 @@ class NodeTypes(Enum):
99
Each node type corresponds to a specific element in the type system,
1010
providing a way to categorize and manage these elements programmatically.
1111
"""
12-
CALL = "TCall"
13-
CLASS = "TClass"
12+
# TPackage
13+
PACKAGE = "TPackage"
14+
# TModule
1415
MODULE = "TModule"
16+
# TClass
17+
CLASS = "TClass"
18+
# TMethod
1519
METHOD = "TMethod"
1620
METHOD_SIGNATURE = "TMethodSignature"
1721
METHOD_DEFINITION = "TMethodDefinition"
18-
PACKAGE = "TPackage"
1922
PARAMETER = "TParameter"
23+
# TField
24+
FIELD = "TField" # Todo implement this in AstToEcoreConverter
25+
FIELD_SIGNATURE = "TFieldSignature" # Todo implement this in AstToEcoreConverter
26+
FIELD_DEFINITION = "TFieldDefinition" # Todo implement this in AstToEcoreConverter
27+
# TAccess
28+
CALL = "TCall"
29+
READ = "TRead" # Todo implement this in AstToEcoreConverter
30+
WRITE = "TWrite" # Todo implement this in AstToEcoreConverter
31+
READ_WRITE = "TReadWrite" # Todo implement this in AstToEcoreConverter
32+
#TInterface
33+
INTERFACE = "TInterface"
34+
# In Python, there is no formal concept of interfaces as found in some other programming languages like Java or C#.
35+
# However, Python supports a similar concept through the use of abstract base classes (ABCs) and duck typing.
36+
# The return on investment probably is not sufficient to justify the implementation.

0 commit comments

Comments
 (0)