Skip to content

Commit 6bfde64

Browse files
committed
add more documentation
1 parent 69ba471 commit 6bfde64

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

pkgs/native_assets_builder/lib/src/build_runner/build_runner.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ class NativeAssetsBuildRunner {
7878
/// The native assets build runner does not support reentrancy for identical
7979
/// [BuildInput] and [LinkInput]! For more info see:
8080
/// https://github.com/dart-lang/native/issues/1319
81+
///
82+
/// The base protocol can be extended with [extensions]. See
83+
/// [ProtocolExtension] for more documentation.
8184
Future<BuildResult?> build({
8285
required List<ProtocolExtension> extensions,
8386
required bool linkingEnabled,
@@ -177,6 +180,9 @@ class NativeAssetsBuildRunner {
177180
/// The native assets build runner does not support reentrancy for identical
178181
/// [BuildInput] and [LinkInput]! For more info see:
179182
/// https://github.com/dart-lang/native/issues/1319
183+
///
184+
/// The base protocol can be extended with [extensions]. See
185+
/// [ProtocolExtension] for more documentation.
180186
Future<LinkResult?> link({
181187
required List<ProtocolExtension> extensions,
182188
Uri? resourceIdentifiers,

pkgs/native_assets_cli/lib/src/code_assets/extension.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
import '../../code_assets_builder.dart';
66
import 'validation.dart';
77

8+
/// The protocol extension for the `hook/build.dart` and `hook/link.dart`
9+
/// with [CodeAsset]s and [CodeConfig].
810
final class CodeAssetExtension implements ProtocolExtension {
911
final Architecture targetArchitecture;
1012
final OS targetOS;

pkgs/native_assets_cli/lib/src/data_assets/extension.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
import '../../data_assets_builder.dart';
66
import 'validation.dart';
77

8+
/// The protocol extension for the `hook/build.dart` and `hook/link.dart`
9+
/// with [DataAsset]s.
810
final class DataAssetsExtension implements ProtocolExtension {
911
DataAssetsExtension();
1012

0 commit comments

Comments
 (0)