use of org.eclipse.xtext.nodemodel.LeafNode in project xtext-core by eclipse.
the class LazyLinkerTest method newCrossReferenceAssignmentNode.
private INode newCrossReferenceAssignmentNode(final String feature) {
final LeafNode leafNode = new LeafNode();
final Assignment assignment = XtextFactory.eINSTANCE.createAssignment();
assignment.setFeature(feature);
final CrossReference crossReference = XtextFactory.eINSTANCE.createCrossReference();
assignment.setTerminal(crossReference);
leafNode.basicSetGrammarElement(crossReference);
return leafNode;
}
Aggregations