Generate local variable table for inlined lambda
This commit is contained in:
@@ -137,7 +137,7 @@ public abstract class AbstractCheckLocalVariablesTableTest extends TestCaseWithT
|
||||
private List<LocalVariable> parseExpectations() throws IOException {
|
||||
List<String> lines = Files.readLines(ktFile, Charset.forName("utf-8"));
|
||||
List<LocalVariable> expectedLocalVariables = new ArrayList<LocalVariable>();
|
||||
for (int i = lines.size() - 3; i < lines.size(); ++i) {
|
||||
for (int i = Math.max(lines.size() - 10, 0); i < lines.size(); ++i) {
|
||||
Matcher nameMatcher = namePattern.matcher(lines.get(i));
|
||||
if (nameMatcher.matches()) {
|
||||
Matcher typeMatcher = typePattern.matcher(lines.get(i));
|
||||
|
||||
Reference in New Issue
Block a user