Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit 864759f

Browse files
alorenzenmatanlurey
authored andcommitted
Fix inconsistency in scope.dart (#41)
Change Scope.identifier() to make importFrom an optional parameter. All subclasses of Scope.identifier already do this, so it is inconsistent for the actual interface to not..
1 parent e1b58b1 commit 864759f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/scope.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ abstract class Scope {
5656
factory Scope.dedupe() => new _DeduplicatingScope();
5757

5858
/// Given a [name] and and import path, returns an [Identifier].
59-
Identifier identifier(String name, String importFrom);
59+
Identifier identifier(String name, [String importFrom]);
6060

6161
/// Return a list of import statements.
6262
List<ImportBuilder> toImports();

0 commit comments

Comments
 (0)