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

Side by Side Diff: pkg/analyzer_experimental/lib/src/generated/parser.dart

Issue 14205011: Issue 9845. Compare runtime types using ==. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 // This code was auto-generated, is not intended to be edited, and is subject to 1 // This code was auto-generated, is not intended to be edited, and is subject to
2 // significant change. Please see the README file for more information. 2 // significant change. Please see the README file for more information.
3 3
4 library engine.parser; 4 library engine.parser;
5 5
6 import 'dart:collection'; 6 import 'dart:collection';
7 import 'java_core.dart'; 7 import 'java_core.dart';
8 import 'java_engine.dart'; 8 import 'java_engine.dart';
9 import 'instrumentation.dart'; 9 import 'instrumentation.dart';
10 import 'error.dart'; 10 import 'error.dart';
(...skipping 3591 matching lines...) Expand 10 before | Expand all | Expand 10 after
3602 SwitchStatement parseSwitchStatement() { 3602 SwitchStatement parseSwitchStatement() {
3603 bool wasInSwitch = _inSwitch; 3603 bool wasInSwitch = _inSwitch;
3604 _inSwitch = true; 3604 _inSwitch = true;
3605 try { 3605 try {
3606 Set<String> definedLabels = new Set<String>(); 3606 Set<String> definedLabels = new Set<String>();
3607 Token keyword = expect(Keyword.SWITCH); 3607 Token keyword = expect(Keyword.SWITCH);
3608 Token leftParenthesis = expect2(TokenType.OPEN_PAREN); 3608 Token leftParenthesis = expect2(TokenType.OPEN_PAREN);
3609 Expression expression = parseExpression2(); 3609 Expression expression = parseExpression2();
3610 Token rightParenthesis = expect2(TokenType.CLOSE_PAREN); 3610 Token rightParenthesis = expect2(TokenType.CLOSE_PAREN);
3611 Token leftBracket = expect2(TokenType.OPEN_CURLY_BRACKET); 3611 Token leftBracket = expect2(TokenType.OPEN_CURLY_BRACKET);
3612 Token defaultKeyword = null;
3612 List<SwitchMember> members = new List<SwitchMember>(); 3613 List<SwitchMember> members = new List<SwitchMember>();
3613 while (!matches5(TokenType.EOF) && !matches5(TokenType.CLOSE_CURLY_BRACKET )) { 3614 while (!matches5(TokenType.EOF) && !matches5(TokenType.CLOSE_CURLY_BRACKET )) {
3614 List<Label> labels = new List<Label>(); 3615 List<Label> labels = new List<Label>();
3615 while (matchesIdentifier() && matches4(peek(), TokenType.COLON)) { 3616 while (matchesIdentifier() && matches4(peek(), TokenType.COLON)) {
3616 SimpleIdentifier identifier = parseSimpleIdentifier(); 3617 SimpleIdentifier identifier = parseSimpleIdentifier();
3617 String label = identifier.token.lexeme; 3618 String label = identifier.token.lexeme;
3618 if (definedLabels.contains(label)) { 3619 if (definedLabels.contains(label)) {
3619 reportError5(ParserErrorCode.DUPLICATE_LABEL_IN_SWITCH_STATEMENT, id entifier.token, [label]); 3620 reportError5(ParserErrorCode.DUPLICATE_LABEL_IN_SWITCH_STATEMENT, id entifier.token, [label]);
3620 } else { 3621 } else {
3621 javaSetAdd(definedLabels, label); 3622 javaSetAdd(definedLabels, label);
3622 } 3623 }
3623 Token colon = expect2(TokenType.COLON); 3624 Token colon = expect2(TokenType.COLON);
3624 labels.add(new Label.full(identifier, colon)); 3625 labels.add(new Label.full(identifier, colon));
3625 } 3626 }
3626 if (matches(Keyword.CASE)) { 3627 if (matches(Keyword.CASE)) {
3627 Token caseKeyword = andAdvance; 3628 Token caseKeyword = andAdvance;
3628 Expression caseExpression = parseExpression2(); 3629 Expression caseExpression = parseExpression2();
3629 Token colon = expect2(TokenType.COLON); 3630 Token colon = expect2(TokenType.COLON);
3630 members.add(new SwitchCase.full(labels, caseKeyword, caseExpression, c olon, parseStatements2())); 3631 members.add(new SwitchCase.full(labels, caseKeyword, caseExpression, c olon, parseStatements2()));
3632 if (defaultKeyword != null) {
3633 reportError5(ParserErrorCode.SWITCH_HAS_CASE_AFTER_DEFAULT_CASE, cas eKeyword, []);
3634 }
3631 } else if (matches(Keyword.DEFAULT)) { 3635 } else if (matches(Keyword.DEFAULT)) {
3632 Token defaultKeyword = andAdvance; 3636 if (defaultKeyword != null) {
3637 reportError5(ParserErrorCode.SWITCH_HAS_MULTIPLE_DEFAULT_CASES, peek (), []);
3638 }
3639 defaultKeyword = andAdvance;
3633 Token colon = expect2(TokenType.COLON); 3640 Token colon = expect2(TokenType.COLON);
3634 members.add(new SwitchDefault.full(labels, defaultKeyword, colon, pars eStatements2())); 3641 members.add(new SwitchDefault.full(labels, defaultKeyword, colon, pars eStatements2()));
3635 } else { 3642 } else {
3636 reportError4(ParserErrorCode.EXPECTED_CASE_OR_DEFAULT, []); 3643 reportError4(ParserErrorCode.EXPECTED_CASE_OR_DEFAULT, []);
3637 while (!matches5(TokenType.EOF) && !matches5(TokenType.CLOSE_CURLY_BRA CKET) && !matches(Keyword.CASE) && !matches(Keyword.DEFAULT)) { 3644 while (!matches5(TokenType.EOF) && !matches5(TokenType.CLOSE_CURLY_BRA CKET) && !matches(Keyword.CASE) && !matches(Keyword.DEFAULT)) {
3638 advance(); 3645 advance();
3639 } 3646 }
3640 } 3647 }
3641 } 3648 }
3642 Token rightBracket = expect2(TokenType.CLOSE_CURLY_BRACKET); 3649 Token rightBracket = expect2(TokenType.CLOSE_CURLY_BRACKET);
(...skipping 1223 matching lines...) Expand 10 before | Expand all | Expand 10 after
4866 static final ParserErrorCode NON_PART_OF_DIRECTIVE_IN_PART = new ParserErrorCo de.con2('NON_PART_OF_DIRECTIVE_IN_PART', 85, "The part-of directive must be the only directive in a part"); 4873 static final ParserErrorCode NON_PART_OF_DIRECTIVE_IN_PART = new ParserErrorCo de.con2('NON_PART_OF_DIRECTIVE_IN_PART', 85, "The part-of directive must be the only directive in a part");
4867 static final ParserErrorCode NON_USER_DEFINABLE_OPERATOR = new ParserErrorCode .con2('NON_USER_DEFINABLE_OPERATOR', 86, "The operator '%s' is not user definabl e"); 4874 static final ParserErrorCode NON_USER_DEFINABLE_OPERATOR = new ParserErrorCode .con2('NON_USER_DEFINABLE_OPERATOR', 86, "The operator '%s' is not user definabl e");
4868 static final ParserErrorCode POSITIONAL_AFTER_NAMED_ARGUMENT = new ParserError Code.con2('POSITIONAL_AFTER_NAMED_ARGUMENT', 87, "Positional arguments must occu r before named arguments"); 4875 static final ParserErrorCode POSITIONAL_AFTER_NAMED_ARGUMENT = new ParserError Code.con2('POSITIONAL_AFTER_NAMED_ARGUMENT', 87, "Positional arguments must occu r before named arguments");
4869 static final ParserErrorCode POSITIONAL_PARAMETER_OUTSIDE_GROUP = new ParserEr rorCode.con2('POSITIONAL_PARAMETER_OUTSIDE_GROUP', 88, "Positional parameters mu st be enclosed in square brackets ('[' and ']')"); 4876 static final ParserErrorCode POSITIONAL_PARAMETER_OUTSIDE_GROUP = new ParserEr rorCode.con2('POSITIONAL_PARAMETER_OUTSIDE_GROUP', 88, "Positional parameters mu st be enclosed in square brackets ('[' and ']')");
4870 static final ParserErrorCode STATIC_AFTER_CONST = new ParserErrorCode.con2('ST ATIC_AFTER_CONST', 89, "The modifier 'static' should be before the modifier 'con st'"); 4877 static final ParserErrorCode STATIC_AFTER_CONST = new ParserErrorCode.con2('ST ATIC_AFTER_CONST', 89, "The modifier 'static' should be before the modifier 'con st'");
4871 static final ParserErrorCode STATIC_AFTER_FINAL = new ParserErrorCode.con2('ST ATIC_AFTER_FINAL', 90, "The modifier 'static' should be before the modifier 'fin al'"); 4878 static final ParserErrorCode STATIC_AFTER_FINAL = new ParserErrorCode.con2('ST ATIC_AFTER_FINAL', 90, "The modifier 'static' should be before the modifier 'fin al'");
4872 static final ParserErrorCode STATIC_AFTER_VAR = new ParserErrorCode.con2('STAT IC_AFTER_VAR', 91, "The modifier 'static' should be before the modifier 'var'"); 4879 static final ParserErrorCode STATIC_AFTER_VAR = new ParserErrorCode.con2('STAT IC_AFTER_VAR', 91, "The modifier 'static' should be before the modifier 'var'");
4873 static final ParserErrorCode STATIC_CONSTRUCTOR = new ParserErrorCode.con2('ST ATIC_CONSTRUCTOR', 92, "Constructors cannot be static"); 4880 static final ParserErrorCode STATIC_CONSTRUCTOR = new ParserErrorCode.con2('ST ATIC_CONSTRUCTOR', 92, "Constructors cannot be static");
4874 static final ParserErrorCode STATIC_OPERATOR = new ParserErrorCode.con2('STATI C_OPERATOR', 93, "Operators cannot be static"); 4881 static final ParserErrorCode STATIC_OPERATOR = new ParserErrorCode.con2('STATI C_OPERATOR', 93, "Operators cannot be static");
4875 static final ParserErrorCode STATIC_TOP_LEVEL_DECLARATION = new ParserErrorCod e.con2('STATIC_TOP_LEVEL_DECLARATION', 94, "Top-level declarations cannot be dec lared to be 'static'"); 4882 static final ParserErrorCode STATIC_TOP_LEVEL_DECLARATION = new ParserErrorCod e.con2('STATIC_TOP_LEVEL_DECLARATION', 94, "Top-level declarations cannot be dec lared to be 'static'");
4876 static final ParserErrorCode TOP_LEVEL_OPERATOR = new ParserErrorCode.con2('TO P_LEVEL_OPERATOR', 95, "Operators must be declared within a class"); 4883 static final ParserErrorCode SWITCH_HAS_CASE_AFTER_DEFAULT_CASE = new ParserEr rorCode.con2('SWITCH_HAS_CASE_AFTER_DEFAULT_CASE', 95, "The 'default' case shoul d be the last case in a switch statement");
4877 static final ParserErrorCode UNEXPECTED_TERMINATOR_FOR_PARAMETER_GROUP = new P arserErrorCode.con2('UNEXPECTED_TERMINATOR_FOR_PARAMETER_GROUP', 96, "There is n o '%s' to open a parameter group"); 4884 static final ParserErrorCode SWITCH_HAS_MULTIPLE_DEFAULT_CASES = new ParserErr orCode.con2('SWITCH_HAS_MULTIPLE_DEFAULT_CASES', 96, "The 'default' case can onl y be declared once");
4878 static final ParserErrorCode UNEXPECTED_TOKEN = new ParserErrorCode.con2('UNEX PECTED_TOKEN', 97, "Unexpected token '%s'"); 4885 static final ParserErrorCode TOP_LEVEL_OPERATOR = new ParserErrorCode.con2('TO P_LEVEL_OPERATOR', 97, "Operators must be declared within a class");
4879 static final ParserErrorCode USE_OF_UNARY_PLUS_OPERATOR = new ParserErrorCode. con2('USE_OF_UNARY_PLUS_OPERATOR', 98, "There is no unary plus operator in Dart" ); 4886 static final ParserErrorCode UNEXPECTED_TERMINATOR_FOR_PARAMETER_GROUP = new P arserErrorCode.con2('UNEXPECTED_TERMINATOR_FOR_PARAMETER_GROUP', 98, "There is n o '%s' to open a parameter group");
4880 static final ParserErrorCode WITH_BEFORE_EXTENDS = new ParserErrorCode.con2('W ITH_BEFORE_EXTENDS', 99, "The extends clause must be before the with clause"); 4887 static final ParserErrorCode UNEXPECTED_TOKEN = new ParserErrorCode.con2('UNEX PECTED_TOKEN', 99, "Unexpected token '%s'");
4881 static final ParserErrorCode WITH_WITHOUT_EXTENDS = new ParserErrorCode.con2(' WITH_WITHOUT_EXTENDS', 100, "The with clause cannot be used without an extends c lause"); 4888 static final ParserErrorCode USE_OF_UNARY_PLUS_OPERATOR = new ParserErrorCode. con2('USE_OF_UNARY_PLUS_OPERATOR', 100, "There is no unary plus operator in Dart ");
4882 static final ParserErrorCode WRONG_SEPARATOR_FOR_NAMED_PARAMETER = new ParserE rrorCode.con2('WRONG_SEPARATOR_FOR_NAMED_PARAMETER', 101, "The default value of a named parameter should be preceeded by ':'"); 4889 static final ParserErrorCode WITH_BEFORE_EXTENDS = new ParserErrorCode.con2('W ITH_BEFORE_EXTENDS', 101, "The extends clause must be before the with clause");
4883 static final ParserErrorCode WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER = new Pa rserErrorCode.con2('WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER', 102, "The default value of a positional parameter should be preceeded by '='"); 4890 static final ParserErrorCode WITH_WITHOUT_EXTENDS = new ParserErrorCode.con2(' WITH_WITHOUT_EXTENDS', 102, "The with clause cannot be used without an extends c lause");
4884 static final ParserErrorCode WRONG_TERMINATOR_FOR_PARAMETER_GROUP = new Parser ErrorCode.con2('WRONG_TERMINATOR_FOR_PARAMETER_GROUP', 103, "Expected '%s' to cl ose parameter group"); 4891 static final ParserErrorCode WRONG_SEPARATOR_FOR_NAMED_PARAMETER = new ParserE rrorCode.con2('WRONG_SEPARATOR_FOR_NAMED_PARAMETER', 103, "The default value of a named parameter should be preceeded by ':'");
4885 static final ParserErrorCode VAR_CLASS = new ParserErrorCode.con2('VAR_CLASS', 104, "Classes cannot be declared to be 'var'"); 4892 static final ParserErrorCode WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER = new Pa rserErrorCode.con2('WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER', 104, "The default value of a positional parameter should be preceeded by '='");
4886 static final ParserErrorCode VAR_RETURN_TYPE = new ParserErrorCode.con2('VAR_R ETURN_TYPE', 105, "The return type cannot be 'var'"); 4893 static final ParserErrorCode WRONG_TERMINATOR_FOR_PARAMETER_GROUP = new Parser ErrorCode.con2('WRONG_TERMINATOR_FOR_PARAMETER_GROUP', 105, "Expected '%s' to cl ose parameter group");
4887 static final ParserErrorCode VAR_TYPEDEF = new ParserErrorCode.con2('VAR_TYPED EF', 106, "Type aliases cannot be declared to be 'var'"); 4894 static final ParserErrorCode VAR_CLASS = new ParserErrorCode.con2('VAR_CLASS', 106, "Classes cannot be declared to be 'var'");
4888 static final ParserErrorCode VOID_PARAMETER = new ParserErrorCode.con2('VOID_P ARAMETER', 107, "Parameters cannot have a type of 'void'"); 4895 static final ParserErrorCode VAR_RETURN_TYPE = new ParserErrorCode.con2('VAR_R ETURN_TYPE', 107, "The return type cannot be 'var'");
4889 static final ParserErrorCode VOID_VARIABLE = new ParserErrorCode.con2('VOID_VA RIABLE', 108, "Variables cannot have a type of 'void'"); 4896 static final ParserErrorCode VAR_TYPEDEF = new ParserErrorCode.con2('VAR_TYPED EF', 108, "Type aliases cannot be declared to be 'var'");
4890 static final List<ParserErrorCode> values = [ABSTRACT_CLASS_MEMBER, ABSTRACT_S TATIC_METHOD, ABSTRACT_TOP_LEVEL_FUNCTION, ABSTRACT_TOP_LEVEL_VARIABLE, ABSTRACT _TYPEDEF, BREAK_OUTSIDE_OF_LOOP, CONST_AND_FINAL, CONST_AND_VAR, CONST_CLASS, CO NST_METHOD, CONST_TYPEDEF, CONSTRUCTOR_WITH_RETURN_TYPE, CONTINUE_OUTSIDE_OF_LOO P, CONTINUE_WITHOUT_LABEL_IN_CASE, DIRECTIVE_AFTER_DECLARATION, DUPLICATE_LABEL_ IN_SWITCH_STATEMENT, DUPLICATED_MODIFIER, EXPECTED_CASE_OR_DEFAULT, EXPECTED_CLA SS_MEMBER, EXPECTED_EXECUTABLE, EXPECTED_LIST_OR_MAP_LITERAL, EXPECTED_STRING_LI TERAL, EXPECTED_TOKEN, EXPORT_DIRECTIVE_AFTER_PART_DIRECTIVE, EXTERNAL_AFTER_CON ST, EXTERNAL_AFTER_FACTORY, EXTERNAL_AFTER_STATIC, EXTERNAL_CLASS, EXTERNAL_CONS TRUCTOR_WITH_BODY, EXTERNAL_FIELD, EXTERNAL_GETTER_WITH_BODY, EXTERNAL_METHOD_WI TH_BODY, EXTERNAL_OPERATOR_WITH_BODY, EXTERNAL_SETTER_WITH_BODY, EXTERNAL_TYPEDE F, FACTORY_TOP_LEVEL_DECLARATION, FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR, FINAL_A ND_VAR, FINAL_CLASS, FINAL_CONSTRUCTOR, FINAL_METHOD, FINAL_TYPEDEF, GETTER_WITH _PARAMETERS, ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE, IMPLEMENTS_BEFORE_EXTENDS, IM PLEMENTS_BEFORE_WITH, IMPORT_DIRECTIVE_AFTER_PART_DIRECTIVE, INITIALIZED_VARIABL E_IN_FOR_EACH, INVALID_CODE_POINT, INVALID_COMMENT_REFERENCE, INVALID_HEX_ESCAPE , INVALID_OPERATOR, INVALID_OPERATOR_FOR_SUPER, INVALID_UNICODE_ESCAPE, LIBRARY_ DIRECTIVE_NOT_FIRST, MISSING_ASSIGNABLE_SELECTOR, MISSING_CATCH_OR_FINALLY, MISS ING_CLASS_BODY, MISSING_CLOSING_PARENTHESIS, MISSING_CONST_FINAL_VAR_OR_TYPE, MI SSING_EXPRESSION_IN_THROW, MISSING_FUNCTION_BODY, MISSING_FUNCTION_PARAMETERS, M ISSING_IDENTIFIER, MISSING_KEYWORD_OPERATOR, MISSING_NAME_IN_LIBRARY_DIRECTIVE, MISSING_NAME_IN_PART_OF_DIRECTIVE, MISSING_STATEMENT, MISSING_TERMINATOR_FOR_PAR AMETER_GROUP, MISSING_TYPEDEF_PARAMETERS, MISSING_VARIABLE_IN_FOR_EACH, MIXED_PA RAMETER_GROUPS, MULTIPLE_EXTENDS_CLAUSES, MULTIPLE_IMPLEMENTS_CLAUSES, MULTIPLE_ LIBRARY_DIRECTIVES, MULTIPLE_NAMED_PARAMETER_GROUPS, MULTIPLE_PART_OF_DIRECTIVES , MULTIPLE_POSITIONAL_PARAMETER_GROUPS, MULTIPLE_VARIABLES_IN_FOR_EACH, MULTIPLE _WITH_CLAUSES, NAMED_FUNCTION_EXPRESSION, NAMED_PARAMETER_OUTSIDE_GROUP, NATIVE_ FUNCTION_BODY_IN_NON_SDK_CODE, NON_CONSTRUCTOR_FACTORY, NON_IDENTIFIER_LIBRARY_N AME, NON_PART_OF_DIRECTIVE_IN_PART, NON_USER_DEFINABLE_OPERATOR, POSITIONAL_AFTE R_NAMED_ARGUMENT, POSITIONAL_PARAMETER_OUTSIDE_GROUP, STATIC_AFTER_CONST, STATIC _AFTER_FINAL, STATIC_AFTER_VAR, STATIC_CONSTRUCTOR, STATIC_OPERATOR, STATIC_TOP_ LEVEL_DECLARATION, TOP_LEVEL_OPERATOR, UNEXPECTED_TERMINATOR_FOR_PARAMETER_GROUP , UNEXPECTED_TOKEN, USE_OF_UNARY_PLUS_OPERATOR, WITH_BEFORE_EXTENDS, WITH_WITHOU T_EXTENDS, WRONG_SEPARATOR_FOR_NAMED_PARAMETER, WRONG_SEPARATOR_FOR_POSITIONAL_P ARAMETER, WRONG_TERMINATOR_FOR_PARAMETER_GROUP, VAR_CLASS, VAR_RETURN_TYPE, VAR_ TYPEDEF, VOID_PARAMETER, VOID_VARIABLE]; 4897 static final ParserErrorCode VOID_PARAMETER = new ParserErrorCode.con2('VOID_P ARAMETER', 109, "Parameters cannot have a type of 'void'");
4898 static final ParserErrorCode VOID_VARIABLE = new ParserErrorCode.con2('VOID_VA RIABLE', 110, "Variables cannot have a type of 'void'");
4899 static final List<ParserErrorCode> values = [ABSTRACT_CLASS_MEMBER, ABSTRACT_S TATIC_METHOD, ABSTRACT_TOP_LEVEL_FUNCTION, ABSTRACT_TOP_LEVEL_VARIABLE, ABSTRACT _TYPEDEF, BREAK_OUTSIDE_OF_LOOP, CONST_AND_FINAL, CONST_AND_VAR, CONST_CLASS, CO NST_METHOD, CONST_TYPEDEF, CONSTRUCTOR_WITH_RETURN_TYPE, CONTINUE_OUTSIDE_OF_LOO P, CONTINUE_WITHOUT_LABEL_IN_CASE, DIRECTIVE_AFTER_DECLARATION, DUPLICATE_LABEL_ IN_SWITCH_STATEMENT, DUPLICATED_MODIFIER, EXPECTED_CASE_OR_DEFAULT, EXPECTED_CLA SS_MEMBER, EXPECTED_EXECUTABLE, EXPECTED_LIST_OR_MAP_LITERAL, EXPECTED_STRING_LI TERAL, EXPECTED_TOKEN, EXPORT_DIRECTIVE_AFTER_PART_DIRECTIVE, EXTERNAL_AFTER_CON ST, EXTERNAL_AFTER_FACTORY, EXTERNAL_AFTER_STATIC, EXTERNAL_CLASS, EXTERNAL_CONS TRUCTOR_WITH_BODY, EXTERNAL_FIELD, EXTERNAL_GETTER_WITH_BODY, EXTERNAL_METHOD_WI TH_BODY, EXTERNAL_OPERATOR_WITH_BODY, EXTERNAL_SETTER_WITH_BODY, EXTERNAL_TYPEDE F, FACTORY_TOP_LEVEL_DECLARATION, FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR, FINAL_A ND_VAR, FINAL_CLASS, FINAL_CONSTRUCTOR, FINAL_METHOD, FINAL_TYPEDEF, GETTER_WITH _PARAMETERS, ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE, IMPLEMENTS_BEFORE_EXTENDS, IM PLEMENTS_BEFORE_WITH, IMPORT_DIRECTIVE_AFTER_PART_DIRECTIVE, INITIALIZED_VARIABL E_IN_FOR_EACH, INVALID_CODE_POINT, INVALID_COMMENT_REFERENCE, INVALID_HEX_ESCAPE , INVALID_OPERATOR, INVALID_OPERATOR_FOR_SUPER, INVALID_UNICODE_ESCAPE, LIBRARY_ DIRECTIVE_NOT_FIRST, MISSING_ASSIGNABLE_SELECTOR, MISSING_CATCH_OR_FINALLY, MISS ING_CLASS_BODY, MISSING_CLOSING_PARENTHESIS, MISSING_CONST_FINAL_VAR_OR_TYPE, MI SSING_EXPRESSION_IN_THROW, MISSING_FUNCTION_BODY, MISSING_FUNCTION_PARAMETERS, M ISSING_IDENTIFIER, MISSING_KEYWORD_OPERATOR, MISSING_NAME_IN_LIBRARY_DIRECTIVE, MISSING_NAME_IN_PART_OF_DIRECTIVE, MISSING_STATEMENT, MISSING_TERMINATOR_FOR_PAR AMETER_GROUP, MISSING_TYPEDEF_PARAMETERS, MISSING_VARIABLE_IN_FOR_EACH, MIXED_PA RAMETER_GROUPS, MULTIPLE_EXTENDS_CLAUSES, MULTIPLE_IMPLEMENTS_CLAUSES, MULTIPLE_ LIBRARY_DIRECTIVES, MULTIPLE_NAMED_PARAMETER_GROUPS, MULTIPLE_PART_OF_DIRECTIVES , MULTIPLE_POSITIONAL_PARAMETER_GROUPS, MULTIPLE_VARIABLES_IN_FOR_EACH, MULTIPLE _WITH_CLAUSES, NAMED_FUNCTION_EXPRESSION, NAMED_PARAMETER_OUTSIDE_GROUP, NATIVE_ FUNCTION_BODY_IN_NON_SDK_CODE, NON_CONSTRUCTOR_FACTORY, NON_IDENTIFIER_LIBRARY_N AME, NON_PART_OF_DIRECTIVE_IN_PART, NON_USER_DEFINABLE_OPERATOR, POSITIONAL_AFTE R_NAMED_ARGUMENT, POSITIONAL_PARAMETER_OUTSIDE_GROUP, STATIC_AFTER_CONST, STATIC _AFTER_FINAL, STATIC_AFTER_VAR, STATIC_CONSTRUCTOR, STATIC_OPERATOR, STATIC_TOP_ LEVEL_DECLARATION, SWITCH_HAS_CASE_AFTER_DEFAULT_CASE, SWITCH_HAS_MULTIPLE_DEFAU LT_CASES, TOP_LEVEL_OPERATOR, UNEXPECTED_TERMINATOR_FOR_PARAMETER_GROUP, UNEXPEC TED_TOKEN, USE_OF_UNARY_PLUS_OPERATOR, WITH_BEFORE_EXTENDS, WITH_WITHOUT_EXTENDS , WRONG_SEPARATOR_FOR_NAMED_PARAMETER, WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER, WRONG_TERMINATOR_FOR_PARAMETER_GROUP, VAR_CLASS, VAR_RETURN_TYPE, VAR_TYPEDEF, VOID_PARAMETER, VOID_VARIABLE];
4891 String __name; 4900 String __name;
4892 int __ordinal = 0; 4901 int __ordinal = 0;
4893 int get ordinal => __ordinal; 4902 int get ordinal => __ordinal;
4894 /** 4903 /**
4895 * The severity of this error. 4904 * The severity of this error.
4896 */ 4905 */
4897 ErrorSeverity _severity; 4906 ErrorSeverity _severity;
4898 /** 4907 /**
4899 * The message template used to create the message to be displayed for this er ror. 4908 * The message template used to create the message to be displayed for this er ror.
4900 */ 4909 */
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
5525 _writer.print("this"); 5534 _writer.print("this");
5526 visit7(".", node.constructorName); 5535 visit7(".", node.constructorName);
5527 visit(node.argumentList); 5536 visit(node.argumentList);
5528 return null; 5537 return null;
5529 } 5538 }
5530 Object visitRethrowExpression(RethrowExpression node) { 5539 Object visitRethrowExpression(RethrowExpression node) {
5531 _writer.print("rethrow"); 5540 _writer.print("rethrow");
5532 return null; 5541 return null;
5533 } 5542 }
5534 Object visitReturnStatement(ReturnStatement node) { 5543 Object visitReturnStatement(ReturnStatement node) {
5535 Expression expression17 = node.expression; 5544 Expression expression18 = node.expression;
5536 if (expression17 == null) { 5545 if (expression18 == null) {
5537 _writer.print("return;"); 5546 _writer.print("return;");
5538 } else { 5547 } else {
5539 _writer.print("return "); 5548 _writer.print("return ");
5540 expression17.accept(this); 5549 expression18.accept(this);
5541 _writer.print(";"); 5550 _writer.print(";");
5542 } 5551 }
5543 return null; 5552 return null;
5544 } 5553 }
5545 Object visitScriptTag(ScriptTag node) { 5554 Object visitScriptTag(ScriptTag node) {
5546 _writer.print(node.scriptTag.lexeme); 5555 _writer.print(node.scriptTag.lexeme);
5547 return null; 5556 return null;
5548 } 5557 }
5549 Object visitShowCombinator(ShowCombinator node) { 5558 Object visitShowCombinator(ShowCombinator node) {
5550 _writer.print("show "); 5559 _writer.print("show ");
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
5806 for (int i = 0; i < size11; i++) { 5815 for (int i = 0; i < size11; i++) {
5807 if (i > 0) { 5816 if (i > 0) {
5808 _writer.print(separator); 5817 _writer.print(separator);
5809 } 5818 }
5810 nodes[i].accept(this); 5819 nodes[i].accept(this);
5811 } 5820 }
5812 } 5821 }
5813 } 5822 }
5814 } 5823 }
5815 } 5824 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698