throws

package
v0.0.0-...-e49a3f0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Throws

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

func NewResolver

func NewResolver(root rooter, node ast.Vertex) *Throws

func NewResolverFromIndex

func NewResolverFromIndex(n *index.INode) *Throws

func (*Throws) Throws

func (t *Throws) Throws() []*fqn.FQN

type Violation

type Violation struct {
	// Either a function or class method statement.
	Node   ast.Vertex
	Throws []*fqn.FQN
	// contains filtered or unexported fields
}

func Diagnose

func Diagnose(root rooter) (results []*Violation)

Diagnose finds all the functions or methods in the given file that throw exceptions that are not added to the PHPDoc with an @throws tag or caught in that method.

func (*Violation) Code

func (v *Violation) Code() string

func (*Violation) Line

func (v *Violation) Line() int

func (*Violation) Message

func (v *Violation) Message() string

Jump to

Keyboard shortcuts

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