| Index: compiler/javatests/com/google/dart/compiler/resolver/ResolverTestCase.java
|
| diff --git a/compiler/javatests/com/google/dart/compiler/resolver/ResolverTestCase.java b/compiler/javatests/com/google/dart/compiler/resolver/ResolverTestCase.java
|
| index 98fcb20f1ea6dbcae429acfcacd979009789c90d..b4717d170cfc0ec3536c28b6b8eb85e1f500debc 100644
|
| --- a/compiler/javatests/com/google/dart/compiler/resolver/ResolverTestCase.java
|
| +++ b/compiler/javatests/com/google/dart/compiler/resolver/ResolverTestCase.java
|
| @@ -144,8 +144,13 @@ abstract class ResolverTestCase extends TestCase {
|
| public Void visitIdentifier(DartIdentifier node) {
|
|
|
| if (node.getElement() == null) {
|
| - failures.add("Identifier: " + node.getName() + " has null element @ ("
|
| - + node.getSourceLine() + ":" + node.getSourceColumn() + ")");
|
| + failures.add("Identifier: "
|
| + + node.getName()
|
| + + " has null element @ ("
|
| + + node.getSourceInfo().getLine()
|
| + + ":"
|
| + + node.getSourceInfo().getColumn()
|
| + + ")");
|
| }
|
| return null;
|
| }
|
| @@ -341,11 +346,8 @@ abstract class ResolverTestCase extends TestCase {
|
|
|
| protected DartUnit parseUnit(String string) {
|
| DartSourceString source = new DartSourceString("<source string>", string);
|
| - return getParser(string).parseUnit(source);
|
| - }
|
| -
|
| - private DartParser getParser(String string) {
|
| - return new DartParser(new DartScannerParserContext(null, string, getListener()));
|
| + DartParser parser = new DartParser(new DartScannerParserContext(source, string, getListener()));
|
| + return parser.parseUnit(source);
|
| }
|
|
|
| private DartCompilerListener getListener() {
|
|
|