You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
analyzer: skip CodeChecker for null safe libraries
In some profiling, I saw that CodeChecker accounted for ~10% of the time
spent in `LibraryAnalyzer._computeVerifyErrors`.
The only errors which are reported any longer in CodeChecker are
pre-null safe errors, and the TOP_LEVEL_CYCLE error, which is moved to
resolution.
Change-Id: I9ad38a1c76490a95cbb8464465e37a07622b4f97
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240643
Reviewed-by: Konstantin Shcheglov <[email protected]>
Commit-Queue: Samuel Rawlins <[email protected]>
Copy file name to clipboardExpand all lines: pkg/analyzer/messages.yaml
+16
Original file line number
Diff line number
Diff line change
@@ -6771,48 +6771,64 @@ CompileTimeErrorCode:
6771
6771
Parameters:
6772
6772
0: the type of the function
6773
6773
1: the expected function type
6774
+
6775
+
This error is only reported in libraries which are not null safe.
6774
6776
INVALID_CAST_FUNCTION_EXPR:
6775
6777
problemMessage: "The function expression type '{0}' isn't of type '{1}'. This means its parameter or return type doesn't match what is expected. Consider changing parameter type(s) or the returned type(s)."
6776
6778
comment: |-
6777
6779
Parameters:
6778
6780
0: the type of the torn-off function expression
6779
6781
1: the expected function type
6782
+
6783
+
This error is only reported in libraries which are not null safe.
6780
6784
INVALID_CAST_LITERAL:
6781
6785
problemMessage: "The literal '{0}' with type '{1}' isn't of expected type '{2}'."
6782
6786
comment: |-
6783
6787
Parameters:
6784
6788
0: the type of the literal
6785
6789
1: the expected type
6790
+
6791
+
This error is only reported in libraries which are not null safe.
6786
6792
INVALID_CAST_LITERAL_LIST:
6787
6793
problemMessage: "The list literal type '{0}' isn't of expected type '{1}'. The list's type can be changed with an explicit generic type argument or by changing the element types."
6788
6794
comment: |-
6789
6795
Parameters:
6790
6796
0: the type of the list literal
6791
6797
1: the expected type
6798
+
6799
+
This error is only reported in libraries which are not null safe.
6792
6800
INVALID_CAST_LITERAL_MAP:
6793
6801
problemMessage: "The map literal type '{0}' isn't of expected type '{1}'. The map's type can be changed with an explicit generic type arguments or by changing the key and value types."
6794
6802
comment: |-
6795
6803
Parameters:
6796
6804
0: the type of the map literal
6797
6805
1: the expected type
6806
+
6807
+
This error is only reported in libraries which are not null safe.
6798
6808
INVALID_CAST_LITERAL_SET:
6799
6809
problemMessage: "The set literal type '{0}' isn't of expected type '{1}'. The set's type can be changed with an explicit generic type argument or by changing the element types."
6800
6810
comment: |-
6801
6811
Parameters:
6802
6812
0: the type of the set literal
6803
6813
1: the expected type
6814
+
6815
+
This error is only reported in libraries which are not null safe.
6804
6816
INVALID_CAST_METHOD:
6805
6817
problemMessage: "The method tear-off '{0}' has type '{1}' that isn't of expected type '{2}'. This means its parameter or return type doesn't match what is expected."
6806
6818
comment: |-
6807
6819
Parameters:
6808
6820
0: the type of the torn-off method
6809
6821
1: the expected function type
6822
+
6823
+
This error is only reported in libraries which are not null safe.
6810
6824
INVALID_CAST_NEW_EXPR:
6811
6825
problemMessage: "The constructor returns type '{0}' that isn't of expected type '{1}'."
6812
6826
comment: |-
6813
6827
Parameters:
6814
6828
0: the type of the instantiated object
6815
6829
1: the expected type
6830
+
6831
+
This error is only reported in libraries which are not null safe.
0 commit comments