Class Preprocessor
java.lang.Object
org.eclipse.epsilon.egl.preprocessor.Preprocessor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertToEol
(AST ast) getTrace()
void
updateASTLocations
(AST ast) protected boolean
Updates the EOL ASTs produced by the preprocessor from EGL static sections.
-
Constructor Details
-
Preprocessor
public Preprocessor()
-
-
Method Details
-
convertToEol
-
getTrace
-
updateRegionsOfStaticTextASTs
Updates the EOL ASTs produced by the preprocessor from EGL static sections. In the generated EOL, static sections appear as statements of the form: out.prinx("the static text") 12345678901234567 0 1 In the EGL AST outline view, we display (a filtered version of) the preprocessed EOL's AST, which contains a STRING node. For the above statement, this would be: STRING, 1:1 to 1:17 Note that the start (end) column includes the opening (closing) double quote. This method corrects this issue by finding all AST nodes that correspond to text generated for static sections and adjusting the regions of the nested STRING nodes. This method also "hides" (makes imaginary) any AST nodes that need not be displayed in the AST outline view.- Returns:
- true if and only iff this method has processed all nested AST nodes and this part of the AST should not be processed any further.
-
updateASTLocations
-