Skip to content

Commit aa768ca

Browse files
authored
fix analysis diagnostics by excluding some dirs and fixing up others (#2958)
1 parent 4f5e228 commit aa768ca

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

accepted/future-releases/0546-patterns/exhaustiveness_prototype/lib/space.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ abstract class Space {
4242
// go through this constructor to create unions. A UnionSpace will never
4343
// contain UnionSpaces.
4444
if (space is UnionSpace) {
45-
for (var arm in space.arms) addSpace(arm);
45+
for (var arm in space.arms) {
46+
addSpace(arm);
47+
}
4648
} else {
4749
addSpace(space);
4850
}

accepted/future-releases/0546-patterns/exhaustiveness_prototype/lib/static_type.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class StaticType {
100100
_underlying = underlying,
101101
isSealed = true,
102102
// No fields because it may match null which doesn't have them.
103-
_fields = {} {}
103+
_fields = {};
104104

105105
bool isSubtypeOf(StaticType other) {
106106
if (this == other) return true;

accepted/future-releases/0546-patterns/exhaustiveness_prototype/lib/subtract.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
// BSD-style license that can be found in the LICENSE file.
44
import 'intersect_empty.dart';
55
import 'profile.dart' as profile;
6-
import 'static_type.dart';
7-
86
import 'space.dart';
7+
import 'static_type.dart';
98

109
/// Returns a new [Space] that contains all of the values of [left] that are
1110
/// not also in [right].

accepted/future-releases/0546-patterns/exhaustiveness_prototype/test/expand_type_test.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,12 @@ void main() {
203203
// (A)
204204
// / \
205205
// B C
206-
// / \
207-
// D E
206+
// \
207+
// E
208208
var a = StaticType('A', isSealed: true);
209209
var b = StaticType('B', inherits: [a]);
210210
var c = StaticType('C', inherits: [a]);
211211
var d = StaticType('D', inherits: [c]);
212-
var e = StaticType('E', inherits: [c]);
213212

214213
expectExpand(a.nullable, a, 'A|Null');
215214
expectExpand(a, a.nullable, 'A');

analysis_options.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
analyzer:
22
exclude:
33
- accepted/2.3/spread-collections/examples/**
4+
- archive/newsletter/20171103
45
# TODO: remove these when the analyzer supports macros
56
- working/macros/example/lib/auto_dispose.dart
67
- working/macros/example/lib/data_class.dart

0 commit comments

Comments
 (0)