OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 import 'package:analyzer/dart/ast/ast.dart'; | 5 import 'package:analyzer/dart/ast/ast.dart'; |
6 import 'package:analyzer/src/generated/utilities_dart.dart'; | 6 import 'package:analyzer/src/generated/utilities_dart.dart'; |
7 import 'package:front_end/src/scanner/token.dart'; | 7 import 'package:front_end/src/scanner/token.dart'; |
8 import 'package:meta/meta.dart'; | 8 import 'package:meta/meta.dart'; |
9 | 9 |
10 /** | 10 /** |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 /** | 405 /** |
406 * Returns a newly created field declaration. Either or both of the | 406 * Returns a newly created field declaration. Either or both of the |
407 * [comment] and [metadata] can be `null` if the declaration does not have the | 407 * [comment] and [metadata] can be `null` if the declaration does not have the |
408 * corresponding attribute. The [staticKeyword] can be `null` if the field is | 408 * corresponding attribute. The [staticKeyword] can be `null` if the field is |
409 * not a static field. | 409 * not a static field. |
410 */ | 410 */ |
411 FieldDeclaration fieldDeclaration(Comment comment, List<Annotation> metadata, | 411 FieldDeclaration fieldDeclaration(Comment comment, List<Annotation> metadata, |
412 Token staticKeyword, VariableDeclarationList fieldList, Token semicolon); | 412 Token staticKeyword, VariableDeclarationList fieldList, Token semicolon); |
413 | 413 |
414 /** | 414 /** |
| 415 * Returns a newly created field declaration. Either or both of the |
| 416 * [comment] and [metadata] can be `null` if the declaration does not have the |
| 417 * corresponding attribute. The [staticKeyword] can be `null` if the field is |
| 418 * not a static field. |
| 419 */ |
| 420 FieldDeclaration fieldDeclaration2( |
| 421 {Comment comment, |
| 422 List<Annotation> metadata, |
| 423 Token covariantKeyword, |
| 424 Token staticKeyword, |
| 425 @required VariableDeclarationList fieldList, |
| 426 @required Token semicolon}); |
| 427 |
| 428 /** |
415 * Returns a newly created formal parameter. Either or both of the | 429 * Returns a newly created formal parameter. Either or both of the |
416 * [comment] and [metadata] can be `null` if the parameter does not have the | 430 * [comment] and [metadata] can be `null` if the parameter does not have the |
417 * corresponding attribute. The [keyword] can be `null` if there is a type. | 431 * corresponding attribute. The [keyword] can be `null` if there is a type. |
418 * The [type] must be `null` if the keyword is 'var'. The [thisKeyword] and | 432 * The [type] must be `null` if the keyword is 'var'. The [thisKeyword] and |
419 * [period] can be `null` if the keyword 'this' was not provided. The | 433 * [period] can be `null` if the keyword 'this' was not provided. The |
420 * [parameters] can be `null` if this is not a function-typed field formal | 434 * [parameters] can be `null` if this is not a function-typed field formal |
421 * parameter. | 435 * parameter. |
422 */ | 436 */ |
423 FieldFormalParameter fieldFormalParameter( | 437 FieldFormalParameter fieldFormalParameter( |
424 Comment comment, | 438 Comment comment, |
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1087 */ | 1101 */ |
1088 WithClause withClause(Token withKeyword, List<TypeName> mixinTypes); | 1102 WithClause withClause(Token withKeyword, List<TypeName> mixinTypes); |
1089 | 1103 |
1090 /** | 1104 /** |
1091 * Returns a newly created yield expression. The [star] can be `null` if no | 1105 * Returns a newly created yield expression. The [star] can be `null` if no |
1092 * star was provided. | 1106 * star was provided. |
1093 */ | 1107 */ |
1094 YieldStatement yieldStatement( | 1108 YieldStatement yieldStatement( |
1095 Token yieldKeyword, Token star, Expression expression, Token semicolon); | 1109 Token yieldKeyword, Token star, Expression expression, Token semicolon); |
1096 } | 1110 } |
OLD | NEW |