コード例 #1
0
 public static MemberAccessExpressionSyntax Convert(MemberAccessExpressionSyntax node)
 {
     return(node.IsAssertExpression() && Assertions.ContainsKey(node.Name.ToString())
         ? CreateAssertExpression(node)
         : node);
 }
コード例 #2
0
 private static MemberAccessExpressionSyntax ReplaceMemberAccessExpression(MemberAccessExpressionSyntax node)
 {
     return(node.IsAssertExpression() && Assertions.ContainsKey(node.Name.ToString())
         ? CreateAssertExpression(node)
         : node);
 }