irconv

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertNode

func ConvertNode(n node.Node) ir.Node

Types

type Converter

type Converter struct {
	// contains filtered or unexported fields
}

func NewConverter

func NewConverter(typeParser *phpdoc.TypeParser) *Converter

NewConverter returns a new AST->IR converter.

If typeParser is nil, it will not eagerly try to parse phpdoc strings into phpdoc.CommentPart.

It's intended to be re-used inside a signle thread context.

func (*Converter) ConvertNode

func (c *Converter) ConvertNode(n node.Node) ir.Node

func (*Converter) ConvertRoot

func (c *Converter) ConvertRoot(n *node.Root) *ir.Root

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL