41 instantiations of CodeFieldReferenceExpression
Microsoft.Build.Tasks.Core (6)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
628
CodeFieldReferenceExpression fieldReference = new
CodeFieldReferenceExpression
system.design\stronglytypedresourcebuilder.cs (4)
410
var editorBrowsableStateAdvanced = new CodeAttributeArgument(new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(editorBrowsableStateTypeRef), "Advanced"));
454
var field_resMgr = new
CodeFieldReferenceExpression
(null, ResMgrFieldName);
478
var field_resCulture = new
CodeFieldReferenceExpression
(null, CultureInfoFieldName);
599
var resCultureField = new
CodeFieldReferenceExpression
((useStatic) ? null : new CodeThisReferenceExpression(), CultureInfoFieldName);
WriteCodeFragment.cs (1)
598
return new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(targetType), value);
PresentationBuildTasks (15)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (15)
1200
ceEvent = new
CodeFieldReferenceExpression
(new CodeThisReferenceExpression(), elementName);
1284
CodeFieldReferenceExpression cfreContentLoaded = new
CodeFieldReferenceExpression
(new CodeThisReferenceExpression(), CONTENT_LOADED);
1477
CodeFieldReferenceExpression cfre = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(typeof(EditorBrowsableState)), "Never");
1836
CodeFieldReferenceExpression cfre = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(desc.MemberInfo.DeclaringType.FullName), desc.MemberInfo.Name);
1919
CodeFieldReferenceExpression cfreEvent = new
CodeFieldReferenceExpression
(ctreEvent, fiEvent.Name);
2618
Condition = new
CodeFieldReferenceExpression
(null, CONTENT_LOADED)
2632
CodeAssignStatement casCL = new CodeAssignStatement(new
CodeFieldReferenceExpression
(null, CONTENT_LOADED),
2687
CodeFieldReferenceExpression cfreRelUri = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(typeof(System.UriKind)), "Relative");
2794
CodeFieldReferenceExpression cfre1 = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(typeof(BindingFlags)), "Public");
2795
CodeFieldReferenceExpression cfre2 = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(typeof(BindingFlags)), "NonPublic");
2796
CodeFieldReferenceExpression cfre3 = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(typeof(BindingFlags)), "Instance");
2797
CodeFieldReferenceExpression cfre4 = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(typeof(BindingFlags)), "CreateInstance");
2834
cmieGPV.Parameters.Add(new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(typeof(BindingFlags)), DEFAULT));
2867
cmieSPV.Parameters.Add(new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(typeof(BindingFlags)), DEFAULT));
2914
CodeFieldReferenceExpression cfre5 = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(typeof(BindingFlags)), "InvokeMethod");
System.Runtime.Serialization.Schema (8)
System\Runtime\Serialization\Schema\CodeExporter.cs (8)
1724
setNode.Left = new
CodeFieldReferenceExpression
(ThisReference, ImportGlobals.NodeArrayFieldName);
1786
new
CodeFieldReferenceExpression
(null!, TypeNameFieldName)
1791
new
CodeFieldReferenceExpression
(null!, TypeNameFieldName)
1941
propertyGet.Expression = new
CodeFieldReferenceExpression
(ThisReference, ImportGlobals.ExtensionDataObjectFieldName);
1945
propertySet.Left = new
CodeFieldReferenceExpression
(ThisReference, ImportGlobals.ExtensionDataObjectFieldName);
2001
propertyGet.Expression = new
CodeFieldReferenceExpression
(ThisReference, fieldName);
2005
propertySet.Left = new
CodeFieldReferenceExpression
(ThisReference, fieldName);
2010
CodeExpression left = new
CodeFieldReferenceExpression
(ThisReference, fieldName);
System.Windows.Forms.Design (12)
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (2)
336
new
CodeFieldReferenceExpression
(s_thisRef, name[..dotIndex]),
338
: new
CodeFieldReferenceExpression
(s_thisRef, name);
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (3)
2023
expression = new
CodeFieldReferenceExpression
(typeRefExp, fieldInfo.Name);
2463
expression = new CodePropertyReferenceExpression(new
CodeFieldReferenceExpression
(root.Expression, name[..dotIndex]), name[(dotIndex + 1)..]);
2467
expression = new
CodeFieldReferenceExpression
(root.Expression, name);
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (1)
235
assignLhs = new
CodeFieldReferenceExpression
(rootCtx!.Expression, name);
System\ComponentModel\Design\Serialization\ContainerCodeDomSerializer.cs (1)
57
lhs = new
CodeFieldReferenceExpression
(rootCtx.Expression, ContainerName);
System\ComponentModel\Design\Serialization\EnumCodeDomSerializer.cs (1)
67
CodeExpression newExpression = new
CodeFieldReferenceExpression
(enumType, termString);
System\Resources\Tools\StronglyTypedResourceBuilder.cs (4)
543
new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(editorBrowsableStateType), "Advanced"));
579
CodeFieldReferenceExpression resourceManagerField =
new
(null, ResourceManagerFieldName);
630
CodeFieldReferenceExpression cultureInfoField =
new
(targetObject: null, CultureInfoFieldName);
735
CodeFieldReferenceExpression cultureInfoField =
new
(useStatic
38 references to CodeFieldReferenceExpression
Microsoft.Build.Tasks.Core (4)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
628
CodeFieldReferenceExpression
fieldReference = new CodeFieldReferenceExpression
system.design\stronglytypedresourcebuilder.cs (3)
454
var
field_resMgr = new CodeFieldReferenceExpression(null, ResMgrFieldName);
478
var
field_resCulture = new CodeFieldReferenceExpression(null, CultureInfoFieldName);
599
var
resCultureField = new CodeFieldReferenceExpression((useStatic) ? null : new CodeThisReferenceExpression(), CultureInfoFieldName);
PresentationBuildTasks (12)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (12)
1284
CodeFieldReferenceExpression
cfreContentLoaded = new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), CONTENT_LOADED);
1477
CodeFieldReferenceExpression
cfre = new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(typeof(EditorBrowsableState)), "Never");
1836
CodeFieldReferenceExpression
cfre = new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(desc.MemberInfo.DeclaringType.FullName), desc.MemberInfo.Name);
1910
private
CodeFieldReferenceExpression
GetEvent(MemberInfo miEvent, string eventName, string eventHandler)
1919
CodeFieldReferenceExpression
cfreEvent = new CodeFieldReferenceExpression(ctreEvent, fiEvent.Name);
1989
CodeFieldReferenceExpression
cfreEvent = GetEvent(mei.mi, mei.eventName, mei.eventHandler);
2687
CodeFieldReferenceExpression
cfreRelUri = new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(typeof(System.UriKind)), "Relative");
2794
CodeFieldReferenceExpression
cfre1 = new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(typeof(BindingFlags)), "Public");
2795
CodeFieldReferenceExpression
cfre2 = new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(typeof(BindingFlags)), "NonPublic");
2796
CodeFieldReferenceExpression
cfre3 = new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(typeof(BindingFlags)), "Instance");
2797
CodeFieldReferenceExpression
cfre4 = new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(typeof(BindingFlags)), "CreateInstance");
2914
CodeFieldReferenceExpression
cfre5 = new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(typeof(BindingFlags)), "InvokeMethod");
System (1)
src\libraries\shims\System\ref\System.cs (1)
60
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.CodeDom.
CodeFieldReferenceExpression
))]
System.CodeDom (10)
Microsoft\CSharp\CSharpCodeGenerator.cs (3)
399
private void GenerateFieldReferenceExpression(
CodeFieldReferenceExpression
e)
1154
else if (e is
CodeFieldReferenceExpression
)
1156
GenerateFieldReferenceExpression((
CodeFieldReferenceExpression
)e);
Microsoft\VisualBasic\VBCodeGenerator.cs (1)
954
protected override void GenerateFieldReferenceExpression(
CodeFieldReferenceExpression
e)
System\CodeDom\Compiler\CodeGenerator.cs (3)
531
else if (e is
CodeFieldReferenceExpression
)
533
GenerateFieldReferenceExpression((
CodeFieldReferenceExpression
)e);
1374
protected abstract void GenerateFieldReferenceExpression(
CodeFieldReferenceExpression
e);
System\CodeDom\Compiler\CodeValidator.cs (3)
695
else if (e is
CodeFieldReferenceExpression
)
697
ValidateFieldReferenceExpression((
CodeFieldReferenceExpression
)e);
825
private void ValidateFieldReferenceExpression(
CodeFieldReferenceExpression
e)
System.Windows.Forms.Design (11)
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (2)
34
CodeFieldReferenceExpression
fieldReferenceEx => fieldReferenceEx.FieldName,
105
if (assign.Left is
CodeFieldReferenceExpression
fieldRef)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (3)
525
else if (expression is
CodeFieldReferenceExpression
fieldReferenceEx)
780
else if (result is
CodeFieldReferenceExpression
fieldReferenceEx)
2679
else if (expression is
CodeFieldReferenceExpression
fieldReferenceEx)
System\ComponentModel\Design\Serialization\CodeMethodMap.cs (1)
58
else if (statement is CodeAssignStatement { Left:
CodeFieldReferenceExpression
} fieldAssignment)
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (1)
43
[
CodeFieldReferenceExpression
{ TargetObject: CodeThisReferenceExpression } fieldReferenceEx, ..] => fieldReferenceEx.FieldName,
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.SerializationResourceManager.cs (1)
746
else if (expression is
CodeFieldReferenceExpression
codeField)
System\Resources\Tools\StronglyTypedResourceBuilder.cs (3)
579
CodeFieldReferenceExpression
resourceManagerField = new(null, ResourceManagerFieldName);
630
CodeFieldReferenceExpression
cultureInfoField = new(targetObject: null, CultureInfoFieldName);
735
CodeFieldReferenceExpression
cultureInfoField = new(useStatic