예제 #1
0
        public void ReplaceMembersInContent(BaseTree baseTree)
        {
            Expression newContent = baseTree.GetCompiledConstValue(_originalContent);

            _compiledContent.ClearChildren();
            _compiledContent.AddChildren(newContent.GetChildren());

            //this._constInfo.Value = _content; ConstInfo is for original SF...if this is overwrite, we need to find copied ConstInfo
            ConstInfo rightConst = baseTree.SF.SI.FindLocalConst(this._constInfo.Name);

            rightConst.Value = _compiledContent;
        }