Skip to content

Commit 2dbfa1f

Browse files
committed
implemented _performWebSocketFetchLibrariesForHotReload
1 parent 775fbf2 commit 2dbfa1f

10 files changed

+1159
-209
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
5+
library fetch_libraries_for_hot_reload_request;
6+
7+
import 'package:built_value/built_value.dart';
8+
import 'package:built_value/serializer.dart';
9+
10+
part 'fetch_libraries_for_hot_reload_request.g.dart';
11+
12+
/// A request to fetch libraries for hot reload.
13+
abstract class FetchLibrariesForHotReloadRequest
14+
implements Built<FetchLibrariesForHotReloadRequest, FetchLibrariesForHotReloadRequestBuilder> {
15+
static Serializer<FetchLibrariesForHotReloadRequest> get serializer =>
16+
_$fetchLibrariesForHotReloadRequestSerializer;
17+
18+
/// A unique identifier for this request.
19+
String get id;
20+
21+
FetchLibrariesForHotReloadRequest._();
22+
factory FetchLibrariesForHotReloadRequest([
23+
void Function(FetchLibrariesForHotReloadRequestBuilder) updates,
24+
]) = _$FetchLibrariesForHotReloadRequest;
25+
}

dwds/lib/data/fetch_libraries_for_hot_reload_request.g.dart

Lines changed: 169 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
5+
library fetch_libraries_for_hot_reload_response;
6+
7+
import 'package:built_value/built_value.dart';
8+
import 'package:built_value/serializer.dart';
9+
10+
part 'fetch_libraries_for_hot_reload_response.g.dart';
11+
12+
/// A response to a fetch libraries for hot reload request.
13+
abstract class FetchLibrariesForHotReloadResponse
14+
implements Built<FetchLibrariesForHotReloadResponse, FetchLibrariesForHotReloadResponseBuilder> {
15+
static Serializer<FetchLibrariesForHotReloadResponse> get serializer =>
16+
_$fetchLibrariesForHotReloadResponseSerializer;
17+
18+
/// The unique identifier matching the request.
19+
String get id;
20+
21+
/// Whether the fetch succeeded on the client.
22+
bool get success;
23+
24+
/// An optional error message if success is false.
25+
@BuiltValueField(wireName: 'error')
26+
String? get errorMessage;
27+
28+
FetchLibrariesForHotReloadResponse._();
29+
factory FetchLibrariesForHotReloadResponse([
30+
void Function(FetchLibrariesForHotReloadResponseBuilder) updates,
31+
]) = _$FetchLibrariesForHotReloadResponse;
32+
}

0 commit comments

Comments
 (0)