Module litcheck_filecheck::ast

source ·

Structs§

  • A check file is the source file we’re going to check matches some set of rules.
  • A check line represents a line in a check file, and is associated with some check type and pattern.
  • Represents modificatons to the behavior of a Check
  • This represents the complete type of a CHECK* directive

Enums§

  • This enum represents the kind of directive that was parsed
  • A check pattern is the part of a check line which must match in the check file somewhere
  • A check line is broken up into segments when either [[ ]], or {{ }} is encountered, for substitutions/captures and regex matches respectively; with the before and after parts being literal (and optional). As such we have three types of segments/parts that we can observe on a line
  • Describes available constraints that can be expressed on numeric values
  • This type represents a match rule wrapped in [[ ]]
  • A pattern prefix represents the first distinct subpattern of the overall pattern which can be matched independently of the rest of the pattern.