55 instantiations of CodeAssignStatement
Microsoft.Build.Tasks.Core (3)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
644CodeAssignStatement fieldAssign = new CodeAssignStatement
system.design\stronglytypedresourcebuilder.cs (2)
467init[1] = new CodeAssignStatement(field_resMgr, new CodeVariableReferenceExpression(tmpVarName)); 482culture.SetStatements.Add(new CodeAssignStatement(field_resCulture, newCulture));
PresentationBuildTasks (7)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (7)
987CodeAssignStatement casES = new CodeAssignStatement(cvreES, 994CodeAssignStatement casEvent = new CodeAssignStatement(cpreEvent, 1002CodeAssignStatement casHandler = new CodeAssignStatement(cpreHandler, 1204CodeAssignStatement casName = new CodeAssignStatement(ceEvent, cceTarget); 1288CodeAssignStatement casContentLoaded = new CodeAssignStatement(cfreContentLoaded, new CodePrimitiveExpression(true)); 2635CodeAssignStatement casCL = new CodeAssignStatement(new CodeFieldReferenceExpression(null, CONTENT_LOADED), 3185CodeStatement csPropSet = new CodeAssignStatement(cprePropSet, ceValue);
System.Runtime.Serialization.Schema (5)
System\Runtime\Serialization\Schema\CodeExporter.cs (5)
1723CodeAssignStatement setNode = new CodeAssignStatement(); 1806CodeAssignStatement setObjectData = new CodeAssignStatement(); 1813baseConstructor.Statements.Add(new CodeAssignStatement(new CodePropertyReferenceExpression(ThisReference, PropertyChangedEvent.Name), NullReference)); 1944CodeAssignStatement propertySet = new CodeAssignStatement(); 2004CodeAssignStatement propertySet = new CodeAssignStatement();
System.Windows.Forms.Design (6)
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (1)
312result = new CodeAssignStatement(targetExpression, arrayCreate);
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (1)
295CodeAssignStatement assign = new(assignLhs, assignRhs);
System\ComponentModel\Design\Serialization\ContainerCodeDomSerializer.cs (1)
70CodeAssignStatement assign = new(lhs, objCreate);
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (1)
350CodeAssignStatement assign = new(propertyRef, serializedPropertyValue);
System\Resources\Tools\StronglyTypedResourceBuilder.cs (2)
618new CodeAssignStatement(resourceManagerField, new CodeVariableReferenceExpression(tempVariableName)) 634culture.SetStatements.Add(new CodeAssignStatement(cultureInfoField, newCulture));
System.Windows.Forms.Design.Tests (34)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (34)
144new CodeAssignStatement(new CodeVariableReferenceExpression("name1"), new CodeObjectCreateExpression(typeof(DataClass))), 148new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name1"), "DefaultStringValue"), new CodePrimitiveExpression(null)), 149new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name1"), "IntValue"), new CodePrimitiveExpression(1)), 150new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name1"), "StringValue"), new CodePrimitiveExpression("Value")) 158new CodeAssignStatement(new CodeVariableReferenceExpression("name2"), new CodeObjectCreateExpression(typeof(DataClass))), 162new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name2"), "DefaultStringValue"), new CodePrimitiveExpression(null)), 163new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name2"), "IntValue"), new CodePrimitiveExpression(2)), 164new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name2"), "StringValue"), new CodePrimitiveExpression("OtherValue")) 246new CodeAssignStatement(new CodeVariableReferenceExpression("name"), new CodeObjectCreateExpression(typeof(DataClass))), 250new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "DefaultStringValue"), new CodePrimitiveExpression(null)), 251new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)), 252new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "StringValue"), new CodePrimitiveExpression("Value")) 348new CodeAssignStatement(new CodeVariableReferenceExpression("name"), new CodeObjectCreateExpression(typeof(DataClass))), 352new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "DefaultStringValue"), new CodePrimitiveExpression(null)), 353new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)), 354new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "StringValue"), new CodePrimitiveExpression("Value")) 393new CodeAssignStatement(new CodeVariableReferenceExpression("name"), new CodeObjectCreateExpression(typeof(DataClass))), 397new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "DefaultStringValue"), new CodePrimitiveExpression(null)), 398new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)), 399new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "StringValue"), new CodePrimitiveExpression("Value")) 443new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)), 444new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "DefaultStringValue"), new CodePrimitiveExpression(null)), 445new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)), 489new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)), 490new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "DefaultStringValue"), new CodePrimitiveExpression(null)), 491new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)) 534new CodeAssignStatement(new CodeVariableReferenceExpression("name"), new CodeObjectCreateExpression(typeof(DataClass))), 538new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "DefaultStringValue"), new CodePrimitiveExpression(null)), 539new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)), 540new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "StringValue"), new CodePrimitiveExpression("Value")) 583new CodeAssignStatement(new CodeVariableReferenceExpression("name"), new CodeObjectCreateExpression(typeof(DataClass))), 587new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "DefaultStringValue"), new CodePrimitiveExpression(null)), 588new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)), 589new CodeAssignStatement(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "StringValue"), new CodePrimitiveExpression("Value"))
33 references to CodeAssignStatement
Microsoft.Build.Tasks.Core (1)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
644CodeAssignStatement fieldAssign = new CodeAssignStatement
PresentationBuildTasks (6)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (6)
987CodeAssignStatement casES = new CodeAssignStatement(cvreES, 994CodeAssignStatement casEvent = new CodeAssignStatement(cpreEvent, 1002CodeAssignStatement casHandler = new CodeAssignStatement(cpreHandler, 1204CodeAssignStatement casName = new CodeAssignStatement(ceEvent, cceTarget); 1288CodeAssignStatement casContentLoaded = new CodeAssignStatement(cfreContentLoaded, new CodePrimitiveExpression(true)); 2635CodeAssignStatement casCL = new CodeAssignStatement(new CodeFieldReferenceExpression(null, CONTENT_LOADED),
System (1)
src\libraries\shims\System\ref\System.cs (1)
30[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.CodeDom.CodeAssignStatement))]
System.CodeDom (10)
Microsoft\CSharp\CSharpCodeGenerator.cs (3)
565else if (e is CodeAssignStatement) 567GenerateAssignStatement((CodeAssignStatement)e); 1026private void GenerateAssignStatement(CodeAssignStatement e)
Microsoft\VisualBasic\VBCodeGenerator.cs (1)
1340protected override void GenerateAssignStatement(CodeAssignStatement e)
System\CodeDom\Compiler\CodeGenerator.cs (3)
911else if (e is CodeAssignStatement) 913GenerateAssignStatement((CodeAssignStatement)e); 1550protected abstract void GenerateAssignStatement(CodeAssignStatement e);
System\CodeDom\Compiler\CodeValidator.cs (3)
419else if (e is CodeAssignStatement) 421ValidateAssignStatement((CodeAssignStatement)e); 535private void ValidateAssignStatement(CodeAssignStatement e)
System.Runtime.Serialization.Schema (4)
System\Runtime\Serialization\Schema\CodeExporter.cs (4)
1723CodeAssignStatement setNode = new CodeAssignStatement(); 1806CodeAssignStatement setObjectData = new CodeAssignStatement(); 1944CodeAssignStatement propertySet = new CodeAssignStatement(); 2004CodeAssignStatement propertySet = new CodeAssignStatement();
System.Windows.Forms.Design (10)
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (1)
103if (statement is CodeAssignStatement assign)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (4)
411if (statement is CodeAssignStatement cas) 514private void DeserializeAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement) 1538private bool DeserializePropertyAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement, 2613if (statement is CodeAssignStatement assign)
System\ComponentModel\Design\Serialization\CodeMethodMap.cs (2)
58else if (statement is CodeAssignStatement { Left: CodeFieldReferenceExpression } fieldAssignment) 62else if (statement is CodeAssignStatement { Left: CodeVariableReferenceExpression } variableAssignment)
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (1)
295CodeAssignStatement assign = new(assignLhs, assignRhs);
System\ComponentModel\Design\Serialization\ContainerCodeDomSerializer.cs (1)
70CodeAssignStatement assign = new(lhs, objCreate);
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (1)
350CodeAssignStatement assign = new(propertyRef, serializedPropertyValue);
System.Windows.Forms.Design.Tests (1)
CodeDomHelpers.cs (1)
59case CodeAssignStatement cas: