mirror of
https://github.com/flutter/flutter.git
synced 2026-02-14 06:45:56 +08:00
Prepare flutter analyze for dart 1.14
This commit is contained in:
parent
5fdb074999
commit
9eb978443b
@ -23,7 +23,7 @@ class Param extends _EquationMember {
|
||||
double get value => variable.value;
|
||||
|
||||
String get name => variable.name;
|
||||
set name(String name) => variable.name = name;
|
||||
set name(String name) { variable.name = name; }
|
||||
|
||||
Expression asExpression() => new Expression([new Term(variable, 1.0)], 0.0);
|
||||
}
|
||||
|
||||
@ -268,6 +268,8 @@ class AnalyzeCommand extends FlutterCommand {
|
||||
new RegExp('^\\[(hint|error)\\] Unused import \\(${mainFile.path},'),
|
||||
new RegExp(r'^\[.+\] .+ \(.+/\.pub-cache/.+'),
|
||||
new RegExp(r'^\[error\] Invalid override\. The type of [^ ]+ \(.+\) is not a subtype of [^ ]+ \(.+\)\.'), // we allow type narrowing
|
||||
new RegExp('^\\[error\\] The argument type \'List<T>\' cannot be assigned to the parameter type \'List<.+>\''), // until we have generic methods, there's not much choice if you want to use map()
|
||||
new RegExp(r'^\[error\] Field declaration .+ cannot be overridden in .+\.'), // we allow overriding fields (if they use super, ideally...)
|
||||
new RegExp(r'^\[warning\] .+ will need runtime check to cast to type .+'), // https://github.com/dart-lang/sdk/issues/24542
|
||||
new RegExp(r'^\[error\] Type check failed: .*\(dynamic\) is not of type'), // allow unchecked casts from dynamic
|
||||
new RegExp('^\\[error\\] Target of URI does not exist: \'dart:ui_internals\''), // https://github.com/flutter/flutter/issues/83
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user