Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewJsCodeParser ¶
func NewJsCodeParser() parser.BlockParser
NewJsCodeParser 解析在最开始的 js 代码,支持 import、function、const、let 开头的代码,已空行结束
func NewJsxParser ¶
func NewJsxParser() parser.BlockParser
Types ¶
type JsxRender ¶
type JsxRender struct { }
func (*JsxRender) RegisterFuncs ¶
func (j *JsxRender) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)
type WrapParser ¶
func (*WrapParser) GetContext ¶
func (p *WrapParser) GetContext() parser.Context
func (*WrapParser) Parse ¶
func (p *WrapParser) Parse(reader text.Reader, opts ...parser.ParseOption) ast.Node
Click to show internal directories.
Click to hide internal directories.