[vala/wip/transform: 112/120] Rename CodeBuilder.replaced to data
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/transform: 112/120] Rename CodeBuilder.replaced to data
- Date: Thu, 13 Mar 2014 21:53:35 +0000 (UTC)
commit c355449985ca388ee1ece704f70e0789eeadac46
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]