Search in sources :

Example 1 with TraceNode

use of org.eclipse.xtext.generator.trace.node.TraceNode in project xtext-core by eclipse.

the class GeneratorNodeExtensions method trace.

/**
 * @return a root trace node for the given location
 */
public CompositeGeneratorNode trace(final ILocationData data, final boolean useForDebugging) {
    final TraceNode result = new TraceNode(data);
    result.setUseForDebugging(useForDebugging);
    return result;
}
Also used : TraceNode(org.eclipse.xtext.generator.trace.node.TraceNode)

Example 2 with TraceNode

use of org.eclipse.xtext.generator.trace.node.TraceNode in project xtext-core by eclipse.

the class GeneratorNodeExtensions method trace.

/**
 * @return a trace node for the given location, appended as a child on the given parent
 */
public CompositeGeneratorNode trace(final CompositeGeneratorNode parent, final ILocationData data, final boolean useForDebugging) {
    final TraceNode result = new TraceNode(data);
    result.setUseForDebugging(useForDebugging);
    List<IGeneratorNode> _children = parent.getChildren();
    _children.add(result);
    return result;
}
Also used : IGeneratorNode(org.eclipse.xtext.generator.trace.node.IGeneratorNode) TraceNode(org.eclipse.xtext.generator.trace.node.TraceNode)

Example 3 with TraceNode

use of org.eclipse.xtext.generator.trace.node.TraceNode in project xtext-core by eclipse.

the class GeneratorNodeExtensions method trace.

/**
 * @return a trace node for the given location, appended as a child on the given parent
 */
public CompositeGeneratorNode trace(final CompositeGeneratorNode parent, final ILocationData data) {
    final TraceNode result = new TraceNode(data);
    List<IGeneratorNode> _children = parent.getChildren();
    _children.add(result);
    return result;
}
Also used : IGeneratorNode(org.eclipse.xtext.generator.trace.node.IGeneratorNode) TraceNode(org.eclipse.xtext.generator.trace.node.TraceNode)

Aggregations

TraceNode (org.eclipse.xtext.generator.trace.node.TraceNode)3 IGeneratorNode (org.eclipse.xtext.generator.trace.node.IGeneratorNode)2