2007-07-24 Jürg Billeter <j@bitron.ch>
+ * vala/valamemorymanager.vala: skip memory manager for VAPI files
+ * vala/valasemanticanalyzer.vala: remove unnecessary code in
+ visit_creation_method
+
+2007-07-24 Jürg Billeter <j@bitron.ch>
+
* gobject/valaccodecompiler.vala, compiler/valacompiler.vala: add --cc
and -X options to be able to specify custom command and options for
the C compiler
}
public override void visit_source_file (SourceFile! source_file) {
- source_file.accept_children (this);
+ if (!source_file.pkg) {
+ source_file.accept_children (this);
+ }
}
public override void visit_class (Class! cl) {
current_return_type = up_method.return_type;
}
- if (current_symbol is Class) {
- if (!(m is CreationMethod)) {
- find_base_interface_method (m, (Class) current_symbol);
- if (m.is_virtual || m.overrides) {
- find_base_class_method (m, (Class) current_symbol);
- if (m.base_method == null) {
- Report.error (m.source_reference, "%s: no suitable method found to override".printf (m.get_full_name ()));
- }
- }
- }
- } else if (current_symbol is Struct) {
- if (m.is_abstract || m.is_virtual || m.overrides) {
- Report.error (m.source_reference, "A struct member `%s' cannot be marked as override, virtual, or abstract".printf (m.get_full_name ()));
- return;
- }
+ if (m.is_abstract || m.is_virtual || m.overrides) {
+ Report.error (m.source_reference, "The creation method `%s' cannot be marked as override, virtual, or abstract".printf (m.get_full_name ()));
+ return;
}
if (m.body != null && current_class != null) {