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

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

Issue 1311613005: Add ParameterMirror.isInitializingFormal to dart:mirrors Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « runtime/lib/mirrors_impl.dart ('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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 // the dart::Function object. Returns either an error if the parse fails 219 // the dart::Function object. Returns either an error if the parse fails
220 // (which could be the case for local functions), or a flat array of entries 220 // (which could be the case for local functions), or a flat array of entries
221 // for each parameter. Each parameter entry contains: 221 // for each parameter. Each parameter entry contains:
222 // * a Dart bool indicating whether the parameter was declared final 222 // * a Dart bool indicating whether the parameter was declared final
223 // * its default value (or null if none was declared) 223 // * its default value (or null if none was declared)
224 // * an array of metadata (or null if no metadata was declared). 224 // * an array of metadata (or null if no metadata was declared).
225 enum { 225 enum {
226 kParameterIsFinalOffset, 226 kParameterIsFinalOffset,
227 kParameterDefaultValueOffset, 227 kParameterDefaultValueOffset,
228 kParameterMetadataOffset, 228 kParameterMetadataOffset,
229 kParameterIsFieldInitializorOffset,
229 kParameterEntrySize, 230 kParameterEntrySize,
230 }; 231 };
231 static RawObject* ParseFunctionParameters(const Function& func); 232 static RawObject* ParseFunctionParameters(const Function& func);
232 233
233 private: 234 private:
234 friend class EffectGraphVisitor; // For BuildNoSuchMethodArguments. 235 friend class EffectGraphVisitor; // For BuildNoSuchMethodArguments.
235 236
236 struct Block; 237 struct Block;
237 class TryStack; 238 class TryStack;
238 239
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 889
889 // Indentation of parser trace. 890 // Indentation of parser trace.
890 intptr_t trace_indent_; 891 intptr_t trace_indent_;
891 892
892 DISALLOW_COPY_AND_ASSIGN(Parser); 893 DISALLOW_COPY_AND_ASSIGN(Parser);
893 }; 894 };
894 895
895 } // namespace dart 896 } // namespace dart
896 897
897 #endif // VM_PARSER_H_ 898 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « runtime/lib/mirrors_impl.dart ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698