Search in sources :

Example 1 with SourceOffsets

use of com.google.template.soy.soytree.RawTextNode.SourceOffsets in project closure-templates by google.

the class RawTextBuilder method build.

RawTextNode build() {
    maybeFinishBasic();
    String text = buffer.toString();
    RawTextNode.SourceOffsets sourceOffsets = offsets.build(text.length(), discontinuityReason);
    return new RawTextNode(nodeIdGen.genId(), text, sourceOffsets.getSourceLocation(fileName), sourceOffsets);
}
Also used : RawTextNode(com.google.template.soy.soytree.RawTextNode) SourceOffsets(com.google.template.soy.soytree.RawTextNode.SourceOffsets)

Aggregations

RawTextNode (com.google.template.soy.soytree.RawTextNode)1 SourceOffsets (com.google.template.soy.soytree.RawTextNode.SourceOffsets)1