| 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;
|
|
|