1 write to EvaluationContext
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (1)
CSharpMetadataContext.cs (1)
15
EvaluationContext
= evaluationContext;
24 references to EvaluationContext
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (3)
CSharpExpressionCompiler.cs (3)
94
Debug.Assert(context != previousMetadataContext.
EvaluationContext
);
167
var previousContext = previousMetadataContext.
EvaluationContext
;
189
if (context != previousMetadataContext.
EvaluationContext
)
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler.UnitTests (21)
ExpressionCompilerTests.cs (12)
366
Assert.NotEqual(context, GetMetadataContext(previous).
EvaluationContext
); // Not required, just documentary.
371
Assert.NotEqual(context, GetMetadataContext(previous).
EvaluationContext
);
381
var constraints = GetMetadataContext(previous).
EvaluationContext
.MethodContextReuseConstraints;
388
var previousEvaluationContext = GetMetadataContext(previous).
EvaluationContext
;
414
Assert.NotEqual(context, GetMetadataContext(previous).
EvaluationContext
);
415
Assert.True(GetMetadataContext(previous).
EvaluationContext
.MethodContextReuseConstraints.Value.AreSatisfied(moduleVersionId, methodToken, methodVersion, endOffset));
422
Assert.NotEqual(context, GetMetadataContext(previous).
EvaluationContext
);
423
Assert.False(GetMetadataContext(previous).
EvaluationContext
.MethodContextReuseConstraints.Value.AreSatisfied(moduleVersionId, methodToken, methodVersion, 0));
429
Assert.Null(GetMetadataContext(previous).
EvaluationContext
);
432
Assert.Null(GetMetadataContext(previous).
EvaluationContext
);
6310
Assert.Same(GetMetadataContext(previous).
EvaluationContext
, context);
6323
Assert.Same(GetMetadataContext(previous).
EvaluationContext
, context);
ReferencedModulesTests.cs (9)
392
Assert.NotSame(context, GetMetadataContext(previous, mvidB1).
EvaluationContext
);
399
Assert.NotSame(context, GetMetadataContext(previous, mvidB1).
EvaluationContext
);
406
Assert.NotSame(context, GetMetadataContext(previous, mvidA1).
EvaluationContext
);
413
Assert.NotSame(context, GetMetadataContext(previous, mvidA2).
EvaluationContext
);
427
Assert.NotSame(context, GetMetadataContext(previous, mvidA1).
EvaluationContext
);
434
Assert.NotSame(context, GetMetadataContext(previous, mvidA2).
EvaluationContext
);
441
Assert.NotSame(context, GetMetadataContext(previous, mvidA2).
EvaluationContext
);
448
Assert.NotSame(context, GetMetadataContext(previous, mvidB1).
EvaluationContext
);
720
Assert.NotSame(GetMetadataContext(previous).
EvaluationContext
, context);