Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Check ¶
type Check struct { InvalidFunctionNodesStack common.ListStack[ast.Node] InvalidGeneratorNodesStack common.ListStack[ast.Node] InvalidLoopNodesStack common.ListStack[ast.Node] // contains filtered or unexported fields }
Check verifies: - Yield statement is only on generator statements - Break/Continue/Redo are only in loop statements - Return statement is only on functions and generator statements
func NewCheckPass ¶
func NewCheckPass() *Check
func (*Check) CountInvalidFunctionNodes ¶
func (*Check) CountInvalidGeneratorNodes ¶
func (*Check) CountInvalidLoopNodes ¶
Click to show internal directories.
Click to hide internal directories.