ParserTracerEvent: {
    location: LocationRange;
    rule: string;
    type: "rule.enter";
} | {
    location: LocationRange;
    rule: string;
    type: "rule.fail";
} | {
    location: LocationRange;
    result: unknown;
    rule: string;
    type: "rule.match";
}

Type declaration

  • Readonlylocation: LocationRange
  • Readonlyresult: unknown

    Return value from the rule.

  • Readonlyrule: string
  • Readonlytype: "rule.match"