コード例 #1
0
 /// <summary>
 /// Obtains a <see cref="TypeReferenceExpression"/> for the <paramref name="target"/>
 /// provided.
 /// </summary>
 /// <param name="target">A <see cref="IExpressionFusionExpression"/> which represents
 /// a symbolic form of a type.</param>
 /// <param name="identityManager">The <see cref="ICliManager"/>
 /// which is responsible for marshalling type and assembly identities
 /// within the current type model.</param>
 /// <returns>A new <see cref="ITypeReferenceExpression"/> which wraps the <paramref name="target"/>
 /// in a <see cref="SymbolType"/>.</returns>
 /// <exception cref="System.ArgumentNullException">thrown when <paramref name="target"/> is null.</exception>
 public static ITypeReferenceExpression GetTypeExpression(this IExpressionFusionExpression target, ICliManager identityManager)
 {
     if (target == null)
     {
         throw new ArgumentNullException("target");
     }
     return(new SymbolType(target, identityManager).GetTypeExpression());
 }
 public override bool Visit(IExpressionFusionExpression expression, object context)
 {
     _stack.Push(expression);
     try
     {
         return(base.Visit(expression, context));
     }
     finally
     {
         _stack.Pop();
     }
 }
コード例 #3
0
 public abstract IExpression Transform(IExpressionFusionExpression expression);
コード例 #4
0
 void IExpressionVisitor.Visit(IExpressionFusionExpression expression)
 {
     this.Translate(expression);
 }
コード例 #5
0
 TransformationImpact IExpressionVisitor <TransformationImpact> .Visit(IExpressionFusionExpression expression)
 {
     return(CalculateRefactorImpact(expression));
 }
コード例 #6
0
 public TestLinkerResult Visit(IExpressionFusionExpression expression, ICompilationContext context)
 {
     throw new NotImplementedException();
 }
コード例 #7
0
 public abstract TransformationImpact CalculateRefactorImpact(IExpressionFusionExpression expression);
コード例 #8
0
 public abstract void Translate(IExpressionFusionExpression expression);
コード例 #9
0
 public TransformationKind Visit(IExpressionFusionExpression expression, ITransformationContext context)
 {
     return(TransformationKind.Replace);
 }