summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jansmans <unknown>2009-08-17 14:11:05 +0000
committerGravatar jansmans <unknown>2009-08-17 14:11:05 +0000
commitf8fc3206a70a482dbdc4af56ea32fa233a36c155 (patch)
treeafc586267bb629ec1fdd665757d82f20e6f48d98
parent3fd9f0a2a4f754c039653ac2fab090167f0b2596 (diff)
- made the output of the Chalice-to-C# translator slightly nicer
-rw-r--r--Chalice/src/ChaliceToCSharp.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/Chalice/src/ChaliceToCSharp.scala b/Chalice/src/ChaliceToCSharp.scala
index 2bc7f2fe..18c1f849 100644
--- a/Chalice/src/ChaliceToCSharp.scala
+++ b/Chalice/src/ChaliceToCSharp.scala
@@ -28,14 +28,14 @@ class ChaliceToCSharp {
indent + "public void Send(" + repsep(ch.parameters map { variable => convertType(variable.t) + " " + variable.id }, ", ") + ") {" + nl +
indentMore {
indent + ch.channelId + "_args " + "entry = new " + ch.channelId + "_args" + "();" + nl +
- indent + repsep(ch.parameters map { p => "entry." + p.id + " = " + p.id + ";"}, nl) + nl +
+ repsep(ch.parameters map { p => indent + "entry." + p.id + " = " + p.id + ";"}, nl) + nl +
indent + "buffer.Add(entry);" + nl
} +
indent + "}" + nl +
indent + "public void Receive(" + repsep(ch.parameters map { variable => "out " + convertType(variable.t) + " " + variable.id }, ", ") + ") {" + nl +
indentMore {
indent + ch.channelId + "_args " + "entry = buffer.Remove();" + nl +
- indent + repsep(ch.parameters map { p => p.id + " = entry." + p.id + ";"}, nl) + nl
+ repsep(ch.parameters map { p => indent + p.id + " = entry." + p.id + ";"}, nl) + nl
} +
indent + "}" + nl
} +