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

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

Issue 10661022: Issue 3752. Support for @override annotations (as structured doc comments) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
Brian Wilkerson 2012/06/25 14:24:38 nit: copyright year
scheglov 2012/06/26 19:46:34 Done.
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.parser; 5 package com.google.dart.compiler.parser;
6 6
7 import com.google.common.collect.Sets;
8 import com.google.dart.compiler.DartCompilerListener;
9 import com.google.dart.compiler.Source;
10
7 /** 11 /**
8 * Tests for the parser, which simply assert that valid source units parse 12 * Tests for the parser, which simply assert that valid source units parse
9 * correctly. All tests invoking {@code parseUnit} are designed such that 13 * correctly. All tests invoking {@code parseUnit} are designed such that
10 * they will throw an exception if anything goes wrong in the parser. 14 * they will throw an exception if anything goes wrong in the parser.
11 */ 15 */
12 public class DietParserTest extends AbstractParserTest { 16 public class DietParserTest extends AbstractParserTest {
13 17
14 public void testStringsErrors() { 18 public void testStringsErrors() {
15 parseUnit("StringsErrorsNegativeTest.dart"); 19 parseUnit("StringsErrorsNegativeTest.dart");
16 } 20 }
17 21
18 @Override 22 @Override
19 protected DartParser makeParser(ParserContext context) { 23 protected DartParser makeParser(Source src, String sourceCode, DartCompilerLis tener listener) {
20 return new DartParser(context, /* isDietParse */true); 24 return new DartParser(src, sourceCode, true, Sets.<String>newHashSet(), list ener, null);
21 } 25 }
22 } 26 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698