Documentation ¶
Overview ¶
Package parsepasses contains routines that validate or rewrite a Soy AST.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDataRefs ¶
CheckDataRefs validates that:
- all data refs are provided by @params or {let} nodes (except $ij)
- any data declared as a @param is used by the template (or passed via {call})
- all {call} params are declared as @params in the called template soydoc.
- a {call}'ed template is passed all required @params, or a data="$var"
- {call}'d templates actually exist in the registry.
- any variable created by {let} is used somewhere
- {let} variable names are valid. ('ij' is not allowed.)
func ProcessMessages ¶
ProcessMessages calculates the message ids and placeholder names for {msg} nodes and sets that information on the node.
func SetGlobals ¶
SetGlobals sets the value of all global nodes in the given registry. An error is returned if any globals were left undefined.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.