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

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

Issue 10097021: Fix for parsing qualified type in for-in (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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
« no previous file with comments | « compiler/java/com/google/dart/compiler/parser/DartParser.java ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 package com.google.dart.compiler.parser; 4 package com.google.dart.compiler.parser;
5 5
6 import com.google.common.base.Joiner; 6 import com.google.common.base.Joiner;
7 import com.google.dart.compiler.CompilerTestCase; 7 import com.google.dart.compiler.CompilerTestCase;
8 import com.google.dart.compiler.ast.DartIdentifier; 8 import com.google.dart.compiler.ast.DartIdentifier;
9 import com.google.dart.compiler.ast.DartMethodDefinition; 9 import com.google.dart.compiler.ast.DartMethodDefinition;
10 import com.google.dart.compiler.ast.DartNode; 10 import com.google.dart.compiler.ast.DartNode;
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 public void test_native_onlyCoreLib_method() { 760 public void test_native_onlyCoreLib_method() {
761 parseExpectErrors( 761 parseExpectErrors(
762 Joiner.on("\n").join( 762 Joiner.on("\n").join(
763 "// filler filler filler filler filler filler filler filler filler f iller", 763 "// filler filler filler filler filler filler filler filler filler f iller",
764 "class A {", 764 "class A {",
765 " factory A() native;", 765 " factory A() native;",
766 "}", 766 "}",
767 ""), 767 ""),
768 errEx(ParserErrorCode.NATIVE_ONLY_CORE_LIB, 3, 15, 6)); 768 errEx(ParserErrorCode.NATIVE_ONLY_CORE_LIB, 3, 15, 6));
769 } 769 }
770
771 public void test_qualifiedType_inForIn() {
772 parseExpectErrors(Joiner.on("\n").join(
773 "// filler filler filler filler filler filler filler filler filler fille r",
774 "foo() {",
775 " for (pref.A a in elements) {",
776 " }",
777 "}",
778 ""));
779 }
770 } 780 }
OLDNEW
« no previous file with comments | « compiler/java/com/google/dart/compiler/parser/DartParser.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698