More documentation. (#10653)

This commit is contained in:
Ian Hickson
2017-06-13 09:52:13 -07:00
committed by GitHub
parent 272faba1c0
commit 1f4f75bb50
13 changed files with 358 additions and 52 deletions

View File

@@ -90,7 +90,7 @@ Future<Null> main() async {
block.add(line.substring(3));
}
} else if (inSampleSection) {
if (!trimmedLine.startsWith(kDartDocPrefix) || trimmedLine.startsWith('/// ##')) {
if (!trimmedLine.startsWith(kDartDocPrefix) || trimmedLine.startsWith('/// ## ')) {
if (inDart)
throw '${file.path}:$lineNumber: Dart section inexplicably unterminated.';
if (!foundDart)
@@ -160,6 +160,8 @@ dependencies:
);
stderr.addStream(process.stderr);
final List<String> errors = await process.stdout.transform<String>(UTF8.decoder).transform<String>(const LineSplitter()).toList();
if (errors.first == 'Building flutter tool...')
errors.removeAt(0);
if (errors.first.startsWith('Running "flutter packages get" in '))
errors.removeAt(0);
if (errors.first.startsWith('Analyzing '))