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