Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2142)

Unified Diff: pkg/analyzer/lib/src/summary/link.dart

Issue 1989943002: Fix linker's handling of malformed function references. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Revert unnecessary method rename Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer/test/src/summary/linker_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/link.dart
diff --git a/pkg/analyzer/lib/src/summary/link.dart b/pkg/analyzer/lib/src/summary/link.dart
index 87af2c0a22a6ed992dce8d3ac63d7f0bbbb83873..fa924dca1183f4a34318349e03e5934a0646558c 100644
--- a/pkg/analyzer/lib/src/summary/link.dart
+++ b/pkg/analyzer/lib/src/summary/link.dart
@@ -1002,7 +1002,8 @@ abstract class CompilationUnitElementForLink
if (linkedReference.kind == ReferenceKind.function) {
// Local function
_references[index] = _resolveRef(containingReference)
- .getLocalFunction(linkedReference.localIndex);
+ .getLocalFunction(linkedReference.localIndex) ??
+ UndefinedElementForLink.instance;
} else {
_references[index] =
_resolveRef(containingReference).getContainedName(name);
« no previous file with comments | « no previous file | pkg/analyzer/test/src/summary/linker_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698