diff --git a/analysis_options.yaml b/analysis_options.yaml index 6f2cc683db..4240030212 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -18,6 +18,7 @@ linter: rules: - always_declare_return_types - always_put_required_named_parameters_first + - analyzer_use_new_elements - avoid_bool_literals_in_conditional_expressions - avoid_catching_errors - avoid_dynamic_calls diff --git a/analyzer_use_new_elements.txt b/analyzer_use_new_elements.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/src/dartdoc_options.dart b/lib/src/dartdoc_options.dart index e6852a8569..7f35160017 100644 --- a/lib/src/dartdoc_options.dart +++ b/lib/src/dartdoc_options.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + /// dartdoc's dartdoc_options.yaml configuration file follows similar loading /// semantics to that of analysis_options.yaml, /// [documented here](https://dart.dev/guides/language/analysis-options). diff --git a/lib/src/element_type.dart b/lib/src/element_type.dart index c38fbb26a7..232f32b757 100644 --- a/lib/src/element_type.dart +++ b/lib/src/element_type.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + /// The models used to represent Dart types, all subclasses of [ElementType]. /// /// The only entrypoint for constructing these classes is [ElementType.for_]. diff --git a/lib/src/generator/generator_frontend.dart b/lib/src/generator/generator_frontend.dart index ea6f9eeb95..33c95b847f 100644 --- a/lib/src/generator/generator_frontend.dart +++ b/lib/src/generator/generator_frontend.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:dartdoc/src/generator/generator.dart'; import 'package:dartdoc/src/generator/generator_backend.dart'; import 'package:dartdoc/src/generator/templates.dart'; diff --git a/lib/src/generator/templates.aot_renderers_for_html.dart b/lib/src/generator/templates.aot_renderers_for_html.dart index 5ac70d1bd7..497f964b90 100644 --- a/lib/src/generator/templates.aot_renderers_for_html.dart +++ b/lib/src/generator/templates.aot_renderers_for_html.dart @@ -12,6 +12,8 @@ // ignore_for_file: unused_local_variable // ignore_for_file: non_constant_identifier_names, unnecessary_string_escapes +// ignore_for_file: analyzer_use_new_elements + import 'dart:convert'; import 'package:dartdoc/src/generator/template_data.dart'; diff --git a/lib/src/generator/templates.runtime_renderers.dart b/lib/src/generator/templates.runtime_renderers.dart index 40cbbc516c..3a1de0e463 100644 --- a/lib/src/generator/templates.runtime_renderers.dart +++ b/lib/src/generator/templates.runtime_renderers.dart @@ -7,6 +7,9 @@ // ignore_for_file: non_constant_identifier_names, unnecessary_string_escapes // ignore_for_file: unused_import // ignore_for_file: use_super_parameters + +// ignore_for_file: analyzer_use_new_elements + import 'package:dartdoc/src/element_type.dart'; import 'package:dartdoc/src/generator/template_data.dart'; import 'package:dartdoc/src/model/annotation.dart'; diff --git a/lib/src/model/accessor.dart b/lib/src/model/accessor.dart index dcd16ea9dd..c35ffe6452 100644 --- a/lib/src/model/accessor.dart +++ b/lib/src/model/accessor.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'dart:convert'; import 'package:analyzer/dart/element/element.dart'; diff --git a/lib/src/model/annotation.dart b/lib/src/model/annotation.dart index d239fc2f7a..c1fab31341 100644 --- a/lib/src/model/annotation.dart +++ b/lib/src/model/annotation.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'dart:convert'; import 'package:analyzer/dart/element/element.dart'; diff --git a/lib/src/model/canonicalization.dart b/lib/src/model/canonicalization.dart index 157c88352e..806171a474 100644 --- a/lib/src/model/canonicalization.dart +++ b/lib/src/model/canonicalization.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:analyzer/dart/element/element.dart'; import 'package:dartdoc/src/model/model.dart'; import 'package:dartdoc/src/warnings.dart'; diff --git a/lib/src/model/category.dart b/lib/src/model/category.dart index 415d505ccb..6d903dcc48 100644 --- a/lib/src/model/category.dart +++ b/lib/src/model/category.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/file_system/file_system.dart'; import 'package:dartdoc/src/dartdoc_options.dart'; diff --git a/lib/src/model/class.dart b/lib/src/model/class.dart index 0b65fcf66e..35df2157e5 100644 --- a/lib/src/model/class.dart +++ b/lib/src/model/class.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:analyzer/dart/element/element.dart'; import 'package:dartdoc/src/model/kind.dart'; import 'package:dartdoc/src/model/model.dart'; diff --git a/lib/src/model/comment_referable.dart b/lib/src/model/comment_referable.dart index a0c7ecd17c..e759c4caae 100644 --- a/lib/src/model/comment_referable.dart +++ b/lib/src/model/comment_referable.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + /// Code for managing comment reference lookups in dartdoc. library; diff --git a/lib/src/model/constructor.dart b/lib/src/model/constructor.dart index 72e64e7590..74b391b2b7 100644 --- a/lib/src/model/constructor.dart +++ b/lib/src/model/constructor.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/source/line_info.dart'; import 'package:dartdoc/src/element_type.dart'; diff --git a/lib/src/model/container.dart b/lib/src/model/container.dart index 950ec2d6fe..7e6040535e 100644 --- a/lib/src/model/container.dart +++ b/lib/src/model/container.dart @@ -1,6 +1,7 @@ // Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/dart/element/scope.dart'; diff --git a/lib/src/model/container_member.dart b/lib/src/model/container_member.dart index 773198b17e..069df997d5 100644 --- a/lib/src/model/container_member.dart +++ b/lib/src/model/container_member.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:dartdoc/src/model/attribute.dart'; import 'package:dartdoc/src/model/model.dart'; import 'package:meta/meta.dart'; diff --git a/lib/src/model/documentation.dart b/lib/src/model/documentation.dart index c9bece4bbe..516fa54d10 100644 --- a/lib/src/model/documentation.dart +++ b/lib/src/model/documentation.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:dartdoc/src/markdown_processor.dart'; import 'package:dartdoc/src/render/documentation_renderer.dart'; import 'package:dartdoc/src/warnings.dart'; diff --git a/lib/src/model/documentation_comment.dart b/lib/src/model/documentation_comment.dart index e09d81c624..a486cf06d4 100644 --- a/lib/src/model/documentation_comment.dart +++ b/lib/src/model/documentation_comment.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + /// @docImport 'package:dartdoc/src/model/package_graph.dart'; library; diff --git a/lib/src/model/dynamic.dart b/lib/src/model/dynamic.dart index 5593aeb769..0036f8b3fd 100644 --- a/lib/src/model/dynamic.dart +++ b/lib/src/model/dynamic.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:analyzer/dart/element/element.dart'; import 'package:dartdoc/src/element_type.dart'; import 'package:dartdoc/src/model/comment_referable.dart'; diff --git a/lib/src/model/enum.dart b/lib/src/model/enum.dart index b34dfefe52..494cf13e2a 100644 --- a/lib/src/model/enum.dart +++ b/lib/src/model/enum.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:analyzer/dart/analysis/features.dart'; import 'package:analyzer/dart/element/element.dart'; import 'package:dartdoc/src/model/kind.dart'; diff --git a/lib/src/model/extension.dart b/lib/src/model/extension.dart index 34c68fe6e7..16129adea7 100644 --- a/lib/src/model/extension.dart +++ b/lib/src/model/extension.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/dart/element/nullability_suffix.dart'; import 'package:analyzer/dart/element/type.dart'; diff --git a/lib/src/model/extension_type.dart b/lib/src/model/extension_type.dart index 0d1b78c7f6..e9cb80443e 100644 --- a/lib/src/model/extension_type.dart +++ b/lib/src/model/extension_type.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:analyzer/dart/element/element.dart'; import 'package:dartdoc/src/element_type.dart'; import 'package:dartdoc/src/model/comment_referable.dart'; diff --git a/lib/src/model/field.dart b/lib/src/model/field.dart index 7fa0185e62..942facd905 100644 --- a/lib/src/model/field.dart +++ b/lib/src/model/field.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'dart:convert'; import 'package:analyzer/dart/element/element.dart'; diff --git a/lib/src/model/getter_setter_combo.dart b/lib/src/model/getter_setter_combo.dart index cbff0210f3..bfe3ac9495 100644 --- a/lib/src/model/getter_setter_combo.dart +++ b/lib/src/model/getter_setter_combo.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'dart:convert'; import 'package:analyzer/dart/ast/ast.dart' diff --git a/lib/src/model/inheritable.dart b/lib/src/model/inheritable.dart index a51840454d..3a55647aa3 100644 --- a/lib/src/model/inheritable.dart +++ b/lib/src/model/inheritable.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:analyzer/dart/element/element.dart'; import 'package:collection/collection.dart' show IterableExtension; import 'package:dartdoc/src/model/attribute.dart'; diff --git a/lib/src/model/inheriting_container.dart b/lib/src/model/inheriting_container.dart index 42104927b9..fc4a7e96c9 100644 --- a/lib/src/model/inheriting_container.dart +++ b/lib/src/model/inheriting_container.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/dart/element/type.dart'; import 'package:collection/collection.dart' show IterableExtension; diff --git a/lib/src/model/library.dart b/lib/src/model/library.dart index 77ee8123e3..f997a935b1 100644 --- a/lib/src/model/library.dart +++ b/lib/src/model/library.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:analyzer/dart/analysis/features.dart'; import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/dart/element/scope.dart'; diff --git a/lib/src/model/locatable.dart b/lib/src/model/locatable.dart index f1cdca5cab..e0912dbbe9 100644 --- a/lib/src/model/locatable.dart +++ b/lib/src/model/locatable.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:analyzer/dart/element/element.dart' show Element; import 'package:dartdoc/src/model/model.dart'; diff --git a/lib/src/model/method.dart b/lib/src/model/method.dart index 4d1912c6f3..2efddfc692 100644 --- a/lib/src/model/method.dart +++ b/lib/src/model/method.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/source/line_info.dart'; // ignore: implementation_imports diff --git a/lib/src/model/mixin.dart b/lib/src/model/mixin.dart index 5495d9cb06..097a34f001 100644 --- a/lib/src/model/mixin.dart +++ b/lib/src/model/mixin.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/dart/element/type.dart'; import 'package:dartdoc/src/element_type.dart'; diff --git a/lib/src/model/model_element.dart b/lib/src/model/model_element.dart index d14de0fade..35c91acdf5 100644 --- a/lib/src/model/model_element.dart +++ b/lib/src/model/model_element.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + /// The models used to represent Dart code. library; diff --git a/lib/src/model/model_function.dart b/lib/src/model/model_function.dart index d8c090f095..cc5556c157 100644 --- a/lib/src/model/model_function.dart +++ b/lib/src/model/model_function.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:analyzer/dart/element/element.dart'; import 'package:dartdoc/src/element_type.dart'; import 'package:dartdoc/src/model/comment_referable.dart'; diff --git a/lib/src/model/model_node.dart b/lib/src/model/model_node.dart index b21db3f50a..8bcdee2501 100644 --- a/lib/src/model/model_node.dart +++ b/lib/src/model/model_node.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'dart:convert'; import 'package:analyzer/dart/analysis/analysis_context.dart'; diff --git a/lib/src/model/nameable.dart b/lib/src/model/nameable.dart index 2daffabb6b..30895da047 100644 --- a/lib/src/model/nameable.dart +++ b/lib/src/model/nameable.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/dart/element/type.dart' show DartType; import 'package:collection/collection.dart'; diff --git a/lib/src/model/never.dart b/lib/src/model/never.dart index 742bb0d8ec..8dd01a1e8e 100644 --- a/lib/src/model/never.dart +++ b/lib/src/model/never.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:analyzer/dart/element/element.dart'; import 'package:dartdoc/src/model/comment_referable.dart'; import 'package:dartdoc/src/model/kind.dart'; diff --git a/lib/src/model/package.dart b/lib/src/model/package.dart index 924bf0b48b..ca702725be 100644 --- a/lib/src/model/package.dart +++ b/lib/src/model/package.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:analyzer/dart/element/element.dart'; import 'package:dartdoc/src/dartdoc_options.dart'; import 'package:dartdoc/src/io_utils.dart'; diff --git a/lib/src/model/package_builder.dart b/lib/src/model/package_builder.dart index a536c8ce26..7adcbcc686 100644 --- a/lib/src/model/package_builder.dart +++ b/lib/src/model/package_builder.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'dart:async'; import 'package:analyzer/dart/analysis/analysis_context.dart'; diff --git a/lib/src/model/package_graph.dart b/lib/src/model/package_graph.dart index f86ce3f155..6e2912417f 100644 --- a/lib/src/model/package_graph.dart +++ b/lib/src/model/package_graph.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'dart:collection'; import 'package:analyzer/dart/analysis/analysis_context.dart'; diff --git a/lib/src/model/parameter.dart b/lib/src/model/parameter.dart index 146cfda602..c1b4987fac 100644 --- a/lib/src/model/parameter.dart +++ b/lib/src/model/parameter.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:analyzer/dart/element/element.dart'; // ignore: implementation_imports import 'package:analyzer/src/dart/element/member.dart' show ParameterMember; diff --git a/lib/src/model/prefix.dart b/lib/src/model/prefix.dart index 7a8a198c5f..2033dc4270 100644 --- a/lib/src/model/prefix.dart +++ b/lib/src/model/prefix.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/dart/element/scope.dart'; import 'package:dartdoc/src/model/comment_referable.dart'; diff --git a/lib/src/model/source_code_mixin.dart b/lib/src/model/source_code_mixin.dart index eafd92bfeb..30d99571af 100644 --- a/lib/src/model/source_code_mixin.dart +++ b/lib/src/model/source_code_mixin.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/source/line_info.dart'; import 'package:dartdoc/src/model/model.dart'; diff --git a/lib/src/model/top_level_variable.dart b/lib/src/model/top_level_variable.dart index 1ca150805f..8d8eadf07b 100644 --- a/lib/src/model/top_level_variable.dart +++ b/lib/src/model/top_level_variable.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:analyzer/dart/element/element.dart'; import 'package:dartdoc/src/model/attribute.dart'; import 'package:dartdoc/src/model/comment_referable.dart'; diff --git a/lib/src/model/type_parameter.dart b/lib/src/model/type_parameter.dart index 93a41d10fb..cec86566d0 100644 --- a/lib/src/model/type_parameter.dart +++ b/lib/src/model/type_parameter.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:analyzer/dart/element/element.dart'; import 'package:dartdoc/src/element_type.dart'; import 'package:dartdoc/src/model/comment_referable.dart'; diff --git a/lib/src/model/typedef.dart b/lib/src/model/typedef.dart index ccd855ffc2..fd1173d7d7 100644 --- a/lib/src/model/typedef.dart +++ b/lib/src/model/typedef.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/dart/element/type.dart'; import 'package:dartdoc/src/element_type.dart'; diff --git a/lib/src/model_utils.dart b/lib/src/model_utils.dart index 842b085436..eb1448e949 100644 --- a/lib/src/model_utils.dart +++ b/lib/src/model_utils.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'dart:io' show Platform; import 'package:analyzer/dart/element/element.dart'; diff --git a/lib/src/mustachio/annotations.dart b/lib/src/mustachio/annotations.dart index dc00aae5d2..2b5316ec8f 100644 --- a/lib/src/mustachio/annotations.dart +++ b/lib/src/mustachio/annotations.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + // See the Mustachio README at tool/mustachio/README.md for high-level // documentation. diff --git a/lib/src/package_meta.dart b/lib/src/package_meta.dart index 03baec0e8b..3b32ca5f00 100644 --- a/lib/src/package_meta.dart +++ b/lib/src/package_meta.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'dart:io' show Platform; import 'package:analyzer/dart/element/element.dart'; diff --git a/lib/src/type_utils.dart b/lib/src/type_utils.dart index 4fd5a6f671..f11b8057d9 100644 --- a/lib/src/type_utils.dart +++ b/lib/src/type_utils.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/dart/element/type.dart'; diff --git a/lib/src/warnings.dart b/lib/src/warnings.dart index 15d0aded9f..7273617581 100644 --- a/lib/src/warnings.dart +++ b/lib/src/warnings.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'dart:io'; import 'dart:math' as math; diff --git a/test/documentation_comment_test.dart b/test/documentation_comment_test.dart index dceba6642d..8eaaa3c592 100644 --- a/test/documentation_comment_test.dart +++ b/test/documentation_comment_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:analyzer/file_system/file_system.dart'; import 'package:dartdoc/src/dartdoc_options.dart'; import 'package:dartdoc/src/model/model.dart'; diff --git a/test/end2end/dartdoc_test.dart b/test/end2end/dartdoc_test.dart index 5249e126a0..928ea9e421 100644 --- a/test/end2end/dartdoc_test.dart +++ b/test/end2end/dartdoc_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'dart:async'; import 'package:analyzer/file_system/file_system.dart'; diff --git a/test/end2end/model_test.dart b/test/end2end/model_test.dart index 283f40b6b9..be462f6033 100644 --- a/test/end2end/model_test.dart +++ b/test/end2end/model_test.dart @@ -4,6 +4,8 @@ // ignore_for_file: non_constant_identifier_names +// ignore_for_file: analyzer_use_new_elements + import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/dart/element/type.dart'; import 'package:analyzer/source/line_info.dart'; diff --git a/test/mustachio/aot_compiler_builder_test.dart b/test/mustachio/aot_compiler_builder_test.dart index 052071222e..844932db4b 100644 --- a/test/mustachio/aot_compiler_builder_test.dart +++ b/test/mustachio/aot_compiler_builder_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + @TestOn('vm && !windows') library; diff --git a/test/mustachio/builder_test_base.dart b/test/mustachio/builder_test_base.dart index 5dadac45eb..37f8587bb7 100644 --- a/test/mustachio/builder_test_base.dart +++ b/test/mustachio/builder_test_base.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:analyzer/dart/analysis/results.dart'; import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/file_system/physical_file_system.dart'; diff --git a/test/mustachio/foo.aot_renderers_for_html.dart b/test/mustachio/foo.aot_renderers_for_html.dart index ab8140748a..3f5bb2e142 100644 --- a/test/mustachio/foo.aot_renderers_for_html.dart +++ b/test/mustachio/foo.aot_renderers_for_html.dart @@ -12,6 +12,8 @@ // ignore_for_file: unused_local_variable // ignore_for_file: non_constant_identifier_names, unnecessary_string_escapes +// ignore_for_file: analyzer_use_new_elements + import 'dart:convert'; import 'foo.dart'; diff --git a/test/mustachio/foo.runtime_renderers.dart b/test/mustachio/foo.runtime_renderers.dart index 7da9801ce5..fa39c48c7b 100644 --- a/test/mustachio/foo.runtime_renderers.dart +++ b/test/mustachio/foo.runtime_renderers.dart @@ -7,6 +7,9 @@ // ignore_for_file: non_constant_identifier_names, unnecessary_string_escapes // ignore_for_file: unused_import // ignore_for_file: use_super_parameters + +// ignore_for_file: analyzer_use_new_elements + import 'package:dartdoc/src/element_type.dart'; import 'package:dartdoc/src/generator/template_data.dart'; import 'package:dartdoc/src/model/annotation.dart'; diff --git a/test/mustachio/runtime_renderer_builder_test.dart b/test/mustachio/runtime_renderer_builder_test.dart index 873b7a27fd..536ac68f3f 100644 --- a/test/mustachio/runtime_renderer_builder_test.dart +++ b/test/mustachio/runtime_renderer_builder_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + @TestOn('vm && !windows') @Timeout.factor(2) library; diff --git a/test/src/utils.dart b/test/src/utils.dart index d43db63a8b..28f5d2ae01 100644 --- a/test/src/utils.dart +++ b/test/src/utils.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'dart:io'; import 'package:analyzer/file_system/file_system.dart'; diff --git a/test/typedefs_test.dart b/test/typedefs_test.dart index 21aa55dc39..58fdd75403 100644 --- a/test/typedefs_test.dart +++ b/test/typedefs_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:analyzer/dart/element/type.dart'; import 'package:dartdoc/src/element_type.dart'; import 'package:test/test.dart'; diff --git a/tool/mustachio/builder.dart b/tool/mustachio/builder.dart index 16dfaff467..47fca4d4ce 100644 --- a/tool/mustachio/builder.dart +++ b/tool/mustachio/builder.dart @@ -1,3 +1,9 @@ +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +// ignore_for_file: analyzer_use_new_elements + import 'dart:io'; import 'package:analyzer/dart/analysis/results.dart'; diff --git a/tool/mustachio/codegen_aot_compiler.dart b/tool/mustachio/codegen_aot_compiler.dart index 37060f5991..6d99c41e1b 100644 --- a/tool/mustachio/codegen_aot_compiler.dart +++ b/tool/mustachio/codegen_aot_compiler.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'dart:io'; import 'package:analyzer/dart/element/element.dart'; @@ -83,6 +85,8 @@ Future compileTemplatesToRenderers( // ignore_for_file: unused_local_variable // ignore_for_file: non_constant_identifier_names, unnecessary_string_escapes +// ignore_for_file: analyzer_use_new_elements + import 'dart:convert'; $buffer diff --git a/tool/mustachio/codegen_runtime_renderer.dart b/tool/mustachio/codegen_runtime_renderer.dart index 6826aede62..36d11c0605 100644 --- a/tool/mustachio/codegen_runtime_renderer.dart +++ b/tool/mustachio/codegen_runtime_renderer.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + /// @docImport 'package:dartdoc/src/mustachio/renderer_base.dart'; library; @@ -88,6 +90,9 @@ class RuntimeRenderersBuilder { // ignore_for_file: non_constant_identifier_names, unnecessary_string_escapes // ignore_for_file: unused_import // ignore_for_file: use_super_parameters + +// ignore_for_file: analyzer_use_new_elements + import 'package:dartdoc/src/element_type.dart'; import 'package:dartdoc/src/generator/template_data.dart'; import 'package:dartdoc/src/model/annotation.dart'; diff --git a/tool/mustachio/utilities.dart b/tool/mustachio/utilities.dart index 8852e035d6..75eecedcb2 100644 --- a/tool/mustachio/utilities.dart +++ b/tool/mustachio/utilities.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: analyzer_use_new_elements + import 'package:analyzer/dart/element/element.dart'; extension InterfaceElementExtension on InterfaceElement {