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

Unified Diff: lib/kernel.dart

Issue 2207473003: Avoid crashing on synthetic elements. (Closed) Base URL: git@github.com:dart-lang/rasta.git@dill
Patch Set: Merged with 47f575a073f4b28c3798e1b22098664ee737e6b8 Created 4 years, 4 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 | lib/unresolved.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/kernel.dart
diff --git a/lib/kernel.dart b/lib/kernel.dart
index 3214fd56674a0df573cb7353b54d8653f7100f24..380045ad581c0ded54cf11c5042a6c02486fc1c3 100644
--- a/lib/kernel.dart
+++ b/lib/kernel.dart
@@ -574,7 +574,7 @@ class Kernel {
/// Returns true if [element] is synthesized to recover or represent a
/// semantic error, for example, missing, duplicated, or ambiguous elements.
- /// However, returns true for elements that have an unrecoverable syntax
+ /// However, returns false for elements that have an unrecoverable syntax
/// error. Both kinds of element will return true from [Element.isMalformed],
/// but they must be handled differently. For example, a static call to
/// synthetic error element should be compiled to [ir.InvalidExpression],
« no previous file with comments | « no previous file | lib/unresolved.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698