use of org.eclipse.xtext.generator.trace.node.CompositeGeneratorNode in project xtext-core by eclipse.
the class TracingSugarTest method _generatePropertyWithDebugging.
@Traced(useForDebugging = true)
public IGeneratorNode _generatePropertyWithDebugging(final Property it) {
ILocationData _location = this._myExtensions.location(it);
CompositeGeneratorNode _traceNode = this._myExtensions.trace(_location, true);
this._myExtensions.appendTemplate(_traceNode, __generatePropertyWithDebugging(it));
return _traceNode;
}
use of org.eclipse.xtext.generator.trace.node.CompositeGeneratorNode in project xtext-core by eclipse.
the class TracingSugarTest method _generateTypeWithDebugging02.
@Traced
public IGeneratorNode _generateTypeWithDebugging02(final Type it) {
ILocationData _location = this._myExtensions.location(it);
CompositeGeneratorNode _traceNode = this._myExtensions.trace(_location, false);
this._myExtensions.appendTemplate(_traceNode, __generateTypeWithDebugging02(it));
return _traceNode;
}
use of org.eclipse.xtext.generator.trace.node.CompositeGeneratorNode in project xtext-core by eclipse.
the class TemplateNode method append.
@Override
public void append(final Object object, final String indentation) {
int _length = indentation.length();
boolean _greaterThan = (_length > 0);
if (_greaterThan) {
final CompositeGeneratorNode before = this.currentParent;
try {
IndentNode _indentNode = new IndentNode(indentation, false, true);
this.currentParent = _indentNode;
List<IGeneratorNode> _children = before.getChildren();
_children.add(this.currentParent);
this.append(object);
} finally {
this.currentParent = before;
}
} else {
this.append(object);
}
}
Aggregations