415 references to Regular
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.CodeStyle (4)
Microsoft.CodeAnalysis.CSharp (17)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (101)
Completion\CompletionProviders\OverrideCompletionProviderTests.cs (2)
836await BaseVerifyWorkerAsync(code, position, "@class()", "void Base.@class()", SourceCodeKind.Regular, false, deletedCharTrigger: null, false, null, null, null, null, null, null);
854await BaseVerifyWorkerAsync(code, position, "@class", "int Base.@class { get; set; }", SourceCodeKind.Regular, false, deletedCharTrigger: null, false, null, null, null, null, null, null);
Completion\CompletionProviders\SnippetCompletionProviderTests.cs (13)
37=> await VerifyItemExistsAsync(@"$$", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular);
41=> await VerifyItemExistsAsync(@"$$", MockSnippetInfoService.SnippetShortcut, MockSnippetInfoService.SnippetTitle + Environment.NewLine + MockSnippetInfoService.SnippetDescription + Environment.NewLine + string.Format(FeaturesResources.Note_colon_Tab_twice_to_insert_the_0_snippet, MockSnippetInfoService.SnippetShortcut), SourceCodeKind.Regular);
45=> await VerifyItemExistsAsync(@"namespace NS { $$ }", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular);
49=> await VerifyItemExistsAsync(@"namespace NS { class C { $$ } }", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular);
53=> await VerifyItemExistsAsync(@"namespace NS { class C { void M() { $$ } } }", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular);
57=> await VerifyItemIsAbsentAsync(@"namespace NS { class C { void M() { int $$ } } }", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular);
61=> await VerifyItemIsAbsentAsync(@"namespace NS { enum E { $$ } }", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular);
65=> await VerifyItemExistsAsync(@"namespace NS { class C { void M() { bool b = true && $$ } } }", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular);
69=> await VerifyItemExistsAsync(@"#$$", MockSnippetInfoService.PreProcessorSnippetShortcut[1..], sourceCodeKind: SourceCodeKind.Regular);
73=> await VerifyItemIsAbsentAsync(@"#$$", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular);
77=> await VerifyItemIsAbsentAsync(@"#region $$", MockSnippetInfoService.PreProcessorSnippetShortcut, sourceCodeKind: SourceCodeKind.Regular);
81=> await VerifyItemExistsAsync(@"#r$$", MockSnippetInfoService.PreProcessorSnippetShortcut[1..], sourceCodeKind: SourceCodeKind.Regular);
85=> await VerifyItemIsAbsentAsync(@"#line (1, 2) - (3, 4) $$", MockSnippetInfoService.PreProcessorSnippetShortcut, sourceCodeKind: SourceCodeKind.Regular);
Completion\CompletionProviders\SymbolCompletionProviderTests.cs (43)
28[InlineData(SourceCodeKind.Regular)]
37[InlineData(SourceCodeKind.Regular)]
467await VerifyItemExistsAsync(source, "System", sourceCodeKind: SourceCodeKind.Regular);
481await VerifyItemExistsAsync(source, "Runtime", sourceCodeKind: SourceCodeKind.Regular);
498sourceCodeKind: SourceCodeKind.Regular);
515sourceCodeKind: SourceCodeKind.Regular);
527await VerifyItemExistsAsync(source, "A", sourceCodeKind: SourceCodeKind.Regular);
540await VerifyNoItemsExistAsync(source, sourceCodeKind: SourceCodeKind.Regular);
560sourceCodeKind: SourceCodeKind.Regular);
568await VerifyItemIsAbsentAsync(source, "NS", sourceCodeKind: SourceCodeKind.Regular);
589sourceCodeKind: SourceCodeKind.Regular);
612sourceCodeKind: SourceCodeKind.Regular);
625sourceCodeKind: SourceCodeKind.Regular);
664SourceCodeKind.Regular);
672await VerifyNoItemsExistAsync(source, sourceCodeKind: SourceCodeKind.Regular);
684await VerifyItemExistsAsync(source, "B", sourceCodeKind: SourceCodeKind.Regular);
696await VerifyItemExistsAsync(source, "B", sourceCodeKind: SourceCodeKind.Regular);
717sourceCodeKind: SourceCodeKind.Regular);
735sourceCodeKind: SourceCodeKind.Regular);
755sourceCodeKind: SourceCodeKind.Regular);
768sourceCodeKind: SourceCodeKind.Regular);
776await VerifyItemExistsAsync(source, "System", sourceCodeKind: SourceCodeKind.Regular);
794sourceCodeKind: SourceCodeKind.Regular);
834SourceCodeKind.Regular);
2096await VerifyItemExistsAsync(prefix + "$$", "args", sourceCodeKind: SourceCodeKind.Regular);
2119""", "args", sourceCodeKind: SourceCodeKind.Regular);
2131""" + prefix + "$$", "args", sourceCodeKind: SourceCodeKind.Regular);
2146""", "args", sourceCodeKind: SourceCodeKind.Regular);
2156await VerifyItemExistsAsync("call(" + prefix + "$$)", "args", sourceCodeKind: SourceCodeKind.Regular);
2161=> await VerifyItemIsAbsentAsync(@"$$", "args", sourceCodeKind: SourceCodeKind.Regular);
2170""", "args", sourceCodeKind: SourceCodeKind.Regular);
2178""", "args", sourceCodeKind: SourceCodeKind.Regular);
2182=> await VerifyItemExistsAsync(@"string first = $$", "args", sourceCodeKind: SourceCodeKind.Regular);
3197await VerifyItemExistsAsync(markup, "Q", expectedDescriptionOrNull: null, sourceCodeKind: SourceCodeKind.Regular);
3198await VerifyItemIsAbsentAsync(markup, "R", expectedDescriptionOrNull: null, sourceCodeKind: SourceCodeKind.Regular);
3837SourceCodeKind.Regular);
3854SourceCodeKind.Regular);
8496await VerifyItemExistsAsync(markup, "ForSchemaSet", displayTextSuffix: "<>", sourceCodeKind: SourceCodeKind.Regular);
9709await VerifyItemExistsAsync(markup, "Class1", displayTextSuffix: "<>", sourceCodeKind: SourceCodeKind.Regular);
9734await VerifyItemExistsAsync(markup, "Class1", displayTextSuffix: "<>", sourceCodeKind: SourceCodeKind.Regular);
11923await VerifyItemExistsAsync(markup, "Length", sourceCodeKind: SourceCodeKind.Regular);
13534await VerifyItemIsAbsentAsync(source, "System", sourceCodeKind: SourceCodeKind.Regular);
13939sourceCodeKind: SourceCodeKind.Regular);
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (167)
Recommendations\EventKeywordRecommenderTests.cs (16)
76=> await VerifyAbsenceAsync(SourceCodeKind.Regular, @"$$");
81await VerifyAbsenceAsync(SourceCodeKind.Regular, """
99await VerifyAbsenceAsync(SourceCodeKind.Regular, """
117await VerifyAbsenceAsync(SourceCodeKind.Regular, """
135await VerifyAbsenceAsync(SourceCodeKind.Regular, """
144await VerifyAbsenceAsync(SourceCodeKind.Regular, """
153await VerifyAbsenceAsync(SourceCodeKind.Regular, """
195await VerifyAbsenceAsync(SourceCodeKind.Regular,
215await VerifyAbsenceAsync(SourceCodeKind.Regular,
235await VerifyAbsenceAsync(SourceCodeKind.Regular, """
253await VerifyAbsenceAsync(SourceCodeKind.Regular, """
331=> await VerifyAbsenceAsync(SourceCodeKind.Regular, @"internal $$");
349=> await VerifyAbsenceAsync(SourceCodeKind.Regular, @"public $$");
368await VerifyAbsenceAsync(SourceCodeKind.Regular,
432=> await VerifyAbsenceAsync(SourceCodeKind.Regular, @"static $$");
450=> await VerifyAbsenceAsync(SourceCodeKind.Regular, @"static public $$");
Recommendations\NamespaceKeywordRecommenderTests.cs (19)
68await VerifyKeywordAsync(SourceCodeKind.Regular,
86await VerifyKeywordAsync(SourceCodeKind.Regular,
96await VerifyAbsenceAsync(SourceCodeKind.Regular,
106await VerifyAbsenceAsync(SourceCodeKind.Regular,
117await VerifyKeywordAsync(SourceCodeKind.Regular,
140await VerifyKeywordAsync(SourceCodeKind.Regular,
160await VerifyAbsenceAsync(SourceCodeKind.Regular,
171await VerifyKeywordAsync(SourceCodeKind.Regular,
184await VerifyKeywordAsync(SourceCodeKind.Regular,
194await VerifyKeywordAsync(SourceCodeKind.Regular,
224await VerifyKeywordAsync(SourceCodeKind.Regular,
244await VerifyKeywordAsync(SourceCodeKind.Regular,
264await VerifyKeywordAsync(SourceCodeKind.Regular,
284await VerifyKeywordAsync(SourceCodeKind.Regular,
325await VerifyKeywordAsync(SourceCodeKind.Regular,
354await VerifyKeywordAsync(SourceCodeKind.Regular,
386await VerifyKeywordAsync(SourceCodeKind.Regular,
479await VerifyKeywordAsync(SourceCodeKind.Regular,
520await VerifyKeywordAsync(SourceCodeKind.Regular,
Recommendations\PrivateKeywordRecommenderTests.cs (13)
74=> await VerifyAbsenceAsync(SourceCodeKind.Regular, @"$$");
79await VerifyAbsenceAsync(SourceCodeKind.Regular, """
97await VerifyAbsenceAsync(SourceCodeKind.Regular, """
115await VerifyAbsenceAsync(SourceCodeKind.Regular, """
133await VerifyAbsenceAsync(SourceCodeKind.Regular, """
142await VerifyAbsenceAsync(SourceCodeKind.Regular,
152await VerifyAbsenceAsync(SourceCodeKind.Regular, """
161await VerifyAbsenceAsync(SourceCodeKind.Regular, """
203await VerifyAbsenceAsync(SourceCodeKind.Regular, """
221await VerifyAbsenceAsync(SourceCodeKind.Regular,
241await VerifyAbsenceAsync(SourceCodeKind.Regular, """
259await VerifyAbsenceAsync(SourceCodeKind.Regular, """
382=> await VerifyAbsenceAsync(SourceCodeKind.Regular, @"static $$");
Recommendations\StructKeywordRecommenderTests.cs (12)
209await VerifyAbsenceAsync(SourceCodeKind.Regular,
219await VerifyAbsenceAsync(SourceCodeKind.Regular,
229await VerifyKeywordAsync(SourceCodeKind.Regular,
236await VerifyKeywordAsync(SourceCodeKind.Regular,
243await VerifyKeywordAsync(SourceCodeKind.Regular,
250await VerifyKeywordAsync(SourceCodeKind.Regular,
257await VerifyKeywordAsync(SourceCodeKind.Regular,
264await VerifyKeywordAsync(SourceCodeKind.Regular,
271await VerifyAbsenceAsync(SourceCodeKind.Regular,
278await VerifyAbsenceAsync(SourceCodeKind.Regular,
390await VerifyKeywordAsync(SourceCodeKind.Regular,
411await VerifyKeywordAsync(SourceCodeKind.Regular,
Recommendations\VolatileKeywordRecommenderTests.cs (16)
74=> await VerifyAbsenceAsync(SourceCodeKind.Regular, @"$$");
79await VerifyAbsenceAsync(SourceCodeKind.Regular, """
97await VerifyAbsenceAsync(SourceCodeKind.Regular, """
115await VerifyAbsenceAsync(SourceCodeKind.Regular, """
133await VerifyAbsenceAsync(SourceCodeKind.Regular, """
142await VerifyAbsenceAsync(SourceCodeKind.Regular, """
151await VerifyAbsenceAsync(SourceCodeKind.Regular, """
193await VerifyAbsenceAsync(SourceCodeKind.Regular,
213await VerifyAbsenceAsync(SourceCodeKind.Regular,
233await VerifyAbsenceAsync(SourceCodeKind.Regular, """
251await VerifyAbsenceAsync(SourceCodeKind.Regular, """
325=> await VerifyAbsenceAsync(SourceCodeKind.Regular, @"internal $$");
343=> await VerifyAbsenceAsync(SourceCodeKind.Regular, @"public $$");
362await VerifyAbsenceAsync(SourceCodeKind.Regular,
416=> await VerifyAbsenceAsync(SourceCodeKind.Regular, @"static $$");
434=> await VerifyAbsenceAsync(SourceCodeKind.Regular, @"static public $$");
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.Features (2)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (10)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (17)
Completion\AbstractCompletionProviderTests.cs (5)
113=> document.SourceCodeKind == SourceCodeKind.Regular ? [] : [PredefinedInteractiveTextViewRoles.InteractiveTextViewRole];
391await VerifyCustomCommitProviderWorkerAsync(code, position, itemToCommit, expectedCodeAfterCommit, SourceCodeKind.Regular, commitChar);
418await VerifyProviderCommitWorkerAsync(code, position, itemToCommit, expectedCodeAfterCommit, commitChar, SourceCodeKind.Regular);
1254SourceCodeKind sourceCodeKind = SourceCodeKind.Regular,
1312protected async Task VerifyCommitCharactersAsync(string initialMarkup, string textTypedSoFar, char[] validChars, char[] invalidChars = null, SourceCodeKind sourceCodeKind = SourceCodeKind.Regular)
Microsoft.CodeAnalysis.ExternalAccess.Razor (2)
Microsoft.CodeAnalysis.Features (4)
Microsoft.CodeAnalysis.Features.Test.Utilities (2)
Microsoft.CodeAnalysis.LanguageServer (2)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Microsoft.CodeAnalysis.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic (7)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (6)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
Microsoft.CodeAnalysis.Workspaces (11)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (12)
Microsoft.CodeAnalysis.Workspaces.UnitTests (14)
Microsoft.VisualStudio.LanguageServices (5)
Microsoft.VisualStudio.LanguageServices.CSharp (2)
Microsoft.VisualStudio.LanguageServices.UnitTests (3)
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
StackDepthTest (1)