| Index: compiler/javatests/com/google/dart/compiler/parser/TruncatedSourceParserTest.java
|
| diff --git a/compiler/javatests/com/google/dart/compiler/parser/TruncatedSourceParserTest.java b/compiler/javatests/com/google/dart/compiler/parser/TruncatedSourceParserTest.java
|
| index cc396f20a77b3be920063ebb257d188c8f094b4a..0263d6221d1d0f1dd9ef7439b7399c4a30a0fa23 100644
|
| --- a/compiler/javatests/com/google/dart/compiler/parser/TruncatedSourceParserTest.java
|
| +++ b/compiler/javatests/com/google/dart/compiler/parser/TruncatedSourceParserTest.java
|
| @@ -74,7 +74,6 @@ public class TruncatedSourceParserTest extends AbstractParserTest {
|
| public void run() {
|
| while (true) {
|
| DartSourceTest src;
|
| - ParserContext context;
|
| synchronized (lock) {
|
| while (state == ParseState.INIT) {
|
| try {
|
| @@ -87,9 +86,8 @@ public class TruncatedSourceParserTest extends AbstractParserTest {
|
| return;
|
| }
|
| src = new DartSourceTest(srcName, srcCode, null);
|
| - context = makeParserContext(src, srcCode, listener);
|
| }
|
| - DartUnit unit = makeParser(context).parseUnit(src);
|
| + DartUnit unit = makeParser(src, srcCode, listener).parseUnit();
|
| synchronized (lock) {
|
| if (state == ParseState.STOP) {
|
| return;
|
|
|