Commit 1983f9f3 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter
Browse files

support dependencies on constants

2006-10-25  Jürg Billeter  <j@bitron.ch>

	* vala/valasourcefile.vala: support dependencies on constants

svn path=/trunk/; revision=148
parent a6928466
2006-10-25 Jürg Billeter <j@bitron.ch>
* vala/valasourcefile.vala: support dependencies on constants
2006-10-24 Jürg Billeter <j@bitron.ch> 2006-10-24 Jürg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: don't crash when comparing value type * vala/valasemanticanalyzer.vala: don't crash when comparing value type
......
...@@ -233,6 +233,16 @@ public class Vala.SourceFile { ...@@ -233,6 +233,16 @@ public class Vala.SourceFile {
} }
} else if (sym.node is Property) { } else if (sym.node is Property) {
t = (DataType) sym.parent_symbol.node; t = (DataType) sym.parent_symbol.node;
} else if (sym.node is Constant) {
if (sym.parent_symbol.node is DataType) {
t = (DataType) sym.parent_symbol.node;
} else if (sym.parent_symbol.node is Namespace) {
var ns = (Namespace) sym.parent_symbol.node;
source_internal_includes.concat (ns.get_cheader_filenames ());
return;
} else {
return;
}
} else if (sym.node is FormalParameter) { } else if (sym.node is FormalParameter) {
var fp = (FormalParameter) sym.node; var fp = (FormalParameter) sym.node;
t = fp.type_reference.data_type; t = fp.type_reference.data_type;
......
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