| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.parser; | 8 library engine.parser; |
| 9 | 9 |
| 10 import 'java_core.dart'; | 10 import 'java_core.dart'; |
| 11 import 'java_engine.dart'; | 11 import 'java_engine.dart'; |
| 12 import 'instrumentation.dart'; | 12 import 'instrumentation.dart'; |
| 13 import 'error.dart'; | 13 import 'error.dart'; |
| 14 import 'source.dart'; | 14 import 'source.dart'; |
| 15 import 'scanner.dart'; | 15 import 'scanner.dart'; |
| 16 import 'ast.dart'; | 16 import 'ast.dart'; |
| 17 import 'utilities_dart.dart'; | 17 import 'utilities_dart.dart'; |
| 18 import 'engine.dart' show AnalysisEngine; | 18 import 'engine.dart' show AnalysisEngine; |
| 19 import 'utilities_collection.dart' show TokenMap; | 19 import 'utilities_collection.dart' show TokenMap; |
| 20 | 20 |
| 21 /** | 21 /** |
| 22 * Instances of the class `CommentAndMetadata` implement a simple data-holder fo
r a method | 22 * Instances of the class `CommentAndMetadata` implement a simple data-holder fo
r a method |
| 23 * that needs to return multiple values. | 23 * that needs to return multiple values. |
| 24 */ | 24 */ |
| 25 class CommentAndMetadata { | 25 class CommentAndMetadata { |
| 26 /** | 26 /** |
| 27 * The documentation comment that was parsed, or `null` if none was given. | 27 * The documentation comment that was parsed, or `null` if none was given. |
| 28 */ | 28 */ |
| 29 final Comment comment; | 29 Comment comment; |
| 30 | 30 |
| 31 /** | 31 /** |
| 32 * The metadata that was parsed. | 32 * The metadata that was parsed. |
| 33 */ | 33 */ |
| 34 final List<Annotation> metadata; | 34 List<Annotation> metadata; |
| 35 | 35 |
| 36 /** | 36 /** |
| 37 * Initialize a newly created holder with the given data. | 37 * Initialize a newly created holder with the given data. |
| 38 * | 38 * |
| 39 * @param comment the documentation comment that was parsed | 39 * @param comment the documentation comment that was parsed |
| 40 * @param metadata the metadata that was parsed | 40 * @param metadata the metadata that was parsed |
| 41 */ | 41 */ |
| 42 CommentAndMetadata(this.comment, this.metadata); | 42 CommentAndMetadata(Comment comment, List<Annotation> metadata) { |
| 43 this.comment = comment; |
| 44 this.metadata = metadata; |
| 45 } |
| 43 } | 46 } |
| 44 | 47 |
| 45 /** | 48 /** |
| 46 * Instances of the class `FinalConstVarOrType` implement a simple data-holder f
or a method | 49 * Instances of the class `FinalConstVarOrType` implement a simple data-holder f
or a method |
| 47 * that needs to return multiple values. | 50 * that needs to return multiple values. |
| 48 */ | 51 */ |
| 49 class FinalConstVarOrType { | 52 class FinalConstVarOrType { |
| 50 /** | 53 /** |
| 51 * The 'final', 'const' or 'var' keyword, or `null` if none was given. | 54 * The 'final', 'const' or 'var' keyword, or `null` if none was given. |
| 52 */ | 55 */ |
| 53 final Token keyword; | 56 Token keyword; |
| 54 | 57 |
| 55 /** | 58 /** |
| 56 * The type, of `null` if no type was specified. | 59 * The type, of `null` if no type was specified. |
| 57 */ | 60 */ |
| 58 final TypeName type; | 61 TypeName type; |
| 59 | 62 |
| 60 /** | 63 /** |
| 61 * Initialize a newly created holder with the given data. | 64 * Initialize a newly created holder with the given data. |
| 62 * | 65 * |
| 63 * @param keyword the 'final', 'const' or 'var' keyword | 66 * @param keyword the 'final', 'const' or 'var' keyword |
| 64 * @param type the type | 67 * @param type the type |
| 65 */ | 68 */ |
| 66 FinalConstVarOrType(this.keyword, this.type); | 69 FinalConstVarOrType(Token keyword, TypeName type) { |
| 70 this.keyword = keyword; |
| 71 this.type = type; |
| 72 } |
| 67 } | 73 } |
| 68 | 74 |
| 69 /** | 75 /** |
| 70 * Instances of the class `Modifiers` implement a simple data-holder for a metho
d that needs | 76 * Instances of the class `Modifiers` implement a simple data-holder for a metho
d that needs |
| 71 * to return multiple values. | 77 * to return multiple values. |
| 72 */ | 78 */ |
| 73 class Modifiers { | 79 class Modifiers { |
| 74 /** | 80 /** |
| 75 * The token representing the keyword 'abstract', or `null` if the keyword was
not found. | 81 * The token representing the keyword 'abstract', or `null` if the keyword was
not found. |
| 76 */ | 82 */ |
| (...skipping 8911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8988 return trampoline(target, arguments[0], arguments[1]); | 8994 return trampoline(target, arguments[0], arguments[1]); |
| 8989 case 3: | 8995 case 3: |
| 8990 return trampoline(target, arguments[0], arguments[1], arguments[2]); | 8996 return trampoline(target, arguments[0], arguments[1], arguments[2]); |
| 8991 case 4: | 8997 case 4: |
| 8992 return trampoline(target, arguments[0], arguments[1], arguments[2], argu
ments[3]); | 8998 return trampoline(target, arguments[0], arguments[1], arguments[2], argu
ments[3]); |
| 8993 default: | 8999 default: |
| 8994 throw new IllegalArgumentException("Not implemented for > 4 arguments"); | 9000 throw new IllegalArgumentException("Not implemented for > 4 arguments"); |
| 8995 } | 9001 } |
| 8996 } | 9002 } |
| 8997 } | 9003 } |
| OLD | NEW |