Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 } |
| OLD | NEW |