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

Unified Diff: pkg/analyzer/lib/dart/ast/ast_factory.dart

Issue 2726943002: Mark not-optional-parameters methods of AstFactory as deprecated. (Closed)
Patch Set: Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/testing/ast_test_factory.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/dart/ast/ast_factory.dart
diff --git a/pkg/analyzer/lib/dart/ast/ast_factory.dart b/pkg/analyzer/lib/dart/ast/ast_factory.dart
index a713a92ed2a7c4008e871a312bdf39dbb860d4de..40a583076246cfa65513429339c5073d619eec8c 100644
--- a/pkg/analyzer/lib/dart/ast/ast_factory.dart
+++ b/pkg/analyzer/lib/dart/ast/ast_factory.dart
@@ -83,6 +83,7 @@ abstract class AstFactory {
*/
BinaryExpression binaryExpression(
Expression leftOperand, Token operator, Expression rightOperand);
+
/**
* Returns a newly created block of code.
*/
@@ -407,7 +408,10 @@ abstract class AstFactory {
* [comment] and [metadata] can be `null` if the declaration does not have the
* corresponding attribute. The [staticKeyword] can be `null` if the field is
* not a static field.
+ *
+ * Use [fieldDeclaration2] instead.
*/
+ @deprecated
FieldDeclaration fieldDeclaration(Comment comment, List<Annotation> metadata,
Token staticKeyword, VariableDeclarationList fieldList, Token semicolon);
@@ -433,7 +437,10 @@ abstract class AstFactory {
* [period] can be `null` if the keyword 'this' was not provided. The
* [parameters] can be `null` if this is not a function-typed field formal
* parameter.
+ *
+ * Use [fieldFormalParameter2] instead.
*/
+ @deprecated
FieldFormalParameter fieldFormalParameter(
Comment comment,
List<Annotation> metadata,
@@ -583,7 +590,10 @@ abstract class AstFactory {
* [comment] and [metadata] can be `null` if the parameter does not have the
* corresponding attribute. The [returnType] can be `null` if no return type
* was specified.
+ *
+ * Use [functionTypedFormalParameter2] instead.
*/
+ @deprecated
FunctionTypedFormalParameter functionTypedFormalParameter(
Comment comment,
List<Annotation> metadata,
@@ -921,7 +931,10 @@ abstract class AstFactory {
* [comment] and [metadata] can be `null` if the parameter does not have the
* corresponding attribute. The [keyword] can be `null` if a type was
* specified. The [type] must be `null` if the keyword is 'var'.
+ *
+ * Use [simpleFormalParameter2] instead.
*/
+ @deprecated
SimpleFormalParameter simpleFormalParameter(
Comment comment,
List<Annotation> metadata,
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/testing/ast_test_factory.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698