Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/tools/source_crawler_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ class SourceCrawlerImpl implements SourceCrawler {
String currentFile, List<String> visited,
List<String> toVisit) {
cu.directives.forEach((Directive directive) {
if (directive is ImportDirective || directive is PartDirective) {
if (directive is ImportDirective ||
directive is PartDirective ||
directive is ExportDirective) {
UriBasedDirective import = directive;
String canonicalFile = canonicalizeImportPath(
currentDir, currentFile, import.uri.stringValue);
Expand Down
2 changes: 1 addition & 1 deletion scripts/test-expression-extractor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ rm -rf xxx.dart

OUT=$(mktemp XXX.dart)

dart bin/expression_extractor.dart example/web/todo.dart example /dev/null /dev/null $OUT
dart --package-root=example/packages bin/expression_extractor.dart example/web/todo.dart example /dev/null /dev/null $OUT

if [[ -e $OUT ]]; then
echo "Expression extractor created an output file"
Expand Down
2 changes: 1 addition & 1 deletion test/io/source_metadata_extractor_spec.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ void main() {
sourceMetadataExtractor
.gatherDirectiveInfo('test/io/test_files/main.dart', sourceCrawler);

expect(directives, hasLength(2));
expect(directives, hasLength(4));

DirectiveInfo info = directives.elementAt(1);
expect(info.expressionAttrs, unorderedEquals(['expr', 'another-expression',
Expand Down