| Index: lib/src/utils.dart
|
| diff --git a/lib/src/utils.dart b/lib/src/utils.dart
|
| index d89e05ac18e48ee26b658c12761ebe32aae836b8..4c7339520c673f724b77c967c1d74164a4615bbe 100644
|
| --- a/lib/src/utils.dart
|
| +++ b/lib/src/utils.dart
|
| @@ -349,7 +349,7 @@ String resourceOutputPath(Uri resourceUri, Uri entryUri) {
|
| ///
|
| /// (v) => v.type.name == 'Deprecated' && v.type.element.library.isDartCore
|
| ///
|
| -DartObjectImpl findNodeAnnotation(
|
| +DartObjectImpl getAnnotationValue(
|
| AnnotatedNode node, bool test(DartObjectImpl value)) {
|
| for (var metadata in node.metadata) {
|
| ElementAnnotationImpl element = metadata.elementAnnotation;
|
| @@ -364,19 +364,6 @@ DartObjectImpl findNodeAnnotation(
|
| return null;
|
| }
|
|
|
| -/// Similar to [findNodeAnnotation] but starts from any element.
|
| -DartObjectImpl findElementAnnotation(
|
| - Element element, bool test(DartObjectImpl value)) {
|
| - for (var metadata in element.metadata) {
|
| - var evalResult = metadata.evaluationResult;
|
| - if (evalResult == null) continue;
|
| -
|
| - var value = evalResult.value;
|
| - if (value != null && test(value)) return value;
|
| - }
|
| - return null;
|
| -}
|
| -
|
| /// Given a constant [value], a [fieldName], and an [expectedType], returns the
|
| /// value of that field.
|
| ///
|
|
|