Type declaration
createEnvironmentMatcher: ((macros) => TypeGuard<Environment>)
createMacroMatcher: (<S>(macros) => TypeGuard<Macro & {
content: S;
}>)
anyEnvironment:function
anyMacro:function
- anyMacro(node): node is Macro
Returns node is Macro
anyString:function
argument:function
blankArgument:function
- blankArgument(node): boolean
Returns boolean
comment:function
environment:function
- environment(node, envName?): node is Environment
Parameters
node: any
Optional
envName: string
group:function
macro:function
- macro(node, macroName?): node is Macro
Parameters
node: any
Optional
macroName: string
Returns node is Macro
math:function
parbreak:function
string:function
- string(node, value?): node is String
Parameters
node: any
Optional
value: string
Returns node is String
whitespace:function
whitespaceLike:function
Functions to match different types of nodes.