Skip to content

Commit

Permalink
Version 2.19.0-402.0.dev
Browse files Browse the repository at this point in the history
Merge c6d69f1 into dev
  • Loading branch information
Dart CI committed Nov 15, 2022
2 parents 42f87c0 + c6d69f1 commit 09be43f
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ tools/xcodebuild
/crash_logs/
/build/config/gclient_args.gni
/pkg/front_end/testcases/old_dills/
/logs.json
/results.json
logs/logs.json
logs/results.json
/async_lazy_debug.so
/dwarf.so
/dwarf_obfuscate.so
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2186,7 +2186,7 @@ class SourceLibraryBuilder extends LibraryBuilderImpl {
debugName: "extension $name",
isModifiable: false);

Extension? referenceFrom = referencesFromIndexed?.lookupExtension(name);
View? referenceFrom = referencesFromIndexed?.lookupView(name);

ViewBuilder viewBuilder = new SourceViewBuilder(
metadata,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class SourceViewBuilder extends ViewBuilderImpl
int startOffset,
int nameOffset,
int endOffset,
Extension? referenceFrom)
View? referenceFrom)
: _view = new View(
name: name,
fileUri: parent.fileUri,
Expand Down
6 changes: 5 additions & 1 deletion pkg/front_end/test/fasta/testing/suite.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1492,7 +1492,11 @@ class FuzzCompiles
print("Skipping $uri -- couldn't find builder for it.");
continue;
}
Uint8List orgData = fs.data[uri] as Uint8List;
Uint8List? orgData = fs.data[uri];
if (orgData == null) {
print("Skipping $uri -- couldn't find source for it.");
continue;
}
FuzzAstVisitorSorter fuzzAstVisitorSorter;
try {
fuzzAstVisitorSorter =
Expand Down
3 changes: 2 additions & 1 deletion pkg/front_end/testcases/weak.status
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ general/issue48765: semiFuzzFailureOnForceRebuildBodies # private class
general/mixin_from_patch/main: semiFuzzFailureOnForceRebuildBodies # needs custom libraries.json (and platform?) not setup here
general/multiple_class_patches/main: semiFuzzFailureOnForceRebuildBodies # needs custom libraries.json (and platform?) not setup here
general/no_such_method_forwarder: SemiFuzzFailure # https://dart-review.googlesource.com/c/sdk/+/242444
general/sealed_class_declaration: SemiFuzzFailure # "sealed" experimental feature.
general/tear_off_patch/main: semiFuzzFailureOnForceRebuildBodies # needs custom libraries.json (and platform?) not setup here
general/view_class_declaration: SemiFuzzFailure # "view" doesn't appear to get into the reordering.
general/view_class_declaration: SemiFuzzFailure # "view" doesn't appear to get into the reordering (experimental feature).
general/with_dependencies/issue_43084/issue_43084: SemiFuzzFailure # https://dart-review.googlesource.com/c/sdk/+/242543
inference_update_1/horizontal_inference_extension_method: SemiFuzzFailure # https://dart-review.googlesource.com/c/sdk/+/245004
inference_update_1/horizontal_inference_extension_method: semiFuzzFailureOnForceRebuildBodies # Errors on split
Expand Down
10 changes: 9 additions & 1 deletion pkg/kernel/lib/reference_from_index.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import "ast.dart"
Procedure,
ProcedureKind,
Reference,
Typedef;
Typedef,
View;

class ReferenceFromIndex {
Map<Library, IndexedLibrary> _indexedLibraries =
Expand Down Expand Up @@ -84,6 +85,7 @@ class IndexedLibrary extends IndexedContainer {
final Map<String, IndexedClass> _indexedClasses =
new Map<String, IndexedClass>();
final Map<String, Extension> _extensions = new Map<String, Extension>();
final Map<String, View> _views = new Map<String, View>();
@override
final Library library;

Expand All @@ -110,6 +112,11 @@ class IndexedLibrary extends IndexedContainer {
_extensions[extension.name] = extension;
}
}
for (int i = 0; i < library.views.length; i++) {
View view = library.views[i];
assert(_views[view.name] == null);
_views[view.name] = view;
}
_addProcedures(library.procedures);
_addFields(library.fields);

Expand Down Expand Up @@ -137,6 +144,7 @@ class IndexedLibrary extends IndexedContainer {
Class? lookupClass(String name) => _classes[name];
IndexedClass? lookupIndexedClass(String name) => _indexedClasses[name];
Extension? lookupExtension(String name) => _extensions[name];
View? lookupView(String name) => _views[name];
}

class IndexedClass extends IndexedContainer {
Expand Down
4 changes: 3 additions & 1 deletion pkg/test_runner/lib/src/test_progress.dart
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,9 @@ class ResultWriter extends EventListener {
final List<Map> _logs = [];
final String _outputDirectory;

ResultWriter(this._outputDirectory);
ResultWriter(this._outputDirectory) {
Directory(_outputDirectory).createSync(recursive: true);
}

void allTestsKnown() {
// Write an empty result log file, that will be overwritten if any tests
Expand Down
2 changes: 1 addition & 1 deletion tools/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ CHANNEL dev
MAJOR 2
MINOR 19
PATCH 0
PRERELEASE 401
PRERELEASE 402
PRERELEASE_PATCH 0

0 comments on commit 09be43f

Please sign in to comment.