Revert "Update typedef syntax to use Function notation and turn on lint for old notation. (#18035)" (#18041)

This reverts commit 3258602073.
This commit is contained in:
Greg Spencer
2018-05-30 13:51:14 -07:00
committed by GitHub
parent 3258602073
commit b921fdc58e
129 changed files with 213 additions and 218 deletions

View File

@@ -43,7 +43,7 @@ enum LoggingLevel {
}
/// Signature of a function that logs a [LogMessage].
typedef LoggingFunction = void Function(LogMessage log);
typedef void LoggingFunction(LogMessage log);
/// The default logging function.
///

View File

@@ -20,7 +20,7 @@ final Logger _log = new Logger('DartVm');
/// Signature of an asynchronous function for astablishing a JSON RPC-2
/// connection to a [Uri].
typedef RpcPeerConnectionFunction = Future<json_rpc.Peer> Function(Uri uri);
typedef Future<json_rpc.Peer> RpcPeerConnectionFunction(Uri uri);
/// [DartVm] uses this function to connect to the Dart VM on Fuchsia.
///

View File

@@ -30,7 +30,7 @@ final Logger _log = new Logger('FuchsiaRemoteConnection');
/// Takes a remote `address`, the target device's port, and an optional
/// `interface` and `configFile`. The config file is used primarily for the
/// default SSH port forwarding configuration.
typedef PortForwardingFunction = Future<PortForwarder> Function(
typedef Future<PortForwarder> PortForwardingFunction(
String address, int remotePort,
[String interface, String configFile]);