242 references to CompletionPart
Microsoft.CodeAnalysis.CSharp (242)
Compilation\CSharpCompilation.UsingsFromOptionsAndDiagnostics.cs (10)
91
var
incompletePart = _state.NextIncompletePart;
94
case
CompletionPart
.StartValidatingImports:
96
if (_state.NotePartComplete(
CompletionPart
.StartValidatingImports))
99
_state.NotePartComplete(
CompletionPart
.FinishValidatingImports);
104
case
CompletionPart
.FinishValidatingImports:
107
Debug.Assert(_state.HasComplete(
CompletionPart
.StartValidatingImports));
108
_state.SpinWaitComplete(
CompletionPart
.FinishValidatingImports, cancellationToken);
111
case
CompletionPart
.None:
116
_state.NotePartComplete(
CompletionPart
.All & ~
CompletionPart
.ImportsAll);
Symbols\AliasSymbol.cs (3)
314
if (!_state.HasComplete(
CompletionPart
.AliasTarget))
332
_state.NotePartComplete(
CompletionPart
.AliasTarget);
339
_state.SpinWaitComplete(
CompletionPart
.AliasTarget, default(CancellationToken));
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (2)
42
internal sealed override bool HasComplete(
CompletionPart
part)
91
var completed = state.NotePartComplete(
CompletionPart
.Attributes);
Symbols\Source\GlobalExpressionVariable.cs (1)
143
state.NotePartComplete(
CompletionPart
.Type);
Symbols\Source\ImplicitNamedTypeSymbol.cs (2)
28
state.NotePartComplete(
CompletionPart
.EnumUnderlyingType); // No work to do for this.
36
state.NotePartComplete(
CompletionPart
.Attributes);
Symbols\Source\SourceAssemblySymbol.cs (19)
899
internal override bool HasComplete(
CompletionPart
part)
910
var
incompletePart = _state.NextIncompletePart;
913
case
CompletionPart
.Attributes:
916
case
CompletionPart
.StartAttributeChecks:
917
case
CompletionPart
.FinishAttributeChecks:
918
if (_state.NotePartComplete(
CompletionPart
.StartAttributeChecks))
923
var thisThreadCompleted = _state.NotePartComplete(
CompletionPart
.FinishAttributeChecks);
928
case
CompletionPart
.Module:
930
if (SourceModule.HasComplete(
CompletionPart
.MembersCompleted))
932
_state.NotePartComplete(
CompletionPart
.Module);
942
case
CompletionPart
.StartValidatingAddedModules:
943
case
CompletionPart
.FinishValidatingAddedModules:
944
if (_state.NotePartComplete(
CompletionPart
.StartValidatingAddedModules))
947
var thisThreadCompleted = _state.NotePartComplete(
CompletionPart
.FinishValidatingAddedModules);
952
case
CompletionPart
.None:
957
_state.NotePartComplete(
CompletionPart
.All & ~
CompletionPart
.AssemblySymbolAll);
1571
_state.NotePartComplete(
CompletionPart
.Attributes);
2671
Debug.Assert(this.HasComplete(
CompletionPart
.Module),
Symbols\Source\SourceComplexParameterSymbol.cs (9)
246
if (state.NotePartComplete(
CompletionPart
.StartDefaultSyntaxValue))
256
var completedOnThisThread = state.NotePartComplete(
CompletionPart
.EndDefaultSyntaxValue);
285
completedOnThisThread = state.NotePartComplete(
CompletionPart
.EndDefaultSyntaxValueDiagnostics);
289
state.SpinWaitComplete(
CompletionPart
.EndDefaultSyntaxValue, default(CancellationToken));
607
state.NotePartComplete(
CompletionPart
.Attributes);
1529
state.SpinWaitComplete(
CompletionPart
.ComplexParameterSymbolAll, cancellationToken);
1536
if (state.NotePartComplete(
CompletionPart
.StartMiscValidation))
1554
bool completedOnThisThread = state.NotePartComplete(
CompletionPart
.EndMiscValidation);
1558
state.SpinWaitComplete(
CompletionPart
.EndMiscValidation, default(CancellationToken));
Symbols\Source\SourceEnumConstantSymbol.cs (10)
110
var
incompletePart = state.NextIncompletePart;
113
case
CompletionPart
.Attributes:
117
case
CompletionPart
.Type:
118
state.NotePartComplete(
CompletionPart
.Type);
121
case
CompletionPart
.FixedSize:
123
state.NotePartComplete(
CompletionPart
.FixedSize);
126
case
CompletionPart
.ConstantValue:
130
case
CompletionPart
.None:
135
state.NotePartComplete(
CompletionPart
.All & ~
CompletionPart
.FieldSymbolAll);
Symbols\Source\SourceEventSymbol.cs (2)
68
internal sealed override bool HasComplete(
CompletionPart
part)
197
var wasCompletedThisThread = _state.NotePartComplete(
CompletionPart
.Attributes);
Symbols\Source\SourceFieldSymbol.cs (1)
375
var wasSetThisThread = this.state.NotePartComplete(
CompletionPart
.ConstantValue);
Symbols\Source\SourceFixedFieldSymbol.cs (1)
130
state.NotePartComplete(
CompletionPart
.FixedSize);
Symbols\Source\SourceMemberContainerSymbol.cs (40)
268
state.NotePartComplete(
CompletionPart
.TypeArguments); // type arguments need not be computed separately
530
internal sealed override bool HasComplete(
CompletionPart
part)
549
var
incompletePart = state.NextIncompletePart;
552
case
CompletionPart
.Attributes:
556
case
CompletionPart
.StartBaseType:
557
case
CompletionPart
.FinishBaseType:
558
if (state.NotePartComplete(
CompletionPart
.StartBaseType))
563
state.NotePartComplete(
CompletionPart
.FinishBaseType);
568
case
CompletionPart
.StartInterfaces:
569
case
CompletionPart
.FinishInterfaces:
570
if (state.NotePartComplete(
CompletionPart
.StartInterfaces))
575
state.NotePartComplete(
CompletionPart
.FinishInterfaces);
580
case
CompletionPart
.EnumUnderlyingType:
584
case
CompletionPart
.TypeArguments:
590
case
CompletionPart
.TypeParameters:
598
state.NotePartComplete(
CompletionPart
.TypeParameters);
601
case
CompletionPart
.Members:
605
case
CompletionPart
.TypeMembers:
609
case
CompletionPart
.SynthesizedExplicitImplementations:
613
case
CompletionPart
.StartMemberChecks:
614
case
CompletionPart
.FinishMemberChecks:
615
if (state.NotePartComplete(
CompletionPart
.StartMemberChecks))
623
var thisThreadCompleted = state.NotePartComplete(
CompletionPart
.FinishMemberChecks);
629
case
CompletionPart
.MembersCompletedChecksStarted:
630
case
CompletionPart
.MembersCompleted:
649
allCompleted = allCompleted && member.HasComplete(
CompletionPart
.All);
657
var
allParts =
CompletionPart
.NamedTypeSymbolWithLocationAll;
665
if (state.NotePartComplete(
CompletionPart
.MembersCompletedChecksStarted))
673
var thisThreadCompleted = state.NotePartComplete(
CompletionPart
.MembersCompleted);
680
case
CompletionPart
.None:
685
Debug.Assert((incompletePart &
CompletionPart
.NamedTypeSymbolAll) == 0);
687
state.NotePartComplete(
CompletionPart
.All & ~
CompletionPart
.NamedTypeSymbolAll);
1309
state.NotePartComplete(
CompletionPart
.TypeMembers);
1747
if (this.state.HasComplete(
CompletionPart
.Members))
1765
state.NotePartComplete(
CompletionPart
.Members);
1771
state.SpinWaitComplete(
CompletionPart
.Members, default(CancellationToken));
1775
internal bool AreMembersComplete => state.HasComplete(
CompletionPart
.Members);
3437
this.state.HasComplete(
CompletionPart
.Members))
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
61
state.NotePartComplete(
CompletionPart
.SynthesizedExplicitImplementations);
Symbols\Source\SourceMemberFieldSymbol.cs (10)
160
state.NotePartComplete(
CompletionPart
.FixedSize);
280
var
incompletePart = state.NextIncompletePart;
283
case
CompletionPart
.Attributes:
287
case
CompletionPart
.Type:
291
case
CompletionPart
.FixedSize:
295
case
CompletionPart
.ConstantValue:
299
case
CompletionPart
.None:
304
state.NotePartComplete(
CompletionPart
.All & ~
CompletionPart
.FieldSymbolAll);
602
state.NotePartComplete(
CompletionPart
.Type);
Symbols\Source\SourceMemberMethodSymbol.cs (27)
435
if (!state.HasComplete(
CompletionPart
.FinishMethodChecks))
445
if (state.NotePartComplete(
CompletionPart
.StartMethodChecks))
457
state.NotePartComplete(
CompletionPart
.FinishMethodChecks);
488
state.NotePartComplete(
CompletionPart
.StartAsyncMethodChecks);
489
state.NotePartComplete(
CompletionPart
.FinishAsyncMethodChecks);
855
internal sealed override bool HasComplete(
CompletionPart
part)
871
var
incompletePart = state.NextIncompletePart;
874
case
CompletionPart
.Attributes:
887
case
CompletionPart
.ReturnTypeAttributes:
891
case
CompletionPart
.Type:
893
state.NotePartComplete(
CompletionPart
.Type);
896
case
CompletionPart
.Parameters:
902
state.NotePartComplete(
CompletionPart
.Parameters);
905
case
CompletionPart
.TypeParameters:
911
state.NotePartComplete(
CompletionPart
.TypeParameters);
914
case
CompletionPart
.StartAsyncMethodChecks:
915
case
CompletionPart
.FinishAsyncMethodChecks:
919
case
CompletionPart
.StartMethodChecks:
920
case
CompletionPart
.FinishMethodChecks:
924
case
CompletionPart
.None:
929
state.NotePartComplete(
CompletionPart
.All & ~
CompletionPart
.MethodSymbolAll);
939
CompletionPart
allParts =
CompletionPart
.MethodSymbolAll;
946
var
part = forReturnType ?
CompletionPart
.ReturnTypeAttributes :
CompletionPart
.Attributes;
Symbols\Source\SourceModuleSymbol.cs (14)
219
internal sealed override bool HasComplete(
CompletionPart
part)
230
var
incompletePart = _state.NextIncompletePart;
233
case
CompletionPart
.Attributes:
237
case
CompletionPart
.StartValidatingReferencedAssemblies:
247
if (_state.NotePartComplete(
CompletionPart
.StartValidatingReferencedAssemblies))
254
_state.NotePartComplete(
CompletionPart
.FinishValidatingReferencedAssemblies);
264
case
CompletionPart
.FinishValidatingReferencedAssemblies:
267
Debug.Assert(_state.HasComplete(
CompletionPart
.StartValidatingReferencedAssemblies));
268
_state.SpinWaitComplete(
CompletionPart
.FinishValidatingReferencedAssemblies, cancellationToken);
271
case
CompletionPart
.MembersCompleted:
274
if (this.GlobalNamespace.HasComplete(
CompletionPart
.MembersCompleted))
279
_state.NotePartComplete(
CompletionPart
.MembersCompleted);
289
case
CompletionPart
.None:
513
var completed = _state.NotePartComplete(
CompletionPart
.Attributes);
Symbols\Source\SourceNamedTypeSymbol.cs (1)
845
var completed = state.NotePartComplete(
CompletionPart
.Attributes);
Symbols\Source\SourceNamedTypeSymbol_Enum.cs (1)
35
this.state.NotePartComplete(
CompletionPart
.EnumUnderlyingType);
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (20)
929
var
incompletePart = _state.NextIncompletePart;
932
case
CompletionPart
.StartValidatingImports:
934
if (_state.NotePartComplete(
CompletionPart
.StartValidatingImports))
937
_state.NotePartComplete(
CompletionPart
.FinishValidatingImports);
942
case
CompletionPart
.FinishValidatingImports:
945
Debug.Assert(_state.HasComplete(
CompletionPart
.StartValidatingImports));
946
_state.SpinWaitComplete(
CompletionPart
.FinishValidatingImports, cancellationToken);
949
case
CompletionPart
.None:
954
_state.NotePartComplete(
CompletionPart
.All & ~
CompletionPart
.ImportsAll);
1154
var
incompletePart = _state.NextIncompletePart;
1157
case
CompletionPart
.StartValidatingImports:
1159
if (_state.NotePartComplete(
CompletionPart
.StartValidatingImports))
1168
_state.NotePartComplete(
CompletionPart
.FinishValidatingImports);
1173
case
CompletionPart
.FinishValidatingImports:
1176
Debug.Assert(_state.HasComplete(
CompletionPart
.StartValidatingImports));
1177
_state.SpinWaitComplete(
CompletionPart
.FinishValidatingImports, cancellationToken);
1180
case
CompletionPart
.None:
1185
_state.NotePartComplete(
CompletionPart
.All & ~
CompletionPart
.ImportsAll);
Symbols\Source\SourceNamespaceSymbol.cs (1)
238
var wasSetThisThread = _state.NotePartComplete(
CompletionPart
.NameToMembersMap);
Symbols\Source\SourceNamespaceSymbol_Completion.cs (14)
23
var
incompletePart = _state.NextIncompletePart;
26
case
CompletionPart
.NameToMembersMap:
32
case
CompletionPart
.MembersCompleted:
69
if (!member.HasComplete(
CompletionPart
.All))
81
allCompleted = allCompleted && member.HasComplete(
CompletionPart
.All);
87
_state.NotePartComplete(
CompletionPart
.MembersCompleted);
98
case
CompletionPart
.None:
103
_state.NotePartComplete(
CompletionPart
.All & ~
CompletionPart
.NamespaceSymbolAll);
113
CompletionPart
allParts = (locationOpt == null && filter == null) ?
CompletionPart
.NamespaceSymbolAll :
CompletionPart
.NamespaceSymbolAll & ~
CompletionPart
.MembersCompleted;
117
internal override bool HasComplete(
CompletionPart
part)
Symbols\Source\SourceOrdinaryMethodSymbolBase.cs (3)
61
if (state.NotePartComplete(
CompletionPart
.StartAsyncMethodChecks))
69
state.NotePartComplete(
CompletionPart
.FinishAsyncMethodChecks);
73
state.SpinWaitComplete(
CompletionPart
.FinishAsyncMethodChecks, cancellationToken);
Symbols\Source\SourceParameterSymbol.cs (1)
168
internal sealed override bool HasComplete(
CompletionPart
part)
Symbols\Source\SourcePropertySymbolBase.cs (23)
378
if (!_state.HasComplete(
CompletionPart
.FinishPropertyEnsureSignature))
386
if (_state.NotePartComplete(
CompletionPart
.StartPropertyEnsureSignature))
398
_state.NotePartComplete(
CompletionPart
.FinishPropertyEnsureSignature);
1308
var completed = _state.NotePartComplete(
CompletionPart
.Attributes);
1726
internal sealed override bool HasComplete(
CompletionPart
part)
1742
var
incompletePart = _state.NextIncompletePart;
1745
case
CompletionPart
.Attributes:
1749
case
CompletionPart
.StartPropertyEnsureSignature:
1750
case
CompletionPart
.FinishPropertyEnsureSignature:
1752
Debug.Assert(_state.HasComplete(
CompletionPart
.FinishPropertyEnsureSignature));
1755
case
CompletionPart
.StartPropertyParameters:
1756
case
CompletionPart
.FinishPropertyParameters:
1758
if (_state.NotePartComplete(
CompletionPart
.StartPropertyParameters))
1786
var completedOnThisThread = _state.NotePartComplete(
CompletionPart
.FinishPropertyParameters);
1792
_state.SpinWaitComplete(
CompletionPart
.FinishPropertyParameters, cancellationToken);
1797
case
CompletionPart
.StartPropertyType:
1798
case
CompletionPart
.FinishPropertyType:
1800
if (_state.NotePartComplete(
CompletionPart
.StartPropertyType))
1809
var completedOnThisThread = _state.NotePartComplete(
CompletionPart
.FinishPropertyType);
1816
_state.SpinWaitComplete(
CompletionPart
.FinishPropertyType, cancellationToken);
1821
case
CompletionPart
.None:
1826
_state.NotePartComplete(
CompletionPart
.All & ~
CompletionPart
.PropertySymbolAll);
Symbols\Source\SourceSimpleParameterSymbol.cs (1)
151
state.NotePartComplete(
CompletionPart
.Attributes);
Symbols\Source\SourceTypeParameterSymbol.cs (8)
201
_state.NotePartComplete(
CompletionPart
.Attributes);
237
_state.NotePartComplete(
CompletionPart
.TypeParameterConstraints);
355
var
incompletePart = _state.NextIncompletePart;
358
case
CompletionPart
.Attributes:
362
case
CompletionPart
.TypeParameterConstraints:
372
case
CompletionPart
.None:
377
_state.NotePartComplete(
CompletionPart
.All & ~
CompletionPart
.TypeParameterSymbolAll);
Symbols\Symbol.cs (1)
59
internal virtual bool HasComplete(
CompletionPart
part)
Symbols\SymbolCompletionState.cs (14)
21
/// This field keeps track of the <see cref="
CompletionPart
"/>s for which we already retrieved
23
/// available) until this is equal to <see cref="
CompletionPart
.All"/>, except that when completing
24
/// with a given position, we might not complete <see cref="
CompletionPart
"/>.Member*.
36
return ~_completeParts & (int)
CompletionPart
.All;
43
/// of <see cref="Symbol.GetAttributes"/> will set the part <see cref="
CompletionPart
.Attributes"/> on
51
if (!HasComplete(
CompletionPart
.Attributes))
69
SpinWaitComplete(
CompletionPart
.Attributes, cancellationToken);
73
NotePartComplete(
CompletionPart
.All);
76
internal bool HasComplete(
CompletionPart
part)
84
internal bool NotePartComplete(
CompletionPart
part)
96
internal
CompletionPart
NextIncompletePart
107
return (
CompletionPart
)next;
120
internal void SpinWaitComplete(
CompletionPart
part, CancellationToken cancellationToken)
145
if ((bit & (int)
CompletionPart
.All) == 0) break;
Symbols\Tuples\TupleFieldSymbol.cs (1)
146
internal override bool HasComplete(
CompletionPart
part) => _underlyingField.HasComplete(part);
Symbols\TypeWithAnnotations.cs (1)
327
return !((object)declaringMethod != null && !declaringMethod.HasComplete(
CompletionPart
.FinishMethodChecks) &&