[H] Cleanup (#21542)
* Improve documentation and clean up code. * Remove "Note that". The phrase "note that" is basically meaningless as a prefix to an otherwise fine sentence.
This commit is contained in:
@@ -13,8 +13,7 @@ enum LoggingLevel {
|
||||
/// Logs no logs.
|
||||
none,
|
||||
|
||||
/// Logs severe messages at the most (note that severe messages are always
|
||||
/// logged).
|
||||
/// Logs severe messages at the most (severe messages are always logged).
|
||||
///
|
||||
/// Severe means that the process has encountered a critical level of failure
|
||||
/// in which it cannot recover and will terminate as a result.
|
||||
|
||||
@@ -96,8 +96,8 @@ class DartVmEvent {
|
||||
/// Provides affordances to observe and connect to Flutter views, isolates, and
|
||||
/// perform actions on the Fuchsia device's various VM services.
|
||||
///
|
||||
/// Note that this class can be connected to several instances of the Fuchsia
|
||||
/// device's Dart VM at any given time.
|
||||
/// This class can be connected to several instances of the Fuchsia device's
|
||||
/// Dart VM at any given time.
|
||||
class FuchsiaRemoteConnection {
|
||||
FuchsiaRemoteConnection._(this._useIpV6Loopback, this._sshCommandRunner)
|
||||
: _pollDartVms = false;
|
||||
@@ -168,10 +168,10 @@ class FuchsiaRemoteConnection {
|
||||
/// Throws an [ArgumentError] if the supplied `address` is not valid IPv6 or
|
||||
/// IPv4.
|
||||
///
|
||||
/// Note that if `address` is ipv6 link local (usually starts with fe80::),
|
||||
/// then `interface` will probably need to be set in order to connect
|
||||
/// successfully (that being the outgoing interface of your machine, not the
|
||||
/// interface on the target machine).
|
||||
/// If `address` is IPv6 link local (usually starts with `fe80::`), then
|
||||
/// `interface` will probably need to be set in order to connect successfully
|
||||
/// (that being the outgoing interface of your machine, not the interface on
|
||||
/// the target machine).
|
||||
///
|
||||
/// Attempts to set `address` via the environment variable
|
||||
/// `FUCHSIA_DEVICE_URL` in the event that the argument is not passed.
|
||||
|
||||
@@ -42,9 +42,8 @@ class SshCommandRunner {
|
||||
/// undefined.
|
||||
///
|
||||
/// [ArgumentError] is thrown in the event that `address` is neither valid
|
||||
/// IPv4 nor IPv6. Note that when connecting to a link local address (fe80::
|
||||
/// is usually at the start of the address), then an interface should be
|
||||
/// supplied.
|
||||
/// IPv4 nor IPv6. When connecting to a link local address (`fe80::` is
|
||||
/// usually at the start of the address), an interface should be supplied.
|
||||
SshCommandRunner({
|
||||
this.address,
|
||||
this.interface = '',
|
||||
|
||||
Reference in New Issue
Block a user