public final class InsertMsgsVisitor extends Object
Important: Do not use outside of Soy code (treat as superpackage-private).
If the Soy tree doesn't contain plural/select messages, then after this pass, the Soy tree should no longer contain MsgFallbackGroupNodes, MsgNodes, MsgPlaceholderNodes, or MsgHtmlTagNodes. If the Soy tree contains plural/select messages, then the only messages left in the tree after this pass runs should be the plural/select messages.
Note that the Soy tree is usually simplifiable after this pass is run (e.g. it usually contains consecutive RawTextNodes). It's usually advisable to run a simplification pass after this pass.
| Constructor and Description |
|---|
InsertMsgsVisitor(SoyMsgBundle msgBundle,
ErrorReporter errorReporter) |
public InsertMsgsVisitor(@Nullable SoyMsgBundle msgBundle, ErrorReporter errorReporter)
msgBundle - The bundle of translated messages, or null to use the messages from the Soy
source.errorReporter - For reporting errors.public void insertMsgs(SoyNode node)