[vala/wip/transform: 91/106] Rename CodeBuilder.replaced to data
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/transform: 91/106] Rename CodeBuilder.replaced to data
- Date: Mon, 4 Feb 2019 09:27:38 +0000 (UTC)
commit b2902fc3dae0e9f2159fd0b3789a23d1903c77c0
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 a79abd53f..55c7c419a 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 0f5333dcf..dd2462729 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]