@@ -707,7 +707,7 @@ class LazyExtensionDeclaration {
707707 ExtensionDeclaration node,
708708 ) {
709709 var lazy = get (node);
710- if (lazy != null ) {
710+ if (lazy? .data != null ) {
711711 return context.getInformativeData (lazy.data)? .codeLength ?? 0 ;
712712 }
713713 return node.length;
@@ -718,7 +718,7 @@ class LazyExtensionDeclaration {
718718 ExtensionDeclaration node,
719719 ) {
720720 var lazy = get (node);
721- if (lazy != null ) {
721+ if (lazy? .data != null ) {
722722 return context.getInformativeData (lazy.data)? .codeOffset ?? 0 ;
723723 }
724724 return node.offset;
@@ -729,7 +729,7 @@ class LazyExtensionDeclaration {
729729 ExtensionDeclaration node,
730730 ) {
731731 var lazy = get (node);
732- if (lazy != null && ! lazy._hasDocumentationComment) {
732+ if (lazy? .data != null && ! lazy._hasDocumentationComment) {
733733 node.documentationComment = context.createComment (lazy.data);
734734 lazy._hasDocumentationComment = true ;
735735 }
@@ -740,7 +740,7 @@ class LazyExtensionDeclaration {
740740 ExtensionDeclaration node,
741741 ) {
742742 var lazy = get (node);
743- if (lazy != null && ! lazy._hasExtendedType) {
743+ if (lazy? .data != null && ! lazy._hasExtendedType) {
744744 (node as ExtensionDeclarationImpl ).extendedType = reader.readNode (
745745 lazy.data.extensionDeclaration_extendedType,
746746 );
@@ -753,7 +753,7 @@ class LazyExtensionDeclaration {
753753 ExtensionDeclaration node,
754754 ) {
755755 var lazy = get (node);
756- if (lazy != null && ! lazy._hasMembers) {
756+ if (lazy? .data != null && ! lazy._hasMembers) {
757757 var dataList = lazy.data.extensionDeclaration_members;
758758 for (var i = 0 ; i < dataList.length; ++ i) {
759759 var data = dataList[i];
@@ -768,7 +768,7 @@ class LazyExtensionDeclaration {
768768 ExtensionDeclaration node,
769769 ) {
770770 var lazy = get (node);
771- if (lazy != null && ! lazy._hasMetadata) {
771+ if (lazy? .data != null && ! lazy._hasMetadata) {
772772 var dataList = lazy.data.annotatedNode_metadata;
773773 for (var i = 0 ; i < dataList.length; ++ i) {
774774 var data = dataList[i];
0 commit comments