This is an automated email from the ASF dual-hosted git repository.
jomarko pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git
The following commit(s) were added to refs/heads/main by this push:
new 74076d553a7 [DMN Editor] Rename refactor misses qualified names and
expressions after a comparison operator in unary tests (>= P.Miles) (#4084)
74076d553a7 is described below
commit 74076d553a7734be6a6601fb7a121ee67b565b67
Author: Jozef Marko <[email protected]>
AuthorDate: Tue Nov 24 13:14:46 2026 +0100
[DMN Editor] Rename refactor misses qualified names and expressions after a
comparison operator in unary tests (>= P.Miles) (#4084)
---
.../src/parser/grammar/FEEL_1_1.g4 | 12 +-
.../grammar/generated-parser/FEEL_1_1.interp | 2 +-
.../grammar/generated-parser/FEEL_1_1Parser.ts | 545 ++++++++++-----------
.../fixtures/refactor/creditScoreUnaryTests.dmn | 306 ++++++++++++
packages/dmn-language-service/tests/fs/fixtures.ts | 6 +
.../tests/refactor/IdentifiersRefactor.test.ts | 46 +-
6 files changed, 628 insertions(+), 289 deletions(-)
diff --git a/packages/dmn-feel-antlr4-parser/src/parser/grammar/FEEL_1_1.g4
b/packages/dmn-feel-antlr4-parser/src/parser/grammar/FEEL_1_1.g4
index cf6152d707e..aa27ffaf550 100644
--- a/packages/dmn-feel-antlr4-parser/src/parser/grammar/FEEL_1_1.g4
+++ b/packages/dmn-feel-antlr4-parser/src/parser/grammar/FEEL_1_1.g4
@@ -330,12 +330,12 @@ BooleanLiteral
// #7
simplePositiveUnaryTest
- : op=LT {this.helper.enableDynamicResolution();} endpoint
{this.helper.disableDynamicResolution();} #positiveUnaryTestIneqInterval
- | op=GT {this.helper.enableDynamicResolution();} endpoint
{this.helper.disableDynamicResolution();} #positiveUnaryTestIneqInterval
- | op=LE {this.helper.enableDynamicResolution();} endpoint
{this.helper.disableDynamicResolution();} #positiveUnaryTestIneqInterval
- | op=GE {this.helper.enableDynamicResolution();} endpoint
{this.helper.disableDynamicResolution();} #positiveUnaryTestIneqInterval
- | op=EQUAL {this.helper.enableDynamicResolution();} endpoint
{this.helper.disableDynamicResolution();} #positiveUnaryTestIneq
- | op=NOTEQUAL {this.helper.enableDynamicResolution();} endpoint
{this.helper.disableDynamicResolution();} #positiveUnaryTestIneq
+ : op=LT endpoint #positiveUnaryTestIneqInterval
+ | op=GT endpoint #positiveUnaryTestIneqInterval
+ | op=LE endpoint #positiveUnaryTestIneqInterval
+ | op=GE endpoint #positiveUnaryTestIneqInterval
+ | op=EQUAL endpoint #positiveUnaryTestIneq
+ | op=NOTEQUAL endpoint #positiveUnaryTestIneq
| interval #positiveUnaryTestInterval
;
diff --git
a/packages/dmn-feel-antlr4-parser/src/parser/grammar/generated-parser/FEEL_1_1.interp
b/packages/dmn-feel-antlr4-parser/src/parser/grammar/generated-parser/FEEL_1_1.interp
index e4f2d1d380c..8ed1f5ae900 100644
---
a/packages/dmn-feel-antlr4-parser/src/parser/grammar/generated-parser/FEEL_1_1.interp
+++
b/packages/dmn-feel-antlr4-parser/src/parser/grammar/generated-parser/FEEL_1_1.interp
@@ -171,4 +171,4 @@ reusableKeywords
atn:
-[4, 1, 54, 679, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2,
5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11,
7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2,
17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7,
22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2, 26, 7, 26, 2, 27, 7, 27, 2,
28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31, 7, 31, 2, 32, 7, 32, 2, 33, 7,
33, 2, 34, 7, 34, 2, 35, [...]
\ No newline at end of file
+[4, 1, 54, 661, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2,
5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11,
7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2,
17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7,
22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2, 26, 7, 26, 2, 27, 7, 27, 2,
28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31, 7, 31, 2, 32, 7, 32, 2, 33, 7,
33, 2, 34, 7, 34, 2, 35, [...]
\ No newline at end of file
diff --git
a/packages/dmn-feel-antlr4-parser/src/parser/grammar/generated-parser/FEEL_1_1Parser.ts
b/packages/dmn-feel-antlr4-parser/src/parser/grammar/generated-parser/FEEL_1_1Parser.ts
index 2324f74c86d..353bb563a87 100644
---
a/packages/dmn-feel-antlr4-parser/src/parser/grammar/generated-parser/FEEL_1_1Parser.ts
+++
b/packages/dmn-feel-antlr4-parser/src/parser/grammar/generated-parser/FEEL_1_1Parser.ts
@@ -42,7 +42,7 @@ import {
Interval,
IntervalSet,
} from "antlr4";
-import FEEL_1_1Listener from "./FEEL_1_1Listener";
+import FEEL_1_1Listener from "./FEEL_1_1Listener.js";
// for running tests with parameters, TODO: discuss strategy for typed
parameters in CI
// eslint-disable-next-line no-unused-vars
type int = number;
@@ -360,7 +360,7 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public compilation_unit(): Compilation_unitContext {
- const localctx: Compilation_unitContext = new
Compilation_unitContext(this, this._ctx, this.state);
+ let localctx: Compilation_unitContext = new Compilation_unitContext(this,
this._ctx, this.state);
this.enterRule(localctx, 0, FEEL_1_1Parser.RULE_compilation_unit);
try {
this.enterOuterAlt(localctx, 1);
@@ -409,7 +409,7 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public textualExpression(): TextualExpressionContext {
- const localctx: TextualExpressionContext = new
TextualExpressionContext(this, this._ctx, this.state);
+ let localctx: TextualExpressionContext = new
TextualExpressionContext(this, this._ctx, this.state);
this.enterRule(localctx, 4, FEEL_1_1Parser.RULE_textualExpression);
try {
this.state = 117;
@@ -526,7 +526,7 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public namedParameters(): NamedParametersContext {
- const localctx: NamedParametersContext = new NamedParametersContext(this,
this._ctx, this.state);
+ let localctx: NamedParametersContext = new NamedParametersContext(this,
this._ctx, this.state);
this.enterRule(localctx, 8, FEEL_1_1Parser.RULE_namedParameters);
let _la: number;
try {
@@ -566,7 +566,7 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public namedParameter(): NamedParameterContext {
- const localctx: NamedParameterContext = new NamedParameterContext(this,
this._ctx, this.state);
+ let localctx: NamedParameterContext = new NamedParameterContext(this,
this._ctx, this.state);
this.enterRule(localctx, 10, FEEL_1_1Parser.RULE_namedParameter);
try {
this.enterOuterAlt(localctx, 1);
@@ -593,7 +593,7 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public positionalParameters(): PositionalParametersContext {
- const localctx: PositionalParametersContext = new
PositionalParametersContext(this, this._ctx, this.state);
+ let localctx: PositionalParametersContext = new
PositionalParametersContext(this, this._ctx, this.state);
this.enterRule(localctx, 12, FEEL_1_1Parser.RULE_positionalParameters);
let _la: number;
try {
@@ -633,7 +633,7 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public forExpression(): ForExpressionContext {
- const localctx: ForExpressionContext = new ForExpressionContext(this,
this._ctx, this.state);
+ let localctx: ForExpressionContext = new ForExpressionContext(this,
this._ctx, this.state);
this.enterRule(localctx, 14, FEEL_1_1Parser.RULE_forExpression);
this.helper.pushScope();
@@ -670,7 +670,7 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public iterationContexts(): IterationContextsContext {
- const localctx: IterationContextsContext = new
IterationContextsContext(this, this._ctx, this.state);
+ let localctx: IterationContextsContext = new
IterationContextsContext(this, this._ctx, this.state);
this.enterRule(localctx, 16, FEEL_1_1Parser.RULE_iterationContexts);
let _la: number;
try {
@@ -710,7 +710,7 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public iterationContext(): IterationContextContext {
- const localctx: IterationContextContext = new
IterationContextContext(this, this._ctx, this.state);
+ let localctx: IterationContextContext = new IterationContextContext(this,
this._ctx, this.state);
this.enterRule(localctx, 18, FEEL_1_1Parser.RULE_iterationContext);
try {
this.state = 177;
@@ -762,7 +762,7 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public ifExpression(): IfExpressionContext {
- const localctx: IfExpressionContext = new IfExpressionContext(this,
this._ctx, this.state);
+ let localctx: IfExpressionContext = new IfExpressionContext(this,
this._ctx, this.state);
this.enterRule(localctx, 20, FEEL_1_1Parser.RULE_ifExpression);
try {
this.enterOuterAlt(localctx, 1);
@@ -1004,7 +1004,7 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public list(): ListContext {
- const localctx: ListContext = new ListContext(this, this._ctx, this.state);
+ let localctx: ListContext = new ListContext(this, this._ctx, this.state);
this.enterRule(localctx, 26, FEEL_1_1Parser.RULE_list);
try {
this.state = 250;
@@ -1046,7 +1046,7 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public functionDefinition(): FunctionDefinitionContext {
- const localctx: FunctionDefinitionContext = new
FunctionDefinitionContext(this, this._ctx, this.state);
+ let localctx: FunctionDefinitionContext = new
FunctionDefinitionContext(this, this._ctx, this.state);
this.enterRule(localctx, 28, FEEL_1_1Parser.RULE_functionDefinition);
this.helper.pushScope();
@@ -1104,7 +1104,7 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public formalParameters(): FormalParametersContext {
- const localctx: FormalParametersContext = new
FormalParametersContext(this, this._ctx, this.state);
+ let localctx: FormalParametersContext = new FormalParametersContext(this,
this._ctx, this.state);
this.enterRule(localctx, 30, FEEL_1_1Parser.RULE_formalParameters);
let _la: number;
try {
@@ -1144,7 +1144,7 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public formalParameter(): FormalParameterContext {
- const localctx: FormalParameterContext = new FormalParameterContext(this,
this._ctx, this.state);
+ let localctx: FormalParameterContext = new FormalParameterContext(this,
this._ctx, this.state);
this.enterRule(localctx, 32, FEEL_1_1Parser.RULE_formalParameter);
try {
this.state = 278;
@@ -1184,7 +1184,7 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public context(): ContextContext {
- const localctx: ContextContext = new ContextContext(this, this._ctx,
this.state);
+ let localctx: ContextContext = new ContextContext(this, this._ctx,
this.state);
this.enterRule(localctx, 34, FEEL_1_1Parser.RULE_context);
this.helper.pushScope();
@@ -1232,7 +1232,7 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public contextEntries(): ContextEntriesContext {
- const localctx: ContextEntriesContext = new ContextEntriesContext(this,
this._ctx, this.state);
+ let localctx: ContextEntriesContext = new ContextEntriesContext(this,
this._ctx, this.state);
this.enterRule(localctx, 36, FEEL_1_1Parser.RULE_contextEntries);
let _la: number;
try {
@@ -1272,7 +1272,7 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public contextEntry(): ContextEntryContext {
- const localctx: ContextEntryContext = new ContextEntryContext(this,
this._ctx, this.state);
+ let localctx: ContextEntryContext = new ContextEntryContext(this,
this._ctx, this.state);
this.enterRule(localctx, 38, FEEL_1_1Parser.RULE_contextEntry);
try {
this.enterOuterAlt(localctx, 1);
@@ -1342,7 +1342,7 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public nameDefinition(): NameDefinitionContext {
- const localctx: NameDefinitionContext = new NameDefinitionContext(this,
this._ctx, this.state);
+ let localctx: NameDefinitionContext = new NameDefinitionContext(this,
this._ctx, this.state);
this.enterRule(localctx, 42, FEEL_1_1Parser.RULE_nameDefinition);
try {
this.enterOuterAlt(localctx, 1);
@@ -1366,7 +1366,7 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public nameDefinitionWithEOF(): NameDefinitionWithEOFContext {
- const localctx: NameDefinitionWithEOFContext = new
NameDefinitionWithEOFContext(this, this._ctx, this.state);
+ let localctx: NameDefinitionWithEOFContext = new
NameDefinitionWithEOFContext(this, this._ctx, this.state);
this.enterRule(localctx, 44, FEEL_1_1Parser.RULE_nameDefinitionWithEOF);
try {
this.enterOuterAlt(localctx, 1);
@@ -1391,7 +1391,7 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public nameDefinitionTokens(): NameDefinitionTokensContext {
- const localctx: NameDefinitionTokensContext = new
NameDefinitionTokensContext(this, this._ctx, this.state);
+ let localctx: NameDefinitionTokensContext = new
NameDefinitionTokensContext(this, this._ctx, this.state);
this.enterRule(localctx, 46, FEEL_1_1Parser.RULE_nameDefinitionTokens);
let _la: number;
try {
@@ -1493,7 +1493,7 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public iterationNameDefinition(): IterationNameDefinitionContext {
- const localctx: IterationNameDefinitionContext = new
IterationNameDefinitionContext(this, this._ctx, this.state);
+ let localctx: IterationNameDefinitionContext = new
IterationNameDefinitionContext(this, this._ctx, this.state);
this.enterRule(localctx, 48, FEEL_1_1Parser.RULE_iterationNameDefinition);
try {
this.enterOuterAlt(localctx, 1);
@@ -1517,7 +1517,7 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public iterationNameDefinitionTokens(): IterationNameDefinitionTokensContext
{
- const localctx: IterationNameDefinitionTokensContext = new
IterationNameDefinitionTokensContext(
+ let localctx: IterationNameDefinitionTokensContext = new
IterationNameDefinitionTokensContext(
this,
this._ctx,
this.state
@@ -1617,7 +1617,7 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public additionalNameSymbol(): AdditionalNameSymbolContext {
- const localctx: AdditionalNameSymbolContext = new
AdditionalNameSymbolContext(this, this._ctx, this.state);
+ let localctx: AdditionalNameSymbolContext = new
AdditionalNameSymbolContext(this, this._ctx, this.state);
this.enterRule(localctx, 52, FEEL_1_1Parser.RULE_additionalNameSymbol);
let _la: number;
try {
@@ -1654,11 +1654,11 @@ export default class FEEL_1_1Parser extends Parser {
_p = 0;
}
- const _parentctx: ParserRuleContext = this._ctx;
- const _parentState: number = this.state;
+ let _parentctx: ParserRuleContext = this._ctx;
+ let _parentState: number = this.state;
let localctx: ConditionalOrExpressionContext = new
ConditionalOrExpressionContext(this, this._ctx, _parentState);
let _prevctx: ConditionalOrExpressionContext = localctx;
- const _startState: number = 54;
+ let _startState: number = 54;
this.enterRecursionRule(localctx, 54,
FEEL_1_1Parser.RULE_conditionalOrExpression, _p);
try {
let _alt: number;
@@ -1725,11 +1725,11 @@ export default class FEEL_1_1Parser extends Parser {
_p = 0;
}
- const _parentctx: ParserRuleContext = this._ctx;
- const _parentState: number = this.state;
+ let _parentctx: ParserRuleContext = this._ctx;
+ let _parentState: number = this.state;
let localctx: ConditionalAndExpressionContext = new
ConditionalAndExpressionContext(this, this._ctx, _parentState);
let _prevctx: ConditionalAndExpressionContext = localctx;
- const _startState: number = 56;
+ let _startState: number = 56;
this.enterRecursionRule(localctx, 56,
FEEL_1_1Parser.RULE_conditionalAndExpression, _p);
try {
let _alt: number;
@@ -1799,11 +1799,11 @@ export default class FEEL_1_1Parser extends Parser {
_p = 0;
}
- const _parentctx: ParserRuleContext = this._ctx;
- const _parentState: number = this.state;
+ let _parentctx: ParserRuleContext = this._ctx;
+ let _parentState: number = this.state;
let localctx: ComparisonExpressionContext = new
ComparisonExpressionContext(this, this._ctx, _parentState);
let _prevctx: ComparisonExpressionContext = localctx;
- const _startState: number = 58;
+ let _startState: number = 58;
this.enterRecursionRule(localctx, 58,
FEEL_1_1Parser.RULE_comparisonExpression, _p);
let _la: number;
try {
@@ -1881,11 +1881,11 @@ export default class FEEL_1_1Parser extends Parser {
_p = 0;
}
- const _parentctx: ParserRuleContext = this._ctx;
- const _parentState: number = this.state;
+ let _parentctx: ParserRuleContext = this._ctx;
+ let _parentState: number = this.state;
let localctx: RelationalExpressionContext = new
RelationalExpressionContext(this, this._ctx, _parentState);
let _prevctx: RelationalExpressionContext = localctx;
- const _startState: number = 60;
+ let _startState: number = 60;
this.enterRecursionRule(localctx, 60,
FEEL_1_1Parser.RULE_relationalExpression, _p);
try {
let _alt: number;
@@ -2018,7 +2018,7 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public expressionList(): ExpressionListContext {
- const localctx: ExpressionListContext = new ExpressionListContext(this,
this._ctx, this.state);
+ let localctx: ExpressionListContext = new ExpressionListContext(this,
this._ctx, this.state);
this.enterRule(localctx, 62, FEEL_1_1Parser.RULE_expressionList);
let _la: number;
try {
@@ -2065,11 +2065,11 @@ export default class FEEL_1_1Parser extends Parser {
_p = 0;
}
- const _parentctx: ParserRuleContext = this._ctx;
- const _parentState: number = this.state;
+ let _parentctx: ParserRuleContext = this._ctx;
+ let _parentState: number = this.state;
let localctx: AdditiveExpressionContext = new
AdditiveExpressionContext(this, this._ctx, _parentState);
let _prevctx: AdditiveExpressionContext = localctx;
- const _startState: number = 64;
+ let _startState: number = 64;
this.enterRecursionRule(localctx, 64,
FEEL_1_1Parser.RULE_additiveExpression, _p);
try {
let _alt: number;
@@ -2161,11 +2161,11 @@ export default class FEEL_1_1Parser extends Parser {
_p = 0;
}
- const _parentctx: ParserRuleContext = this._ctx;
- const _parentState: number = this.state;
+ let _parentctx: ParserRuleContext = this._ctx;
+ let _parentState: number = this.state;
let localctx: MultiplicativeExpressionContext = new
MultiplicativeExpressionContext(this, this._ctx, _parentState);
let _prevctx: MultiplicativeExpressionContext = localctx;
- const _startState: number = 66;
+ let _startState: number = 66;
this.enterRecursionRule(localctx, 66,
FEEL_1_1Parser.RULE_multiplicativeExpression, _p);
let _la: number;
try {
@@ -2242,11 +2242,11 @@ export default class FEEL_1_1Parser extends Parser {
_p = 0;
}
- const _parentctx: ParserRuleContext = this._ctx;
- const _parentState: number = this.state;
+ let _parentctx: ParserRuleContext = this._ctx;
+ let _parentState: number = this.state;
let localctx: PowerExpressionContext = new PowerExpressionContext(this,
this._ctx, _parentState);
let _prevctx: PowerExpressionContext = localctx;
- const _startState: number = 68;
+ let _startState: number = 68;
this.enterRecursionRule(localctx, 68, FEEL_1_1Parser.RULE_powerExpression,
_p);
try {
let _alt: number;
@@ -2312,11 +2312,11 @@ export default class FEEL_1_1Parser extends Parser {
_p = 0;
}
- const _parentctx: ParserRuleContext = this._ctx;
- const _parentState: number = this.state;
+ let _parentctx: ParserRuleContext = this._ctx;
+ let _parentState: number = this.state;
let localctx: FilterPathExpressionContext = new
FilterPathExpressionContext(this, this._ctx, _parentState);
let _prevctx: FilterPathExpressionContext = localctx;
- const _startState: number = 70;
+ let _startState: number = 70;
this.enterRecursionRule(localctx, 70,
FEEL_1_1Parser.RULE_filterPathExpression, _p);
let count = 0;
@@ -2411,11 +2411,11 @@ export default class FEEL_1_1Parser extends Parser {
_p = 0;
}
- const _parentctx: ParserRuleContext = this._ctx;
- const _parentState: number = this.state;
+ let _parentctx: ParserRuleContext = this._ctx;
+ let _parentState: number = this.state;
let localctx: UnaryExpressionContext = new UnaryExpressionContext(this,
this._ctx, _parentState);
let _prevctx: UnaryExpressionContext = localctx;
- const _startState: number = 72;
+ let _startState: number = 72;
this.enterRecursionRule(localctx, 72, FEEL_1_1Parser.RULE_unaryExpression,
_p);
try {
let _alt: number;
@@ -2755,7 +2755,7 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public atLiteral(): AtLiteralContext {
- const localctx: AtLiteralContext = new AtLiteralContext(this, this._ctx,
this.state);
+ let localctx: AtLiteralContext = new AtLiteralContext(this, this._ctx,
this.state);
this.enterRule(localctx, 80, FEEL_1_1Parser.RULE_atLiteral);
try {
this.enterOuterAlt(localctx, 1);
@@ -2780,7 +2780,7 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public atLiteralValue(): AtLiteralValueContext {
- const localctx: AtLiteralValueContext = new AtLiteralValueContext(this,
this._ctx, this.state);
+ let localctx: AtLiteralValueContext = new AtLiteralValueContext(this,
this._ctx, this.state);
this.enterRule(localctx, 82, FEEL_1_1Parser.RULE_atLiteralValue);
try {
this.enterOuterAlt(localctx, 1);
@@ -2806,7 +2806,7 @@ export default class FEEL_1_1Parser extends Parser {
let localctx: SimplePositiveUnaryTestContext = new
SimplePositiveUnaryTestContext(this, this._ctx, this.state);
this.enterRule(localctx, 84, FEEL_1_1Parser.RULE_simplePositiveUnaryTest);
try {
- this.state = 550;
+ this.state = 532;
this._errHandler.sync(this);
switch (this._input.LA(1)) {
case 36:
@@ -2815,70 +2815,58 @@ export default class FEEL_1_1Parser extends Parser {
{
this.state = 519;
(localctx as PositiveUnaryTestIneqIntervalContext)._op =
this.match(FEEL_1_1Parser.LT);
- this.helper.enableDynamicResolution();
- this.state = 521;
+ this.state = 520;
this.endpoint();
- this.helper.disableDynamicResolution();
}
break;
case 35:
localctx = new PositiveUnaryTestIneqIntervalContext(this, localctx);
this.enterOuterAlt(localctx, 2);
{
- this.state = 524;
+ this.state = 521;
(localctx as PositiveUnaryTestIneqIntervalContext)._op =
this.match(FEEL_1_1Parser.GT);
- this.helper.enableDynamicResolution();
- this.state = 526;
+ this.state = 522;
this.endpoint();
- this.helper.disableDynamicResolution();
}
break;
case 37:
localctx = new PositiveUnaryTestIneqIntervalContext(this, localctx);
this.enterOuterAlt(localctx, 3);
{
- this.state = 529;
+ this.state = 523;
(localctx as PositiveUnaryTestIneqIntervalContext)._op =
this.match(FEEL_1_1Parser.LE);
- this.helper.enableDynamicResolution();
- this.state = 531;
+ this.state = 524;
this.endpoint();
- this.helper.disableDynamicResolution();
}
break;
case 38:
localctx = new PositiveUnaryTestIneqIntervalContext(this, localctx);
this.enterOuterAlt(localctx, 4);
{
- this.state = 534;
+ this.state = 525;
(localctx as PositiveUnaryTestIneqIntervalContext)._op =
this.match(FEEL_1_1Parser.GE);
- this.helper.enableDynamicResolution();
- this.state = 536;
+ this.state = 526;
this.endpoint();
- this.helper.disableDynamicResolution();
}
break;
case 34:
localctx = new PositiveUnaryTestIneqContext(this, localctx);
this.enterOuterAlt(localctx, 5);
{
- this.state = 539;
+ this.state = 527;
(localctx as PositiveUnaryTestIneqContext)._op =
this.match(FEEL_1_1Parser.EQUAL);
- this.helper.enableDynamicResolution();
- this.state = 541;
+ this.state = 528;
this.endpoint();
- this.helper.disableDynamicResolution();
}
break;
case 39:
localctx = new PositiveUnaryTestIneqContext(this, localctx);
this.enterOuterAlt(localctx, 6);
{
- this.state = 544;
+ this.state = 529;
(localctx as PositiveUnaryTestIneqContext)._op =
this.match(FEEL_1_1Parser.NOTEQUAL);
- this.helper.enableDynamicResolution();
- this.state = 546;
+ this.state = 530;
this.endpoint();
- this.helper.disableDynamicResolution();
}
break;
case 25:
@@ -2887,7 +2875,7 @@ export default class FEEL_1_1Parser extends Parser {
localctx = new PositiveUnaryTestIntervalContext(this, localctx);
this.enterOuterAlt(localctx, 7);
{
- this.state = 549;
+ this.state = 531;
this.interval();
}
break;
@@ -2909,27 +2897,27 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public simplePositiveUnaryTests(): SimplePositiveUnaryTestsContext {
- const localctx: SimplePositiveUnaryTestsContext = new
SimplePositiveUnaryTestsContext(this, this._ctx, this.state);
+ let localctx: SimplePositiveUnaryTestsContext = new
SimplePositiveUnaryTestsContext(this, this._ctx, this.state);
this.enterRule(localctx, 86, FEEL_1_1Parser.RULE_simplePositiveUnaryTests);
let _la: number;
try {
this.enterOuterAlt(localctx, 1);
{
- this.state = 552;
+ this.state = 534;
this.simplePositiveUnaryTest();
- this.state = 557;
+ this.state = 539;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === 31) {
{
{
- this.state = 553;
+ this.state = 535;
this.match(FEEL_1_1Parser.COMMA);
- this.state = 554;
+ this.state = 536;
this.simplePositiveUnaryTest();
}
}
- this.state = 559;
+ this.state = 541;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
@@ -2952,7 +2940,7 @@ export default class FEEL_1_1Parser extends Parser {
let localctx: SimpleUnaryTestsContext = new SimpleUnaryTestsContext(this,
this._ctx, this.state);
this.enterRule(localctx, 88, FEEL_1_1Parser.RULE_simpleUnaryTests);
try {
- this.state = 567;
+ this.state = 549;
this._errHandler.sync(this);
switch (this._input.LA(1)) {
case 25:
@@ -2967,7 +2955,7 @@ export default class FEEL_1_1Parser extends Parser {
localctx = new PositiveSimplePositiveUnaryTestsContext(this,
localctx);
this.enterOuterAlt(localctx, 1);
{
- this.state = 560;
+ this.state = 542;
this.simplePositiveUnaryTests();
}
break;
@@ -2975,13 +2963,13 @@ export default class FEEL_1_1Parser extends Parser {
localctx = new NegatedSimplePositiveUnaryTestsContext(this,
localctx);
this.enterOuterAlt(localctx, 2);
{
- this.state = 561;
+ this.state = 543;
this.match(FEEL_1_1Parser.NOT);
- this.state = 562;
+ this.state = 544;
this.match(FEEL_1_1Parser.LPAREN);
- this.state = 563;
+ this.state = 545;
this.simplePositiveUnaryTests();
- this.state = 564;
+ this.state = 546;
this.match(FEEL_1_1Parser.RPAREN);
}
break;
@@ -2989,7 +2977,7 @@ export default class FEEL_1_1Parser extends Parser {
localctx = new PositiveUnaryTestDashContext(this, localctx);
this.enterOuterAlt(localctx, 3);
{
- this.state = 566;
+ this.state = 548;
this.match(FEEL_1_1Parser.SUB);
}
break;
@@ -3011,12 +2999,12 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public positiveUnaryTest(): PositiveUnaryTestContext {
- const localctx: PositiveUnaryTestContext = new
PositiveUnaryTestContext(this, this._ctx, this.state);
+ let localctx: PositiveUnaryTestContext = new
PositiveUnaryTestContext(this, this._ctx, this.state);
this.enterRule(localctx, 90, FEEL_1_1Parser.RULE_positiveUnaryTest);
try {
this.enterOuterAlt(localctx, 1);
{
- this.state = 569;
+ this.state = 551;
this.expression();
}
} catch (re) {
@@ -3034,27 +3022,27 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public positiveUnaryTests(): PositiveUnaryTestsContext {
- const localctx: PositiveUnaryTestsContext = new
PositiveUnaryTestsContext(this, this._ctx, this.state);
+ let localctx: PositiveUnaryTestsContext = new
PositiveUnaryTestsContext(this, this._ctx, this.state);
this.enterRule(localctx, 92, FEEL_1_1Parser.RULE_positiveUnaryTests);
let _la: number;
try {
this.enterOuterAlt(localctx, 1);
{
- this.state = 571;
+ this.state = 553;
this.positiveUnaryTest();
- this.state = 576;
+ this.state = 558;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === 31) {
{
{
- this.state = 572;
+ this.state = 554;
this.match(FEEL_1_1Parser.COMMA);
- this.state = 573;
+ this.state = 555;
this.positiveUnaryTest();
}
}
- this.state = 578;
+ this.state = 560;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
@@ -3074,14 +3062,14 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public unaryTestsRoot(): UnaryTestsRootContext {
- const localctx: UnaryTestsRootContext = new UnaryTestsRootContext(this,
this._ctx, this.state);
+ let localctx: UnaryTestsRootContext = new UnaryTestsRootContext(this,
this._ctx, this.state);
this.enterRule(localctx, 94, FEEL_1_1Parser.RULE_unaryTestsRoot);
try {
this.enterOuterAlt(localctx, 1);
{
- this.state = 579;
+ this.state = 561;
this.unaryTests();
- this.state = 580;
+ this.state = 562;
this.match(FEEL_1_1Parser.EOF);
}
} catch (re) {
@@ -3102,20 +3090,20 @@ export default class FEEL_1_1Parser extends Parser {
let localctx: UnaryTestsContext = new UnaryTestsContext(this, this._ctx,
this.state);
this.enterRule(localctx, 96, FEEL_1_1Parser.RULE_unaryTests);
try {
- this.state = 589;
+ this.state = 571;
this._errHandler.sync(this);
switch (this._interp.adaptivePredict(this._input, 45, this._ctx)) {
case 1:
localctx = new UnaryTests_negatedContext(this, localctx);
this.enterOuterAlt(localctx, 1);
{
- this.state = 582;
+ this.state = 564;
this.match(FEEL_1_1Parser.NOT);
- this.state = 583;
+ this.state = 565;
this.match(FEEL_1_1Parser.LPAREN);
- this.state = 584;
+ this.state = 566;
this.positiveUnaryTests();
- this.state = 585;
+ this.state = 567;
this.match(FEEL_1_1Parser.RPAREN);
}
break;
@@ -3123,7 +3111,7 @@ export default class FEEL_1_1Parser extends Parser {
localctx = new UnaryTests_positiveContext(this, localctx);
this.enterOuterAlt(localctx, 2);
{
- this.state = 587;
+ this.state = 569;
this.positiveUnaryTests();
}
break;
@@ -3131,7 +3119,7 @@ export default class FEEL_1_1Parser extends Parser {
localctx = new UnaryTests_emptyContext(this, localctx);
this.enterOuterAlt(localctx, 3);
{
- this.state = 588;
+ this.state = 570;
this.match(FEEL_1_1Parser.SUB);
}
break;
@@ -3151,12 +3139,12 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public endpoint(): EndpointContext {
- const localctx: EndpointContext = new EndpointContext(this, this._ctx,
this.state);
+ let localctx: EndpointContext = new EndpointContext(this, this._ctx,
this.state);
this.enterRule(localctx, 98, FEEL_1_1Parser.RULE_endpoint);
try {
this.enterOuterAlt(localctx, 1);
{
- this.state = 591;
+ this.state = 573;
this.additiveExpression(0);
}
} catch (re) {
@@ -3174,144 +3162,144 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public interval(): IntervalContext {
- const localctx: IntervalContext = new IntervalContext(this, this._ctx,
this.state);
+ let localctx: IntervalContext = new IntervalContext(this, this._ctx,
this.state);
this.enterRule(localctx, 100, FEEL_1_1Parser.RULE_interval);
try {
- this.state = 647;
+ this.state = 629;
this._errHandler.sync(this);
switch (this._interp.adaptivePredict(this._input, 46, this._ctx)) {
case 1:
this.enterOuterAlt(localctx, 1);
{
- this.state = 593;
+ this.state = 575;
localctx._low = this.match(FEEL_1_1Parser.LPAREN);
- this.state = 594;
+ this.state = 576;
localctx._start = this.endpoint();
- this.state = 595;
+ this.state = 577;
this.match(FEEL_1_1Parser.ELIPSIS);
- this.state = 596;
+ this.state = 578;
localctx._end = this.endpoint();
- this.state = 597;
+ this.state = 579;
localctx._up = this.match(FEEL_1_1Parser.RPAREN);
}
break;
case 2:
this.enterOuterAlt(localctx, 2);
{
- this.state = 599;
+ this.state = 581;
localctx._low = this.match(FEEL_1_1Parser.LPAREN);
- this.state = 600;
+ this.state = 582;
localctx._start = this.endpoint();
- this.state = 601;
+ this.state = 583;
this.match(FEEL_1_1Parser.ELIPSIS);
- this.state = 602;
+ this.state = 584;
localctx._end = this.endpoint();
- this.state = 603;
+ this.state = 585;
localctx._up = this.match(FEEL_1_1Parser.LBRACK);
}
break;
case 3:
this.enterOuterAlt(localctx, 3);
{
- this.state = 605;
+ this.state = 587;
localctx._low = this.match(FEEL_1_1Parser.LPAREN);
- this.state = 606;
+ this.state = 588;
localctx._start = this.endpoint();
- this.state = 607;
+ this.state = 589;
this.match(FEEL_1_1Parser.ELIPSIS);
- this.state = 608;
+ this.state = 590;
localctx._end = this.endpoint();
- this.state = 609;
+ this.state = 591;
localctx._up = this.match(FEEL_1_1Parser.RBRACK);
}
break;
case 4:
this.enterOuterAlt(localctx, 4);
{
- this.state = 611;
+ this.state = 593;
localctx._low = this.match(FEEL_1_1Parser.RBRACK);
- this.state = 612;
+ this.state = 594;
localctx._start = this.endpoint();
- this.state = 613;
+ this.state = 595;
this.match(FEEL_1_1Parser.ELIPSIS);
- this.state = 614;
+ this.state = 596;
localctx._end = this.endpoint();
- this.state = 615;
+ this.state = 597;
localctx._up = this.match(FEEL_1_1Parser.RPAREN);
}
break;
case 5:
this.enterOuterAlt(localctx, 5);
{
- this.state = 617;
+ this.state = 599;
localctx._low = this.match(FEEL_1_1Parser.RBRACK);
- this.state = 618;
+ this.state = 600;
localctx._start = this.endpoint();
- this.state = 619;
+ this.state = 601;
this.match(FEEL_1_1Parser.ELIPSIS);
- this.state = 620;
+ this.state = 602;
localctx._end = this.endpoint();
- this.state = 621;
+ this.state = 603;
localctx._up = this.match(FEEL_1_1Parser.LBRACK);
}
break;
case 6:
this.enterOuterAlt(localctx, 6);
{
- this.state = 623;
+ this.state = 605;
localctx._low = this.match(FEEL_1_1Parser.RBRACK);
- this.state = 624;
+ this.state = 606;
localctx._start = this.endpoint();
- this.state = 625;
+ this.state = 607;
this.match(FEEL_1_1Parser.ELIPSIS);
- this.state = 626;
+ this.state = 608;
localctx._end = this.endpoint();
- this.state = 627;
+ this.state = 609;
localctx._up = this.match(FEEL_1_1Parser.RBRACK);
}
break;
case 7:
this.enterOuterAlt(localctx, 7);
{
- this.state = 629;
+ this.state = 611;
localctx._low = this.match(FEEL_1_1Parser.LBRACK);
- this.state = 630;
+ this.state = 612;
localctx._start = this.endpoint();
- this.state = 631;
+ this.state = 613;
this.match(FEEL_1_1Parser.ELIPSIS);
- this.state = 632;
+ this.state = 614;
localctx._end = this.endpoint();
- this.state = 633;
+ this.state = 615;
localctx._up = this.match(FEEL_1_1Parser.RPAREN);
}
break;
case 8:
this.enterOuterAlt(localctx, 8);
{
- this.state = 635;
+ this.state = 617;
localctx._low = this.match(FEEL_1_1Parser.LBRACK);
- this.state = 636;
+ this.state = 618;
localctx._start = this.endpoint();
- this.state = 637;
+ this.state = 619;
this.match(FEEL_1_1Parser.ELIPSIS);
- this.state = 638;
+ this.state = 620;
localctx._end = this.endpoint();
- this.state = 639;
+ this.state = 621;
localctx._up = this.match(FEEL_1_1Parser.LBRACK);
}
break;
case 9:
this.enterOuterAlt(localctx, 9);
{
- this.state = 641;
+ this.state = 623;
localctx._low = this.match(FEEL_1_1Parser.LBRACK);
- this.state = 642;
+ this.state = 624;
localctx._start = this.endpoint();
- this.state = 643;
+ this.state = 625;
this.match(FEEL_1_1Parser.ELIPSIS);
- this.state = 644;
+ this.state = 626;
localctx._end = this.endpoint();
- this.state = 645;
+ this.state = 627;
localctx._up = this.match(FEEL_1_1Parser.RBRACK);
}
break;
@@ -3331,7 +3319,7 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public qualifiedName(): QualifiedNameContext {
- const localctx: QualifiedNameContext = new QualifiedNameContext(this,
this._ctx, this.state);
+ let localctx: QualifiedNameContext = new QualifiedNameContext(this,
this._ctx, this.state);
this.enterRule(localctx, 102, FEEL_1_1Parser.RULE_qualifiedName);
let name = ""; // null?
@@ -3342,23 +3330,23 @@ export default class FEEL_1_1Parser extends Parser {
let _alt: number;
this.enterOuterAlt(localctx, 1);
{
- this.state = 649;
+ this.state = 631;
localctx._n1 = this.nameRef();
name = this.helper.getOriginalText(localctx._n1);
qn.push(name);
this.helper.validateVariable(localctx._n1, qn, name);
- this.state = 658;
+ this.state = 640;
this._errHandler.sync(this);
_alt = this._interp.adaptivePredict(this._input, 47, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
- this.state = 651;
+ this.state = 633;
this.match(FEEL_1_1Parser.DOT);
this.helper.recoverScope(name);
count++;
- this.state = 653;
+ this.state = 635;
localctx._n2 = this.nameRef();
name = this.helper.getOriginalText(localctx._n2);
qn.push(name);
@@ -3366,7 +3354,7 @@ export default class FEEL_1_1Parser extends Parser {
}
}
}
- this.state = 660;
+ this.state = 642;
this._errHandler.sync(this);
_alt = this._interp.adaptivePredict(this._input, 47, this._ctx);
}
@@ -3392,25 +3380,25 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public nameRef(): NameRefContext {
- const localctx: NameRefContext = new NameRefContext(this, this._ctx,
this.state);
+ let localctx: NameRefContext = new NameRefContext(this, this._ctx,
this.state);
this.enterRule(localctx, 104, FEEL_1_1Parser.RULE_nameRef);
try {
let _alt: number;
this.enterOuterAlt(localctx, 1);
{
- this.state = 665;
+ this.state = 647;
this._errHandler.sync(this);
switch (this._input.LA(1)) {
case 50:
{
- this.state = 661;
+ this.state = 643;
localctx._st = this.match(FEEL_1_1Parser.Identifier);
this.helper.startVariable(localctx._st);
}
break;
case 48:
{
- this.state = 663;
+ this.state = 645;
localctx._not_st = this.match(FEEL_1_1Parser.NOT);
this.helper.startVariable(localctx._not_st);
}
@@ -3418,19 +3406,19 @@ export default class FEEL_1_1Parser extends Parser {
default:
throw new NoViableAltException(this);
}
- this.state = 670;
+ this.state = 652;
this._errHandler.sync(this);
_alt = this._interp.adaptivePredict(this._input, 49, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
- this.state = 667;
+ this.state = 649;
this.nameRefOtherToken();
}
}
}
- this.state = 672;
+ this.state = 654;
this._errHandler.sync(this);
_alt = this._interp.adaptivePredict(this._input, 49, this._ctx);
}
@@ -3450,17 +3438,17 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public nameRefOtherToken(): NameRefOtherTokenContext {
- const localctx: NameRefOtherTokenContext = new
NameRefOtherTokenContext(this, this._ctx, this.state);
+ let localctx: NameRefOtherTokenContext = new
NameRefOtherTokenContext(this, this._ctx, this.state);
this.enterRule(localctx, 106, FEEL_1_1Parser.RULE_nameRefOtherToken);
let _la: number;
try {
this.enterOuterAlt(localctx, 1);
{
- this.state = 673;
+ this.state = 655;
if (!this.helper.followUp(this._input.LT(1), localctx == null)) {
throw this.createFailedPredicateException(" this.helper.followUp(
this._input.LT(1), localctx==null ) ");
}
- this.state = 674;
+ this.state = 656;
_la = this._input.LA(1);
if (_la <= 0 || (((_la - 25) & ~0x1f) === 0 && ((1 << (_la - 25)) &
4198015) !== 0)) {
this._errHandler.recoverInline(this);
@@ -3484,13 +3472,13 @@ export default class FEEL_1_1Parser extends Parser {
}
// @RuleVersion(0)
public reusableKeywords(): ReusableKeywordsContext {
- const localctx: ReusableKeywordsContext = new
ReusableKeywordsContext(this, this._ctx, this.state);
+ let localctx: ReusableKeywordsContext = new ReusableKeywordsContext(this,
this._ctx, this.state);
this.enterRule(localctx, 108, FEEL_1_1Parser.RULE_reusableKeywords);
let _la: number;
try {
this.enterOuterAlt(localctx, 1);
{
- this.state = 676;
+ this.state = 658;
_la = this._input.LA(1);
if (!(((_la & ~0x1f) === 0 && ((1 << _la) & 2097132) !== 0) || _la ===
48)) {
this._errHandler.recoverInline(this);
@@ -3640,7 +3628,7 @@ export default class FEEL_1_1Parser extends Parser {
}
public static readonly _serializedATN: number[] = [
- 4, 1, 54, 679, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4,
2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8,
+ 4, 1, 54, 661, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4,
2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8,
7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13,
2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16,
2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2,
22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 2,
25, 7, 25, 2, 26, 7, 26, 2, 27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 2, 30,
7, 30, 2, 31, 7, 31, 2, 32, 7, 32, 2, 33,
@@ -3674,72 +3662,71 @@ export default class FEEL_1_1Parser extends Parser {
1, 37, 1, 37, 1, 37, 3, 37, 486, 8, 37, 1, 37, 1, 37, 3, 37, 490, 8, 37,
1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38,
1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 505, 8, 38, 1, 39,
1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 3, 39,
513, 8, 39, 1, 40, 1, 40, 1, 40, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 1, 42,
1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42,
- 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1,
42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1,
- 42, 1, 42, 1, 42, 1, 42, 1, 42, 3, 42, 551, 8, 42, 1, 43, 1, 43, 1, 43, 5,
43, 556, 8, 43, 10, 43, 12, 43, 559, 9,
- 43, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 3, 44, 568, 8, 44, 1,
45, 1, 45, 1, 46, 1, 46, 1, 46, 5, 46,
- 575, 8, 46, 10, 46, 12, 46, 578, 9, 46, 1, 47, 1, 47, 1, 47, 1, 48, 1, 48,
1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 3, 48,
- 590, 8, 48, 1, 49, 1, 49, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50,
1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50,
- 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1,
50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1,
+ 1, 42, 1, 42, 1, 42, 3, 42, 533, 8, 42, 1, 43, 1, 43, 1, 43, 5, 43, 538,
8, 43, 10, 43, 12, 43, 541, 9, 43, 1, 44,
+ 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 3, 44, 550, 8, 44, 1, 45, 1, 45,
1, 46, 1, 46, 1, 46, 5, 46, 557, 8, 46,
+ 10, 46, 12, 46, 560, 9, 46, 1, 47, 1, 47, 1, 47, 1, 48, 1, 48, 1, 48, 1,
48, 1, 48, 1, 48, 1, 48, 3, 48, 572, 8, 48,
+ 1, 49, 1, 49, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1,
50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1,
50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50,
1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50,
- 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 3, 50, 648, 8, 50,
1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51,
- 1, 51, 5, 51, 657, 8, 51, 10, 51, 12, 51, 660, 9, 51, 1, 52, 1, 52, 1, 52,
1, 52, 3, 52, 666, 8, 52, 1, 52, 5, 52,
- 669, 8, 52, 10, 52, 12, 52, 672, 9, 52, 1, 53, 1, 53, 1, 53, 1, 54, 1, 54,
1, 54, 0, 9, 54, 56, 58, 60, 64, 66, 68,
- 70, 72, 55, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32,
34, 36, 38, 40, 42, 44, 46, 48, 50, 52,
- 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88,
90, 92, 94, 96, 98, 100, 102, 104, 106, 108,
- 0, 5, 3, 0, 21, 21, 33, 33, 43, 46, 1, 0, 34, 39, 1, 0, 45, 46, 3, 0, 25,
31, 34, 36, 47, 47, 3, 0, 2, 3, 5, 20, 48,
- 48, 713, 0, 110, 1, 0, 0, 0, 2, 113, 1, 0, 0, 0, 4, 117, 1, 0, 0, 0, 6,
129, 1, 0, 0, 0, 8, 131, 1, 0, 0, 0, 10,
- 139, 1, 0, 0, 0, 12, 143, 1, 0, 0, 0, 14, 151, 1, 0, 0, 0, 16, 158, 1, 0,
0, 0, 18, 177, 1, 0, 0, 0, 20, 179, 1, 0,
- 0, 0, 22, 200, 1, 0, 0, 0, 24, 242, 1, 0, 0, 0, 26, 250, 1, 0, 0, 0, 28,
252, 1, 0, 0, 0, 30, 265, 1, 0, 0, 0, 32,
- 278, 1, 0, 0, 0, 34, 286, 1, 0, 0, 0, 36, 288, 1, 0, 0, 0, 38, 296, 1, 0,
0, 0, 40, 304, 1, 0, 0, 0, 42, 306, 1, 0,
- 0, 0, 44, 309, 1, 0, 0, 0, 46, 312, 1, 0, 0, 0, 48, 324, 1, 0, 0, 0, 50,
327, 1, 0, 0, 0, 52, 338, 1, 0, 0, 0, 54,
- 340, 1, 0, 0, 0, 56, 351, 1, 0, 0, 0, 58, 362, 1, 0, 0, 0, 60, 373, 1, 0,
0, 0, 62, 400, 1, 0, 0, 0, 64, 408, 1, 0,
- 0, 0, 66, 422, 1, 0, 0, 0, 68, 433, 1, 0, 0, 0, 70, 444, 1, 0, 0, 0, 72,
471, 1, 0, 0, 0, 74, 480, 1, 0, 0, 0, 76,
- 504, 1, 0, 0, 0, 78, 512, 1, 0, 0, 0, 80, 514, 1, 0, 0, 0, 82, 517, 1, 0,
0, 0, 84, 550, 1, 0, 0, 0, 86, 552, 1, 0,
- 0, 0, 88, 567, 1, 0, 0, 0, 90, 569, 1, 0, 0, 0, 92, 571, 1, 0, 0, 0, 94,
579, 1, 0, 0, 0, 96, 589, 1, 0, 0, 0, 98,
- 591, 1, 0, 0, 0, 100, 647, 1, 0, 0, 0, 102, 649, 1, 0, 0, 0, 104, 665, 1,
0, 0, 0, 106, 673, 1, 0, 0, 0, 108, 676,
- 1, 0, 0, 0, 110, 111, 3, 2, 1, 0, 111, 112, 5, 0, 0, 1, 112, 1, 1, 0, 0,
0, 113, 114, 3, 4, 2, 0, 114, 3, 1, 0, 0,
- 0, 115, 118, 3, 28, 14, 0, 116, 118, 3, 54, 27, 0, 117, 115, 1, 0, 0, 0,
117, 116, 1, 0, 0, 0, 118, 5, 1, 0, 0, 0,
- 119, 120, 5, 25, 0, 0, 120, 130, 5, 26, 0, 0, 121, 122, 5, 25, 0, 0, 122,
123, 3, 8, 4, 0, 123, 124, 5, 26, 0, 0,
- 124, 130, 1, 0, 0, 0, 125, 126, 5, 25, 0, 0, 126, 127, 3, 12, 6, 0, 127,
128, 5, 26, 0, 0, 128, 130, 1, 0, 0, 0,
- 129, 119, 1, 0, 0, 0, 129, 121, 1, 0, 0, 0, 129, 125, 1, 0, 0, 0, 130, 7,
1, 0, 0, 0, 131, 136, 3, 10, 5, 0, 132,
- 133, 5, 31, 0, 0, 133, 135, 3, 10, 5, 0, 134, 132, 1, 0, 0, 0, 135, 138,
1, 0, 0, 0, 136, 134, 1, 0, 0, 0, 136, 137,
- 1, 0, 0, 0, 137, 9, 1, 0, 0, 0, 138, 136, 1, 0, 0, 0, 139, 140, 3, 42, 21,
0, 140, 141, 5, 40, 0, 0, 141, 142, 3, 2,
- 1, 0, 142, 11, 1, 0, 0, 0, 143, 148, 3, 2, 1, 0, 144, 145, 5, 31, 0, 0,
145, 147, 3, 2, 1, 0, 146, 144, 1, 0, 0, 0,
- 147, 150, 1, 0, 0, 0, 148, 146, 1, 0, 0, 0, 148, 149, 1, 0, 0, 0, 149, 13,
1, 0, 0, 0, 150, 148, 1, 0, 0, 0, 151,
- 152, 5, 2, 0, 0, 152, 153, 3, 16, 8, 0, 153, 154, 5, 3, 0, 0, 154, 155, 6,
7, -1, 0, 155, 156, 3, 2, 1, 0, 156, 157,
- 6, 7, -1, 0, 157, 15, 1, 0, 0, 0, 158, 163, 3, 18, 9, 0, 159, 160, 5, 31,
0, 0, 160, 162, 3, 18, 9, 0, 161, 159, 1,
- 0, 0, 0, 162, 165, 1, 0, 0, 0, 163, 161, 1, 0, 0, 0, 163, 164, 1, 0, 0, 0,
164, 17, 1, 0, 0, 0, 165, 163, 1, 0, 0,
- 0, 166, 167, 4, 9, 0, 0, 167, 168, 3, 48, 24, 0, 168, 169, 5, 4, 0, 0,
169, 170, 3, 2, 1, 0, 170, 171, 5, 32, 0, 0,
- 171, 172, 3, 2, 1, 0, 172, 178, 1, 0, 0, 0, 173, 174, 3, 48, 24, 0, 174,
175, 5, 4, 0, 0, 175, 176, 3, 2, 1, 0, 176,
- 178, 1, 0, 0, 0, 177, 166, 1, 0, 0, 0, 177, 173, 1, 0, 0, 0, 178, 19, 1,
0, 0, 0, 179, 180, 5, 5, 0, 0, 180, 181, 3,
- 2, 1, 0, 181, 182, 5, 6, 0, 0, 182, 183, 3, 2, 1, 0, 183, 184, 5, 7, 0, 0,
184, 185, 3, 2, 1, 0, 185, 21, 1, 0, 0,
- 0, 186, 187, 5, 8, 0, 0, 187, 188, 3, 16, 8, 0, 188, 189, 5, 10, 0, 0,
189, 190, 6, 11, -1, 0, 190, 191, 3, 2, 1, 0,
- 191, 192, 6, 11, -1, 0, 192, 201, 1, 0, 0, 0, 193, 194, 5, 9, 0, 0, 194,
195, 3, 16, 8, 0, 195, 196, 5, 10, 0, 0,
- 196, 197, 6, 11, -1, 0, 197, 198, 3, 2, 1, 0, 198, 199, 6, 11, -1, 0, 199,
201, 1, 0, 0, 0, 200, 186, 1, 0, 0, 0,
- 200, 193, 1, 0, 0, 0, 201, 23, 1, 0, 0, 0, 202, 203, 4, 12, 1, 0, 203,
204, 5, 50, 0, 0, 204, 205, 5, 36, 0, 0, 205,
- 206, 3, 24, 12, 0, 206, 207, 5, 35, 0, 0, 207, 243, 1, 0, 0, 0, 208, 209,
4, 12, 2, 0, 209, 210, 5, 50, 0, 0, 210,
- 211, 5, 36, 0, 0, 211, 212, 5, 50, 0, 0, 212, 213, 5, 40, 0, 0, 213, 220,
3, 24, 12, 0, 214, 215, 5, 31, 0, 0, 215,
- 216, 5, 50, 0, 0, 216, 217, 5, 40, 0, 0, 217, 219, 3, 24, 12, 0, 218, 214,
1, 0, 0, 0, 219, 222, 1, 0, 0, 0, 220,
- 218, 1, 0, 0, 0, 220, 221, 1, 0, 0, 0, 221, 223, 1, 0, 0, 0, 222, 220, 1,
0, 0, 0, 223, 224, 5, 35, 0, 0, 224, 243,
- 1, 0, 0, 0, 225, 243, 5, 13, 0, 0, 226, 227, 5, 13, 0, 0, 227, 236, 5, 36,
0, 0, 228, 233, 3, 24, 12, 0, 229, 230,
- 5, 31, 0, 0, 230, 232, 3, 24, 12, 0, 231, 229, 1, 0, 0, 0, 232, 235, 1, 0,
0, 0, 233, 231, 1, 0, 0, 0, 233, 234, 1,
- 0, 0, 0, 234, 237, 1, 0, 0, 0, 235, 233, 1, 0, 0, 0, 236, 228, 1, 0, 0, 0,
236, 237, 1, 0, 0, 0, 237, 238, 1, 0, 0,
- 0, 238, 239, 5, 35, 0, 0, 239, 240, 5, 41, 0, 0, 240, 243, 3, 24, 12, 0,
241, 243, 3, 102, 51, 0, 242, 202, 1, 0, 0,
- 0, 242, 208, 1, 0, 0, 0, 242, 225, 1, 0, 0, 0, 242, 226, 1, 0, 0, 0, 242,
241, 1, 0, 0, 0, 243, 25, 1, 0, 0, 0, 244,
- 245, 5, 29, 0, 0, 245, 251, 5, 30, 0, 0, 246, 247, 5, 29, 0, 0, 247, 248,
3, 62, 31, 0, 248, 249, 5, 30, 0, 0, 249,
- 251, 1, 0, 0, 0, 250, 244, 1, 0, 0, 0, 250, 246, 1, 0, 0, 0, 251, 27, 1,
0, 0, 0, 252, 253, 5, 13, 0, 0, 253, 255,
- 5, 25, 0, 0, 254, 256, 3, 30, 15, 0, 255, 254, 1, 0, 0, 0, 255, 256, 1, 0,
0, 0, 256, 257, 1, 0, 0, 0, 257, 259, 5,
- 26, 0, 0, 258, 260, 5, 14, 0, 0, 259, 258, 1, 0, 0, 0, 259, 260, 1, 0, 0,
0, 260, 261, 1, 0, 0, 0, 261, 262, 6, 14,
- -1, 0, 262, 263, 3, 2, 1, 0, 263, 264, 6, 14, -1, 0, 264, 29, 1, 0, 0, 0,
265, 270, 3, 32, 16, 0, 266, 267, 5, 31,
- 0, 0, 267, 269, 3, 32, 16, 0, 268, 266, 1, 0, 0, 0, 269, 272, 1, 0, 0, 0,
270, 268, 1, 0, 0, 0, 270, 271, 1, 0, 0,
- 0, 271, 31, 1, 0, 0, 0, 272, 270, 1, 0, 0, 0, 273, 274, 3, 42, 21, 0, 274,
275, 5, 40, 0, 0, 275, 276, 3, 24, 12, 0,
- 276, 279, 1, 0, 0, 0, 277, 279, 3, 42, 21, 0, 278, 273, 1, 0, 0, 0, 278,
277, 1, 0, 0, 0, 279, 33, 1, 0, 0, 0, 280,
- 281, 5, 27, 0, 0, 281, 287, 5, 28, 0, 0, 282, 283, 5, 27, 0, 0, 283, 284,
3, 36, 18, 0, 284, 285, 5, 28, 0, 0, 285,
- 287, 1, 0, 0, 0, 286, 280, 1, 0, 0, 0, 286, 282, 1, 0, 0, 0, 287, 35, 1,
0, 0, 0, 288, 293, 3, 38, 19, 0, 289, 290,
- 5, 31, 0, 0, 290, 292, 3, 38, 19, 0, 291, 289, 1, 0, 0, 0, 292, 295, 1, 0,
0, 0, 293, 291, 1, 0, 0, 0, 293, 294, 1,
- 0, 0, 0, 294, 37, 1, 0, 0, 0, 295, 293, 1, 0, 0, 0, 296, 297, 3, 40, 20,
0, 297, 298, 6, 19, -1, 0, 298, 299, 5, 40,
- 0, 0, 299, 300, 3, 2, 1, 0, 300, 301, 6, 19, -1, 0, 301, 39, 1, 0, 0, 0,
302, 305, 3, 42, 21, 0, 303, 305, 5, 24, 0,
- 0, 304, 302, 1, 0, 0, 0, 304, 303, 1, 0, 0, 0, 305, 41, 1, 0, 0, 0, 306,
307, 3, 46, 23, 0, 307, 308, 6, 21, -1, 0,
+ 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1,
50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1,
+ 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 3, 50, 630, 8, 50, 1, 51, 1,
51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 5,
+ 51, 639, 8, 51, 10, 51, 12, 51, 642, 9, 51, 1, 52, 1, 52, 1, 52, 1, 52, 3,
52, 648, 8, 52, 1, 52, 5, 52, 651, 8, 52,
+ 10, 52, 12, 52, 654, 9, 52, 1, 53, 1, 53, 1, 53, 1, 54, 1, 54, 1, 54, 0,
9, 54, 56, 58, 60, 64, 66, 68, 70, 72, 55,
+ 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38,
40, 42, 44, 46, 48, 50, 52, 54, 56, 58,
+ 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94,
96, 98, 100, 102, 104, 106, 108, 0, 5, 3, 0,
+ 21, 21, 33, 33, 43, 46, 1, 0, 34, 39, 1, 0, 45, 46, 3, 0, 25, 31, 34, 36,
47, 47, 3, 0, 2, 3, 5, 20, 48, 48, 695, 0,
+ 110, 1, 0, 0, 0, 2, 113, 1, 0, 0, 0, 4, 117, 1, 0, 0, 0, 6, 129, 1, 0, 0,
0, 8, 131, 1, 0, 0, 0, 10, 139, 1, 0, 0,
+ 0, 12, 143, 1, 0, 0, 0, 14, 151, 1, 0, 0, 0, 16, 158, 1, 0, 0, 0, 18, 177,
1, 0, 0, 0, 20, 179, 1, 0, 0, 0, 22, 200,
+ 1, 0, 0, 0, 24, 242, 1, 0, 0, 0, 26, 250, 1, 0, 0, 0, 28, 252, 1, 0, 0, 0,
30, 265, 1, 0, 0, 0, 32, 278, 1, 0, 0, 0,
+ 34, 286, 1, 0, 0, 0, 36, 288, 1, 0, 0, 0, 38, 296, 1, 0, 0, 0, 40, 304, 1,
0, 0, 0, 42, 306, 1, 0, 0, 0, 44, 309, 1,
+ 0, 0, 0, 46, 312, 1, 0, 0, 0, 48, 324, 1, 0, 0, 0, 50, 327, 1, 0, 0, 0,
52, 338, 1, 0, 0, 0, 54, 340, 1, 0, 0, 0,
+ 56, 351, 1, 0, 0, 0, 58, 362, 1, 0, 0, 0, 60, 373, 1, 0, 0, 0, 62, 400, 1,
0, 0, 0, 64, 408, 1, 0, 0, 0, 66, 422, 1,
+ 0, 0, 0, 68, 433, 1, 0, 0, 0, 70, 444, 1, 0, 0, 0, 72, 471, 1, 0, 0, 0,
74, 480, 1, 0, 0, 0, 76, 504, 1, 0, 0, 0,
+ 78, 512, 1, 0, 0, 0, 80, 514, 1, 0, 0, 0, 82, 517, 1, 0, 0, 0, 84, 532, 1,
0, 0, 0, 86, 534, 1, 0, 0, 0, 88, 549, 1,
+ 0, 0, 0, 90, 551, 1, 0, 0, 0, 92, 553, 1, 0, 0, 0, 94, 561, 1, 0, 0, 0,
96, 571, 1, 0, 0, 0, 98, 573, 1, 0, 0, 0,
+ 100, 629, 1, 0, 0, 0, 102, 631, 1, 0, 0, 0, 104, 647, 1, 0, 0, 0, 106,
655, 1, 0, 0, 0, 108, 658, 1, 0, 0, 0, 110,
+ 111, 3, 2, 1, 0, 111, 112, 5, 0, 0, 1, 112, 1, 1, 0, 0, 0, 113, 114, 3, 4,
2, 0, 114, 3, 1, 0, 0, 0, 115, 118, 3,
+ 28, 14, 0, 116, 118, 3, 54, 27, 0, 117, 115, 1, 0, 0, 0, 117, 116, 1, 0,
0, 0, 118, 5, 1, 0, 0, 0, 119, 120, 5, 25,
+ 0, 0, 120, 130, 5, 26, 0, 0, 121, 122, 5, 25, 0, 0, 122, 123, 3, 8, 4, 0,
123, 124, 5, 26, 0, 0, 124, 130, 1, 0, 0,
+ 0, 125, 126, 5, 25, 0, 0, 126, 127, 3, 12, 6, 0, 127, 128, 5, 26, 0, 0,
128, 130, 1, 0, 0, 0, 129, 119, 1, 0, 0, 0,
+ 129, 121, 1, 0, 0, 0, 129, 125, 1, 0, 0, 0, 130, 7, 1, 0, 0, 0, 131, 136,
3, 10, 5, 0, 132, 133, 5, 31, 0, 0, 133,
+ 135, 3, 10, 5, 0, 134, 132, 1, 0, 0, 0, 135, 138, 1, 0, 0, 0, 136, 134, 1,
0, 0, 0, 136, 137, 1, 0, 0, 0, 137, 9, 1,
+ 0, 0, 0, 138, 136, 1, 0, 0, 0, 139, 140, 3, 42, 21, 0, 140, 141, 5, 40, 0,
0, 141, 142, 3, 2, 1, 0, 142, 11, 1, 0,
+ 0, 0, 143, 148, 3, 2, 1, 0, 144, 145, 5, 31, 0, 0, 145, 147, 3, 2, 1, 0,
146, 144, 1, 0, 0, 0, 147, 150, 1, 0, 0, 0,
+ 148, 146, 1, 0, 0, 0, 148, 149, 1, 0, 0, 0, 149, 13, 1, 0, 0, 0, 150, 148,
1, 0, 0, 0, 151, 152, 5, 2, 0, 0, 152,
+ 153, 3, 16, 8, 0, 153, 154, 5, 3, 0, 0, 154, 155, 6, 7, -1, 0, 155, 156,
3, 2, 1, 0, 156, 157, 6, 7, -1, 0, 157, 15,
+ 1, 0, 0, 0, 158, 163, 3, 18, 9, 0, 159, 160, 5, 31, 0, 0, 160, 162, 3, 18,
9, 0, 161, 159, 1, 0, 0, 0, 162, 165, 1,
+ 0, 0, 0, 163, 161, 1, 0, 0, 0, 163, 164, 1, 0, 0, 0, 164, 17, 1, 0, 0, 0,
165, 163, 1, 0, 0, 0, 166, 167, 4, 9, 0,
+ 0, 167, 168, 3, 48, 24, 0, 168, 169, 5, 4, 0, 0, 169, 170, 3, 2, 1, 0,
170, 171, 5, 32, 0, 0, 171, 172, 3, 2, 1, 0,
+ 172, 178, 1, 0, 0, 0, 173, 174, 3, 48, 24, 0, 174, 175, 5, 4, 0, 0, 175,
176, 3, 2, 1, 0, 176, 178, 1, 0, 0, 0, 177,
+ 166, 1, 0, 0, 0, 177, 173, 1, 0, 0, 0, 178, 19, 1, 0, 0, 0, 179, 180, 5,
5, 0, 0, 180, 181, 3, 2, 1, 0, 181, 182, 5,
+ 6, 0, 0, 182, 183, 3, 2, 1, 0, 183, 184, 5, 7, 0, 0, 184, 185, 3, 2, 1, 0,
185, 21, 1, 0, 0, 0, 186, 187, 5, 8, 0,
+ 0, 187, 188, 3, 16, 8, 0, 188, 189, 5, 10, 0, 0, 189, 190, 6, 11, -1, 0,
190, 191, 3, 2, 1, 0, 191, 192, 6, 11, -1,
+ 0, 192, 201, 1, 0, 0, 0, 193, 194, 5, 9, 0, 0, 194, 195, 3, 16, 8, 0, 195,
196, 5, 10, 0, 0, 196, 197, 6, 11, -1, 0,
+ 197, 198, 3, 2, 1, 0, 198, 199, 6, 11, -1, 0, 199, 201, 1, 0, 0, 0, 200,
186, 1, 0, 0, 0, 200, 193, 1, 0, 0, 0, 201,
+ 23, 1, 0, 0, 0, 202, 203, 4, 12, 1, 0, 203, 204, 5, 50, 0, 0, 204, 205, 5,
36, 0, 0, 205, 206, 3, 24, 12, 0, 206,
+ 207, 5, 35, 0, 0, 207, 243, 1, 0, 0, 0, 208, 209, 4, 12, 2, 0, 209, 210,
5, 50, 0, 0, 210, 211, 5, 36, 0, 0, 211,
+ 212, 5, 50, 0, 0, 212, 213, 5, 40, 0, 0, 213, 220, 3, 24, 12, 0, 214, 215,
5, 31, 0, 0, 215, 216, 5, 50, 0, 0, 216,
+ 217, 5, 40, 0, 0, 217, 219, 3, 24, 12, 0, 218, 214, 1, 0, 0, 0, 219, 222,
1, 0, 0, 0, 220, 218, 1, 0, 0, 0, 220,
+ 221, 1, 0, 0, 0, 221, 223, 1, 0, 0, 0, 222, 220, 1, 0, 0, 0, 223, 224, 5,
35, 0, 0, 224, 243, 1, 0, 0, 0, 225, 243,
+ 5, 13, 0, 0, 226, 227, 5, 13, 0, 0, 227, 236, 5, 36, 0, 0, 228, 233, 3,
24, 12, 0, 229, 230, 5, 31, 0, 0, 230, 232,
+ 3, 24, 12, 0, 231, 229, 1, 0, 0, 0, 232, 235, 1, 0, 0, 0, 233, 231, 1, 0,
0, 0, 233, 234, 1, 0, 0, 0, 234, 237, 1,
+ 0, 0, 0, 235, 233, 1, 0, 0, 0, 236, 228, 1, 0, 0, 0, 236, 237, 1, 0, 0, 0,
237, 238, 1, 0, 0, 0, 238, 239, 5, 35, 0,
+ 0, 239, 240, 5, 41, 0, 0, 240, 243, 3, 24, 12, 0, 241, 243, 3, 102, 51, 0,
242, 202, 1, 0, 0, 0, 242, 208, 1, 0, 0,
+ 0, 242, 225, 1, 0, 0, 0, 242, 226, 1, 0, 0, 0, 242, 241, 1, 0, 0, 0, 243,
25, 1, 0, 0, 0, 244, 245, 5, 29, 0, 0,
+ 245, 251, 5, 30, 0, 0, 246, 247, 5, 29, 0, 0, 247, 248, 3, 62, 31, 0, 248,
249, 5, 30, 0, 0, 249, 251, 1, 0, 0, 0,
+ 250, 244, 1, 0, 0, 0, 250, 246, 1, 0, 0, 0, 251, 27, 1, 0, 0, 0, 252, 253,
5, 13, 0, 0, 253, 255, 5, 25, 0, 0, 254,
+ 256, 3, 30, 15, 0, 255, 254, 1, 0, 0, 0, 255, 256, 1, 0, 0, 0, 256, 257,
1, 0, 0, 0, 257, 259, 5, 26, 0, 0, 258,
+ 260, 5, 14, 0, 0, 259, 258, 1, 0, 0, 0, 259, 260, 1, 0, 0, 0, 260, 261, 1,
0, 0, 0, 261, 262, 6, 14, -1, 0, 262,
+ 263, 3, 2, 1, 0, 263, 264, 6, 14, -1, 0, 264, 29, 1, 0, 0, 0, 265, 270, 3,
32, 16, 0, 266, 267, 5, 31, 0, 0, 267,
+ 269, 3, 32, 16, 0, 268, 266, 1, 0, 0, 0, 269, 272, 1, 0, 0, 0, 270, 268,
1, 0, 0, 0, 270, 271, 1, 0, 0, 0, 271, 31,
+ 1, 0, 0, 0, 272, 270, 1, 0, 0, 0, 273, 274, 3, 42, 21, 0, 274, 275, 5, 40,
0, 0, 275, 276, 3, 24, 12, 0, 276, 279,
+ 1, 0, 0, 0, 277, 279, 3, 42, 21, 0, 278, 273, 1, 0, 0, 0, 278, 277, 1, 0,
0, 0, 279, 33, 1, 0, 0, 0, 280, 281, 5,
+ 27, 0, 0, 281, 287, 5, 28, 0, 0, 282, 283, 5, 27, 0, 0, 283, 284, 3, 36,
18, 0, 284, 285, 5, 28, 0, 0, 285, 287, 1,
+ 0, 0, 0, 286, 280, 1, 0, 0, 0, 286, 282, 1, 0, 0, 0, 287, 35, 1, 0, 0, 0,
288, 293, 3, 38, 19, 0, 289, 290, 5, 31,
+ 0, 0, 290, 292, 3, 38, 19, 0, 291, 289, 1, 0, 0, 0, 292, 295, 1, 0, 0, 0,
293, 291, 1, 0, 0, 0, 293, 294, 1, 0, 0,
+ 0, 294, 37, 1, 0, 0, 0, 295, 293, 1, 0, 0, 0, 296, 297, 3, 40, 20, 0, 297,
298, 6, 19, -1, 0, 298, 299, 5, 40, 0, 0,
+ 299, 300, 3, 2, 1, 0, 300, 301, 6, 19, -1, 0, 301, 39, 1, 0, 0, 0, 302,
305, 3, 42, 21, 0, 303, 305, 5, 24, 0, 0,
+ 304, 302, 1, 0, 0, 0, 304, 303, 1, 0, 0, 0, 305, 41, 1, 0, 0, 0, 306, 307,
3, 46, 23, 0, 307, 308, 6, 21, -1, 0,
308, 43, 1, 0, 0, 0, 309, 310, 3, 42, 21, 0, 310, 311, 5, 0, 0, 1, 311,
45, 1, 0, 0, 0, 312, 321, 5, 50, 0, 0, 313,
320, 5, 50, 0, 0, 314, 320, 3, 52, 26, 0, 315, 320, 5, 22, 0, 0, 316, 320,
5, 23, 0, 0, 317, 320, 3, 108, 54, 0,
318, 320, 5, 4, 0, 0, 319, 313, 1, 0, 0, 0, 319, 314, 1, 0, 0, 0, 319,
315, 1, 0, 0, 0, 319, 316, 1, 0, 0, 0, 319,
@@ -3790,45 +3777,41 @@ export default class FEEL_1_1Parser extends Parser {
0, 0, 509, 513, 3, 80, 40, 0, 510, 513, 5, 24, 0, 0, 511, 513, 5, 18, 0,
0, 512, 506, 1, 0, 0, 0, 512, 507, 1, 0, 0,
0, 512, 508, 1, 0, 0, 0, 512, 509, 1, 0, 0, 0, 512, 510, 1, 0, 0, 0, 512,
511, 1, 0, 0, 0, 513, 79, 1, 0, 0, 0, 514,
515, 5, 49, 0, 0, 515, 516, 3, 82, 41, 0, 516, 81, 1, 0, 0, 0, 517, 518,
5, 24, 0, 0, 518, 83, 1, 0, 0, 0, 519, 520,
- 5, 36, 0, 0, 520, 521, 6, 42, -1, 0, 521, 522, 3, 98, 49, 0, 522, 523, 6,
42, -1, 0, 523, 551, 1, 0, 0, 0, 524, 525,
- 5, 35, 0, 0, 525, 526, 6, 42, -1, 0, 526, 527, 3, 98, 49, 0, 527, 528, 6,
42, -1, 0, 528, 551, 1, 0, 0, 0, 529, 530,
- 5, 37, 0, 0, 530, 531, 6, 42, -1, 0, 531, 532, 3, 98, 49, 0, 532, 533, 6,
42, -1, 0, 533, 551, 1, 0, 0, 0, 534, 535,
- 5, 38, 0, 0, 535, 536, 6, 42, -1, 0, 536, 537, 3, 98, 49, 0, 537, 538, 6,
42, -1, 0, 538, 551, 1, 0, 0, 0, 539, 540,
- 5, 34, 0, 0, 540, 541, 6, 42, -1, 0, 541, 542, 3, 98, 49, 0, 542, 543, 6,
42, -1, 0, 543, 551, 1, 0, 0, 0, 544, 545,
- 5, 39, 0, 0, 545, 546, 6, 42, -1, 0, 546, 547, 3, 98, 49, 0, 547, 548, 6,
42, -1, 0, 548, 551, 1, 0, 0, 0, 549, 551,
- 3, 100, 50, 0, 550, 519, 1, 0, 0, 0, 550, 524, 1, 0, 0, 0, 550, 529, 1, 0,
0, 0, 550, 534, 1, 0, 0, 0, 550, 539, 1,
- 0, 0, 0, 550, 544, 1, 0, 0, 0, 550, 549, 1, 0, 0, 0, 551, 85, 1, 0, 0, 0,
552, 557, 3, 84, 42, 0, 553, 554, 5, 31,
- 0, 0, 554, 556, 3, 84, 42, 0, 555, 553, 1, 0, 0, 0, 556, 559, 1, 0, 0, 0,
557, 555, 1, 0, 0, 0, 557, 558, 1, 0, 0,
- 0, 558, 87, 1, 0, 0, 0, 559, 557, 1, 0, 0, 0, 560, 568, 3, 86, 43, 0, 561,
562, 5, 48, 0, 0, 562, 563, 5, 25, 0, 0,
- 563, 564, 3, 86, 43, 0, 564, 565, 5, 26, 0, 0, 565, 568, 1, 0, 0, 0, 566,
568, 5, 44, 0, 0, 567, 560, 1, 0, 0, 0,
- 567, 561, 1, 0, 0, 0, 567, 566, 1, 0, 0, 0, 568, 89, 1, 0, 0, 0, 569, 570,
3, 2, 1, 0, 570, 91, 1, 0, 0, 0, 571,
- 576, 3, 90, 45, 0, 572, 573, 5, 31, 0, 0, 573, 575, 3, 90, 45, 0, 574,
572, 1, 0, 0, 0, 575, 578, 1, 0, 0, 0, 576,
- 574, 1, 0, 0, 0, 576, 577, 1, 0, 0, 0, 577, 93, 1, 0, 0, 0, 578, 576, 1,
0, 0, 0, 579, 580, 3, 96, 48, 0, 580, 581,
- 5, 0, 0, 1, 581, 95, 1, 0, 0, 0, 582, 583, 5, 48, 0, 0, 583, 584, 5, 25,
0, 0, 584, 585, 3, 92, 46, 0, 585, 586, 5,
- 26, 0, 0, 586, 590, 1, 0, 0, 0, 587, 590, 3, 92, 46, 0, 588, 590, 5, 44,
0, 0, 589, 582, 1, 0, 0, 0, 589, 587, 1, 0,
- 0, 0, 589, 588, 1, 0, 0, 0, 590, 97, 1, 0, 0, 0, 591, 592, 3, 64, 32, 0,
592, 99, 1, 0, 0, 0, 593, 594, 5, 25, 0, 0,
- 594, 595, 3, 98, 49, 0, 595, 596, 5, 32, 0, 0, 596, 597, 3, 98, 49, 0,
597, 598, 5, 26, 0, 0, 598, 648, 1, 0, 0, 0,
- 599, 600, 5, 25, 0, 0, 600, 601, 3, 98, 49, 0, 601, 602, 5, 32, 0, 0, 602,
603, 3, 98, 49, 0, 603, 604, 5, 29, 0, 0,
- 604, 648, 1, 0, 0, 0, 605, 606, 5, 25, 0, 0, 606, 607, 3, 98, 49, 0, 607,
608, 5, 32, 0, 0, 608, 609, 3, 98, 49, 0,
- 609, 610, 5, 30, 0, 0, 610, 648, 1, 0, 0, 0, 611, 612, 5, 30, 0, 0, 612,
613, 3, 98, 49, 0, 613, 614, 5, 32, 0, 0,
- 614, 615, 3, 98, 49, 0, 615, 616, 5, 26, 0, 0, 616, 648, 1, 0, 0, 0, 617,
618, 5, 30, 0, 0, 618, 619, 3, 98, 49, 0,
- 619, 620, 5, 32, 0, 0, 620, 621, 3, 98, 49, 0, 621, 622, 5, 29, 0, 0, 622,
648, 1, 0, 0, 0, 623, 624, 5, 30, 0, 0,
- 624, 625, 3, 98, 49, 0, 625, 626, 5, 32, 0, 0, 626, 627, 3, 98, 49, 0,
627, 628, 5, 30, 0, 0, 628, 648, 1, 0, 0, 0,
- 629, 630, 5, 29, 0, 0, 630, 631, 3, 98, 49, 0, 631, 632, 5, 32, 0, 0, 632,
633, 3, 98, 49, 0, 633, 634, 5, 26, 0, 0,
- 634, 648, 1, 0, 0, 0, 635, 636, 5, 29, 0, 0, 636, 637, 3, 98, 49, 0, 637,
638, 5, 32, 0, 0, 638, 639, 3, 98, 49, 0,
- 639, 640, 5, 29, 0, 0, 640, 648, 1, 0, 0, 0, 641, 642, 5, 29, 0, 0, 642,
643, 3, 98, 49, 0, 643, 644, 5, 32, 0, 0,
- 644, 645, 3, 98, 49, 0, 645, 646, 5, 30, 0, 0, 646, 648, 1, 0, 0, 0, 647,
593, 1, 0, 0, 0, 647, 599, 1, 0, 0, 0,
- 647, 605, 1, 0, 0, 0, 647, 611, 1, 0, 0, 0, 647, 617, 1, 0, 0, 0, 647,
623, 1, 0, 0, 0, 647, 629, 1, 0, 0, 0, 647,
- 635, 1, 0, 0, 0, 647, 641, 1, 0, 0, 0, 648, 101, 1, 0, 0, 0, 649, 650, 3,
104, 52, 0, 650, 658, 6, 51, -1, 0, 651,
- 652, 5, 33, 0, 0, 652, 653, 6, 51, -1, 0, 653, 654, 3, 104, 52, 0, 654,
655, 6, 51, -1, 0, 655, 657, 1, 0, 0, 0,
- 656, 651, 1, 0, 0, 0, 657, 660, 1, 0, 0, 0, 658, 656, 1, 0, 0, 0, 658,
659, 1, 0, 0, 0, 659, 103, 1, 0, 0, 0, 660,
- 658, 1, 0, 0, 0, 661, 662, 5, 50, 0, 0, 662, 666, 6, 52, -1, 0, 663, 664,
5, 48, 0, 0, 664, 666, 6, 52, -1, 0, 665,
- 661, 1, 0, 0, 0, 665, 663, 1, 0, 0, 0, 666, 670, 1, 0, 0, 0, 667, 669, 3,
106, 53, 0, 668, 667, 1, 0, 0, 0, 669,
- 672, 1, 0, 0, 0, 670, 668, 1, 0, 0, 0, 670, 671, 1, 0, 0, 0, 671, 105, 1,
0, 0, 0, 672, 670, 1, 0, 0, 0, 673, 674,
- 4, 53, 17, 0, 674, 675, 8, 3, 0, 0, 675, 107, 1, 0, 0, 0, 676, 677, 7, 4,
0, 0, 677, 109, 1, 0, 0, 0, 50, 117, 129,
- 136, 148, 163, 177, 200, 220, 233, 236, 242, 250, 255, 259, 270, 278, 286,
293, 304, 319, 321, 333, 335, 348, 359,
- 370, 395, 397, 405, 417, 419, 430, 441, 460, 462, 471, 477, 485, 489, 504,
512, 550, 557, 567, 576, 589, 647, 658,
- 665, 670,
+ 5, 36, 0, 0, 520, 533, 3, 98, 49, 0, 521, 522, 5, 35, 0, 0, 522, 533, 3,
98, 49, 0, 523, 524, 5, 37, 0, 0, 524, 533,
+ 3, 98, 49, 0, 525, 526, 5, 38, 0, 0, 526, 533, 3, 98, 49, 0, 527, 528, 5,
34, 0, 0, 528, 533, 3, 98, 49, 0, 529,
+ 530, 5, 39, 0, 0, 530, 533, 3, 98, 49, 0, 531, 533, 3, 100, 50, 0, 532,
519, 1, 0, 0, 0, 532, 521, 1, 0, 0, 0, 532,
+ 523, 1, 0, 0, 0, 532, 525, 1, 0, 0, 0, 532, 527, 1, 0, 0, 0, 532, 529, 1,
0, 0, 0, 532, 531, 1, 0, 0, 0, 533, 85, 1,
+ 0, 0, 0, 534, 539, 3, 84, 42, 0, 535, 536, 5, 31, 0, 0, 536, 538, 3, 84,
42, 0, 537, 535, 1, 0, 0, 0, 538, 541, 1,
+ 0, 0, 0, 539, 537, 1, 0, 0, 0, 539, 540, 1, 0, 0, 0, 540, 87, 1, 0, 0, 0,
541, 539, 1, 0, 0, 0, 542, 550, 3, 86, 43,
+ 0, 543, 544, 5, 48, 0, 0, 544, 545, 5, 25, 0, 0, 545, 546, 3, 86, 43, 0,
546, 547, 5, 26, 0, 0, 547, 550, 1, 0, 0,
+ 0, 548, 550, 5, 44, 0, 0, 549, 542, 1, 0, 0, 0, 549, 543, 1, 0, 0, 0, 549,
548, 1, 0, 0, 0, 550, 89, 1, 0, 0, 0,
+ 551, 552, 3, 2, 1, 0, 552, 91, 1, 0, 0, 0, 553, 558, 3, 90, 45, 0, 554,
555, 5, 31, 0, 0, 555, 557, 3, 90, 45, 0,
+ 556, 554, 1, 0, 0, 0, 557, 560, 1, 0, 0, 0, 558, 556, 1, 0, 0, 0, 558,
559, 1, 0, 0, 0, 559, 93, 1, 0, 0, 0, 560,
+ 558, 1, 0, 0, 0, 561, 562, 3, 96, 48, 0, 562, 563, 5, 0, 0, 1, 563, 95, 1,
0, 0, 0, 564, 565, 5, 48, 0, 0, 565, 566,
+ 5, 25, 0, 0, 566, 567, 3, 92, 46, 0, 567, 568, 5, 26, 0, 0, 568, 572, 1,
0, 0, 0, 569, 572, 3, 92, 46, 0, 570, 572,
+ 5, 44, 0, 0, 571, 564, 1, 0, 0, 0, 571, 569, 1, 0, 0, 0, 571, 570, 1, 0,
0, 0, 572, 97, 1, 0, 0, 0, 573, 574, 3, 64,
+ 32, 0, 574, 99, 1, 0, 0, 0, 575, 576, 5, 25, 0, 0, 576, 577, 3, 98, 49, 0,
577, 578, 5, 32, 0, 0, 578, 579, 3, 98,
+ 49, 0, 579, 580, 5, 26, 0, 0, 580, 630, 1, 0, 0, 0, 581, 582, 5, 25, 0, 0,
582, 583, 3, 98, 49, 0, 583, 584, 5, 32,
+ 0, 0, 584, 585, 3, 98, 49, 0, 585, 586, 5, 29, 0, 0, 586, 630, 1, 0, 0, 0,
587, 588, 5, 25, 0, 0, 588, 589, 3, 98,
+ 49, 0, 589, 590, 5, 32, 0, 0, 590, 591, 3, 98, 49, 0, 591, 592, 5, 30, 0,
0, 592, 630, 1, 0, 0, 0, 593, 594, 5, 30,
+ 0, 0, 594, 595, 3, 98, 49, 0, 595, 596, 5, 32, 0, 0, 596, 597, 3, 98, 49,
0, 597, 598, 5, 26, 0, 0, 598, 630, 1, 0,
+ 0, 0, 599, 600, 5, 30, 0, 0, 600, 601, 3, 98, 49, 0, 601, 602, 5, 32, 0,
0, 602, 603, 3, 98, 49, 0, 603, 604, 5, 29,
+ 0, 0, 604, 630, 1, 0, 0, 0, 605, 606, 5, 30, 0, 0, 606, 607, 3, 98, 49, 0,
607, 608, 5, 32, 0, 0, 608, 609, 3, 98,
+ 49, 0, 609, 610, 5, 30, 0, 0, 610, 630, 1, 0, 0, 0, 611, 612, 5, 29, 0, 0,
612, 613, 3, 98, 49, 0, 613, 614, 5, 32,
+ 0, 0, 614, 615, 3, 98, 49, 0, 615, 616, 5, 26, 0, 0, 616, 630, 1, 0, 0, 0,
617, 618, 5, 29, 0, 0, 618, 619, 3, 98,
+ 49, 0, 619, 620, 5, 32, 0, 0, 620, 621, 3, 98, 49, 0, 621, 622, 5, 29, 0,
0, 622, 630, 1, 0, 0, 0, 623, 624, 5, 29,
+ 0, 0, 624, 625, 3, 98, 49, 0, 625, 626, 5, 32, 0, 0, 626, 627, 3, 98, 49,
0, 627, 628, 5, 30, 0, 0, 628, 630, 1, 0,
+ 0, 0, 629, 575, 1, 0, 0, 0, 629, 581, 1, 0, 0, 0, 629, 587, 1, 0, 0, 0,
629, 593, 1, 0, 0, 0, 629, 599, 1, 0, 0, 0,
+ 629, 605, 1, 0, 0, 0, 629, 611, 1, 0, 0, 0, 629, 617, 1, 0, 0, 0, 629,
623, 1, 0, 0, 0, 630, 101, 1, 0, 0, 0, 631,
+ 632, 3, 104, 52, 0, 632, 640, 6, 51, -1, 0, 633, 634, 5, 33, 0, 0, 634,
635, 6, 51, -1, 0, 635, 636, 3, 104, 52, 0,
+ 636, 637, 6, 51, -1, 0, 637, 639, 1, 0, 0, 0, 638, 633, 1, 0, 0, 0, 639,
642, 1, 0, 0, 0, 640, 638, 1, 0, 0, 0, 640,
+ 641, 1, 0, 0, 0, 641, 103, 1, 0, 0, 0, 642, 640, 1, 0, 0, 0, 643, 644, 5,
50, 0, 0, 644, 648, 6, 52, -1, 0, 645,
+ 646, 5, 48, 0, 0, 646, 648, 6, 52, -1, 0, 647, 643, 1, 0, 0, 0, 647, 645,
1, 0, 0, 0, 648, 652, 1, 0, 0, 0, 649,
+ 651, 3, 106, 53, 0, 650, 649, 1, 0, 0, 0, 651, 654, 1, 0, 0, 0, 652, 650,
1, 0, 0, 0, 652, 653, 1, 0, 0, 0, 653,
+ 105, 1, 0, 0, 0, 654, 652, 1, 0, 0, 0, 655, 656, 4, 53, 17, 0, 656, 657,
8, 3, 0, 0, 657, 107, 1, 0, 0, 0, 658, 659,
+ 7, 4, 0, 0, 659, 109, 1, 0, 0, 0, 50, 117, 129, 136, 148, 163, 177, 200,
220, 233, 236, 242, 250, 255, 259, 270,
+ 278, 286, 293, 304, 319, 321, 333, 335, 348, 359, 370, 395, 397, 405, 417,
419, 430, 441, 460, 462, 471, 477, 485,
+ 489, 504, 512, 532, 539, 549, 558, 571, 629, 640, 647, 652,
];
private static __ATN: ATN;
diff --git
a/packages/dmn-language-service/tests/fixtures/refactor/creditScoreUnaryTests.dmn
b/packages/dmn-language-service/tests/fixtures/refactor/creditScoreUnaryTests.dmn
new file mode 100644
index 00000000000..5214f28b9e6
--- /dev/null
+++
b/packages/dmn-language-service/tests/fixtures/refactor/creditScoreUnaryTests.dmn
@@ -0,0 +1,306 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+-->
+<dmn:definitions
+ xmlns:dmn="https://www.omg.org/spec/DMN/20240513/MODEL/"
+ xmlns="https://kie.apache.org/dmn/_857FE424-BEDA-4772-AB8E-2F4CDDB864AB"
+ xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/"
+ xmlns:kie="https://kie.org/dmn/extensions/1.0"
+ xmlns:dmndi="https://www.omg.org/spec/DMN/20230324/DMNDI/"
+ xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/"
+ xmlns:feel="https://www.omg.org/spec/DMN/20240513/FEEL/"
+ id="_C6CBECEB-2BBC-4E14-80B0-17F576B2CF92"
+ name="credit_score_rating"
+ expressionLanguage="https://www.omg.org/spec/DMN/20240513/FEEL/"
+ typeLanguage="https://www.omg.org/spec/DMN/20240513/FEEL/"
+ namespace="https://kie.apache.org/dmn/_857FE424-BEDA-4772-AB8E-2F4CDDB864AB"
+>
+ <dmn:extensionElements />
+ <dmn:itemDefinition id="_D40B0106-62E8-4AC0-A39A-C6C9506194A9"
name="Requested_Product" isCollection="false">
+ <dmn:itemComponent id="_68b4a96c-198a-4575-b29a-a2c8b0539a2c" name="Type"
isCollection="false">
+ <dmn:typeRef>Product_Type</dmn:typeRef>
+ </dmn:itemComponent>
+ <dmn:itemComponent id="_ab1647c2-cb63-4808-8d90-36d41591a40c" name="Rate"
isCollection="false">
+ <dmn:typeRef>number</dmn:typeRef>
+ </dmn:itemComponent>
+ <dmn:itemComponent id="_152917bb-6095-4057-8613-5b08b77db235" name="Term"
isCollection="false">
+ <dmn:typeRef>number</dmn:typeRef>
+ </dmn:itemComponent>
+ <dmn:itemComponent id="_e2f0e8cd-8f5a-43d4-b263-aaa5b9ae4420"
name="Amount" isCollection="false">
+ <dmn:typeRef>number</dmn:typeRef>
+ </dmn:itemComponent>
+ </dmn:itemDefinition>
+ <dmn:itemDefinition id="_2B4E9593-3239-4E04-A213-345F0AA0AF9D"
name="Marital_Status" isCollection="false">
+ <dmn:typeRef>string</dmn:typeRef>
+ <dmn:allowedValues id="_5BD13D9D-412F-4E6B-914A-3D8AAAC6A705">
+ <dmn:text>"M","D","S"</dmn:text>
+ </dmn:allowedValues>
+ </dmn:itemDefinition>
+ <dmn:itemDefinition id="_F090CBB7-F5C3-4C54-9905-517DC1469B52"
name="Applicant_Data" isCollection="false">
+ <dmn:itemComponent id="_f52e2b9f-544c-48ac-91e0-168a6e13fc8b" name="Age"
isCollection="false">
+ <dmn:typeRef>number</dmn:typeRef>
+ </dmn:itemComponent>
+ <dmn:itemComponent id="_5a20d4c2-0e66-4bb9-b5ea-3b9f2cd8e050"
name="Marital Status" isCollection="false">
+ <dmn:typeRef>Marital_Status</dmn:typeRef>
+ </dmn:itemComponent>
+ <dmn:itemComponent id="_701117b8-2f8d-4e94-a5db-d503f0fba3af"
name="Employment Status" isCollection="false">
+ <dmn:typeRef>string</dmn:typeRef>
+ <dmn:allowedValues id="_4A8E36FC-A40C-4CB5-9AE1-73082DA24D13">
+
<dmn:text>"Unemployed","Employed","Self-employed","Student"</dmn:text>
+ </dmn:allowedValues>
+ </dmn:itemComponent>
+ <dmn:itemComponent id="_17ad2a24-425f-4df7-92fc-609e10217b8b"
name="Existing Customer" isCollection="false">
+ <dmn:typeRef>boolean</dmn:typeRef>
+ </dmn:itemComponent>
+ <dmn:itemComponent id="_bb9ef72e-2e0d-4175-ba58-d613bda7e9b3"
name="Monthly" isCollection="false">
+ <dmn:itemComponent id="_32d5ea39-4bbc-4b16-88cd-f7e6e47a885e"
name="Income" isCollection="false">
+ <dmn:typeRef>number</dmn:typeRef>
+ </dmn:itemComponent>
+ <dmn:itemComponent id="_7850468b-173d-4162-9c7a-94453a4b02d7"
name="Repayments" isCollection="false">
+ <dmn:typeRef>number</dmn:typeRef>
+ </dmn:itemComponent>
+ <dmn:itemComponent id="_af578182-5c71-4b71-9027-0f0cf83770ab"
name="Expenses" isCollection="false">
+ <dmn:typeRef>number</dmn:typeRef>
+ </dmn:itemComponent>
+ <dmn:itemComponent id="_4a4d01be-fe97-49a2-8c4c-3a49ff27968d" name="Tax"
isCollection="false">
+ <dmn:typeRef>number</dmn:typeRef>
+ </dmn:itemComponent>
+ <dmn:itemComponent id="_f95dbf70-d256-4d40-a61d-c6332d864e8f"
name="Insurance" isCollection="false">
+ <dmn:typeRef>number</dmn:typeRef>
+ </dmn:itemComponent>
+ </dmn:itemComponent>
+ </dmn:itemDefinition>
+ <dmn:itemDefinition id="_1945BD2E-C82C-4E7A-A59E-484B56A3AE46"
name="Post-Bureau_Risk_Category" isCollection="false">
+ <dmn:itemComponent id="_19ecc622-e72c-482d-9de3-6578a1c76f1e" name="Risk
Category" isCollection="false">
+ <dmn:typeRef>Risk_Category</dmn:typeRef>
+ </dmn:itemComponent>
+ <dmn:itemComponent id="_2fa724d1-b276-4a3f-a2ef-2e7db3d362f3" name="Credit
Contingency Factor" isCollection="false">
+ <dmn:typeRef>number</dmn:typeRef>
+ </dmn:itemComponent>
+ </dmn:itemDefinition>
+ <dmn:itemDefinition id="_4816704B-AB7F-4624-8368-0BBBAFC04FB9"
name="Pre-Bureau_Risk_Category" isCollection="false">
+ <dmn:itemComponent id="_78b44e10-e166-44a4-83a3-5d12c99529e8" name="Risk
Category" isCollection="false">
+ <dmn:typeRef>string</dmn:typeRef>
+ </dmn:itemComponent>
+ <dmn:itemComponent id="_fa41a482-a86a-4b52-a750-35170cd6bba3" name="Credit
Contingency Factor" isCollection="false">
+ <dmn:typeRef>number</dmn:typeRef>
+ </dmn:itemComponent>
+ </dmn:itemDefinition>
+ <dmn:itemDefinition id="_9AEAE50E-67BF-4428-A6CD-B48D299FD73C"
name="Eligibility" isCollection="false">
+ <dmn:typeRef>string</dmn:typeRef>
+ <dmn:allowedValues id="_79C7F45D-228F-437B-AF7E-615FC72A5354">
+ <dmn:text>"Ineligible","Eligible"</dmn:text>
+ </dmn:allowedValues>
+ </dmn:itemDefinition>
+ <dmn:itemDefinition id="_FBF245E7-9A93-4D52-9F02-AF6893011A5F"
name="Strategy" isCollection="false">
+ <dmn:typeRef>string</dmn:typeRef>
+ <dmn:allowedValues id="_0B005355-19D0-447B-B2DE-6D1290C7504C">
+
<dmn:text>"Decline","Bureau","Through"</dmn:text>
+ </dmn:allowedValues>
+ </dmn:itemDefinition>
+ <dmn:itemDefinition id="_5D34E713-E94E-403E-A681-DD6948BE4F79"
name="Bureau_Call_Type" isCollection="false">
+ <dmn:typeRef>string</dmn:typeRef>
+ <dmn:allowedValues id="_947DBBA1-70A0-42DA-BC37-FD2FD93BF61B">
+ <dmn:text>"Full","Mini","None"</dmn:text>
+ </dmn:allowedValues>
+ </dmn:itemDefinition>
+ <dmn:itemDefinition id="_9AF58ED6-A526-4346-8780-0D1E6038CA6F"
name="Product_Type" isCollection="false">
+ <dmn:typeRef>string</dmn:typeRef>
+ <dmn:allowedValues id="_A2554140-8060-4F66-BA16-3A8DFE12C17C">
+ <dmn:text>"Standard Loan","Special Loan"</dmn:text>
+ </dmn:allowedValues>
+ </dmn:itemDefinition>
+ <dmn:itemDefinition id="_4D36A25E-9A37-47AE-B9BF-94338AE67609"
name="Risk_Category" isCollection="false">
+ <dmn:typeRef>string</dmn:typeRef>
+ <dmn:allowedValues id="_041426C2-B9D2-4C18-9AC3-5A508D000839">
+ <dmn:text>"High","Medium","Low","Very
Low","Decline"</dmn:text>
+ </dmn:allowedValues>
+ </dmn:itemDefinition>
+ <dmn:itemDefinition id="_46C870FC-2A99-43A0-9D1B-3D3C5516FB23"
name="Credit_Score_Rating" isCollection="false">
+ <dmn:typeRef>string</dmn:typeRef>
+ <dmn:allowedValues id="_8470AE69-2814-4911-953D-3FC61A681063">
+
<dmn:text>"Poor","Bad","Fair","Good","Excellent"</dmn:text>
+ </dmn:allowedValues>
+ </dmn:itemDefinition>
+ <dmn:itemDefinition id="_7641A6FA-BCF3-45D1-A0B6-71B0634ABB3E"
name="Back_End_Ratio" isCollection="false">
+ <dmn:typeRef>string</dmn:typeRef>
+ <dmn:allowedValues id="_CA1C6F0E-186F-41DD-8D8D-D405789BA3F1">
+ <dmn:text>"Insufficient","Sufficient"</dmn:text>
+ </dmn:allowedValues>
+ </dmn:itemDefinition>
+ <dmn:itemDefinition id="_B5E00A2D-3C95-4A9C-BCA6-BDE852939F6D"
name="Front_End_Ratio" isCollection="false">
+ <dmn:typeRef>string</dmn:typeRef>
+ <dmn:allowedValues id="_B8658CA2-F472-4390-8AB0-1DD49100B20C">
+ <dmn:text>"Sufficient","Insufficient"</dmn:text>
+ </dmn:allowedValues>
+ </dmn:itemDefinition>
+ <dmn:itemDefinition id="_B8ACE210-2C55-4C66-B3D8-4885EE1C52A0"
name="Qualification" isCollection="false">
+ <dmn:typeRef>string</dmn:typeRef>
+ <dmn:allowedValues id="_1F66B8BF-6AB7-4965-8A69-897DDC1A8B34">
+ <dmn:text>"Not Qualified","Qualified"</dmn:text>
+ </dmn:allowedValues>
+ </dmn:itemDefinition>
+ <dmn:itemDefinition id="_2CC2E8D7-1BE2-4E4A-8072-55A1EC94DB6E"
name="Credit_Score" isCollection="false">
+ <dmn:itemComponent id="_d53ce920-87f5-4a4f-baba-85c2a830d60f" name="FICO"
isCollection="false">
+ <dmn:typeRef>number</dmn:typeRef>
+ <dmn:allowedValues id="_E30AADBD-D028-475D-B8D8-B5687D454BED">
+ <dmn:text>[300..850]</dmn:text>
+ </dmn:allowedValues>
+ </dmn:itemComponent>
+ </dmn:itemDefinition>
+ <dmn:itemDefinition id="_3C37A6F1-C113-4993-BB57-E89B99C70B02"
name="Loan_Qualification" isCollection="false">
+ <dmn:itemComponent id="_e11c3ac3-7370-4378-967b-91e9cb221fe1"
name="Qualification" isCollection="false">
+ <dmn:typeRef>string</dmn:typeRef>
+ <dmn:allowedValues id="_B0AD0641-0023-461D-B20E-41CAE02F9BE4">
+ <dmn:text>"Qualified","Not Qualified"</dmn:text>
+ </dmn:allowedValues>
+ </dmn:itemComponent>
+ <dmn:itemComponent id="_b3541f82-5bc9-4fab-ba9b-c423a9a2cd6c"
name="Reason" isCollection="false">
+ <dmn:typeRef>string</dmn:typeRef>
+ </dmn:itemComponent>
+ </dmn:itemDefinition>
+ <dmn:decision id="_2FE51DB1-3083-4BF7-AA71-0B0065310E72" name="Credit Score
Rating">
+ <dmn:extensionElements />
+ <dmn:variable id="_82228E41-22D1-4758-97C3-BBFE90EDB5FB" name="Credit
Score Rating" typeRef="Credit_Score_Rating" />
+ <dmn:informationRequirement id="_31A1B6B2-A2A6-4E03-B898-26573A5CF3BA">
+ <dmn:requiredInput href="#_4C89E59C-FDDA-438C-8D1F-0B1194EF6DAE" />
+ </dmn:informationRequirement>
+ <dmn:decisionTable
+ id="_4ACEFFF0-AD2C-4DB8-9BAD-7BCCFB03F295"
+ hitPolicy="FIRST"
+ preferredOrientation="Rule-as-Row"
+ label="Credit Score Rating"
+ typeRef="Credit_Score_Rating"
+ >
+ <dmn:input id="_44C93627-629C-48B8-B71A-AE2266A42674">
+ <dmn:inputExpression id="_00932A00-5ECE-4AEF-AA68-92E679CEF4AB"
typeRef="boolean">
+ <dmn:text>>= Credit Score.FICO</dmn:text>
+ </dmn:inputExpression>
+ </dmn:input>
+ <dmn:output id="_9C201FAB-B49C-4D22-900B-B4E82D5469FB" />
+ <dmn:annotation name="Annotations" />
+ <dmn:rule id="_AED703E1-8E56-4D27-A511-3875AD1D122E">
+ <dmn:inputEntry id="_E2C9F30B-D529-48D8-A51C-A2ACCC8109B3">
+ <dmn:text>750</dmn:text>
+ </dmn:inputEntry>
+ <dmn:outputEntry id="_A1FF2B2D-EF34-42AD-A45A-5FFDFA21FA6D">
+ <dmn:text>"Excellent"</dmn:text>
+ </dmn:outputEntry>
+ <dmn:annotationEntry>
+ <dmn:text />
+ </dmn:annotationEntry>
+ </dmn:rule>
+ <dmn:rule id="_1FA12B9F-288C-42E8-B77F-BE2D3702B7B6">
+ <dmn:inputEntry id="_CA5AE067-0E1A-44CA-B85C-912F9ED4594C">
+ <dmn:text>700</dmn:text>
+ </dmn:inputEntry>
+ <dmn:outputEntry id="_833307A2-B924-422C-A4F5-BFFAB27D86D5">
+ <dmn:text>"Good"</dmn:text>
+ </dmn:outputEntry>
+ <dmn:annotationEntry>
+ <dmn:text />
+ </dmn:annotationEntry>
+ </dmn:rule>
+ <dmn:rule id="_11976EBA-60BC-421B-A270-089A45E9B167">
+ <dmn:inputEntry id="_75D612D5-D201-4932-8524-E49183F51D2D">
+ <dmn:text>650</dmn:text>
+ </dmn:inputEntry>
+ <dmn:outputEntry id="_E18FE2B2-729C-41F0-B5CC-0E5E5EA431E3">
+ <dmn:text>"Fair"</dmn:text>
+ </dmn:outputEntry>
+ <dmn:annotationEntry>
+ <dmn:text />
+ </dmn:annotationEntry>
+ </dmn:rule>
+ <dmn:rule id="_12F8077F-E601-4882-93E1-31508B1402E1">
+ <dmn:inputEntry id="_61374E7D-4EF3-4603-97A1-9D1FABAAA3C8">
+ <dmn:text>600</dmn:text>
+ </dmn:inputEntry>
+ <dmn:outputEntry id="_75135F4C-6BA7-4180-B726-A0D795B3D7FF">
+ <dmn:text>"Poor"</dmn:text>
+ </dmn:outputEntry>
+ <dmn:annotationEntry>
+ <dmn:text />
+ </dmn:annotationEntry>
+ </dmn:rule>
+ <dmn:rule id="_D025254C-9376-4425-8084-451E09243CE2">
+ <dmn:inputEntry id="_6C13B507-FB60-40AD-8F5C-2407F1413A5C">
+ <dmn:text>-</dmn:text>
+ </dmn:inputEntry>
+ <dmn:outputEntry id="_1FB7308A-E37B-46EA-8070-C67E2388A869">
+ <dmn:text>"Bad"</dmn:text>
+ </dmn:outputEntry>
+ <dmn:annotationEntry>
+ <dmn:text />
+ </dmn:annotationEntry>
+ </dmn:rule>
+ </dmn:decisionTable>
+ </dmn:decision>
+ <dmn:inputData id="_4C89E59C-FDDA-438C-8D1F-0B1194EF6DAE" name="Credit
Score">
+ <dmn:extensionElements />
+ <dmn:variable id="_A97019FC-EE01-451F-A7AA-5A97ED005FB9" name="Credit
Score" typeRef="Credit_Score" />
+ </dmn:inputData>
+ <dmndi:DMNDI>
+ <dmndi:DMNDiagram id="_1608585F-01C8-4A66-B3E5-F4422D4DD2CA" name="DRG"
useAlternativeInputDataShape="false">
+ <di:extension>
+ <kie:ComponentsWidthsExtension>
+ <kie:ComponentWidths
dmnElementRef="_4ACEFFF0-AD2C-4DB8-9BAD-7BCCFB03F295">
+ <kie:width>50</kie:width>
+ <kie:width>224</kie:width>
+ <kie:width>226</kie:width>
+ <kie:width>335</kie:width>
+ </kie:ComponentWidths>
+ </kie:ComponentsWidthsExtension>
+ </di:extension>
+ <dmndi:DMNShape
+ id="dmnshape-drg-_4C89E59C-FDDA-438C-8D1F-0B1194EF6DAE"
+ dmnElementRef="_4C89E59C-FDDA-438C-8D1F-0B1194EF6DAE"
+ isCollapsed="false"
+ >
+ <dmndi:DMNStyle id="_CF4D9A54-F164-4D66-8FE9-E5948BF96D37">
+ <dmndi:FillColor red="255" green="255" blue="255" />
+ <dmndi:StrokeColor red="0" green="0" blue="0" />
+ <dmndi:FontColor red="0" green="0" blue="0" />
+ </dmndi:DMNStyle>
+ <dc:Bounds x="963" y="359" width="134" height="61" />
+ <dmndi:DMNLabel id="_ED23EA19-B269-44AE-B16A-CC7EBEB56B43" />
+ </dmndi:DMNShape>
+ <dmndi:DMNShape
+ id="dmnshape-drg-_2FE51DB1-3083-4BF7-AA71-0B0065310E72"
+ dmnElementRef="_2FE51DB1-3083-4BF7-AA71-0B0065310E72"
+ isCollapsed="false"
+ >
+ <dmndi:DMNStyle id="_D5106423-913A-4CA1-8C58-0A45FE0FC1ED">
+ <dmndi:FillColor red="255" green="255" blue="255" />
+ <dmndi:StrokeColor red="0" green="0" blue="0" />
+ <dmndi:FontColor red="0" green="0" blue="0" />
+ </dmndi:DMNStyle>
+ <dc:Bounds x="963" y="225" width="136" height="62" />
+ <dmndi:DMNLabel id="_A4487116-C831-4815-961A-3D1BDAB3F1B9" />
+ </dmndi:DMNShape>
+ <dmndi:DMNEdge
+ id="dmnedge-drg-_31A1B6B2-A2A6-4E03-B898-26573A5CF3BA"
+ dmnElementRef="_31A1B6B2-A2A6-4E03-B898-26573A5CF3BA"
+ >
+ <di:waypoint x="1030" y="389.5" />
+ <di:waypoint x="1031" y="287" />
+ </dmndi:DMNEdge>
+ </dmndi:DMNDiagram>
+ </dmndi:DMNDI>
+</dmn:definitions>
diff --git a/packages/dmn-language-service/tests/fs/fixtures.ts
b/packages/dmn-language-service/tests/fs/fixtures.ts
index 016dcc98a7f..7ca0ad3f7bd 100644
--- a/packages/dmn-language-service/tests/fs/fixtures.ts
+++ b/packages/dmn-language-service/tests/fs/fixtures.ts
@@ -89,6 +89,12 @@ export const threeLevelRecursionC = () => {
});
};
+export const creditScoreUnaryTests = () => {
+ return getModelXmlForTestFixtures({
+ normalizedPosixPathRelativeToTheWorkspaceRoot:
"fixtures/refactor/creditScoreUnaryTests.dmn",
+ });
+};
+
export const sampleLoanDmnModel = () => {
return getModelXmlForTestFixtures({
normalizedPosixPathRelativeToTheWorkspaceRoot:
"fixtures/refactor/sampleLoan.dmn",
diff --git
a/packages/dmn-language-service/tests/refactor/IdentifiersRefactor.test.ts
b/packages/dmn-language-service/tests/refactor/IdentifiersRefactor.test.ts
index 971720d2c55..a7cebfd871c 100644
--- a/packages/dmn-language-service/tests/refactor/IdentifiersRefactor.test.ts
+++ b/packages/dmn-language-service/tests/refactor/IdentifiersRefactor.test.ts
@@ -19,7 +19,7 @@
import { DMN_LATEST__tDefinitions } from "@kie-tools/dmn-marshaller";
import { DmnLatestModel, getMarshaller } from "@kie-tools/dmn-marshaller";
-import { includeMathModelDmn, mathDmnModel, sampleLoanDmnModel } from
"../fs/fixtures";
+import { includeMathModelDmn, mathDmnModel, sampleLoanDmnModel,
creditScoreUnaryTests } from "../fs/fixtures";
import { IdentifiersRefactor } from "@kie-tools/dmn-language-service";
import { Normalized } from
"@kie-tools/dmn-marshaller/dist/normalization/normalize";
@@ -44,6 +44,50 @@ describe("Refactor renamed identifiers", () => {
);
});
+ test("rename input element - should update referenced decision table input
expression", async () => {
+ const identifiersRefactor = new IdentifiersRefactor({
+ writeableDmnDefinitions: getDefinitions(sampleLoanDmnModel()),
+ _readonly_externalDmnModelsByNamespaceMap: new Map(),
+ });
+
+ // Rename "Credit Score" to "Changed Credit Score"
+ identifiersRefactor.rename({
+ identifierUuid: "_4C89E59C-FDDA-438C-8D1F-0B1194EF6DAE",
+ newName: "Changed Credit Score",
+ });
+
+ // We reload to re-read the DMN file and make sure that the changes was
correctly applied to it
+ identifiersRefactor.reload();
+
+ const expressions = Array.from(
+
identifiersRefactor.getExpressionsThatUseTheIdentifier("_4C89E59C-FDDA-438C-8D1F-0B1194EF6DAE")
+ ).map((e) => e.fullExpression);
+
+ expect(expressions).toContain("Changed Credit Score.FICO");
+ });
+
+ test("rename input element - should update referenced decision table input
unary test", async () => {
+ const identifiersRefactor = new IdentifiersRefactor({
+ writeableDmnDefinitions: getDefinitions(creditScoreUnaryTests()),
+ _readonly_externalDmnModelsByNamespaceMap: new Map(),
+ });
+
+ // Rename "Credit Score" to "Changed Credit Score"
+ identifiersRefactor.rename({
+ identifierUuid: "_4C89E59C-FDDA-438C-8D1F-0B1194EF6DAE",
+ newName: "Changed Credit Score",
+ });
+
+ // We reload to re-read the DMN file and make sure that the changes was
correctly applied to it
+ identifiersRefactor.reload();
+
+ const expressions = Array.from(
+
identifiersRefactor.getExpressionsThatUseTheIdentifier("_4C89E59C-FDDA-438C-8D1F-0B1194EF6DAE")
+ ).map((e) => e.fullExpression);
+
+ expect(expressions).toContain(">= Changed Credit Score.FICO");
+ });
+
test("rename bkm element - should update referenced expressions", async ()
=> {
const identifiersRefactor = new IdentifiersRefactor({
writeableDmnDefinitions: getDefinitions(sampleLoanDmnModel()),
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]