Skip to content

Commit 59c6376

Browse files
authored
Ignore lint about deprecated pkg:analyzer API (#1447)
Can't move to the new API until Dart 3.6 is stable
1 parent 55d68f4 commit 59c6376

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

json_serializable/lib/src/field_helpers.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// TODO: Waiting until Dart 3.6 so we can pin a stable Dart SDK compatible w/ latest
6+
// analyzer
7+
// ignore_for_file: deprecated_member_use
8+
59
import 'package:analyzer/dart/element/element.dart';
610
import 'package:analyzer/src/dart/element/inheritance_manager3.dart' // ignore: implementation_imports
711
show

json_serializable/lib/src/type_helpers/json_converter_helper.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ _JsonConvertData? _typeConverterFrom(
214214

215215
final annotationElement = match.elementAnnotation?.element;
216216
if (annotationElement is PropertyAccessorElement) {
217+
// ignore: deprecated_member_use
217218
final enclosing = annotationElement.enclosingElement;
218219

219220
var accessString = annotationElement.name;

json_serializable/lib/src/utils.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// TODO: Waiting until Dart 3.6 so we can pin a stable Dart SDK compatible w/ latest
6+
// analyzer
7+
// ignore_for_file: deprecated_member_use
8+
59
import 'package:analyzer/dart/constant/value.dart';
610
import 'package:analyzer/dart/element/element.dart';
711
import 'package:analyzer/dart/element/type.dart';

0 commit comments

Comments
 (0)