class

NoirAIContext::PatternDefinition

Inherits Reference < Object

Declarative detection rule shared by every catalog in Patterns.

A rule pairs a kind label (the AIContextEntry kind it raises) with two regex sets: name_patterns match against a callee / parameter name, source_patterns match against a source snippet. When either set hits, the matcher emits an entry of kind at confidence.

Constructors

new(kind : String, description : String, confidence : Int32, *, name_patterns : Array(Regex) = [] of Regex, source_patterns : Array(Regex) = [] of Regex)
Source

Instance methods

confidence
Source
description
Source
kind
Source
name_patterns
Source
source_patterns
Source