Documentation

ControlCaseStructuresAnalyzer
in package

FinalYes

Table of Contents

Methods

findControlStructures()  : Generator<int, AbstractControlCaseStructuresAnalysis>
buildControlCaseStructureAnalysis()  : AbstractControlCaseStructuresAnalysis
findCaseOpen()  : int
findDefaultOpen()  : int
getTypesWithCaseOrDefault()  : array<int, int>

Methods

findControlStructures()

public static findControlStructures(Tokens $tokens, array<int, int> $types) : Generator<int, AbstractControlCaseStructuresAnalysis>
Parameters
$tokens : Tokens
$types : array<int, int>

Token types of interest of which analyzes must be returned

Return values
Generator<int, AbstractControlCaseStructuresAnalysis>

buildControlCaseStructureAnalysis()

private static buildControlCaseStructureAnalysis(array{kind: int, index: int, open: int, end: int, cases: list, default: null|array{index: int, open: int}} $analysis) : AbstractControlCaseStructuresAnalysis
Parameters
$analysis : array{kind: int, index: int, open: int, end: int, cases: list, default: null|array{index: int, open: int}}
Return values
AbstractControlCaseStructuresAnalysis

        
On this page

Search results