Exemple #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();
     }
 }
Exemple #3
0
 public abstract IExpression Transform(IExpressionFusionExpression expression);
Exemple #4
0
 void IExpressionVisitor.Visit(IExpressionFusionExpression expression)
 {
     this.Translate(expression);
 }
Exemple #5
0
 TransformationImpact IExpressionVisitor <TransformationImpact> .Visit(IExpressionFusionExpression expression)
 {
     return(CalculateRefactorImpact(expression));
 }
Exemple #6
0
 public TestLinkerResult Visit(IExpressionFusionExpression expression, ICompilationContext context)
 {
     throw new NotImplementedException();
 }
Exemple #7
0
 public abstract TransformationImpact CalculateRefactorImpact(IExpressionFusionExpression expression);
Exemple #8
0
 public abstract void Translate(IExpressionFusionExpression expression);
Exemple #9
0
 public TransformationKind Visit(IExpressionFusionExpression expression, ITransformationContext context)
 {
     return(TransformationKind.Replace);
 }