/// <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(); } }
public abstract IExpression Transform(IExpressionFusionExpression expression);
void IExpressionVisitor.Visit(IExpressionFusionExpression expression) { this.Translate(expression); }
TransformationImpact IExpressionVisitor <TransformationImpact> .Visit(IExpressionFusionExpression expression) { return(CalculateRefactorImpact(expression)); }
public TestLinkerResult Visit(IExpressionFusionExpression expression, ICompilationContext context) { throw new NotImplementedException(); }
public abstract TransformationImpact CalculateRefactorImpact(IExpressionFusionExpression expression);
public abstract void Translate(IExpressionFusionExpression expression);
public TransformationKind Visit(IExpressionFusionExpression expression, ITransformationContext context) { return(TransformationKind.Replace); }