Пример #1
0
        public LuaPropertyAdapterExpressionSyntax GetCloneOfGet()
        {
            LuaPropertyAdapterExpressionSyntax clone = GetClone();

            clone.IsGetOrAdd = true;
            IsGetOrAdd       = false;
            return(clone);
        }
Пример #2
0
        public LuaPropertyAdapterExpressionSyntax GetClone()
        {
            LuaPropertyAdapterExpressionSyntax clone = new LuaPropertyAdapterExpressionSyntax(Name.GetClone());

            clone.Expression    = Expression;
            clone.OperatorToken = OperatorToken;
            clone.ArgumentList.Arguments.AddRange(ArgumentList.Arguments);
            return(clone);
        }