summaryrefslogtreecommitdiff
path: root/ddl/out/LambdaCube.TypeInfo.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ddl/out/LambdaCube.TypeInfo.cs')
-rw-r--r--ddl/out/LambdaCube.TypeInfo.cs82
1 files changed, 36 insertions, 46 deletions
diff --git a/ddl/out/LambdaCube.TypeInfo.cs b/ddl/out/LambdaCube.TypeInfo.cs
index 70642a0..ed57f07 100644
--- a/ddl/out/LambdaCube.TypeInfo.cs
+++ b/ddl/out/LambdaCube.TypeInfo.cs
@@ -1,5 +1,5 @@
1// generated file, do not modify! 1// generated file, do not modify!
2// 2016-03-21T13:14:18.260874000000Z 2// 2016-03-21T13:31:10.409214000000Z
3 3
4using System; 4using System;
5using System.Linq; 5using System.Linq;
@@ -85,60 +85,50 @@ namespace LambdaCube.TypeInfo {
85 85
86 case Type.Range: { 86 case Type.Range: {
87 string tag = (string)obj["tag"]; 87 string tag = (string)obj["tag"];
88 Range.Tag tagType; 88 switch (tag) {
89 if (tag == "Range") { 89 case "Range": {
90 tagType = Range.Tag.Range; 90 data.Range tv = new data.Range();
91 data.Range tv = new data.Range(); 91 tv.startLine = (int)fromJSON(Type.Int,obj["startLine"]);
92 tv.startLine = (int)fromJSON(Type.Int,obj["startLine"]); 92 tv.startColumn = (int)fromJSON(Type.Int,obj["startColumn"]);
93 tv.startColumn = (int)fromJSON(Type.Int,obj["startColumn"]); 93 tv.endLine = (int)fromJSON(Type.Int,obj["endLine"]);
94 tv.endLine = (int)fromJSON(Type.Int,obj["endLine"]); 94 tv.endColumn = (int)fromJSON(Type.Int,obj["endColumn"]);
95 tv.endColumn = (int)fromJSON(Type.Int,obj["endColumn"]); 95 return tv;
96 return tv; 96 }
97 default: throw new Exception("unknown constructor: " + tag);
97 } 98 }
98 else throw new Exception("unknown constructor: " + tag);
99 Range o = new Range();
100 o.tag = tagType;
101 return o;
102 } 99 }
103 case Type.TypeInfo: { 100 case Type.TypeInfo: {
104 string tag = (string)obj["tag"]; 101 string tag = (string)obj["tag"];
105 TypeInfo.Tag tagType; 102 switch (tag) {
106 if (tag == "TypeInfo") { 103 case "TypeInfo": {
107 tagType = TypeInfo.Tag.TypeInfo; 104 data.TypeInfo tv = new data.TypeInfo();
108 data.TypeInfo tv = new data.TypeInfo(); 105 tv.range = (global::LambdaCube.TypeInfo.Range)fromJSON(Type.Range,obj["range"]);
109 tv.range = (global::LambdaCube.TypeInfo.Range)fromJSON(Type.Range,obj["range"]); 106 tv.text = (string)fromJSON(Type.String,obj["text"]);
110 tv.text = (string)fromJSON(Type.String,obj["text"]); 107 return tv;
111 return tv; 108 }
109 default: throw new Exception("unknown constructor: " + tag);
112 } 110 }
113 else throw new Exception("unknown constructor: " + tag);
114 TypeInfo o = new TypeInfo();
115 o.tag = tagType;
116 return o;
117 } 111 }
118 case Type.CompileResult: { 112 case Type.CompileResult: {
119 string tag = (string)obj["tag"]; 113 string tag = (string)obj["tag"];
120 CompileResult.Tag tagType; 114 switch (tag) {
121 if (tag == "CompileError") { 115 case "CompileError": {
122 tagType = CompileResult.Tag.CompileError; 116 data.CompileError tv = new data.CompileError();
123 data.CompileError tv = new data.CompileError(); 117 tv._0 = (List<global::LambdaCube.TypeInfo.Range>)fromJSON(Type.Array_Range,obj["arg0"]);
124 tv._0 = (List<global::LambdaCube.TypeInfo.Range>)fromJSON(Type.Array_Range,obj["arg0"]); 118 tv._1 = (string)fromJSON(Type.String,obj["arg1"]);
125 tv._1 = (string)fromJSON(Type.String,obj["arg1"]); 119 tv._2 = (List<global::LambdaCube.TypeInfo.TypeInfo>)fromJSON(Type.Array_TypeInfo,obj["arg2"]);
126 tv._2 = (List<global::LambdaCube.TypeInfo.TypeInfo>)fromJSON(Type.Array_TypeInfo,obj["arg2"]); 120 return tv;
127 return tv; 121 }
122 case "Compiled": {
123 data.Compiled tv = new data.Compiled();
124 tv._0 = (string)fromJSON(Type.String,obj["arg0"]);
125 tv._1 = (string)fromJSON(Type.String,obj["arg1"]);
126 tv._2 = (global::LambdaCube.TypeInfo.Pipeline)fromJSON(Type.Pipeline,obj["arg2"]);
127 tv._3 = (List<global::LambdaCube.TypeInfo.TypeInfo>)fromJSON(Type.Array_TypeInfo,obj["arg3"]);
128 return tv;
129 }
130 default: throw new Exception("unknown constructor: " + tag);
128 } 131 }
129 else if (tag == "Compiled") {
130 tagType = CompileResult.Tag.Compiled;
131 data.Compiled tv = new data.Compiled();
132 tv._0 = (string)fromJSON(Type.String,obj["arg0"]);
133 tv._1 = (string)fromJSON(Type.String,obj["arg1"]);
134 tv._2 = (global::LambdaCube.TypeInfo.Pipeline)fromJSON(Type.Pipeline,obj["arg2"]);
135 tv._3 = (List<global::LambdaCube.TypeInfo.TypeInfo>)fromJSON(Type.Array_TypeInfo,obj["arg3"]);
136 return tv;
137 }
138 else throw new Exception("unknown constructor: " + tag);
139 CompileResult o = new CompileResult();
140 o.tag = tagType;
141 return o;
142 } 132 }
143 } 133 }
144 throw new Exception("unknown type"); 134 throw new Exception("unknown type");