25 instantiations of CodeVariableDeclarationStatement
Microsoft.Build.Tasks.Core (5)
system.design\stronglytypedresourcebuilder.cs (2)
466init[0] = new CodeVariableDeclarationStatement(ResMgrCodeTypeReference, tmpVarName, newResMgr); 653var returnObj = new CodeVariableDeclarationStatement(typeof(Object), "obj", getValue);
XamlTaskFactory\TaskGenerator.cs (3)
669var createNewToolSwitch = new CodeVariableDeclarationStatement(new CodeTypeReference(TypeToolSwitch), SwitchToAdd, new CodeObjectCreateExpression(TypeToolSwitch, new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(TypeToolSwitchType), type))); 831var createArray = new CodeVariableDeclarationStatement("Tuple<string, string, Tuple<string, bool>[]>[]", SwitchMap); 863var indexDecl = new CodeVariableDeclarationStatement(typeof(int), "i", new CodeMethodInvokeExpression(
PresentationBuildTasks (4)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (4)
971CodeVariableDeclarationStatement cvdsES = new CodeVariableDeclarationStatement(KnownTypes.Types[(int)KnownElements.EventSetter], EVENTSETTER); 2675CodeVariableDeclarationStatement cvdsresLocator = new CodeVariableDeclarationStatement(typeof(System.Uri), resVarname, coceResourceLocator); 3119CodeVariableDeclarationStatement cvds = new CodeVariableDeclarationStatement(appClassName, APPVAR, coce); 3277CodeVariableDeclarationStatement cvdsAppSplash = new CodeVariableDeclarationStatement(SPLASHCLASSNAME, SPLASHVAR, coceApplicationSplashScreen);
System.Runtime.Serialization.Schema (3)
System\Runtime\Serialization\Schema\CodeExporter.cs (3)
1873CodeVariableDeclarationStatement getEnumerator = new CodeVariableDeclarationStatement(); 1881CodeVariableDeclarationStatement getCurrent = new CodeVariableDeclarationStatement(); 1963raisePropertyChangedEventMethod.Statements.Add(new CodeVariableDeclarationStatement(typeof(PropertyChangedEventHandler), propertyChanged.VariableName, new CodeEventReferenceExpression(ThisReference, PropertyChangedEvent.Name)));
System.Windows.Forms.Design (6)
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (1)
182CodeVariableDeclarationStatement varDecl = new(varTypeName!, varName)
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (1)
241CodeVariableDeclarationStatement local = new(typeName, name);
System\ComponentModel\Design\Serialization\ContainerCodeDomSerializer.cs (1)
61CodeVariableDeclarationStatement var = new(typeof(IContainer), ContainerName);
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (1)
299statements.Add(new CodeVariableDeclarationStatement(typeof(ComponentResourceManager), ResourceManagerName, initExpression));
System\Resources\Tools\StronglyTypedResourceBuilder.cs (2)
617new CodeVariableDeclarationStatement(resourceManagerType, tempVariableName, newResourceManager), 800CodeVariableDeclarationStatement returnObject = new(typeof(object), "obj", getValue);
System.Windows.Forms.Design.Tests (7)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (7)
143new CodeVariableDeclarationStatement(typeof(DataClass), "name1"), 157new CodeVariableDeclarationStatement(typeof(DataClass), "name2"), 245new CodeVariableDeclarationStatement(typeof(DataClass), "name"), 347new CodeVariableDeclarationStatement(typeof(DataClass), "name"), 392new CodeVariableDeclarationStatement(typeof(DataClass), "name"), 533new CodeVariableDeclarationStatement(typeof(DataClass), "name"), 582new CodeVariableDeclarationStatement(typeof(DataClass), "name"),
36 references to CodeVariableDeclarationStatement
Microsoft.Build.Tasks.Core (4)
system.design\stronglytypedresourcebuilder.cs (1)
653var returnObj = new CodeVariableDeclarationStatement(typeof(Object), "obj", getValue);
XamlTaskFactory\TaskGenerator.cs (3)
669var createNewToolSwitch = new CodeVariableDeclarationStatement(new CodeTypeReference(TypeToolSwitch), SwitchToAdd, new CodeObjectCreateExpression(TypeToolSwitch, new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(TypeToolSwitchType), type))); 831var createArray = new CodeVariableDeclarationStatement("Tuple<string, string, Tuple<string, bool>[]>[]", SwitchMap); 863var indexDecl = new CodeVariableDeclarationStatement(typeof(int), "i", new CodeMethodInvokeExpression(
PresentationBuildTasks (4)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (4)
971CodeVariableDeclarationStatement cvdsES = new CodeVariableDeclarationStatement(KnownTypes.Types[(int)KnownElements.EventSetter], EVENTSETTER); 2675CodeVariableDeclarationStatement cvdsresLocator = new CodeVariableDeclarationStatement(typeof(System.Uri), resVarname, coceResourceLocator); 3119CodeVariableDeclarationStatement cvds = new CodeVariableDeclarationStatement(appClassName, APPVAR, coce); 3277CodeVariableDeclarationStatement cvdsAppSplash = new CodeVariableDeclarationStatement(SPLASHCLASSNAME, SPLASHVAR, coceApplicationSplashScreen);
System (1)
src\libraries\shims\System\ref\System.cs (1)
109[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.CodeDom.CodeVariableDeclarationStatement))]
System.CodeDom (10)
Microsoft\CSharp\CSharpCodeGenerator.cs (3)
594else if (e is CodeVariableDeclarationStatement) 596GenerateVariableDeclarationStatement((CodeVariableDeclarationStatement)e); 1077private void GenerateVariableDeclarationStatement(CodeVariableDeclarationStatement e)
Microsoft\VisualBasic\VBCodeGenerator.cs (1)
1389protected override void GenerateVariableDeclarationStatement(CodeVariableDeclarationStatement e)
System\CodeDom\Compiler\CodeGenerator.cs (3)
940else if (e is CodeVariableDeclarationStatement) 942GenerateVariableDeclarationStatement((CodeVariableDeclarationStatement)e); 1566protected abstract void GenerateVariableDeclarationStatement(CodeVariableDeclarationStatement e);
System\CodeDom\Compiler\CodeValidator.cs (3)
439else if (e is CodeVariableDeclarationStatement) 441ValidateVariableDeclarationStatement((CodeVariableDeclarationStatement)e); 567private void ValidateVariableDeclarationStatement(CodeVariableDeclarationStatement e)
System.Runtime.Serialization.Schema (2)
System\Runtime\Serialization\Schema\CodeExporter.cs (2)
1873CodeVariableDeclarationStatement getEnumerator = new CodeVariableDeclarationStatement(); 1881CodeVariableDeclarationStatement getCurrent = new CodeVariableDeclarationStatement();
System.Windows.Forms.Design (14)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (1)
286if (statement is CodeVariableDeclarationStatement codeVariableDeclaration)
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (2)
118else if (statement is CodeVariableDeclarationStatement { InitExpression: not null } varDecl) 182CodeVariableDeclarationStatement varDecl = new(varTypeName!, varName)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (3)
415else if (statement is CodeVariableDeclarationStatement cvds) 470private void DeserializeVariableDeclarationStatement(IDesignerSerializationManager manager, CodeVariableDeclarationStatement statement) 2629else if (statement is CodeVariableDeclarationStatement variableDecl)
System\ComponentModel\Design\Serialization\CodeMethodMap.cs (1)
66else if (statement is CodeVariableDeclarationStatement)
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (2)
241CodeVariableDeclarationStatement local = new(typeName, name); 428if (statement is CodeVariableDeclarationStatement)
System\ComponentModel\Design\Serialization\ContainerCodeDomSerializer.cs (1)
61CodeVariableDeclarationStatement var = new(typeof(IContainer), ContainerName);
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (1)
86if (element is CodeVariableDeclarationStatement statement)
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (2)
118if (statement is CodeVariableDeclarationStatement local) 234if (codeObject is CodeVariableDeclarationStatement declaration)
System\Resources\Tools\StronglyTypedResourceBuilder.cs (1)
800CodeVariableDeclarationStatement returnObject = new(typeof(object), "obj", getValue);
System.Windows.Forms.Design.Tests (1)
CodeDomHelpers.cs (1)
52case CodeVariableDeclarationStatement v: