Skip to content

Commit

Permalink
fix(typo): util UrlOfElement returns valid result (dart-lang/source_g…
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-misch authored and natebosch committed Nov 19, 2019
1 parent 75b8e20 commit 1a84ebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source_gen/source_gen/source_gen/lib/src/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ String computePartUrl(AssetId input, AssetId output) =>

/// Returns a URL representing [element].
String urlOfElement(Element element) => element.kind == ElementKind.DYNAMIC
? 'dart:core#dynmaic'
? 'dart:core#dynamic'
// using librarySource.uri – in case the element is in a part
: normalizeUrl(element.librarySource.uri)
.replace(fragment: element.name)
Expand Down

0 comments on commit 1a84ebe

Please sign in to comment.