diff --git a/pkg/analyzer/lib/src/summary/format.dart b/pkg/analyzer/lib/src/summary/format.dart index a51595467ec..6d4ecc85c6e 100644 --- a/pkg/analyzer/lib/src/summary/format.dart +++ b/pkg/analyzer/lib/src/summary/format.dart @@ -5370,6 +5370,8 @@ class UnlinkedExecutableBuilder extends Object with _UnlinkedExecutableMixin imp _redirectedConstructor?.flushInformative(); _returnType?.flushInformative(); _typeParameters?.forEach((b) => b.flushInformative()); + _visibleLength = null; + _visibleOffset = null; } /** @@ -5430,8 +5432,6 @@ class UnlinkedExecutableBuilder extends Object with _UnlinkedExecutableMixin imp x?.collectApiSignature(signature); } } - signature.addInt(this._visibleLength ?? 0); - signature.addInt(this._visibleOffset ?? 0); signature.addInt(this._constCycleSlot ?? 0); signature.addBool(this._bodyExpr != null); this._bodyExpr?.collectApiSignature(signature); diff --git a/pkg/analyzer/lib/src/summary/idl.dart b/pkg/analyzer/lib/src/summary/idl.dart index ba024afd8e7..07a94611058 100644 --- a/pkg/analyzer/lib/src/summary/idl.dart +++ b/pkg/analyzer/lib/src/summary/idl.dart @@ -1926,12 +1926,14 @@ abstract class UnlinkedExecutable extends base.SummaryClass { /** * If a local function, the length of the visible range; zero otherwise. */ + @informative @Id(20) int get visibleLength; /** * If a local function, the beginning of the visible range; zero otherwise. */ + @informative @Id(21) int get visibleOffset; }