Skip to content

Commit 002e693

Browse files
Add doc comments
1 parent 0958614 commit 002e693

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/src/builder/vendor/transformer_utils/src/analyzer_helpers.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,17 @@ dynamic getValue(Expression expression,
6969
'Must be a uninterpolated string, boolean, integer, or null literal.');
7070
}
7171

72+
/// The parsed arguments of an annotation constructor call, from [parseAnnotationArgs].
7273
class AnnotationArgs {
7374
final Map<String, dynamic> named;
7475
final List<dynamic> positional;
7576

7677
AnnotationArgs({required this.named, required this.positional});
7778
}
7879

80+
/// Returns annotation class constructor arguments parsed from [annotation],
81+
/// converting supported literal values via [getValue], and passing unsupported
82+
/// argument values through [onUnsupportedArgument].
7983
AnnotationArgs parseAnnotationArgs(Annotation annotation,
8084
{dynamic Function(Expression argument)? onUnsupportedArgument}) {
8185
Map<String, dynamic> namedParameters = {};

0 commit comments

Comments
 (0)