@@ -618,6 +618,7 @@ class InformativeDataApplier {
618618 element as TypeAliasElementImpl ;
619619 element.setCodeRange (info.codeOffset, info.codeLength);
620620 element.nameOffset = info.nameOffset;
621+ _setFragmentNameOffset (element.name2, info.nameOffset2);
621622 element.documentationComment = info.documentationComment;
622623 _applyToTypeParameters (
623624 element.typeParameters_unresolved,
@@ -638,6 +639,7 @@ class InformativeDataApplier {
638639 element as TypeAliasElementImpl ;
639640 element.setCodeRange (info.codeOffset, info.codeLength);
640641 element.nameOffset = info.nameOffset;
642+ _setFragmentNameOffset (element.name2, info.nameOffset2);
641643 element.documentationComment = info.documentationComment;
642644 _applyToTypeParameters (
643645 element.typeParameters_unresolved,
@@ -1284,6 +1286,7 @@ class _InfoFunctionTypeAlias {
12841286 final int codeOffset;
12851287 final int codeLength;
12861288 final int nameOffset;
1289+ final int ? nameOffset2;
12871290 final String ? documentationComment;
12881291 final List <_InfoTypeParameter > typeParameters;
12891292 final List <_InfoFormalParameter > parameters;
@@ -1294,6 +1297,7 @@ class _InfoFunctionTypeAlias {
12941297 codeOffset: reader.readUInt30 (),
12951298 codeLength: reader.readUInt30 (),
12961299 nameOffset: reader.readUInt30 (),
1300+ nameOffset2: reader.readOptionalUInt30 (),
12971301 documentationComment: reader.readStringUtf8 ().nullIfEmpty,
12981302 typeParameters: reader.readTypedList (
12991303 () => _InfoTypeParameter (reader),
@@ -1309,6 +1313,7 @@ class _InfoFunctionTypeAlias {
13091313 required this .codeOffset,
13101314 required this .codeLength,
13111315 required this .nameOffset,
1316+ required this .nameOffset2,
13121317 required this .documentationComment,
13131318 required this .typeParameters,
13141319 required this .parameters,
@@ -1320,6 +1325,7 @@ class _InfoGenericTypeAlias {
13201325 final int codeOffset;
13211326 final int codeLength;
13221327 final int nameOffset;
1328+ final int ? nameOffset2;
13231329 final String ? documentationComment;
13241330 final List <_InfoTypeParameter > typeParameters;
13251331 final List <_InfoTypeParameter > aliasedTypeParameters;
@@ -1331,6 +1337,7 @@ class _InfoGenericTypeAlias {
13311337 codeOffset: reader.readUInt30 (),
13321338 codeLength: reader.readUInt30 (),
13331339 nameOffset: reader.readUInt30 (),
1340+ nameOffset2: reader.readOptionalUInt30 (),
13341341 documentationComment: reader.readStringUtf8 ().nullIfEmpty,
13351342 typeParameters: reader.readTypedList (
13361343 () => _InfoTypeParameter (reader),
@@ -1349,6 +1356,7 @@ class _InfoGenericTypeAlias {
13491356 required this .codeOffset,
13501357 required this .codeLength,
13511358 required this .nameOffset,
1359+ required this .nameOffset2,
13521360 required this .documentationComment,
13531361 required this .typeParameters,
13541362 required this .aliasedTypeParameters,
@@ -1607,6 +1615,7 @@ class _InformativeDataWriter {
16071615 sink.writeUInt30 (node.offset);
16081616 sink.writeUInt30 (node.length);
16091617 sink.writeUInt30 (node.name.offset);
1618+ sink.writeOptionalUInt30 (node.name.offsetIfNotEmpty);
16101619 _writeDocumentationComment (node);
16111620 _writeTypeParameters (node.typeParameters);
16121621 _writeFormalParameters (node.parameters);
@@ -1622,6 +1631,7 @@ class _InformativeDataWriter {
16221631 sink.writeUInt30 (node.offset);
16231632 sink.writeUInt30 (node.length);
16241633 sink.writeUInt30 (node.name.offset);
1634+ sink.writeOptionalUInt30 (node.name.offsetIfNotEmpty);
16251635 _writeDocumentationComment (node);
16261636 _writeTypeParameters (node.typeParameters);
16271637 if (aliasedType is GenericFunctionType ) {
0 commit comments