File tree 2 files changed +21
-2
lines changed
e2e/suite/testcases/resolve
2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,18 @@ fun test() {
43
43
------------------------------------------------------------------------
44
44
4:4 -> 3:8 resolved
45
45
46
+ ========================================================================
47
+ Local variable resolve with same name function in call
48
+ ========================================================================
49
+ fun value() {}
50
+
51
+ fun test() {
52
+ let value = 1;
53
+ <caret>value();
54
+ }
55
+ ------------------------------------------------------------------------
56
+ 4:4 -> 0:4 resolved
57
+
46
58
========================================================================
47
59
Parameter resolve
48
60
========================================================================
Original file line number Diff line number Diff line change @@ -312,14 +312,21 @@ export class Reference {
312
312
}
313
313
}
314
314
315
- if ( ! this . processBlock ( proc , state ) ) return false
316
-
317
315
if ( parent ?. type === "asm_arrangement_args" ) {
318
316
// `asm(cell self) extends fun storeRef(self: Builder, cell: Cell): Builder`
319
317
// ^^^^ this
320
318
return this . resolveAsmArrangementArgs ( parent , proc , state )
321
319
}
322
320
321
+ if ( parent ?. type === "static_call_expression" ) {
322
+ // let context = context();
323
+ // context();
324
+ // ^^^^^^^ resolve only as global symbol
325
+ return this . processAllEntities ( proc , state )
326
+ }
327
+
328
+ if ( ! this . processBlock ( proc , state ) ) return false
329
+
323
330
return this . processAllEntities ( proc , state )
324
331
}
325
332
You can’t perform that action at this time.
0 commit comments