[vala/switch-to-gir] 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] girparser: Add missing source references to classes and structs
- Date: Mon, 23 Aug 2010 20:26:43 +0000 (UTC)
commit d485d764b9d50d7ead81fd63046120445f871fb7
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 | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 2a232d9..82e7e47 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -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]