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