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

Unified Diff: frog/leg/scanner/parser.dart

Issue 9616058: Implement parsing and resolving of type-variables. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: frog/leg/scanner/parser.dart
diff --git a/frog/leg/scanner/parser.dart b/frog/leg/scanner/parser.dart
index 30e3a3eb306805588273b49f7235a9341927ef5c..83a2d0d3159d389609599e3f3b2bcbac2d5f21fd 100644
--- a/frog/leg/scanner/parser.dart
+++ b/frog/leg/scanner/parser.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -318,22 +318,6 @@ class Parser {
}
Token parseTypeVariablesOpt(Token token) {
- if (optional('<', token)) {
- BeginGroupToken beginGroupToken = token;
- // TODO(ahe): Parse type variables.
-
- // For now, skip to the matching '>' if it exists. Otherwise,
- // don't advance and assume the caller will report some kind of
- // error.
- if (beginGroupToken.endGroup !== null) {
- token = beginGroupToken.endGroup.next;
- }
- }
- listener.handleNoTypeVariables(token);
- return token;
- }
-
- Token parseTypeVariablesOptX(Token token) {
return parseStuff(token,
(t) => listener.beginTypeVariables(t),
(t) => parseTypeVariable(t),

Powered by Google App Engine
This is Rietveld 408576698