[vala/switch-to-gir: 9/34] girparser: Add missing source references to classes and structs
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/switch-to-gir: 9/34] girparser: Add missing source references to classes and structs
- Date: Sun, 29 Aug 2010 22:23:36 +0000 (UTC)
commit f0fc12f909aabeda81b2aa80f0ca5c484e583e0a
Author: Luca Bruno <lethalman88 gmail com>
Date: Mon Aug 23 22:15:23 2010 +0200
girparser: Add missing source references to classes and structs
vala/valagirparser.vala | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 2a232d9..e54939f 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -582,11 +582,11 @@ public class Vala.GirParser : CodeVisitor {
DataType parse_type_from_name (string type_name) {
DataType type;
if (type_name == "none") {
- type = new VoidType ();
+ type = new VoidType (get_current_src ());
} else if (type_name == "any") {
- type = new PointerType (new VoidType ());
+ type = new PointerType (new VoidType (get_current_src ()), get_current_src ());
} else if (type_name == "GObject.Strv") {
- type = new ArrayType (new UnresolvedType.from_symbol (new UnresolvedSymbol (null, "string")), 1, null);
+ type = new ArrayType (new UnresolvedType.from_symbol (new UnresolvedSymbol (null, "string")), 1, get_current_src ());
} else {
if (type_name == "utf8") {
type_name = "string";
@@ -1243,7 +1243,7 @@ public class Vala.GirParser : CodeVisitor {
} else {
return_type = new VoidType ();
}
- var sig = new Signal (name, return_type);
+ var sig = new Signal (name, return_type, get_current_src ());
sig.access = SymbolAccessibility.PUBLIC;
sig.external = true;
if (current_token == MarkupTokenType.START_ELEMENT && reader.name == "parameters") {
@@ -1263,7 +1263,7 @@ public class Vala.GirParser : CodeVisitor {
if (name == null) {
name = reader.get_attribute ("glib:name");
}
- var cl = new Class (name);
+ var cl = new Class (name, get_current_src ());
cl.access = SymbolAccessibility.PUBLIC;
cl.external = true;
cl.is_compact = true;
@@ -1308,7 +1308,7 @@ public class Vala.GirParser : CodeVisitor {
Struct parse_union () {
start_element ("union");
- var st = new Struct (reader.get_attribute ("name"));
+ var st = new Struct (reader.get_attribute ("name"), get_current_src ());
st.access = SymbolAccessibility.PUBLIC;
st.external = true;
next ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]