_createConstraint(value,Relation.equalTo);// analyzer says "Type check failed" // analyzer says "The return type 'Constraint' is not a 'bool', as defined by the method '=='"
Expressionoperator+(_EquationMemberm){
if(misConstantMember){
...
...
@@ -140,7 +140,7 @@ class Expression extends _EquationMember {
if(args==null){
thrownewParserException(
"Could not find constant multiplicand or multiplier",[this,m]);
'Could not find constant multiplicand or multiplier',[this,m]);
returnnull;
}
...
...
@@ -150,7 +150,7 @@ class Expression extends _EquationMember {
_EquationMemberoperator/(_EquationMemberm){
if(!m.isConstant){
thrownewParserException(
"The divisor was not a constant expression",[this,m]);
'The divisor was not a constant expression',[this,m]);
returnnull;
}
...
...
@@ -160,10 +160,10 @@ class Expression extends _EquationMember {
newRegExp(r'^\[error\] Invalid override\. The type of [^ ]+ \(.+\) is not a subtype of [^ ]+ \(.+\)\.'),// we allow type narrowing
newRegExp(r'^\[warning\] .+ will need runtime check to cast to type .+'),// https://github.com/dart-lang/sdk/issues/24542
newRegExp(r'^\[error\] Type check failed: .*\(dynamic\) is not of type'),// allow unchecked casts from dynamic
newRegExp('^\\[error\\] Target of URI does not exist: \'dart:ui_internals\''),// https://github.com/flutter/flutter/issues/83
newRegExp(r'\[lint\] Prefer using lowerCamelCase for constant names.'),// sometimes we have no choice (e.g. when matching other platforms)
newRegExp(r'\[lint\] Avoid defining a one-member abstract class when a simple function will do.'),// too many false-positives; code review should catch real instances