internal void AddFieldAttributes(LuaIdentifierNameSyntax name, List <LuaExpressionSyntax> attributes) { if (attributes.Count > 0) { LuaTableInitializerExpression table = new LuaTableInitializerExpression(); table.Items.AddRange(attributes.Select(i => new LuaSingleTableItemSyntax(i))); LuaTableLiteralKeySyntax key = new LuaTableLiteralKeySyntax(name); LuaKeyValueTableItemSyntax item = new LuaKeyValueTableItemSyntax(key, table); attributes_.Items.Add(item); } }
public void Add(LuaKeyValueTableItemSyntax statement) { AddResultTable(statement); }
protected void AddResultTable(LuaKeyValueTableItemSyntax item) { resultTable_.Items.Add(item); }
public void Add(LuaKeyValueTableItemSyntax statement) { resultTable_.Items.Add(statement); }
private void AddResultTable(LuaIdentifierNameSyntax name, LuaExpressionSyntax value) { LuaKeyValueTableItemSyntax item = new LuaKeyValueTableItemSyntax(new LuaTableLiteralKeySyntax(name), value); resultTable_.Items.Add(item); }
private void AddResultTable(LuaIdentifierNameSyntax name) { LuaKeyValueTableItemSyntax item = new LuaKeyValueTableItemSyntax(name, name); resultTable_.Items.Add(item); }