6 references to Variables
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (3)
ScriptTests.cs (3)
403AssertEx.Equal(new[] { "a", "b", "a", "x", "X" }, state.Variables.Select(v => v.Name)); 404AssertEx.Equal(new object[] { '1', 2u, 3m, 5m, 20 }, state.Variables.Select(v => v.Value)); 405AssertEx.Equal(new Type[] { typeof(char), typeof(uint), typeof(decimal), typeof(decimal), typeof(int) }, state.Variables.Select(v => v.Type));
Microsoft.CodeAnalysis.Scripting (3)
ScriptState.cs (3)
91return GetVariableMap().TryGetValue(name, out index) ? Variables[index] : null; 124for (int i = 0; i < Variables.Length; i++) 126map[Variables[i].Name] = i;