| OLD | NEW |
| 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 'error.dart'; | 9 import 'error.dart'; |
| 10 import 'source.dart'; | 10 import 'source.dart'; |
| (...skipping 4748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4759 /** | 4759 /** |
| 4760 * The message template used to create the message to be displayed for this er
ror. | 4760 * The message template used to create the message to be displayed for this er
ror. |
| 4761 */ | 4761 */ |
| 4762 String _message; | 4762 String _message; |
| 4763 /** | 4763 /** |
| 4764 * Initialize a newly created error code to have the given severity and messag
e. | 4764 * Initialize a newly created error code to have the given severity and messag
e. |
| 4765 * @param severity the severity of the error | 4765 * @param severity the severity of the error |
| 4766 * @param message the message template used to create the message to be displa
yed for the error | 4766 * @param message the message template used to create the message to be displa
yed for the error |
| 4767 */ | 4767 */ |
| 4768 ParserErrorCode.con1(String ___name, int ___ordinal, ErrorSeverity severity2,
String message2) { | 4768 ParserErrorCode.con1(String ___name, int ___ordinal, ErrorSeverity severity2,
String message2) { |
| 4769 _jtd_constructor_269_impl(___name, ___ordinal, severity2, message2); | 4769 _jtd_constructor_271_impl(___name, ___ordinal, severity2, message2); |
| 4770 } | 4770 } |
| 4771 _jtd_constructor_269_impl(String ___name, int ___ordinal, ErrorSeverity severi
ty2, String message2) { | 4771 _jtd_constructor_271_impl(String ___name, int ___ordinal, ErrorSeverity severi
ty2, String message2) { |
| 4772 __name = ___name; | 4772 __name = ___name; |
| 4773 __ordinal = ___ordinal; | 4773 __ordinal = ___ordinal; |
| 4774 this._severity = severity2; | 4774 this._severity = severity2; |
| 4775 this._message = message2; | 4775 this._message = message2; |
| 4776 } | 4776 } |
| 4777 /** | 4777 /** |
| 4778 * Initialize a newly created error code to have the given message and a sever
ity of ERROR. | 4778 * Initialize a newly created error code to have the given message and a sever
ity of ERROR. |
| 4779 * @param message the message template used to create the message to be displa
yed for the error | 4779 * @param message the message template used to create the message to be displa
yed for the error |
| 4780 */ | 4780 */ |
| 4781 ParserErrorCode.con2(String ___name, int ___ordinal, String message) { | 4781 ParserErrorCode.con2(String ___name, int ___ordinal, String message) { |
| 4782 _jtd_constructor_270_impl(___name, ___ordinal, message); | 4782 _jtd_constructor_272_impl(___name, ___ordinal, message); |
| 4783 } | 4783 } |
| 4784 _jtd_constructor_270_impl(String ___name, int ___ordinal, String message) { | 4784 _jtd_constructor_272_impl(String ___name, int ___ordinal, String message) { |
| 4785 _jtd_constructor_269_impl(___name, ___ordinal, ErrorSeverity.ERROR, message)
; | 4785 _jtd_constructor_271_impl(___name, ___ordinal, ErrorSeverity.ERROR, message)
; |
| 4786 } | 4786 } |
| 4787 ErrorSeverity get errorSeverity => _severity; | 4787 ErrorSeverity get errorSeverity => _severity; |
| 4788 String get message => _message; | 4788 String get message => _message; |
| 4789 ErrorType get type => ErrorType.SYNTACTIC_ERROR; | 4789 ErrorType get type => ErrorType.SYNTACTIC_ERROR; |
| 4790 bool needsRecompilation() => true; | 4790 bool needsRecompilation() => true; |
| 4791 String toString() => __name; | 4791 String toString() => __name; |
| 4792 } | 4792 } |
| 4793 /** | 4793 /** |
| 4794 * Instances of the class {link ToFormattedSourceVisitor} write a source represe
ntation of a visited | 4794 * Instances of the class {link ToFormattedSourceVisitor} write a source represe
ntation of a visited |
| 4795 * AST node (and all of it's children) to a writer. | 4795 * AST node (and all of it's children) to a writer. |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5090 visit(node.loopVariable); | 5090 visit(node.loopVariable); |
| 5091 _writer.print(" in "); | 5091 _writer.print(" in "); |
| 5092 visit(node.iterator); | 5092 visit(node.iterator); |
| 5093 _writer.print(") "); | 5093 _writer.print(") "); |
| 5094 visit(node.body); | 5094 visit(node.body); |
| 5095 return null; | 5095 return null; |
| 5096 } | 5096 } |
| 5097 Object visitFormalParameterList(FormalParameterList node) { | 5097 Object visitFormalParameterList(FormalParameterList node) { |
| 5098 String groupEnd = null; | 5098 String groupEnd = null; |
| 5099 _writer.print('('); | 5099 _writer.print('('); |
| 5100 NodeList<FormalParameter> parameters13 = node.parameters; | 5100 NodeList<FormalParameter> parameters14 = node.parameters; |
| 5101 int size7 = parameters13.length; | 5101 int size7 = parameters14.length; |
| 5102 for (int i = 0; i < size7; i++) { | 5102 for (int i = 0; i < size7; i++) { |
| 5103 FormalParameter parameter = parameters13[i]; | 5103 FormalParameter parameter = parameters14[i]; |
| 5104 if (i > 0) { | 5104 if (i > 0) { |
| 5105 _writer.print(", "); | 5105 _writer.print(", "); |
| 5106 } | 5106 } |
| 5107 if (groupEnd == null && parameter is DefaultFormalParameter) { | 5107 if (groupEnd == null && parameter is DefaultFormalParameter) { |
| 5108 if (identical(parameter.kind, ParameterKind.NAMED)) { | 5108 if (identical(parameter.kind, ParameterKind.NAMED)) { |
| 5109 groupEnd = "}"; | 5109 groupEnd = "}"; |
| 5110 _writer.print('{'); | 5110 _writer.print('{'); |
| 5111 } else { | 5111 } else { |
| 5112 groupEnd = "]"; | 5112 groupEnd = "]"; |
| 5113 _writer.print('['); | 5113 _writer.print('['); |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5656 for (int i = 0; i < size10; i++) { | 5656 for (int i = 0; i < size10; i++) { |
| 5657 if (i > 0) { | 5657 if (i > 0) { |
| 5658 _writer.print(separator); | 5658 _writer.print(separator); |
| 5659 } | 5659 } |
| 5660 nodes[i].accept(this); | 5660 nodes[i].accept(this); |
| 5661 } | 5661 } |
| 5662 } | 5662 } |
| 5663 } | 5663 } |
| 5664 } | 5664 } |
| 5665 } | 5665 } |
| OLD | NEW |