]> git.draconx.ca Git - gob-dx.git/blobdiff - src/tree.h
Release 0.0.3
[gob-dx.git] / src / tree.h
index d3617a9a9b61c1a728338f032b36948004084067..348cb8a77b1bd7ef9f3462058f951a30d5fa994e 100644 (file)
@@ -42,6 +42,7 @@ struct _CCode {
        int type;
        int header;
        GString *cbuf;
+       int line_no;
 };
 
 typedef struct _Class Class;
@@ -92,7 +93,9 @@ struct _Argument {
        GList *flags;
        char *name;
        GString *get;
+       int get_line;
        GString *set;
+       int set_line;
 };
        
 /*scope type*/
@@ -119,6 +122,7 @@ struct _Method {
        char *onerror;
        GString *cbuf;
        int line_no;
+       int ccode_line;
 };
 
 typedef struct _Variable Variable;
@@ -140,13 +144,13 @@ union _Node {
        Variable variable;
 };
 
-Node *new_ccode(int header, GString *cbuf);
+Node *new_ccode(int header, GString *cbuf, int line_no);
 Node *new_class(char *otype, char *ptype, GList *nodes);
 Node *new_type(int stars, char *name);
 Node *new_check(int chtype, char *number);
 Node *new_funcarg(Type *atype, char *name, GList *checks);
-Node *new_method(int scope, Type *mtype, char *otype, GList *gtktypes, char *id, GList *args, char *onerror, GString *cbuf,int line_no);
-Node *new_argument(char *gtktype, GList *flags, char *name, GString *get, GString *set);
+Node *new_method(int scope, Type *mtype, char *otype, GList *gtktypes, char *id, GList *args, char *onerror, GString *cbuf,int line_no,int ccode_line);
+Node *new_argument(char *gtktype, GList *flags, char *name, GString *get, int get_line, GString *set, int set_line);
 Node *new_variable(int scope, Type *vtype, char *id);
 
 #endif