Skip to content

Commit

Permalink
Run tests in checked mode, and fixed a type error
Browse files Browse the repository at this point in the history
  • Loading branch information
asgerf committed Dec 17, 2014
1 parent 270dda8 commit ed10447
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions lib/src/annotations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@ class Resolver extends RecursiveVisitor {
return node;
}

Scope findScope(Name node) {
String name = node.value;
Node parent = node.parent;
Scope findScope(Name nameNode) {
String name = nameNode.value;
Node parent = nameNode.parent;
Node node = nameNode;
if (parent is FunctionNode && parent.name == node && !parent.isExpression) {
node = parent.parent;
}
Expand Down
2 changes: 1 addition & 1 deletion test/runtest
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ do
path=$(python -c "import os.path; print os.path.relpath('$file', '$BASEDIR')")
printf "%-50s" $path

if dart parser_test.dart --json $file > tmp/mine.json 2> tmp/$name.err; then
if dart --checked parser_test.dart --json $file > tmp/mine.json 2> tmp/$name.err; then
rm -f tmp/$name.err
else
echo "[EXCEPTION]"
Expand Down

0 comments on commit ed10447

Please sign in to comment.