Skip to content

Commit f82c315

Browse files
scheglovCommit Queue
authored andcommitted
Elements. Set fragment offsets only using InformativeDataApplier, not in FragmentBuilder.
This way, there will be only one implementation, which will not get out of sync with another implementation. This also makes FragmentBuilder simpler and more cohesive. Change-Id: I79727f549bba489be324f8ab1fdc61a9b3948cab Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/440001 Reviewed-by: Samuel Rawlins <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
1 parent 8cfa901 commit f82c315

File tree

6 files changed

+126
-426
lines changed

6 files changed

+126
-426
lines changed

pkg/analyzer/lib/src/dart/analysis/driver.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ testFineAfterLibraryAnalyzerHook;
109109
// TODO(scheglov): Clean up the list of implicitly analyzed files.
110110
class AnalysisDriver {
111111
/// The version of data format, should be incremented on every format change.
112-
static const int DATA_VERSION = 502;
112+
static const int DATA_VERSION = 503;
113113

114114
/// The number of exception contexts allowed to write. Once this field is
115115
/// zero, we stop writing any new exception contexts in this process.

pkg/analyzer/lib/src/dart/element/element.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10013,6 +10013,10 @@ class TypeAliasFragmentImpl extends _ExistingFragmentImpl
1001310013
aliasedElement?.enclosingElement = this;
1001410014
}
1001510015

10016+
FragmentImpl? get aliasedElement_unresolved {
10017+
return _aliasedElement;
10018+
}
10019+
1001610020
/// The aliased type.
1001710021
///
1001810022
/// If non-function type aliases feature is enabled for the enclosing library,

0 commit comments

Comments
 (0)