Commit 760d8a87 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter
Browse files

skip memory manager for VAPI files remove unnecessary code in

2007-07-24  Juerg Billeter  <j@bitron.ch>

	* vala/valamemorymanager.vala: skip memory manager for VAPI files
	* vala/valasemanticanalyzer.vala: remove unnecessary code in
	  visit_creation_method

svn path=/trunk/; revision=382
parent fb59f803
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
......
......@@ -62,7 +62,9 @@ public class Vala.MemoryManager : CodeVisitor {
}
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) {
......
......@@ -448,21 +448,9 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment