crash.software
Projects
Pull Requests
Issues
Builds
bearer
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
bearer
Files
🤬
Sign In
2a12dd09
ROOT
/
new
/
detector
/
evaluator
/
evaluator.go
Search
History
300 lines
|
ISO-8859-1
|
7 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
evaluator
lang
:
languagetypes.Language
detectorSet
:
types.DetectorSet
detectionCache
:
map[langtree.NodeID]map[string][]*types.Detection
executingDetectors
:
map[langtree.NodeID][]string
fileName
:
string
rulesDisabledForNodes
:
map[string][]*langtree.Node
New
( lang languagetypes.Language, detectorSet types.DetectorSet, tree *langtree.Tree, fileName string, )
:
types.Evaluator
mapNodesToDisabledRules
(rootNode *langtree.Node)
:
map[string][]*langtree.Node
*evaluator
FileName
()
:
string
ForTree
( rootNode *langtree.Node, detectorType string, followFlow bool, )
:
([]*types.Detection, error)
ForNode
( node *langtree.Node, detectorType string, followFlow bool, )
:
([]*types.Detection, error)
ruleDisabledForNode
(ruleId string, node *langtree.Node)
:
bool
nonUnifiedNodeDetections
( node *langtree.Node, detectorType string, )
:
([]*types.Detection, error)
TreeHas
(rootNode *langtree.Node, detectorType string)
:
(bool, error)
NodeHas
(node *langtree.Node, detectorType string)
:
(bool, error)
detectAtNode
(node *langtree.Node, detectorType string)
:
error
withCycleProtection
(node *langtree.Node, detectorType string, body func() error)
:
error
All occurrences
Please wait...
Page is in error, reload to recover