59 instantiations of CodeVariableReferenceExpression
Microsoft.Build.Tasks.Core (2)
system.design\stronglytypedresourcebuilder.cs (2)
467init[1] = new CodeAssignStatement(field_resMgr, new CodeVariableReferenceExpression(tmpVarName)); 656ret = new CodeMethodReturnStatement(new CodeCastExpression(valueType, new CodeVariableReferenceExpression("obj")));
PresentationBuildTasks (4)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (4)
983CodeVariableReferenceExpression cvreES = new CodeVariableReferenceExpression(EVENTSETTER); 2704CodeVariableReferenceExpression cvreMemStm = new CodeVariableReferenceExpression(resVarname); 3159CodeVariableReferenceExpression cvre = new CodeVariableReferenceExpression(APPVAR); 3332CodeVariableReferenceExpression cvreAppSplash = new CodeVariableReferenceExpression(SPLASHVAR);
System.Runtime.Serialization.Schema (7)
System\Runtime\Serialization\Schema\CodeExporter.cs (7)
1827derivedConstructor.BaseConstructorArgs.Add(new CodeVariableReferenceExpression(ImportGlobals.SerializationInfoFieldName)); 1828derivedConstructor.BaseConstructorArgs.Add(new CodeVariableReferenceExpression(ImportGlobals.ContextFieldName)); 1885new CodeVariableReferenceExpression(ImportGlobals.EnumeratorFieldName), 1891new CodeVariableReferenceExpression(ImportGlobals.SerializationEntryFieldName), 1894new CodeVariableReferenceExpression(ImportGlobals.SerializationEntryFieldName), 1904new CodeVariableReferenceExpression(ImportGlobals.EnumeratorFieldName), 1962CodeVariableReferenceExpression propertyChanged = new CodeVariableReferenceExpression("propertyChanged");
System.Windows.Forms.Design (12)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (1)
471CodeVariableReferenceExpression var = new(name);
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (2)
187CodeExpression variableReference = new CodeVariableReferenceExpression(varName); 240expression = new CodeVariableReferenceExpression(name);
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (2)
2479expression = new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(name[..dotIndex]), name[(dotIndex + 1)..]); 2483expression = new CodeVariableReferenceExpression(name);
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (1)
245assignLhs = new CodeVariableReferenceExpression(name);
System\ComponentModel\Design\Serialization\ContainerCodeDomSerializer.cs (1)
64lhs = new CodeVariableReferenceExpression(ContainerName);
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (3)
300SetExpression(manager, sm, new CodeVariableReferenceExpression(ResourceManagerName)); 313SetExpression(manager, sm, new CodeVariableReferenceExpression(ResourceManagerName)); 344Method = new CodeMethodReferenceExpression(new CodeVariableReferenceExpression(ResourceManagerName), methodName)
System\Resources\Tools\StronglyTypedResourceBuilder.cs (2)
618new CodeAssignStatement(resourceManagerField, new CodeVariableReferenceExpression(tempVariableName)) 802returnStatement = new(new CodeCastExpression(valueType, new CodeVariableReferenceExpression("obj")));
System.Windows.Forms.Design.Tests (34)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (34)
146new CodeAssignStatement(new CodeVariableReferenceExpression("name1"), new CodeObjectCreateExpression(typeof(DataClass))), 150new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name1"), "DefaultStringValue"), new CodePrimitiveExpression(null)), 151new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name1"), "IntValue"), new CodePrimitiveExpression(1)), 152new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name1"), "StringValue"), new CodePrimitiveExpression("Value")) 160new CodeAssignStatement(new CodeVariableReferenceExpression("name2"), new CodeObjectCreateExpression(typeof(DataClass))), 164new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name2"), "DefaultStringValue"), new CodePrimitiveExpression(null)), 165new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name2"), "IntValue"), new CodePrimitiveExpression(2)), 166new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name2"), "StringValue"), new CodePrimitiveExpression("OtherValue")) 248new CodeAssignStatement(new CodeVariableReferenceExpression("name"), new CodeObjectCreateExpression(typeof(DataClass))), 252new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "DefaultStringValue"), new CodePrimitiveExpression(null)), 253new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)), 254new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "StringValue"), new CodePrimitiveExpression("Value")) 350new CodeAssignStatement(new CodeVariableReferenceExpression("name"), new CodeObjectCreateExpression(typeof(DataClass))), 354new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "DefaultStringValue"), new CodePrimitiveExpression(null)), 355new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)), 356new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "StringValue"), new CodePrimitiveExpression("Value")) 395new CodeAssignStatement(new CodeVariableReferenceExpression("name"), new CodeObjectCreateExpression(typeof(DataClass))), 399new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "DefaultStringValue"), new CodePrimitiveExpression(null)), 400new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)), 401new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "StringValue"), new CodePrimitiveExpression("Value")) 445new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)), 446new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "DefaultStringValue"), new CodePrimitiveExpression(null)), 447new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)), 491new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)), 492new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "DefaultStringValue"), new CodePrimitiveExpression(null)), 493new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)) 536new CodeAssignStatement(new CodeVariableReferenceExpression("name"), new CodeObjectCreateExpression(typeof(DataClass))), 540new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "DefaultStringValue"), new CodePrimitiveExpression(null)), 541new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)), 542new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "StringValue"), new CodePrimitiveExpression("Value")) 585new CodeAssignStatement(new CodeVariableReferenceExpression("name"), new CodeObjectCreateExpression(typeof(DataClass))), 589new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "DefaultStringValue"), new CodePrimitiveExpression(null)), 590new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)), 591new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "StringValue"), new CodePrimitiveExpression("Value"))
29 references to CodeVariableReferenceExpression
PresentationBuildTasks (8)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (8)
983CodeVariableReferenceExpression cvreES = new CodeVariableReferenceExpression(EVENTSETTER); 2704CodeVariableReferenceExpression cvreMemStm = new CodeVariableReferenceExpression(resVarname); 3151private CodeVariableReferenceExpression GenerateAppInstance(CodeMemberMethod cmmMain) 3159CodeVariableReferenceExpression cvre = new CodeVariableReferenceExpression(APPVAR); 3240CodeVariableReferenceExpression cvreSplashScreen = null; 3248CodeVariableReferenceExpression cvreApp = GenerateAppInstance(cmmMain); 3323private CodeVariableReferenceExpression GenerateSplashScreenInstance(CodeMemberMethod cmmMain) 3332CodeVariableReferenceExpression cvreAppSplash = new CodeVariableReferenceExpression(SPLASHVAR);
System (1)
src\libraries\shims\System\ref\System.cs (1)
110[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.CodeDom.CodeVariableReferenceExpression))]
System.CodeDom (10)
Microsoft\CSharp\CSharpCodeGenerator.cs (3)
412private void GenerateVariableReferenceExpression(CodeVariableReferenceExpression e) => 1162else if (e is CodeVariableReferenceExpression) 1164GenerateVariableReferenceExpression((CodeVariableReferenceExpression)e);
Microsoft\VisualBasic\VBCodeGenerator.cs (1)
1019protected override void GenerateVariableReferenceExpression(CodeVariableReferenceExpression e)
System\CodeDom\Compiler\CodeGenerator.cs (3)
539else if (e is CodeVariableReferenceExpression) 541GenerateVariableReferenceExpression((CodeVariableReferenceExpression)e); 1376protected abstract void GenerateVariableReferenceExpression(CodeVariableReferenceExpression e);
System\CodeDom\Compiler\CodeValidator.cs (3)
703else if (e is CodeVariableReferenceExpression) 705ValidateVariableReferenceExpression((CodeVariableReferenceExpression)e); 839private static void ValidateVariableReferenceExpression(CodeVariableReferenceExpression e)
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
1962CodeVariableReferenceExpression propertyChanged = new CodeVariableReferenceExpression("propertyChanged");
System.Windows.Forms.Design (8)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (1)
471CodeVariableReferenceExpression var = new(name);
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (2)
33CodeVariableReferenceExpression variableReferenceEx => variableReferenceEx.VariableName, 109else if (assign.Left is CodeVariableReferenceExpression varRef)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (3)
606else if (expression is CodeVariableReferenceExpression variableReferenceEx) 919else if (result is CodeVariableReferenceExpression variableReferenceEx) 2734else if (expression is CodeVariableReferenceExpression variableReferenceEx)
System\ComponentModel\Design\Serialization\CodeMethodMap.cs (1)
62else if (statement is CodeAssignStatement { Left: CodeVariableReferenceExpression } variableAssignment)
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (1)
44[CodeVariableReferenceExpression variableReferenceEx, ..] => variableReferenceEx.VariableName,
System.Windows.Forms.Design.Tests (1)
CodeDomHelpers.cs (1)
61case CodeVariableReferenceExpression cvre: