Simplify resolve infrastructure; Fix handling of nested element and property accesses

This commit is contained in:
dcodeIO
2018-04-05 02:23:03 +02:00
parent e790eb757f
commit 7e90ab161d
12 changed files with 1486 additions and 339 deletions

View File

@ -0,0 +1,19 @@
export function i32ArrayArrayElementAccess(a: i32[][]): i32 {
return a[0][1];
}
export function stringArrayPropertyAccess(a: string[]): i32 {
return a[0].length;
}
export function stringArrayMethodCall(a: string[]): i32 {
return a[0].startsWith("");
}
export function stringArrayArrayPropertyAccess(a: string[][]): i32 {
return a[0][1].length;
}
export function stringArrayArrayMethodCall(a: string[][]): i32 {
return a[0][1].startsWith("");
}