[vala/wip/transform] Rename CodeBuilder.replaced to data



commit 7b80413ef8ecb50f5dee3d4efdb37cb966d56349
Author: Luca Bruno <luca bruno immobiliare it>
Date:   Mon Feb 3 14:33:26 2014 +0100

    Rename CodeBuilder.replaced to data

 vala/valacodebuilder.vala     |    2 +-
 vala/valacodetransformer.vala |    8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/vala/valacodebuilder.vala b/vala/valacodebuilder.vala
index 3b81f28..8e90d82 100644
--- a/vala/valacodebuilder.vala
+++ b/vala/valacodebuilder.vala
@@ -30,7 +30,7 @@ public class Vala.CodeBuilder {
        public ArrayList<CodeNode> decl_nodes = new ArrayList<CodeNode> ();
        public SourceReference source_reference;
 
-       public void* replaced = null;
+       public void* data = null;
 
        public CodeBuilder (CodeContext context, Statement insert_statement, SourceReference 
source_reference) {
                this.source_reference = source_reference;
diff --git a/vala/valacodetransformer.vala b/vala/valacodetransformer.vala
index 57e04b2..f75454f 100644
--- a/vala/valacodetransformer.vala
+++ b/vala/valacodetransformer.vala
@@ -57,11 +57,11 @@ public class Vala.CodeTransformer : CodeVisitor {
                var data = new ReplaceStatementData ();
                data.stmt = stmt;
                data.parent_block = context.analyzer.get_current_block (stmt);
-               b.replaced = (owned) data;
+               b.data = (owned) data;
        }
 
        public void end_replace_statement () {
-               var data = (ReplaceStatementData) (owned) b.replaced;
+               var data = (ReplaceStatementData) (owned) b.data;
                
                context.analyzer.replaced_nodes.add (data.stmt);
                data.parent_block.replace_statement (data.stmt, new EmptyStatement 
(data.stmt.source_reference));
@@ -81,11 +81,11 @@ public class Vala.CodeTransformer : CodeVisitor {
                var data = new ReplaceExpressionData ();
                data.expr = expr;
                data.parent_node = expr.parent_node;
-               b.replaced = (owned) data;
+               b.data = (owned) data;
        }
 
        public void end_replace_expression (Expression? replacement) {
-               var data = (ReplaceExpressionData) (owned) b.replaced;
+               var data = (ReplaceExpressionData) (owned) b.data;
 
                if (replacement != null) {
                        context.analyzer.replaced_nodes.add (data.expr);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]