File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ final class _Canonicalization {
89
89
Element2 ? ancestor = element;
90
90
while (ancestor != null ) {
91
91
if (ancestor is LibraryElement2 ) {
92
- components.insert (0 , ancestor.identifier );
92
+ components.insert (0 , ancestor.uri. toString () );
93
93
} else {
94
94
components.insert (0 , ancestor.name3! );
95
95
}
Original file line number Diff line number Diff line change @@ -412,11 +412,12 @@ abstract class ModelElement
412
412
return false ;
413
413
}
414
414
415
- if (element case LibraryElement2 (: var identifier, : var firstFragment)) {
415
+ if (element case LibraryElement2 (: var uri, : var firstFragment)) {
416
+ final url = uri.toString ();
416
417
// Private Dart SDK libraries are not public.
417
- if (identifier .startsWith ('dart:_' ) ||
418
- identifier .startsWith ('dart:nativewrappers/' ) ||
419
- 'dart:nativewrappers' == identifier ) {
418
+ if (url .startsWith ('dart:_' ) ||
419
+ url .startsWith ('dart:nativewrappers/' ) ||
420
+ url == 'dart:nativewrappers' ) {
420
421
return false ;
421
422
}
422
423
// Package-private libraries are not public.
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ void main() {
110
110
expect (
111
111
useSomethingInAnotherPackage.modelType.linkedName,
112
112
matches (
113
- r'<a class="deprecated" href="https://pub.dev/documentation/meta/[^"]*/meta/Required-class.html">Required</a>' ));
113
+ r'<a href="https://pub.dev/documentation/meta/[^"]*/meta/Required-class.html">Required</a>\? ' ));
114
114
var link = RegExp ('/dart-core/String-class.html">String</a>' );
115
115
expect (useSomethingInTheSdk.modelType.linkedName, contains (link));
116
116
});
You can’t perform that action at this time.
0 commit comments