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

Unified Diff: runtime/vm/parser.h

Issue 2904793002: Allow setting breakpoints in literal function initializers of fields. (Closed)
Patch Set: Address comments on patch set 3. Created 3 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 | « runtime/vm/debugger_test.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.h
diff --git a/runtime/vm/parser.h b/runtime/vm/parser.h
index aac41b0af445965a5d02737e3d28d222e655bc84..cc2ccf95afe09da5435ffe32c47ecca78d855941 100644
--- a/runtime/vm/parser.h
+++ b/runtime/vm/parser.h
@@ -274,6 +274,13 @@ class Parser : public ValueObject {
static void ParseFunction(ParsedFunction* parsed_function);
+ // Return true if |field| has a function literal initializer.
+ // When true is returned, |start| and |end| will hold the token
+ // range of the function literal.
+ static bool FieldHasFunctionLiteralInitializer(const Field& field,
+ TokenPosition* start,
+ TokenPosition* end);
+
// Parse and evaluate the metadata expressions at token_pos in the
// class namespace of class cls (which can be the implicit toplevel
// class if the metadata is at the top-level).
@@ -858,6 +865,9 @@ class Parser : public ValueObject {
void CheckInstanceFieldAccess(TokenPosition field_pos,
const String& field_name);
bool ParsingStaticMember() const;
+ bool GetFunctionLiteralInitializerRange(const Field& field,
+ TokenPosition* start,
+ TokenPosition* end);
const AbstractType* ReceiverType(const Class& cls);
bool IsInstantiatorRequired() const;
bool InGenericFunctionScope() const;
« no previous file with comments | « runtime/vm/debugger_test.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698