1 write to FieldSymbol
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
7265this.FieldSymbol = fieldSymbol;
98 references to FieldSymbol
Microsoft.CodeAnalysis.CSharp (98)
Binder\Binder.ValueChecks.cs (7)
824if (receiver is BoundFieldAccess fieldAccess && fieldAccess.FieldSymbol.IsFixedSizeBuffer) 1342var fieldSymbol = fieldAccess.FieldSymbol; 1497var fieldSymbol = fieldAccess.FieldSymbol; 1520var fieldSymbol = fieldAccess.FieldSymbol; 4145var fieldSymbol = fieldAccess.FieldSymbol; 4855var fieldSymbol = fieldAccess.FieldSymbol; 5854FieldSymbol field = fieldAccess.FieldSymbol;
Binder\Binder_Attributes.cs (1)
816visitedArgument = new KeyValuePair<String, TypedConstant>(fa.FieldSymbol.Name, VisitExpression(assignment.Right, diagnostics, ref attrHasErrors, assignment.HasAnyErrors));
Binder\Binder_Expressions.cs (2)
5869var fieldSymbol = ((BoundFieldAccess)boundMember).FieldSymbol; 6124BoundFieldAccess fieldAccess => fieldAccess.FieldSymbol,
Binder\Binder_Invocation.cs (1)
114symbol = ((BoundFieldAccess)boundExpression).FieldSymbol;
Binder\Binder_Operators.cs (2)
2579fieldSymbol = fieldAccess.FieldSymbol; 2689if (underlyingExpr is BoundFieldAccess fieldAccess && fieldAccess.FieldSymbol.IsFixedSizeBuffer)
Binder\Binder_Statements.cs (1)
1253if (fa.FieldSymbol.IsFixedSizeBuffer)
BoundTree\BoundExpression.cs (1)
318get { return this.FieldSymbol; }
BoundTree\BoundExpressionExtensions.cs (1)
31return ((BoundFieldAccess)node).FieldSymbol.RefKind;
BoundTree\BoundNode_Source.cs (1)
276append(fieldAccess.FieldSymbol.Name);
CodeGen\EmitAddress.cs (4)
371if (!fieldAccess.FieldSymbol.IsStatic) 440FieldSymbol field = fieldAccess.FieldSymbol; 447else if (fieldAccess.FieldSymbol.IsStatic) 547var field = fieldAccess.FieldSymbol;
CodeGen\EmitExpression.cs (10)
737Debug.Assert(argument.Type.IsDynamic() || argument is BoundFieldAccess { FieldSymbol.RefKind: not RefKind.None }, "passing args byref should not clone them into temps"); 1120var field = fieldAccess.FieldSymbol; 1154var field = fieldAccess.FieldSymbol; 1245var field = fieldAccess.FieldSymbol; 1299var field = fieldAccess.FieldSymbol; 1564return ((BoundFieldAccess)receiver).FieldSymbol.IsCapturedFrame; 2662if (fieldAccess.FieldSymbol.IsVolatile || 2782if (left.FieldSymbol.RefKind != RefKind.None && 2788else if (!left.FieldSymbol.IsStatic) 3275var field = fieldAccess.FieldSymbol;
CodeGen\EmitStatement.cs (3)
1157Debug.Assert(!left.FieldSymbol.IsStatic, "Not supported"); 1159Debug.Assert(left.FieldSymbol.RefKind == RefKind.None); 1161var stateMachineField = left.FieldSymbol as StateMachineFieldSymbol;
CodeGen\Optimizer.cs (3)
1019fieldAccess.FieldSymbol.IsFixedSizeBuffer && 1102return !((BoundFieldAccess)lhs).FieldSymbol.IsStatic; 1341var field = node.FieldSymbol;
FlowAnalysis\AbstractFlowPass.cs (2)
588VisitFieldAccessInternal(node1.ReceiverOpt, node1.FieldSymbol); 2226VisitFieldAccessInternal(node.ReceiverOpt, node.FieldSymbol);
FlowAnalysis\DataFlowsOutWalker.cs (1)
130if (MayRequireTracking(fieldAccess.ReceiverOpt, fieldAccess.FieldSymbol))
FlowAnalysis\DefiniteAssignment.cs (15)
794NoteRead(fieldAccess.FieldSymbol); 796if (MayRequireTracking(fieldAccess.ReceiverOpt, fieldAccess.FieldSymbol)) 968var field = fieldAccess.FieldSymbol.OriginalDefinition; 970read: value == null || WriteConsideredUse(fieldAccess.FieldSymbol.Type, value), 974if (MayRequireTracking(fieldAccess.ReceiverOpt, fieldAccess.FieldSymbol)) 1075var fieldSymbol = fieldAccess.FieldSymbol; 1406if (!MayRequireTracking(fieldAccess.ReceiverOpt, fieldAccess.FieldSymbol) || IsAssigned(fieldAccess.ReceiverOpt, out unassignedSlot)) 1411unassignedSlot = GetOrCreateSlot(fieldAccess.FieldSymbol, unassignedSlot); 1490var fieldSymbol = fieldAccess.FieldSymbol; 1518if (!isRef && node is BoundFieldAccess { FieldSymbol.RefKind: not RefKind.None } fieldAccess) 2604var symbol = field.FieldSymbol; 2698NoteRead(node.FieldSymbol); 2700if (node.FieldSymbol.IsFixedSizeBuffer && node.Syntax != null && !SyntaxFacts.IsFixedStatementExpression(node.Syntax)) 2712else if (MayRequireTracking(node.ReceiverOpt, node.FieldSymbol)) 2715CheckAssigned(node, node.FieldSymbol, node.Syntax);
FlowAnalysis\NullableWalker.cs (4)
1949var fieldSymbol = fieldAccess.FieldSymbol; 10040BoundFieldAccess field => GetFieldAnnotations(field.FieldSymbol), 10660var updatedSymbol = VisitMemberAccess(node, node.ReceiverOpt, node.FieldSymbol); 10663SetUpdatedSymbol(node, node.FieldSymbol, updatedSymbol);
FlowAnalysis\ReadWriteWalker.cs (2)
172if (expr.FieldSymbol.IsStatic) return; 173if (expr.FieldSymbol.ContainingType.IsReferenceType) return;
Generated\BoundNodes.xml.Generated.cs (4)
7285if (receiverOpt != this.ReceiverOpt || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(fieldSymbol, this.FieldSymbol) || constantValueOpt != this.ConstantValueOpt || resultKind != this.ResultKind || isByValue != this.IsByValue || isDeclaration != this.IsDeclaration || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 11932return node.Update(receiverOpt, node.FieldSymbol, node.ConstantValueOpt, node.ResultKind, node.IsByValue, node.IsDeclaration, type); 14414FieldSymbol fieldSymbol = GetUpdatedSymbol(node, node.FieldSymbol); 16704new TreeDumperNode("fieldSymbol", node.FieldSymbol, null),
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (3)
211if (fieldAccess.FieldSymbol.IsCapturedFrame) 810var receiver = node.FieldSymbol.IsStatic ? _bound.Null(ExpressionType) : Visit(node.ReceiverOpt); 813receiver, _bound.FieldInfo(node.FieldSymbol));
Lowering\DiagnosticsPass_Warnings.cs (7)
58FieldSymbol fieldSymbol = fieldAccess.FieldSymbol; 87FieldSymbol fieldSymbol = fieldAccess.FieldSymbol; 116TypeSymbol baseType = fieldAccess.FieldSymbol.ContainingType; 136if (receiver == null || fieldAccess.FieldSymbol.IsStatic) 210return field1.FieldSymbol == field2.FieldSymbol && 211(field1.FieldSymbol.IsStatic || IsSameLocalOrField(field1.ReceiverOpt, field2.ReceiverOpt));
Lowering\LocalRewriter\LocalRewriter.cs (2)
924var lhsField = ((BoundFieldAccess)assignment.Left).FieldSymbol; 1068if (!fieldAccess.FieldSymbol.IsStatic)
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (2)
642if (TransformCompoundAssignmentFieldOrEventAccessReceiver(fieldAccess.FieldSymbol, ref receiverOpt, stores, temps)) 644return MakeFieldAccess(fieldAccess.Syntax, receiverOpt, fieldAccess.FieldSymbol, fieldAccess.ConstantValueOpt, fieldAccess.ResultKind, fieldAccess.Type, fieldAccess);
Lowering\LocalRewriter\LocalRewriter_Field.cs (1)
14return MakeFieldAccess(node.Syntax, rewrittenReceiver, node.FieldSymbol, node.ConstantValueOpt, node.ResultKind, node.Type, node);
Lowering\LocalRewriter\LocalRewriter_PointerElementAccess.cs (2)
22if (receiver is BoundFieldAccess fieldAccess && fieldAccess.FieldSymbol.IsFixedSizeBuffer) 25fieldAccess = fieldAccess.Update(loweredFieldReceiver, fieldAccess.FieldSymbol, fieldAccess.ConstantValueOpt, fieldAccess.ResultKind, fieldAccess.Type);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
496return !((BoundFieldAccess)expression).FieldSymbol.IsStatic;
Lowering\MethodToClassRewriter.cs (2)
556var fieldSymbol = ((FieldSymbol)node.FieldSymbol.OriginalDefinition) 557.AsMember((NamedTypeSymbol)this.VisitType(node.FieldSymbol.ContainingType));
Lowering\SpillSequenceSpiller.cs (6)
406var fieldSymbol = field.FieldSymbol; 882if (field.FieldSymbol.IsStatic) break; 920if (!field.FieldSymbol.IsStatic) 924if (field.FieldSymbol.ContainingType.IsReferenceType) 957field = field.Update(receiver, field.FieldSymbol, field.ConstantValueOpt, field.ResultKind, field.Type); 1216return UpdateExpression(builder, node.Update(receiver, node.FieldSymbol, node.ConstantValueOpt, node.ResultKind, node.Type));
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
242case BoundFieldAccess { FieldSymbol: { IsStatic: false, ContainingType: { IsValueType: true } }, ReceiverOpt: BoundExpression receiver }:
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (4)
585if (field.FieldSymbol.IsStatic) 588if (refKind != RefKind.None || field.FieldSymbol.IsReadOnly) return expr; 597var isFieldOfStruct = !field.FieldSymbol.ContainingType.IsReferenceType; 606return F.Field(receiver, field.FieldSymbol);
Operations\CSharpOperationFactory.cs (2)
574IFieldSymbol field = boundFieldAccess.FieldSymbol.GetPublicSymbol(); 591IOperation? instance = CreateReceiverOperation(boundFieldAccess.ReceiverOpt, boundFieldAccess.FieldSymbol);