Skip to content

Commit 603de1a

Browse files
authored
Merge pull request #375 from maxonfjvipon/bug/#374/update-rules
bug(#374): update rules
2 parents 0fd4c76 + fe0420f commit 603de1a

File tree

5 files changed

+22
-5850
lines changed

5 files changed

+22
-5850
lines changed

src/main/resources/org/eolang/hone/rules/streams/111-invokedynamic-to-lambda.phr

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@ pattern: |
1919
access ↦ 𝑒-method-access,
2020
descriptor ↦ 𝑒-method-descriptor,
2121
signature ↦ 𝑒-method-signature,
22+
exceptions ↦ 𝑒-method-exceptions,
2223
maxs ↦ 𝑒-method-maxs,
2324
params ↦ 𝑒-method-params,
2425
modifiers ↦ ⟦
2526
𝐵-modifiers-before,
2627
static ↦ Φ̇.true,
2728
𝐵-modifiers-after
2829
⟧,
30+
annotations ↦ 𝑒-annotations,
2931
body ↦ ⟦
3032
𝐵-body-head,
3133
𝜏-invokedynamic ↦ ⟦
@@ -72,8 +74,10 @@ pattern: |
7274
⟧,
7375
𝐵-body-tail
7476
⟧,
77+
𝜏-trycatchblocks ↦ 𝑒-trycatchblocks,
7578
local-variable-table ↦ 𝑒-lvt,
76-
name ↦ 𝑒-function
79+
name ↦ 𝑒-function,
80+
ρ ↦ ∅
7781
⟧,
7882
𝐵-class-body-tail
7983
@@ -93,13 +97,15 @@ result: |
9397
access ↦ 𝑒-method-access,
9498
descriptor ↦ 𝑒-method-descriptor,
9599
signature ↦ 𝑒-method-signature,
100+
exceptions ↦ 𝑒-method-exceptions,
96101
maxs ↦ 𝑒-method-maxs,
97102
params ↦ 𝑒-method-params,
98103
modifiers ↦ ⟦
99104
𝐵-modifiers-before,
100105
static ↦ Φ̇.true,
101106
𝐵-modifiers-after
102107
⟧,
108+
annotations ↦ 𝑒-annotations,
103109
body ↦ ⟦
104110
𝐵-body-head,
105111
𝜏-lambda ↦ ⟦
@@ -126,8 +132,10 @@ result: |
126132
⟧,
127133
𝐵-body-tail
128134
⟧,
135+
𝜏-trycatchblocks ↦ 𝑒-trycatchblocks,
129136
local-variable-table ↦ 𝑒-lvt,
130-
name ↦ 𝑒-function
137+
name ↦ 𝑒-function,
138+
ρ ↦ ∅
131139
⟧,
132140
𝐵-class-body-tail
133141

src/test/resources/org/eolang/hone/rules/streams/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ SHELL := bash
99

1010
ROOT=../../../../../../../..
1111
RULES_DIR=$(ROOT)/src/main/resources/org/eolang/hone/rules/streams
12-
TESTS_DIR=lints
12+
TESTS_DIR=expressions
1313
TARGET=$(ROOT)/target/foo
1414

1515
RULE_FILES=$(wildcard $(RULES_DIR)/*.phr)

src/test/resources/org/eolang/hone/rules/streams/expressions/111-one-invokedynamic.phi

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,28 @@
88
interfaces ↦ ⟦
99
φ ↦ Φ.jeo.seq.of0
1010
⟧,
11+
modifiers ↦ ⟦ φ ↦ Φ.jeo.seq.of0 ⟧,
1112
name ↦ "Foo",
1213
j$main ↦ ⟦
1314
φ ↦ Φ.jeo.method,
1415
access ↦ 4096,
1516
descriptor ↦ "()V",
1617
signature ↦ "",
18+
exceptions ↦ "Exceptions",
1719
maxs ↦ ⟦
1820
φ ↦ Φ.jeo.seq.of2,
1921
v1 ↦ 5,
2022
v2 ↦ 5
2123
⟧,
2224
params ↦ ⟦ φ ↦ Φ.jeo.seq.of2 ⟧,
2325
modifiers ↦ ⟦ static ↦ Φ̇.true ⟧,
26+
annotations ↦ ⟦ φ ↦ Φ.jeo.seq.of2 ⟧,
2427
body ↦ ⟦
2528
φ ↦ Φ.jeo.seq.of2,
2629
i2186 ↦ ⟦
2730
φ ↦ Φ.jeo.opcode.invokedynamic,
2831
v2194 ↦ "apply",
29-
v2196 ↦ "(Lcom/jcabi/xml/XSL;)Ljava/util/function/Function;",
32+
v2196 ↦ "()Ljava/util/function/Function;",
3033
h2198 ↦ ⟦
3134
φ ↦ Φ.jeo.handle,
3235
v2199 ↦ 6,
@@ -43,7 +46,7 @@
4346
φ ↦ Φ.jeo.handle,
4447
v2249 ↦ 9,
4548
v2250 ↦ "com/jcabi/xml/XSL",
46-
v2251 ↦ "transform",
49+
v2251 ↦ "lambda$1",
4750
v2252 ↦ "(Lcom/jcabi/xml/XML;)Lcom/jcabi/xml/XML;",
4851
v2254 ↦ Φ̇.true
4952
⟧,
@@ -60,6 +63,7 @@
6063
v2376 ↦ Φ̇.true
6164
6265
⟧,
66+
trycatchblocks ↦ ⟦⟧,
6367
local-variable-table ↦ ⟦⟧,
6468
name ↦ "main"
6569

src/test/resources/org/eolang/hone/rules/streams/lints/101-lints.phi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
synthetic ↦ Φ̇.false,
5757
mandated ↦ Φ̇.false
5858
⟧,
59+
annotations ↦ ⟦ φ ↦ Φ.jeo.seq.of2 ⟧,
5960
body ↦ ⟦
6061
φ ↦ Φ.jeo.seq.of29,
6162
l9 ↦ ⟦
@@ -266,6 +267,7 @@
266267
synthetic ↦ Φ̇.false,
267268
mandated ↦ Φ̇.false
268269
⟧,
270+
annotations ↦ ⟦ φ ↦ Φ.jeo.seq.of2 ⟧,
269271
body ↦ ⟦
270272
φ ↦ Φ.jeo.seq.of13,
271273
l179 ↦ ⟦
@@ -401,6 +403,7 @@
401403
synthetic ↦ Φ̇.false,
402404
mandated ↦ Φ̇.false
403405
⟧,
406+
annotations ↦ ⟦ φ ↦ Φ.jeo.seq.of2 ⟧,
404407
body ↦ ⟦
405408
φ ↦ Φ.jeo.seq.of5,
406409
l267 ↦ ⟦
@@ -482,6 +485,7 @@
482485
synthetic ↦ Φ̇.false,
483486
mandated ↦ Φ̇.false
484487
⟧,
488+
annotations ↦ ⟦ φ ↦ Φ.jeo.seq.of2 ⟧,
485489
body ↦ ⟦
486490
φ ↦ Φ.jeo.seq.of54,
487491
l299 ↦ ⟦

0 commit comments

Comments
 (0)