Commit 2a9d2b5f authored by pq's avatar pq

Fix analyzer field overrides.

Cleans up 3 of the 4 violations of the `overriden_field` lint.

The last one is more interesting and I'll defer to someone closer to that code:

    [lint] Do not override fields. (packages/flutter/test/rendering/rendering_tester.dart, line 91, col 14)
parent a48b063a
...@@ -196,8 +196,13 @@ class AnalysisErrorDescription { ...@@ -196,8 +196,13 @@ class AnalysisErrorDescription {
} }
class DriverOptions extends AnalysisOptionsImpl { class DriverOptions extends AnalysisOptionsImpl {
@override
int cacheSize = 512; DriverOptions() {
// Set defaults.
cacheSize = 512;
lint = true;
generateSdkErrors = false;
}
/// The path to the dart SDK. /// The path to the dart SDK.
String dartSdkPath; String dartSdkPath;
...@@ -211,15 +216,9 @@ class DriverOptions extends AnalysisOptionsImpl { ...@@ -211,15 +216,9 @@ class DriverOptions extends AnalysisOptionsImpl {
/// The path to analysis options. /// The path to analysis options.
String analysisOptionsFile; String analysisOptionsFile;
@override
bool generateSdkErrors = false;
/// Analysis options map. /// Analysis options map.
Map<Object, Object> analysisOptions; Map<Object, Object> analysisOptions;
@override
bool lint = true;
/// Out sink for logging. /// Out sink for logging.
IOSink outSink = stdout; IOSink outSink = stdout;
......
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