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

Unified Diff: runtime/vm/object.cc

Issue 1767113007: Fix crash when setting breakpoint in Observatory (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 93ad49ce7a1d48d62baa1493e3ae2889d312a642..faeb61fbabb9ba609f7f020af7b9c4398855e151 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -3345,7 +3345,7 @@ void Class::set_token_pos(TokenPosition token_pos) const {
TokenPosition Class::ComputeEndTokenPos() const {
// Return the begin token for synthetic classes.
- if (IsMixinApplication() || IsTopLevel()) {
+ if (is_synthesized_class() || IsMixinApplication() || IsTopLevel()) {
return token_pos();
}
const Script& scr = Script::Handle(script());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698