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

Side by Side Diff: compiler/javatests/com/google/dart/compiler/parser/DartParserRunner.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;
7 import com.google.dart.compiler.DartCompilationError; 8 import com.google.dart.compiler.DartCompilationError;
8 import com.google.dart.compiler.DartCompilerListener; 9 import com.google.dart.compiler.DartCompilerListener;
9 import com.google.dart.compiler.DartSource; 10 import com.google.dart.compiler.DartSource;
10 import com.google.dart.compiler.DartSourceTest; 11 import com.google.dart.compiler.DartSourceTest;
11 import com.google.dart.compiler.ErrorSeverity; 12 import com.google.dart.compiler.ErrorSeverity;
12 import com.google.dart.compiler.ast.DartUnit; 13 import com.google.dart.compiler.ast.DartUnit;
13 14
14 import junit.framework.TestCase; 15 import junit.framework.TestCase;
15 16
16 import java.io.BufferedReader; 17 import java.io.BufferedReader;
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 } 161 }
161 162
162 public boolean hasErrors() { 163 public boolean hasErrors() {
163 return getErrors().size() > 0; 164 return getErrors().size() > 0;
164 } 165 }
165 166
166 @Override 167 @Override
167 public void run() { 168 public void run() {
168 try { 169 try {
169 DartSourceTest dartSrc = new DartSourceTest(name, sourceCode, null); 170 DartSourceTest dartSrc = new DartSourceTest(name, sourceCode, null);
170 ParserContext context = new DartScannerParserContext(dartSrc, sourceCode, this); 171 dartUnit = (new DartParser(
171 dartUnit = (new DartParser(context, apiParsing)).parseUnit(dartSrc); 172 dartSrc,
173 sourceCode,
174 apiParsing,
175 Sets.<String>newHashSet(),
176 this,
177 null)).parseUnit();
172 } catch (Throwable t) { 178 } catch (Throwable t) {
173 workerException.set(t); 179 workerException.set(t);
174 } 180 }
175 } 181 }
176 182
177 public DartParserRunner setTimeout(int timeoutInMillis) { 183 public DartParserRunner setTimeout(int timeoutInMillis) {
178 this.timeoutInMillis = timeoutInMillis; 184 this.timeoutInMillis = timeoutInMillis;
179 return this; 185 return this;
180 } 186 }
181 187
(...skipping 12 matching lines...) Expand all
194 } 200 }
195 201
196 @Override 202 @Override
197 public void unitAboutToCompile(DartSource source, boolean diet) { 203 public void unitAboutToCompile(DartSource source, boolean diet) {
198 } 204 }
199 205
200 @Override 206 @Override
201 public void unitCompiled(DartUnit unit) { 207 public void unitCompiled(DartUnit unit) {
202 } 208 }
203 } 209 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698