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)
3242
this.
CurrentSymbol
= lambdaOrFunctionSymbol;
3330
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)
1310
else if (
CurrentSymbol
is MethodSymbol { IsAsync: false })
1322
if (
CurrentSymbol
is MethodSymbol method &&
2778
if (!(
CurrentSymbol
is MethodSymbol methodSymbol))
2941
if (
CurrentSymbol
is MethodSymbol method)
2975
var method =
CurrentSymbol
as MethodSymbol;
3241
var oldCurrentSymbol = this.
CurrentSymbol
;
4476
placeholder = new PlaceholderLocal(
CurrentSymbol
, identifier, type);
11994
var method = (MethodSymbol)
CurrentSymbol
;
FlowAnalysis\ReadWriteWalker.cs (1)
78
Symbol current =
CurrentSymbol
;