| Index: tests/compiler/dart2js/mock_compiler.dart
|
| ===================================================================
|
| --- tests/compiler/dart2js/mock_compiler.dart (revision 16853)
|
| +++ tests/compiler/dart2js/mock_compiler.dart (working copy)
|
| @@ -52,9 +52,11 @@
|
| class JSArray {
|
| var length;
|
| operator[](index) {}
|
| + var add;
|
| }
|
| class JSString {
|
| var length;
|
| + operator[](index) {}
|
| }
|
| class JSNumber {
|
| }
|
| @@ -233,6 +235,11 @@
|
| if (sourceFile == null) throw new ArgumentError(uri);
|
| return new Script(uri, sourceFile);
|
| }
|
| +
|
| + Element findInScopeContainer(ScopeContainerElement scope, SourceString name) {
|
| + Element element = scope.localLookup(name);
|
| + return element != null ? element : new UnresolvedElement(name, scope);
|
| + }
|
| }
|
|
|
| void compareWarningKinds(String text, expectedWarnings, foundWarnings) {
|
|
|