Files
sdk/pkg/dtd_impl/bin/dtd.dart
T
Danny Tuppeny 3c66c16122 [dtd] Move DTD implementation classes from lib/ to lib/src/ to avoid src/ files importing from lib/
Fixes https://github.com/dart-lang/sdk/issues/56178

Change-Id: I1f461e0f9c787e69eade7a5e4806c0a85bb23c23
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/374981
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
Reviewed-by: Derek Xu <derekx@google.com>
Reviewed-by: Kenzie Davisson <kenzieschmoll@google.com>
2024-07-09 19:55:17 +00:00

21 lines
740 B
Dart

// Copyright (c) 2023, 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 'dart:isolate';
import 'package:dtd_impl/dtd.dart';
/// Starts the Dart Tooling Daemon with a list of arguments and a nullable
/// Object [port], which will be cast as a [SendPort?] object.
///
/// When [port] is non-null, the [DartToolingDaemon.startService] method will
/// send information about the DTD connection back over [port] instead of
/// printing it to stdout.
void main(List<String> args, dynamic port) async {
await DartToolingDaemon.startService(
args,
sendPort: port as SendPort?,
);
}