public LuaPropertyNode(string propertyName, LuaMemberType memberType, LuaBaseStatementNode initStatementNode = null) { this.propertyName = propertyName; this.initStatementNode = initStatementNode; this.memberType = memberType; }
public override void Parse(string context) { context = context.Trim(); memberType = context.StartsWith("local") ? LuaMemberType.Local : LuaMemberType.Global; context = context.RemoveString("local"); if (!context.Contains("=")) { fieldName = context.Trim(); } else { fieldName = context.Split('=')[0].Trim(); initStatementNode = new LuaScriptStatementNode(context.Split('=')[1].Trim()); } }
public LuaFieldNode(string fieldName, LuaMemberType memberType, LuaBaseStatementNode initStatementNode = null) { this.fieldName = fieldName; this.memberType = memberType; this.initStatementNode = initStatementNode; }