File tree 8 files changed +17
-26
lines changed
8 files changed +17
-26
lines changed Original file line number Diff line number Diff line change 1
- .buildlog
2
- .DS_Store
3
- .idea
4
- .pub /
5
- .settings /
6
- build /
7
- packages
1
+ .dart_tool /
8
2
.packages
9
3
pubspec.lock
Original file line number Diff line number Diff line change 1
1
language : dart
2
2
sudo : false
3
3
dart :
4
- - stable
4
+ # - stable
5
5
- dev
6
6
dart_task :
7
7
- test : -p vm
8
8
xvfb : false
9
- - test : -p firefox
9
+ # Set concurrency to 1 to avoid flakes on Travis
10
+ - test : -p firefox -j 1
10
11
- dartanalyzer
11
12
12
13
matrix :
13
14
include :
14
- - dart : stable
15
+ - dart : dev
15
16
dart_task : dartfmt
16
17
17
18
# Only building master means that we don't run two builds for each pull request.
Original file line number Diff line number Diff line change
1
+ ## 1.0.4
2
+
3
+ * Now requires Dart 2.
4
+
1
5
## 1.0.3
2
6
3
7
* Work around an inference bug in the new common front-end.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
// for details. All rights reserved. Use of this source code is governed by a
3
3
// BSD-style license that can be found in the LICENSE file.
4
4
5
- import 'package:collection/collection.dart' ;
6
-
7
5
import 'ast.dart' ;
8
6
import 'visitor.dart' ;
9
7
@@ -17,7 +15,7 @@ class Evaluator implements Visitor<bool> {
17
15
18
16
Evaluator (semantics)
19
17
: _semantics = semantics is Iterable
20
- ? DelegatingIterable . typed ( semantics.toSet () ).contains
18
+ ? semantics.toSet ().contains
21
19
: semantics as _Semantics ;
22
20
23
21
bool visitVariable (VariableNode node) => _semantics (node.name);
Original file line number Diff line number Diff line change 1
1
name : boolean_selector
2
- version : 1.0.3
2
+ version : 1.0.4
3
3
description : A flexible syntax for boolean expressions.
4
4
author :
Dart Team <[email protected] >
5
5
homepage : https://github.com/dart-lang/boolean_selector
6
6
7
7
environment :
8
- sdk : ' >=1.8.0 <2 .0.0'
8
+ sdk : ' >=2.0.0-dev.58 <3 .0.0'
9
9
10
10
dependencies :
11
- collection : ' ^1.5.0'
12
11
source_span : ' ^1.0.0'
13
12
string_scanner : ' >=0.1.1 <2.0.0'
14
13
15
14
dev_dependencies :
16
- test : ' ^0.12.0 '
15
+ test : ^1.2.0
Original file line number Diff line number Diff line change @@ -8,16 +8,16 @@ import 'package:boolean_selector/src/ast.dart';
8
8
import 'package:boolean_selector/src/parser.dart' ;
9
9
10
10
/// A matcher that asserts that a value is a [ConditionalNode] .
11
- Matcher _isConditionalNode = new isInstanceOf <ConditionalNode >();
11
+ final _isConditionalNode = new TypeMatcher <ConditionalNode >();
12
12
13
13
/// A matcher that asserts that a value is an [OrNode] .
14
- Matcher _isOrNode = new isInstanceOf <OrNode >();
14
+ final _isOrNode = new TypeMatcher <OrNode >();
15
15
16
16
/// A matcher that asserts that a value is an [AndNode] .
17
- Matcher _isAndNode = new isInstanceOf <AndNode >();
17
+ final _isAndNode = new TypeMatcher <AndNode >();
18
18
19
19
/// A matcher that asserts that a value is a [NotNode] .
20
- Matcher _isNotNode = new isInstanceOf <NotNode >();
20
+ final _isNotNode = new TypeMatcher <NotNode >();
21
21
22
22
void main () {
23
23
group ("parses a conditional expression" , () {
You can’t perform that action at this time.
0 commit comments