Skip to content

Commit

Permalink
Ignore lint about deprecated pkg:analyzer API (#1447)
Browse files Browse the repository at this point in the history
Can't move to the new API until Dart 3.6 is stable
  • Loading branch information
kevmoo authored Sep 30, 2024
1 parent 55d68f4 commit 59c6376
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions json_serializable/lib/src/field_helpers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
// 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.

// TODO: Waiting until Dart 3.6 so we can pin a stable Dart SDK compatible w/ latest
// analyzer
// ignore_for_file: deprecated_member_use

import 'package:analyzer/dart/element/element.dart';
import 'package:analyzer/src/dart/element/inheritance_manager3.dart' // ignore: implementation_imports
show
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ _JsonConvertData? _typeConverterFrom(

final annotationElement = match.elementAnnotation?.element;
if (annotationElement is PropertyAccessorElement) {
// ignore: deprecated_member_use
final enclosing = annotationElement.enclosingElement;

var accessString = annotationElement.name;
Expand Down
4 changes: 4 additions & 0 deletions json_serializable/lib/src/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
// 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.

// TODO: Waiting until Dart 3.6 so we can pin a stable Dart SDK compatible w/ latest
// analyzer
// ignore_for_file: deprecated_member_use

import 'package:analyzer/dart/constant/value.dart';
import 'package:analyzer/dart/element/element.dart';
import 'package:analyzer/dart/element/type.dart';
Expand Down

0 comments on commit 59c6376

Please sign in to comment.