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

Side by Side Diff: compiler/javatests/com/google/dart/compiler/CompilerTestCase.java

Issue 10918073: Issue 4881. Resolve new == and []+ operators (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 months 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 package com.google.dart.compiler; 5 package com.google.dart.compiler;
6 6
7 import static com.google.dart.compiler.common.ErrorExpectation.assertErrors; 7 import static com.google.dart.compiler.common.ErrorExpectation.assertErrors;
8 8
9 import com.google.common.collect.Lists; 9 import com.google.common.collect.Lists;
10 import com.google.common.collect.Maps; 10 import com.google.common.collect.Maps;
11 import com.google.common.collect.Sets; 11 import com.google.common.collect.Sets;
12 import com.google.dart.compiler.CommandLineOptions.CompilerOptions; 12 import com.google.dart.compiler.CommandLineOptions.CompilerOptions;
13 import com.google.dart.compiler.ast.ASTVisitor; 13 import com.google.dart.compiler.ast.ASTVisitor;
14 import com.google.dart.compiler.ast.DartExpression; 14 import com.google.dart.compiler.ast.DartExpression;
15 import com.google.dart.compiler.ast.DartFunctionTypeAlias; 15 import com.google.dart.compiler.ast.DartFunctionTypeAlias;
16 import com.google.dart.compiler.ast.DartIdentifier; 16 import com.google.dart.compiler.ast.DartIdentifier;
17 import com.google.dart.compiler.ast.DartNode; 17 import com.google.dart.compiler.ast.DartNode;
18 import com.google.dart.compiler.ast.DartUnit; 18 import com.google.dart.compiler.ast.DartUnit;
19 import com.google.dart.compiler.ast.LibraryUnit; 19 import com.google.dart.compiler.ast.LibraryUnit;
20 import com.google.dart.compiler.common.ErrorExpectation; 20 import com.google.dart.compiler.common.ErrorExpectation;
21 import com.google.dart.compiler.common.SourceInfo; 21 import com.google.dart.compiler.common.SourceInfo;
22 import com.google.dart.compiler.parser.DartParser; 22 import com.google.dart.compiler.parser.DartParser;
23 import com.google.dart.compiler.parser.DartParserRunner; 23 import com.google.dart.compiler.parser.DartParserRunner;
24 import com.google.dart.compiler.resolver.Element; 24 import com.google.dart.compiler.resolver.Element;
25 import com.google.dart.compiler.type.Type; 25 import com.google.dart.compiler.type.Type;
26 import com.google.dart.compiler.type.TypeKind; 26 import com.google.dart.compiler.type.TypeKind;
27 import com.google.dart.compiler.util.apache.StringUtils;
28 27
29 import junit.framework.TestCase; 28 import junit.framework.TestCase;
30 29
31 import java.io.IOException; 30 import java.io.IOException;
32 import java.io.InputStreamReader; 31 import java.io.InputStreamReader;
33 import java.io.Reader; 32 import java.io.Reader;
34 import java.net.URI; 33 import java.net.URI;
35 import java.net.URL; 34 import java.net.URL;
36 import java.util.List; 35 import java.util.List;
37 import java.util.Map; 36 import java.util.Map;
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 Element element = node.getElement(); 458 Element element = node.getElement();
460 if (element != null && element.getName().equals(name)) { 459 if (element != null && element.getName().equals(name)) {
461 result[0] = element; 460 result[0] = element;
462 } 461 }
463 return super.visitIdentifier(node); 462 return super.visitIdentifier(node);
464 } 463 }
465 }); 464 });
466 return result[0]; 465 return result[0];
467 } 466 }
468 } 467 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698