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)
981CodeVariableReferenceExpression cvreES = new CodeVariableReferenceExpression(EVENTSETTER); 2702CodeVariableReferenceExpression cvreMemStm = new CodeVariableReferenceExpression(resVarname); 3157CodeVariableReferenceExpression cvre = new CodeVariableReferenceExpression(APPVAR); 3329CodeVariableReferenceExpression 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)
2476expression = new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(name[..dotIndex]), name[(dotIndex + 1)..]); 2480expression = 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)
148new CodeAssignStatement(new CodeVariableReferenceExpression("name1"), new CodeObjectCreateExpression(typeof(DataClass))), 152new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name1"), "DefaultStringValue"), new CodePrimitiveExpression(null)), 153new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name1"), "IntValue"), new CodePrimitiveExpression(1)), 154new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name1"), "StringValue"), new CodePrimitiveExpression("Value")) 162new CodeAssignStatement(new CodeVariableReferenceExpression("name2"), new CodeObjectCreateExpression(typeof(DataClass))), 166new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name2"), "DefaultStringValue"), new CodePrimitiveExpression(null)), 167new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name2"), "IntValue"), new CodePrimitiveExpression(2)), 168new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name2"), "StringValue"), new CodePrimitiveExpression("OtherValue")) 250new CodeAssignStatement(new CodeVariableReferenceExpression("name"), new CodeObjectCreateExpression(typeof(DataClass))), 254new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "DefaultStringValue"), new CodePrimitiveExpression(null)), 255new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)), 256new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "StringValue"), new CodePrimitiveExpression("Value")) 352new CodeAssignStatement(new CodeVariableReferenceExpression("name"), new CodeObjectCreateExpression(typeof(DataClass))), 356new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "DefaultStringValue"), new CodePrimitiveExpression(null)), 357new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)), 358new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "StringValue"), new CodePrimitiveExpression("Value")) 397new CodeAssignStatement(new CodeVariableReferenceExpression("name"), new CodeObjectCreateExpression(typeof(DataClass))), 401new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "DefaultStringValue"), new CodePrimitiveExpression(null)), 402new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)), 403new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "StringValue"), new CodePrimitiveExpression("Value")) 447new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)), 448new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "DefaultStringValue"), new CodePrimitiveExpression(null)), 449new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)), 493new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)), 494new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "DefaultStringValue"), new CodePrimitiveExpression(null)), 495new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)) 538new CodeAssignStatement(new CodeVariableReferenceExpression("name"), new CodeObjectCreateExpression(typeof(DataClass))), 542new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "DefaultStringValue"), new CodePrimitiveExpression(null)), 543new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)), 544new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "StringValue"), new CodePrimitiveExpression("Value")) 587new CodeAssignStatement(new CodeVariableReferenceExpression("name"), new CodeObjectCreateExpression(typeof(DataClass))), 591new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "DefaultStringValue"), new CodePrimitiveExpression(null)), 592new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)), 593new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "StringValue"), new CodePrimitiveExpression("Value"))
29 references to CodeVariableReferenceExpression
PresentationBuildTasks (8)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (8)
981CodeVariableReferenceExpression cvreES = new CodeVariableReferenceExpression(EVENTSETTER); 2702CodeVariableReferenceExpression cvreMemStm = new CodeVariableReferenceExpression(resVarname); 3149private CodeVariableReferenceExpression GenerateAppInstance(CodeMemberMethod cmmMain) 3157CodeVariableReferenceExpression cvre = new CodeVariableReferenceExpression(APPVAR); 3237CodeVariableReferenceExpression cvreSplashScreen = null; 3245CodeVariableReferenceExpression cvreApp = GenerateAppInstance(cmmMain); 3320private CodeVariableReferenceExpression GenerateSplashScreenInstance(CodeMemberMethod cmmMain) 3329CodeVariableReferenceExpression 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) => 1159else if (e is CodeVariableReferenceExpression) 1161GenerateVariableReferenceExpression((CodeVariableReferenceExpression)e);
Microsoft\VisualBasic\VBCodeGenerator.cs (1)
1016protected override void GenerateVariableReferenceExpression(CodeVariableReferenceExpression e)
System\CodeDom\Compiler\CodeGenerator.cs (3)
533else if (e is CodeVariableReferenceExpression) 535GenerateVariableReferenceExpression((CodeVariableReferenceExpression)e); 1337protected abstract void GenerateVariableReferenceExpression(CodeVariableReferenceExpression e);
System\CodeDom\Compiler\CodeValidator.cs (3)
697else if (e is CodeVariableReferenceExpression) 699ValidateVariableReferenceExpression((CodeVariableReferenceExpression)e); 827private 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) 2731else 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)
63case CodeVariableReferenceExpression cvre: