Skip to content

Commit ed10447

Browse files
committed
Run tests in checked mode, and fixed a type error
1 parent 270dda8 commit ed10447

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/src/annotations.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,10 @@ class Resolver extends RecursiveVisitor {
8080
return node;
8181
}
8282

83-
Scope findScope(Name node) {
84-
String name = node.value;
85-
Node parent = node.parent;
83+
Scope findScope(Name nameNode) {
84+
String name = nameNode.value;
85+
Node parent = nameNode.parent;
86+
Node node = nameNode;
8687
if (parent is FunctionNode && parent.name == node && !parent.isExpression) {
8788
node = parent.parent;
8889
}

test/runtest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ do
3636
path=$(python -c "import os.path; print os.path.relpath('$file', '$BASEDIR')")
3737
printf "%-50s" $path
3838

39-
if dart parser_test.dart --json $file > tmp/mine.json 2> tmp/$name.err; then
39+
if dart --checked parser_test.dart --json $file > tmp/mine.json 2> tmp/$name.err; then
4040
rm -f tmp/$name.err
4141
else
4242
echo "[EXCEPTION]"

0 commit comments

Comments
 (0)