Documentation
¶
Overview ¶
Package phpdoc implements parsing and printing of PHPDoc comments.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExtendsTag ¶
An ExtendsTag represents an @extends tag.
type ImplementsTag ¶
type ImplementsTag struct { Interface phptype.Type Desc string // contains filtered or unexported fields }
An ImplementsTag represents an @implements tag.
type Line ¶
type Line interface {
// contains filtered or unexported methods
}
A Line represents a line in a PHPDoc comment.
type MethodTag ¶
type MethodTag struct { Static bool Result phptype.Type // or nil Name string Params []*phptype.Param Desc string // contains filtered or unexported fields }
A MethodTag represents a @method tag.
type PropertyTag ¶
type PropertyTag struct {
ReadOnly, WriteOnly bool
Type phptype.Type
Var string
Desc string
// contains filtered or unexported fields
}
A PropertyTag represents a @property tag, as well as its variants @property-read and @property-write.
type SyntaxError ¶
SyntaxError records an error and the position it occured on.
func (*SyntaxError) Error ¶
func (e *SyntaxError) Error() string
type Tag ¶
type Tag interface { Line // contains filtered or unexported methods }
A Tag represents a tag line in a PHPDoc comment (e.g. @author).
type TemplateTag ¶
type TemplateTag struct { Param string Bound phptype.Type // or nil Desc string // contains filtered or unexported fields }
A TemplateTag represents a @template tag.
type TextLine ¶
type TextLine struct { Value string // contains filtered or unexported fields }
A TextLine represents a regular, text-only line in a PHPDoc comment.
type TypeDefTag ¶
type TypeDefTag struct { Name string Type phptype.Type Desc string // contains filtered or unexported fields }
A TemplateTag represents a @phpstan-type tag.
Click to show internal directories.
Click to hide internal directories.