We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cbc7da commit d4399afCopy full SHA for d4399af
src/FAST-Java-SmaCC-Importer/FamixJavaAttribute.extension.st
@@ -0,0 +1,14 @@
1
+Extension { #name : 'FamixJavaAttribute' }
2
+
3
+{ #category : '*FAST-Java-SmaCC-Importer' }
4
+FamixJavaAttribute >> getFAST [
5
+ "Attributes sourceAnchor encompass the name of the attribute and a possible initialization
6
+ This can be parsed as an expression (JavaSmaCCProgramNodeImporterVisitor >> parseCodeExpressionString:)
7
+ For this to work properly, the Java importer must be set as being on a Class declaration
8
+ then `clone` will create a sub-parser for the expression"
9
10
+ ^(JavaSmaCCProgramNodeImporterVisitor new
11
+ currentFASTEntity: (FASTJavaClassDeclaration new) ;
12
+ clone)
13
+ parseCodeExpressionString: self sourceAnchor sourceText
14
+]
0 commit comments