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

Side by Side Diff: runtime/vm/parser.h

Issue 751183003: Expose set_source service command for functions (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_PARSER_H_ 5 #ifndef VM_PARSER_H_
6 #define VM_PARSER_H_ 6 #define VM_PARSER_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 9
10 #include "platform/assert.h" 10 #include "platform/assert.h"
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 214
215 // Parse and evaluate the metadata expressions at token_pos in the 215 // Parse and evaluate the metadata expressions at token_pos in the
216 // class namespace of class cls (which can be the implicit toplevel 216 // class namespace of class cls (which can be the implicit toplevel
217 // class if the metadata is at the top-level). 217 // class if the metadata is at the top-level).
218 static RawObject* ParseMetadata(const Class& cls, intptr_t token_pos); 218 static RawObject* ParseMetadata(const Class& cls, intptr_t token_pos);
219 219
220 // Build a function containing the initializer expression of the 220 // Build a function containing the initializer expression of the
221 // given static field. 221 // given static field.
222 static ParsedFunction* ParseStaticFieldInitializer(const Field& field); 222 static ParsedFunction* ParseStaticFieldInitializer(const Field& field);
223 223
224 // Returns a RawFunction or RawError.
225 static RawObject* ParseFunctionFromSource(const Class& owning_class,
226 const String& source);
227
224 // Parse a function to retrieve parameter information that is not retained in 228 // Parse a function to retrieve parameter information that is not retained in
225 // the dart::Function object. Returns either an error if the parse fails 229 // the dart::Function object. Returns either an error if the parse fails
226 // (which could be the case for local functions), or a flat array of entries 230 // (which could be the case for local functions), or a flat array of entries
227 // for each parameter. Each parameter entry contains: 231 // for each parameter. Each parameter entry contains:
228 // * a Dart bool indicating whether the parameter was declared final 232 // * a Dart bool indicating whether the parameter was declared final
229 // * its default value (or null if none was declared) 233 // * its default value (or null if none was declared)
230 // * an array of metadata (or null if no metadata was declared). 234 // * an array of metadata (or null if no metadata was declared).
231 enum { 235 enum {
232 kParameterIsFinalOffset, 236 kParameterIsFinalOffset,
233 kParameterDefaultValueOffset, 237 kParameterDefaultValueOffset,
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
823 bool unregister_pending_function_; 827 bool unregister_pending_function_;
824 828
825 LocalScope* async_temp_scope_; 829 LocalScope* async_temp_scope_;
826 830
827 DISALLOW_COPY_AND_ASSIGN(Parser); 831 DISALLOW_COPY_AND_ASSIGN(Parser);
828 }; 832 };
829 833
830 } // namespace dart 834 } // namespace dart
831 835
832 #endif // VM_PARSER_H_ 836 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698