[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:
Ian Hickson
2018-09-22 02:02:56 -07:00
committed by GitHub
parent 5991f1f866
commit 989cf18b0d
23 changed files with 94 additions and 66 deletions

View File

@@ -159,7 +159,7 @@ class AOTSnapshotter {
if (platform == TargetPlatform.android_arm || iosArch == IOSArch.armv7) {
// Use softfp for Android armv7 devices.
// Note that this is the default for armv7 iOS builds, but harmless to set.
// This is the default for armv7 iOS builds, but harmless to set.
// TODO(cbracken): eliminate this when we fix https://github.com/flutter/flutter/issues/17489
genSnapshotArgs.add('--no-sim-use-hardfp');

View File

@@ -310,7 +310,7 @@ abstract class FlutterCommand extends Command<Null> {
} finally {
final DateTime endTime = clock.now();
printTrace('"flutter $name" took ${getElapsedAsMilliseconds(endTime.difference(startTime))}.');
// Note that this is checking the result of the call to 'usagePath'
// This is checking the result of the call to 'usagePath'
// (a Future<String>), and not the result of evaluating the Future.
if (usagePath != null) {
final List<String> labels = <String>[];

View File

@@ -254,7 +254,7 @@ class FlutterCommandRunner extends CommandRunner<Null> {
os.zip(tempDir, zipFile);
printStatus(
'Bug report written to ${zipFile.basename}.\n'
'Note that this bug report contains local paths, device '
'Warning: this bug report contains local paths, device '
'identifiers, and log snippets.'
);
}, ShutdownStage.POST_PROCESS_RECORDING);

View File

@@ -193,10 +193,9 @@ enum _TestResult { crashed, harnessBailed, testBailed }
typedef _Finalizer = Future<Null> Function();
class _CompilationRequest {
_CompilationRequest(this.path, this.result);
String path;
Completer<String> result;
_CompilationRequest(this.path, this.result);
}
// This class is a wrapper around compiler that allows multiple isolates to

View File

@@ -30,8 +30,8 @@ void main() {
/// This also exists for cases where our initialization requires access to
/// a `Context` object, which is only set up inside the zone.
///
/// Note that these issues do not pertain to real code and are a test-only
/// concern, since in real code, the zone is set-up in `main()`.
/// These issues do not pertain to real code and are a test-only concern,
/// because in real code, the zone is set up in `main()`.
///
/// See also: [runZoned]
void initialize() {