else throw new Exception("Unexpected value on line " + mInput.LineNumber + ": " + atom);\r
}\r
\r
+ public void set_next(string atom)\r
+ {\r
+ string value = Parse.String(atom);\r
+ if (value != null) mMetadata.Next = value;\r
+ else throw new Exception("Unexpected value on line " + mInput.LineNumber + ": " + atom);\r
+ }\r
+\r
public void set_type(string atom)\r
{\r
- Map.Mode value = Parse.Constant<Map.Mode>(atom);\r
- if (value != default(Map.Mode)) mMetadata.Type = value;\r
+ Map.Mode? value = Parse.Constant<Map.Mode>(atom);\r
+ if (value != null) mMetadata.Type = value.Value;\r
else throw new Exception("Unexpected type on line " + mInput.LineNumber + ": " + atom);\r
}\r
\r