record_use 0.4.0 copy "record_use: ^0.4.0" to clipboard
record_use: ^0.4.0 copied to clipboard

unlisted

The serialization logic and API for the usage recording SDK feature.

example/record_use_example.dart

// Copyright (c) 2024, 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.

import 'package:record_use/record_use.dart';

void doStuffInLinkHook(
  RecordedUsages usage,
  Identifier identifier1,
  Identifier identifier2,
  Identifier identifier3,
) {
  print(usage.metadata);
  print(usage.constArgumentsFor(identifier1, 'void foo(int i)'));
  print(usage.constantsOf(identifier2));
  print(usage.hasNonConstArguments(identifier3));
}
4
likes
0
points
136k
downloads

Publisher

verified publisherlabs.dart.dev

Weekly Downloads

The serialization logic and API for the usage recording SDK feature.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

collection, pub_semver

More

Packages that depend on record_use