Search in sources :

Example 1 with CompositeNodeWithSemanticElement

use of org.eclipse.xtext.nodemodel.impl.CompositeNodeWithSemanticElement in project xtext-core by eclipse.

the class LazyLinkerTest method newSimpleNodeAdapter.

private ICompositeNode newSimpleNodeAdapter(final INode... nodes) {
    NodeModelBuilder builder = new NodeModelBuilder();
    ICompositeNode result = new CompositeNodeWithSemanticElement();
    for (INode node : nodes) {
        builder.addChild(result, (AbstractNode) node);
    }
    return result;
}
Also used : INode(org.eclipse.xtext.nodemodel.INode) NodeModelBuilder(org.eclipse.xtext.nodemodel.impl.NodeModelBuilder) ICompositeNode(org.eclipse.xtext.nodemodel.ICompositeNode) CompositeNodeWithSemanticElement(org.eclipse.xtext.nodemodel.impl.CompositeNodeWithSemanticElement)

Aggregations

ICompositeNode (org.eclipse.xtext.nodemodel.ICompositeNode)1 INode (org.eclipse.xtext.nodemodel.INode)1 CompositeNodeWithSemanticElement (org.eclipse.xtext.nodemodel.impl.CompositeNodeWithSemanticElement)1 NodeModelBuilder (org.eclipse.xtext.nodemodel.impl.NodeModelBuilder)1