26 references to MemberSymbol
Microsoft.CodeAnalysis.CSharp (26)
Compilation\AttributeSemanticModel.cs (1)
57
return (NamedTypeSymbol)
MemberSymbol
;
Compilation\InitializerSemanticModel.cs (13)
148
switch (this.
MemberSymbol
.Kind)
152
var field = (FieldSymbol)this.
MemberSymbol
;
166
var property = (SourcePropertySymbol)this.
MemberSymbol
;
173
var parameter = (ParameterSymbol)this.
MemberSymbol
;
182
throw ExceptionUtilities.UnexpectedValue(this.
MemberSymbol
.Kind);
213
speculativeModel = CreateSpeculative(parentModel, this.
MemberSymbol
, initializer, binder, GetRemappedSymbols(), position);
263
return NullableWalker.AnalyzeAndRewrite(Compilation,
MemberSymbol
, boundRoot, binder, initialState: null, diagnostics, createSnapshots, out snapshotManager, ref remappedSymbols);
268
NullableWalker.AnalyzeWithoutRewrite(Compilation,
MemberSymbol
, boundRoot, binder, diagnostics, createSnapshots);
275
switch (
MemberSymbol
.Kind)
279
Debug.Assert(
MemberSymbol
.ContainingType is SourceMemberContainerTypeSymbol);
280
return
MemberSymbol
.ContainingType is SourceMemberContainerTypeSymbol type &&
281
type.IsNullableEnabledForConstructorsAndInitializers(useStatic:
MemberSymbol
.IsStatic);
286
throw ExceptionUtilities.UnexpectedValue(
MemberSymbol
.Kind);
Compilation\MemberSemanticModel.SpeculativeMemberSemanticModel.cs (2)
52
return NullableWalker.AnalyzeAndRewrite(Compilation,
MemberSymbol
as MethodSymbol, boundRoot, binder, initialState: null, diagnostics, createSnapshots: false, out snapshotManager, ref remappedSymbols);
57
NullableWalker.AnalyzeWithoutRewrite(Compilation,
MemberSymbol
as MethodSymbol, boundRoot, binder, diagnostics, createSnapshots);
Compilation\MethodBodySemanticModel.cs (9)
168
var methodSymbol = (MethodSymbol)this.
MemberSymbol
;
212
var methodSymbol = (MethodSymbol)this.
MemberSymbol
;
230
var methodSymbol = (MethodSymbol)this.
MemberSymbol
;
240
if (
MemberSymbol
is MethodSymbol methodSymbol && methodSymbol.MethodKind == MethodKind.Constructor &&
259
if (
MemberSymbol
is SynthesizedPrimaryConstructor primaryCtor &&
294
var afterInitializersState = NullableWalker.GetAfterInitializersState(Compilation,
MemberSymbol
, boundRoot);
295
return NullableWalker.AnalyzeAndRewrite(Compilation,
MemberSymbol
, boundRoot, binder, afterInitializersState, diagnostics, createSnapshots, out snapshotManager, ref remappedSymbols);
300
NullableWalker.AnalyzeWithoutRewrite(Compilation,
MemberSymbol
, boundRoot, binder, diagnostics, createSnapshots);
305
return Compilation.IsNullableAnalysisEnabledIn((MethodSymbol)
MemberSymbol
);
Compilation\SyntaxTreeSemanticModel.cs (1)
2295
member = memberModel.
MemberSymbol
;