}
public override void visit_field (Field f) {
+ visit_member (f);
+
check_type (f.field_type);
f.accept_children (codegen);
}
public override void visit_property (Property prop) {
+ visit_member (prop);
+
check_type (prop.property_type);
int old_next_temp_var_id = next_temp_var_id;
head.visit_delegate (d);
}
- public override void visit_member (Member m) {
- head.visit_member (m);
- }
-
public override void visit_constant (Constant c) {
head.visit_constant (c);
}
}
}
- public override void visit_member (Member m) {
- }
-
public void generate_constant_declaration (Constant c, CCodeDeclarationSpace decl_space) {
if (decl_space.add_symbol_declaration (c, c.get_cname ())) {
return;
/* valacodevisitor.vala
*
- * Copyright (C) 2006-2009 Jürg Billeter
+ * Copyright (C) 2006-2010 Jürg Billeter
* Copyright (C) 2006-2008 Raffaele Sandrini
*
* This library is free software; you can redistribute it and/or
*/
public virtual void visit_delegate (Delegate d) {
}
-
- /**
- * Visit operation called for members.
- *
- * @param m a member
- */
- public virtual void visit_member (Member m) {
- }
/**
* Visit operation called for constants.
}
public override void accept (CodeVisitor visitor) {
- visitor.visit_member (this);
-
visitor.visit_constant (this);
}
}
public override void accept (CodeVisitor visitor) {
- visitor.visit_member (this);
-
visitor.visit_field (this);
}
this.comment = comment;
}
- public override void accept (CodeVisitor visitor) {
- visitor.visit_member (this);
- }
-
public override List<string> get_cheader_filenames () {
if (cheader_filenames.size == 0 && parent_symbol != null) {
/* default to header filenames of the namespace */
}
public override void accept (CodeVisitor visitor) {
- visitor.visit_member (this);
-
visitor.visit_property (this);
}
}
public override void accept (CodeVisitor visitor) {
- visitor.visit_member (this);
-
visitor.visit_signal (this);
}