Example #1
0
        private TypeInfo Visit(CreateTableNode node, MethodBuilder builder, CodegenContext context)
        {
            TypeInfo type = null;

            if (node.IsTable)
            {
                type = typeBuilder.GenerateTableType(node.TypeNode);
            }
            else
            {
                type = typeBuilder.GenerateDictionaryType(node.TypeNode, node.ValueTypeNode);
            }

            builder.DefaultConstructor(type);

            return(type);
        }