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

Unified Diff: runtime/vm/object.h

Issue 2632253002: VM: [Kernel] Partial support for metadata annotations (Closed)
Patch Set: Address comments Created 3 years, 11 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/kernel_to_il.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 61a8051b8ebcba5e3b76764371117ce469bb924f..cf302d8f7e55807638131f9c46a21a040ebcb393 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -31,6 +31,7 @@ namespace dart {
// Forward declarations.
namespace kernel {
class Program;
+class TreeNode;
}
#define DEFINE_FORWARD_DECLARATION(clazz) class clazz;
@@ -3762,9 +3763,14 @@ class Library : public Object {
void AddClassMetadata(const Class& cls,
const Object& tl_owner,
- TokenPosition token_pos) const;
- void AddFieldMetadata(const Field& field, TokenPosition token_pos) const;
- void AddFunctionMetadata(const Function& func, TokenPosition token_pos) const;
+ TokenPosition token_pos,
+ kernel::TreeNode* kernel_node = NULL) const;
+ void AddFieldMetadata(const Field& field,
+ TokenPosition token_pos,
+ kernel::TreeNode* kernel_node = NULL) const;
+ void AddFunctionMetadata(const Function& func,
+ TokenPosition token_pos,
+ kernel::TreeNode* kernel_node = NULL) const;
void AddLibraryMetadata(const Object& tl_owner,
TokenPosition token_pos) const;
void AddTypeParameterMetadata(const TypeParameter& param,
@@ -3931,7 +3937,8 @@ class Library : public Object {
RawField* GetMetadataField(const String& metaname) const;
void AddMetadata(const Object& owner,
const String& name,
- TokenPosition token_pos) const;
+ TokenPosition token_pos,
+ kernel::TreeNode* kernel_node = NULL) const;
FINAL_HEAP_OBJECT_IMPLEMENTATION(Library, Object);
« no previous file with comments | « runtime/vm/kernel_to_il.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698