Skip to content

Commit c671104

Browse files
committed
use first fragment for source
1 parent 83b85e3 commit c671104

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/model/model_node.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class ModelNode {
6565
late final String sourceCode = () {
6666
if (_isSynthetic) return '';
6767

68-
var path = _element.library2?.firstFragment.source.fullName;
68+
var path = _element.firstFragment.libraryFragment?.source.fullName;
6969
if (path == null) return '';
7070

7171
var fileResult = _analysisContext.currentSession.getFile(path);

0 commit comments

Comments
 (0)