Commit 1a6f499b authored by pq's avatar pq

Cleanup dangling comment references.

Quick pass at fixing a few dangling references as revealed by the new `comment_references` lint (https://github.com/dart-lang/linter/issues/240).

There's a bunch more to do here before we can turn it on by default (~430 lints as of now).  Many of them are a simple matter of adding an import (e.g., `dart:async` for library docs that reference `Future`) but others will require a bit of thought.  Probably best done by the folks writing the code. :)
parent 376cb2eb
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
// found in the LICENSE file. // found in the LICENSE file.
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'markdown.dart';
import 'markdown_style_raw.dart'; import 'markdown_style_raw.dart';
/// Style used for rendering markdown formatted text using the [MarkdownBody] /// Style used for rendering markdown formatted text using the [MarkdownBody]
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
// found in the LICENSE file. // found in the LICENSE file.
import 'package:flutter/widgets.dart'; import 'package:flutter/widgets.dart';
import 'markdown.dart';
/// Style used for rendering markdown formatted text using the [MarkdownBody] /// Style used for rendering markdown formatted text using the [MarkdownBody]
/// widget. /// widget.
......
...@@ -5,8 +5,8 @@ part of flutter_sprites; ...@@ -5,8 +5,8 @@ part of flutter_sprites;
/// constraints property. /// constraints property.
/// ///
/// Constrains are applied after the update calls are /// Constrains are applied after the update calls are
/// completed. They can also be applied at any time by calling a [Node]'s /// completed. They can also be applied at any time by calling
/// [applyConstraints] method. It's possible to create custom constraints by /// [Node.applyConstraints]. It's possible to create custom constraints by
/// overriding this class and implementing the [constrain] method. /// overriding this class and implementing the [constrain] method.
abstract class Constraint { abstract class Constraint {
/// Called before the node's update method is called. This method can be /// Called before the node's update method is called. This method can be
......
...@@ -42,7 +42,7 @@ import 'src/runner/flutter_command_runner.dart'; ...@@ -42,7 +42,7 @@ import 'src/runner/flutter_command_runner.dart';
/// Main entry point for commands. /// Main entry point for commands.
/// ///
/// This function is intended to be used from the [flutter] command line tool. /// This function is intended to be used from the `flutter` command line tool.
Future<Null> main(List<String> args) async { Future<Null> main(List<String> args) async {
bool help = args.contains('-h') || args.contains('--help'); bool help = args.contains('-h') || args.contains('--help');
bool verbose = args.contains('-v') || args.contains('--verbose'); bool verbose = args.contains('-v') || args.contains('--verbose');
......
...@@ -247,7 +247,7 @@ class DebuggingOptions { ...@@ -247,7 +247,7 @@ class DebuggingOptions {
bool get hasObservatoryPort => observatoryPort != null; bool get hasObservatoryPort => observatoryPort != null;
/// Return the user specified observatory port. If that isn't available, /// Return the user specified observatory port. If that isn't available,
/// return [defaultObservatoryPort], or a port close to that one. /// return [kDefaultObservatoryPort], or a port close to that one.
Future<int> findBestObservatoryPort() { Future<int> findBestObservatoryPort() {
if (hasObservatoryPort) if (hasObservatoryPort)
return new Future<int>.value(observatoryPort); return new Future<int>.value(observatoryPort);
...@@ -257,7 +257,7 @@ class DebuggingOptions { ...@@ -257,7 +257,7 @@ class DebuggingOptions {
bool get hasDiagnosticPort => diagnosticPort != null; bool get hasDiagnosticPort => diagnosticPort != null;
/// Return the user specified diagnostic port. If that isn't available, /// Return the user specified diagnostic port. If that isn't available,
/// return [defaultObservatoryPort], or a port close to that one. /// return [kDefaultDiagnosticPort], or a port close to that one.
Future<int> findBestDiagnosticPort() { Future<int> findBestDiagnosticPort() {
return findPreferredPort(diagnosticPort ?? kDefaultDiagnosticPort); return findPreferredPort(diagnosticPort ?? kDefaultDiagnosticPort);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment