Beispiel #1
0
 private void AssertContainerType(LuaContainerType type)
 {
     if (Peek() != type)
     {
         throw new LuaTableWriterException("Invalid writer state. Expect container type:" + type, CurrentPath);
     }
 }
Beispiel #2
0
 public LuaContainerContext(LuaContainerType containerType)
 {
     ContainerType   = containerType;
     Key             = null;
     BoxedKey        = null;
     KeyIsExpression = true;
     CurrentIndex    = 1;
 }
Beispiel #3
0
 private void Push(LuaContainerType type)
 {
     contextStack.Add(currentContext);
     currentContext = new LuaContainerContext(type);
 }