11 writes to CurrentSymbol
Microsoft.CodeAnalysis.CSharp (11)
FlowAnalysis\AbstractFlowPass.cs (1)
215
CurrentSymbol
= symbol;
FlowAnalysis\AbstractFlowPass_LocalFunctions.cs (2)
74
this.
CurrentSymbol
= localFuncSymbol;
151
this.
CurrentSymbol
= oldSymbol;
FlowAnalysis\DefiniteAssignment.cs (6)
202
this.
CurrentSymbol
= member;
226
this.
CurrentSymbol
= member;
344
CurrentSymbol
= primaryConstructor;
352
CurrentSymbol
= save;
2425
this.
CurrentSymbol
= node.Symbol;
2464
this.
CurrentSymbol
= oldSymbol;
FlowAnalysis\NullableWalker.cs (2)
3303
this.
CurrentSymbol
= lambdaOrFunctionSymbol;
3391
this.
CurrentSymbol
= oldCurrentSymbol;
30 references to CurrentSymbol
Microsoft.CodeAnalysis.CSharp (30)
FlowAnalysis\AbstractFlowPass_LocalFunctions.cs (1)
72
var oldSymbol = this.
CurrentSymbol
;
FlowAnalysis\DefiniteAssignment.cs (18)
102
&&
CurrentSymbol
is MethodSymbol { MethodKind: MethodKind.Constructor, ContainingType.TypeKind: TypeKind.Struct };
343
var save =
CurrentSymbol
;
401
if (
CurrentSymbol
is MethodSymbol currentMethod && currentMethod.IsAsync && !currentMethod.IsImplicitlyDeclared)
408
var diagnosticLocation =
CurrentSymbol
is LambdaSymbol lambda
410
:
CurrentSymbol
.GetFirstLocationOrNone();
451
if (!_requireOutParamsAssigned && ReferenceEquals(topLevelMethod,
CurrentSymbol
))
709
if (
CurrentSymbol
is SourceMethodSymbol sourceMethod &&
1104
if (Binder.AccessingAutoPropertyFromConstructor(propAccess, this.
CurrentSymbol
))
1258
Debug.Assert(
CurrentSymbol
is MethodSymbol { MethodKind: MethodKind.Constructor, ContainingType.TypeKind: TypeKind.Struct });
1311
if (
CurrentSymbol
is not MethodSymbol { MethodKind: MethodKind.Constructor, ContainingType.TypeKind: TypeKind.Struct })
1317
var thisSlot = GetOrCreateSlot(
CurrentSymbol
.EnclosingThisSymbol());
1436
if (Binder.AccessingAutoPropertyFromConstructor(propertyAccess, this.
CurrentSymbol
))
1805
Symbol current =
CurrentSymbol
;
1809
if ((object)current !=
CurrentSymbol
&& current is MethodSymbol method)
1879
if (parameter.RefKind == RefKind.Out && !(this.
CurrentSymbol
is MethodSymbol currentMethod && currentMethod.IsAsync)) // out parameters not allowed in async
2370
if (localSymbol.IsFixed && this.
CurrentSymbol
is MethodSymbol currentMethod &&
2424
var oldSymbol = this.
CurrentSymbol
;
2724
if (Binder.AccessingAutoPropertyFromConstructor(node, this.
CurrentSymbol
))
FlowAnalysis\DefiniteAssignment.LocalFunctions.cs (2)
95
var localFunc = GetNearestLocalFunctionOpt(
CurrentSymbol
);
152
var nearestLocalFunc = GetNearestLocalFunctionOpt(
CurrentSymbol
);
FlowAnalysis\NullableWalker.cs (8)
1371
else if (
CurrentSymbol
is MethodSymbol { IsAsync: false })
1383
if (
CurrentSymbol
is MethodSymbol method &&
2839
if (!(
CurrentSymbol
is MethodSymbol methodSymbol))
3002
if (
CurrentSymbol
is MethodSymbol method)
3036
var method =
CurrentSymbol
as MethodSymbol;
3302
var oldCurrentSymbol = this.
CurrentSymbol
;
4537
placeholder = new PlaceholderLocal(
CurrentSymbol
, identifier, type);
12055
var method = (MethodSymbol)
CurrentSymbol
;
FlowAnalysis\ReadWriteWalker.cs (1)
78
Symbol current =
CurrentSymbol
;