| 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);
|
|
|