コード例 #1
0
 private static LanguageElement GetCodeElementToReplace(LanguageElement element, Property property)
 {
     if (property.HasGetter && element.Inside(LanguageElementType.PropertyAccessorGet))
     {
         return(GetElement <Return>(element));
     }
     if (property.HasSetter && element.Inside(LanguageElementType.PropertyAccessorSet))
     {
         return(GetElement <Assignment>(element));
     }
     return(element);
 }