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