コード例 #1
0
        public bool TryBuildPropertySetter(PropertySymbol propertySymbol, out SymbolImplementation symbolImplementation)
        {
            AccessorNode setterNode = propertySymbol.GetPropertyNode().SetAccessor;

            if (setterNode == null || setterNode.IsAutoProperty)
            {
                symbolImplementation = null;
                return(false);
            }

            BlockStatementNode accessorBody = setterNode.Implementation;

            symbolImplementation = BuildImplementation((ISymbolTable)propertySymbol.Parent,
                                                       propertySymbol, accessorBody, addAllParameters: true);
            return(symbolImplementation != null);
        }