Search in sources :

Example 1 with LeafNode

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;
}
Also used : Assignment(org.eclipse.xtext.Assignment) LeafNode(org.eclipse.xtext.nodemodel.LeafNode) CrossReference(org.eclipse.xtext.CrossReference)

Aggregations

Assignment (org.eclipse.xtext.Assignment)1 CrossReference (org.eclipse.xtext.CrossReference)1 LeafNode (org.eclipse.xtext.nodemodel.LeafNode)1