File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
bundles/jamopp.parser.jdt.singlefile/src/jamopp/parser/jdt/singlefile Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 3737import org .eclipse .jdt .core .dom .SuperConstructorInvocation ;
3838import org .eclipse .jdt .core .dom .SuperFieldAccess ;
3939import org .eclipse .jdt .core .dom .SuperMethodInvocation ;
40+ import org .eclipse .jdt .core .dom .TextBlock ;
4041import org .eclipse .jdt .core .dom .ThisExpression ;
4142import org .eclipse .jdt .core .dom .Type ;
4243import org .eclipse .jdt .core .dom .TypeLiteral ;
@@ -241,6 +242,13 @@ private static org.emftext.language.java.references.Reference internalConvertToR
241242 parent .setNext (result );
242243 LayoutInformationConverter .convertToMinimalLayoutInformation (result , arr );
243244 return result ;
245+ } else if (expr .getNodeType () == ASTNode .TEXT_BLOCK ) {
246+ TextBlock textBlock = (TextBlock ) expr ;
247+ org .emftext .language .java .references .TextBlockReference result = org .emftext .language
248+ .java .references .ReferencesFactory .eINSTANCE .createTextBlockReference ();
249+ result .setValue (textBlock .getEscapedValue ());
250+ LayoutInformationConverter .convertToMinimalLayoutInformation (result , textBlock );
251+ return result ;
244252 }
245253 return null ;
246254 }
You can’t perform that action at this time.
0 commit comments