summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gdscript/gdscript_parser.h')
-rw-r--r--modules/gdscript/gdscript_parser.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/modules/gdscript/gdscript_parser.h b/modules/gdscript/gdscript_parser.h
index 2daadd7e6a..62a2f4f98c 100644
--- a/modules/gdscript/gdscript_parser.h
+++ b/modules/gdscript/gdscript_parser.h
@@ -363,7 +363,7 @@ public:
bool is_resolved = false;
bool is_applied = false;
- bool apply(GDScriptParser *p_this, Node *p_target);
+ bool apply(GDScriptParser *p_this, Node *p_target, ClassNode *p_class);
bool applies_to(uint32_t p_target_kinds) const;
AnnotationNode() {
@@ -1340,7 +1340,7 @@ private:
bool in_lambda = false;
bool lambda_ended = false; // Marker for when a lambda ends, to apply an end of statement if needed.
- typedef bool (GDScriptParser::*AnnotationAction)(const AnnotationNode *p_annotation, Node *p_target);
+ typedef bool (GDScriptParser::*AnnotationAction)(const AnnotationNode *p_annotation, Node *p_target, ClassNode *p_class);
struct AnnotationInfo {
enum TargetKind {
NONE = 0,
@@ -1461,16 +1461,16 @@ private:
bool register_annotation(const MethodInfo &p_info, uint32_t p_target_kinds, AnnotationAction p_apply, const Vector<Variant> &p_default_arguments = Vector<Variant>(), bool p_is_vararg = false);
bool validate_annotation_arguments(AnnotationNode *p_annotation);
void clear_unused_annotations();
- bool tool_annotation(const AnnotationNode *p_annotation, Node *p_target);
- bool icon_annotation(const AnnotationNode *p_annotation, Node *p_target);
- bool onready_annotation(const AnnotationNode *p_annotation, Node *p_target);
+ bool tool_annotation(const AnnotationNode *p_annotation, Node *p_target, ClassNode *p_class);
+ bool icon_annotation(const AnnotationNode *p_annotation, Node *p_target, ClassNode *p_class);
+ bool onready_annotation(const AnnotationNode *p_annotation, Node *p_target, ClassNode *p_class);
template <PropertyHint t_hint, Variant::Type t_type>
- bool export_annotations(const AnnotationNode *p_annotation, Node *p_target);
+ bool export_annotations(const AnnotationNode *p_annotation, Node *p_target, ClassNode *p_class);
template <PropertyUsageFlags t_usage>
- bool export_group_annotations(const AnnotationNode *p_annotation, Node *p_target);
- bool warning_annotations(const AnnotationNode *p_annotation, Node *p_target);
- bool rpc_annotation(const AnnotationNode *p_annotation, Node *p_target);
- bool static_unload_annotation(const AnnotationNode *p_annotation, Node *p_target);
+ bool export_group_annotations(const AnnotationNode *p_annotation, Node *p_target, ClassNode *p_class);
+ bool warning_annotations(const AnnotationNode *p_annotation, Node *p_target, ClassNode *p_class);
+ bool rpc_annotation(const AnnotationNode *p_annotation, Node *p_target, ClassNode *p_class);
+ bool static_unload_annotation(const AnnotationNode *p_annotation, Node *p_target, ClassNode *p_class);
// Statements.
Node *parse_statement();
VariableNode *parse_variable(bool p_is_static);