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

Unified Diff: compiler/java/com/google/dart/compiler/parser/DartParser.java

Issue 10877016: Remove references to 'frog' (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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: compiler/java/com/google/dart/compiler/parser/DartParser.java
diff --git a/compiler/java/com/google/dart/compiler/parser/DartParser.java b/compiler/java/com/google/dart/compiler/parser/DartParser.java
index f8c5a66249c09ecf8ad6fc31743d2cc584a6f4b5..1189833a456102cad2fc0544fb465934aaaee2ea 100644
--- a/compiler/java/com/google/dart/compiler/parser/DartParser.java
+++ b/compiler/java/com/google/dart/compiler/parser/DartParser.java
@@ -887,10 +887,6 @@ public class DartParser extends CompletionHooksParserBase {
// Deal with native clause for classes.
DartStringLiteral nativeName = null;
if (optionalPseudoKeyword(NATIVE_KEYWORD)) {
- if (superType != null) {
- // dom_frog.dart has this situation
- //reportError(position(), ParserErrorCode.NATIVE_MUST_NOT_EXTEND);
- }
if (isParsingInterface) {
reportError(position(), ParserErrorCode.NATIVE_ONLY_CLASS);
}
@@ -1663,10 +1659,6 @@ public class DartParser extends CompletionHooksParserBase {
parseStringWithPasting();
}
if (match(Token.LBRACE) || match(Token.ARROW)) {
- // dom_frog.dart has non-static native methods with string and block
- //if (!modifiers.isStatic()) {
- // reportError(position(), ParserErrorCode.EXPORTED_FUNCTIONS_MUST_BE_STATIC);
- //}
return done(parseFunctionStatementBody(!modifiers.isExternal(), true));
} else {
expect(Token.SEMICOLON);

Powered by Google App Engine
This is Rietveld 408576698