Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Side by Side Diff: tests/compiler/dart2js/resolver_test.dart

Issue 11358024: Changes outside pkg/ and lib/ for directory refactoring (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:uri'; 5 import 'dart:uri';
6 6
7 import "../../../lib/compiler/implementation/dart2jslib.dart" 7 import "../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart"
8 hide TreeElementMapping, TreeElements, SourceString; 8 hide TreeElementMapping, TreeElements, SourceString;
9 import "../../../lib/compiler/implementation/resolution/resolution.dart"; 9 import "../../../sdk/lib/_internal/compiler/implementation/resolution/resolution .dart";
10 import "../../../lib/compiler/implementation/elements/elements.dart"; 10 import "../../../sdk/lib/_internal/compiler/implementation/elements/elements.dar t";
11 import "../../../lib/compiler/implementation/tree/tree.dart"; 11 import "../../../sdk/lib/_internal/compiler/implementation/tree/tree.dart";
12 import "../../../lib/compiler/implementation/util/util.dart"; 12 import "../../../sdk/lib/_internal/compiler/implementation/util/util.dart";
13 import "compiler_helper.dart"; 13 import "compiler_helper.dart";
14 import "mock_compiler.dart"; 14 import "mock_compiler.dart";
15 import "parser_helper.dart"; 15 import "parser_helper.dart";
16 16
17 Node buildIdentifier(String name) => new Identifier(scan(name)); 17 Node buildIdentifier(String name) => new Identifier(scan(name));
18 18
19 Node buildInitialization(String name) => 19 Node buildInitialization(String name) =>
20 parseBodyCode('$name = 1', 20 parseBodyCode('$name = 1',
21 (parser, tokens) => parser.parseOptionallyInitializedIdentifier(tokens)); 21 (parser, tokens) => parser.parseOptionallyInitializedIdentifier(tokens));
22 22
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 var d = new D(); 806 var d = new D();
807 --d; 807 --d;
808 }"""; 808 }""";
809 final compiler = compileScript(script); 809 final compiler = compileScript(script);
810 810
811 checkMemberResolved(compiler, 'A', operatorName('+', false)); 811 checkMemberResolved(compiler, 'A', operatorName('+', false));
812 checkMemberResolved(compiler, 'B', operatorName('+', false)); 812 checkMemberResolved(compiler, 'B', operatorName('+', false));
813 checkMemberResolved(compiler, 'C', operatorName('-', false)); 813 checkMemberResolved(compiler, 'C', operatorName('-', false));
814 checkMemberResolved(compiler, 'D', operatorName('-', false)); 814 checkMemberResolved(compiler, 'D', operatorName('-', false));
815 } 815 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698