859 references to Script
Microsoft.CodeAnalysis (5)
Compilation\Compilation.cs (1)
1076Debug.Assert(tree.Options.Kind != SourceCodeKind.Script);
SourceCodeKind.cs (1)
28/// The same as <see cref="Script"/>.
SourceCodeKindExtensions.cs (3)
13case SourceCodeKind.Script: 17return SourceCodeKind.Script; 27return value >= SourceCodeKind.Regular && value <= SourceCodeKind.Script;
Microsoft.CodeAnalysis.CodeStyle (3)
src\Compilers\Core\Portable\SourceCodeKindExtensions.cs (3)
13case SourceCodeKind.Script: 17return SourceCodeKind.Script; 27return value >= SourceCodeKind.Regular && value <= SourceCodeKind.Script;
Microsoft.CodeAnalysis.CSharp (10)
Binder\BinderFactory.cs (1)
94return _syntaxTree.Options.Kind == SourceCodeKind.Script;
CommandLine\CSharpCommandLineParser.cs (1)
1477kind: IsScriptCommandLineParser ? SourceCodeKind.Script : SourceCodeKind.Regular,
CommandLine\CSharpCompiler.cs (1)
49var scriptParseOptions = parseOptions.WithKind(SourceCodeKind.Script);
Compilation\SyntaxAndDeclarationManager.cs (2)
168if (sourceCodeKind == SourceCodeKind.Script) 682if (sourceCodeKind == SourceCodeKind.Script)
Parser\DirectiveParser.cs (1)
111if (lexer.Options.Kind == SourceCodeKind.Script && contextualKind == SyntaxKind.ExclamationToken && hashPosition == 0 && !hash.HasTrailingTrivia)
Parser\SyntaxParser.cs (1)
226get { return Options.Kind == SourceCodeKind.Script; }
Syntax\CSharpSyntaxTree.cs (2)
137return Options.Kind == SourceCodeKind.Script && GetCompilationUnitRoot().HasReferenceDirectives; 147if (Options.Kind == SourceCodeKind.Script)
Syntax\SyntaxFactory.cs (1)
2321if (tree.Options.Kind != SourceCodeKind.Script)
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (1)
src\Features\CSharpTest\Diagnostics\AbstractCSharpDiagnosticProviderBasedUserDiagnosticTest_NoEditor.cs (1)
16private static readonly CSharpParseOptions Script = new(kind: SourceCodeKind.Script);
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
Interactive\CSharpInteractiveEvaluatorLanguageInfoProvider.cs (1)
24new(languageVersion: LanguageVersion.Latest, kind: SourceCodeKind.Script);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (69)
Completion\CompletionProviders\KeywordCompletionProviderTests.cs (2)
123await VerifyNoItemsExistAsync(markup, SourceCodeKind.Script); 147await VerifyNoItemsExistAsync(markup, SourceCodeKind.Script);
Completion\CompletionProviders\LoadDirectiveCompletionProviderTests.cs (2)
49await VerifyCommitCharactersAsync("#load \"$$", textTypedSoFar: "", validChars: commitCharacters, sourceCodeKind: SourceCodeKind.Script); 60=> VerifyTextualTriggerCharacter(markup, shouldTriggerWithTriggerOnLettersEnabled: true, shouldTriggerWithTriggerOnLettersDisabled: true, SourceCodeKind.Script);
Completion\CompletionProviders\OverrideCompletionProviderTests.cs (2)
837await BaseVerifyWorkerAsync(code, position, "@class()", "void Base.@class()", SourceCodeKind.Script, false, deletedCharTrigger: null, false, null, null, null, null, null, null); 855await BaseVerifyWorkerAsync(code, position, "@class", "int Base.@class { get; set; }", SourceCodeKind.Script, false, deletedCharTrigger: null, false, null, null, null, null, null, null);
Completion\CompletionProviders\ReferenceDirectiveCompletionProviderTests.cs (5)
52await VerifyCommitCharactersAsync("#r \"$$", textTypedSoFar: "", validChars: commitCharacters, sourceCodeKind: SourceCodeKind.Script); 63=> VerifyTextualTriggerCharacter(markup, shouldTriggerWithTriggerOnLettersEnabled: true, shouldTriggerWithTriggerOnLettersDisabled: true, SourceCodeKind.Script); 74=> await VerifyItemExistsAsync("#r \"$$", "System.Windows.Forms", expectedDescriptionOrNull: null, sourceCodeKind: SourceCodeKind.Script); 81"System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", expectedDescriptionOrNull: null, sourceCodeKind: SourceCodeKind.Script); 98await VerifyItemExistsAsync(code, windowsFolderName, expectedDescriptionOrNull: null, sourceCodeKind: SourceCodeKind.Script);
Completion\CompletionProviders\SnippetCompletionProviderTests.cs (3)
127await VerifyItemIsAbsentAsync(@"#r f$$", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Script); 128await VerifyItemIsAbsentAsync(@"#load f$$", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Script); 129await VerifyItemIsAbsentAsync(@"#!$$", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Script);
Completion\CompletionProviders\SpeculativeTCompletionProviderTests.cs (6)
827await VerifyItemExistsAsync(markup, "T", expectedDescriptionOrNull: null, sourceCodeKind: SourceCodeKind.Script); 835await VerifyItemIsAbsentAsync(markup, "T", expectedDescriptionOrNull: null, sourceCodeKind: SourceCodeKind.Script); 843await VerifyItemIsAbsentAsync(markup, "T", expectedDescriptionOrNull: null, sourceCodeKind: SourceCodeKind.Script); 854await VerifyItemExistsAsync(markup, "T", expectedDescriptionOrNull: null, sourceCodeKind: SourceCodeKind.Script); 865await VerifyItemExistsAsync(markup, "T", expectedDescriptionOrNull: null, sourceCodeKind: SourceCodeKind.Script); 876await VerifyItemExistsAsync(markup, "T", expectedDescriptionOrNull: null, sourceCodeKind: SourceCodeKind.Script);
Completion\CompletionProviders\SymbolCompletionProviderTests.cs (23)
29[InlineData(SourceCodeKind.Script)] 38[InlineData(SourceCodeKind.Script)] 53=> await VerifyItemIsAbsentAsync(@"#r $$", "@System", expectedDescriptionOrNull: null, sourceCodeKind: SourceCodeKind.Script); 57=> await VerifyItemIsAbsentAsync(@"#load $$", "@System", expectedDescriptionOrNull: null, sourceCodeKind: SourceCodeKind.Script); 325sourceCodeKind: SourceCodeKind.Script); 349sourceCodeKind: SourceCodeKind.Script); 2106await VerifyItemIsAbsentAsync(prefix + "$$", "args", sourceCodeKind: SourceCodeKind.Script); 3213await VerifyItemExistsAsync(markup, "Q", expectedDescriptionOrNull: null, sourceCodeKind: SourceCodeKind.Script); 3214await VerifyItemIsAbsentAsync(markup, "R", expectedDescriptionOrNull: null, sourceCodeKind: SourceCodeKind.Script); 3322await VerifyItemExistsAsync(markup, "String", expectedDescriptionOrNull: null, sourceCodeKind: SourceCodeKind.Script); 3334await VerifyItemExistsAsync(markup, "ElementAt", displayTextSuffix: "<>", expectedDescriptionOrNull: null, sourceCodeKind: SourceCodeKind.Script); 3395await VerifyItemIsAbsentAsync(markup, "Console", expectedDescriptionOrNull: null, sourceCodeKind: SourceCodeKind.Script); 4515expectedDescriptionOrNull: null, sourceCodeKind: SourceCodeKind.Script); 4527expectedDescriptionOrNull: null, sourceCodeKind: SourceCodeKind.Script); 4539expectedDescriptionOrNull: null, sourceCodeKind: SourceCodeKind.Script); 4551expectedDescriptionOrNull: null, sourceCodeKind: SourceCodeKind.Script); 8128await VerifyItemExistsAsync(markup, "CommandLine", sourceCodeKind: SourceCodeKind.Script); 8589=> await VerifyItemIsAbsentAsync(@"base.$$", @"ToString", sourceCodeKind: SourceCodeKind.Script); 10850await VerifyItemExistsAsync(markup, "aaa", sourceCodeKind: SourceCodeKind.Script); 10860await VerifyItemExistsAsync(markup, "aaa", sourceCodeKind: SourceCodeKind.Script); 10921await VerifyNoItemsExistAsync("#!$$", sourceCodeKind: SourceCodeKind.Script); 10922await VerifyNoItemsExistAsync("#! S$$", sourceCodeKind: SourceCodeKind.Script, usePreviousCharAsTrigger: true); 11942await VerifyItemExistsAsync(markup, "Length", sourceCodeKind: SourceCodeKind.Script);
Completion\CompletionProviders\TypeImportCompletionProviderTests.cs (13)
805[InlineData(SourceCodeKind.Script)] 840[InlineData(SourceCodeKind.Script)] 865[InlineData(SourceCodeKind.Script)] 893[InlineData(SourceCodeKind.Script)] 925[InlineData(SourceCodeKind.Script)] 1064[InlineData(SourceCodeKind.Script)] 1123[InlineData(SourceCodeKind.Script)] 1182[InlineData(SourceCodeKind.Script)] 1241[InlineData(SourceCodeKind.Script)] 1305[InlineData(SourceCodeKind.Script)] 1327[InlineData(SourceCodeKind.Script)] 1349[InlineData(SourceCodeKind.Script)] 1652[InlineData(SourceCodeKind.Script)]
Completion\CompletionProviders\XmlDocumentationCommentCompletionProviderTests.cs (2)
527""", "args", sourceCodeKind: SourceCodeKind.Script); 550""", "str", sourceCodeKind: SourceCodeKind.Script);
Debugging\LocationInfoGetterTests.cs (3)
529""", "f1", 0, new CSharpParseOptions(kind: SourceCodeKind.Script)); 540""", "M1(int x)", 2, new CSharpParseOptions(kind: SourceCodeKind.Script)); 549""", null, 0, new CSharpParseOptions(kind: SourceCodeKind.Script));
ExtractMethod\ExtractMethodTests.cs (1)
10420await TestExtractMethodAsync(code, expected, parseOptions: new CSharpParseOptions(kind: SourceCodeKind.Script));
ExtractMethod\ExtractMethodTests.LanguageInteraction.cs (1)
1388await TestExtractMethodAsync(code, expected, parseOptions: new CSharpParseOptions(kind: SourceCodeKind.Script));
GoToAdjacentMember\CSharpGoToAdjacentMemberTests.cs (2)
533await AssertNavigatedAsync(code, next: true, sourceCodeKind: SourceCodeKind.Script); 545await AssertNavigatedAsync(code, next: false, sourceCodeKind: SourceCodeKind.Script);
TypeInferrer\TypeInferrerTests.cs (2)
1421@"yield return [|abc|]", "global::System.Object", mode, sourceCodeKind: SourceCodeKind.Script); 1611@"return [|Goo()|];", "global::System.Object", mode, sourceCodeKind: SourceCodeKind.Script);
Workspaces\WorkspaceTests_EditorFeatures.cs (2)
214var document1 = new EditorTestHostDocument("var x = 1;", displayName: "Sub1", sourceCodeKind: SourceCodeKind.Script); 217var document2 = new EditorTestHostDocument("var x = 2;", displayName: "Sub2", sourceCodeKind: SourceCodeKind.Script, filePath: "a.csx");
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (610)
Recommendations\AbstractKeywordRecommenderTests.cs (6)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script, 219await VerifyAbsenceAsync(SourceCodeKind.Script, 239await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\AddKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\AliasKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\AnnotationsKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\AscendingKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\AsKeywordRecommenderTests.cs (4)
18await VerifyAbsenceAsync(SourceCodeKind.Script, 25await VerifyAbsenceAsync(SourceCodeKind.Script, 35await VerifyAbsenceAsync(SourceCodeKind.Script, 45await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\AssemblyKeywordRecommenderTests.cs (4)
18await VerifyAbsenceAsync(SourceCodeKind.Script, 25await VerifyAbsenceAsync(SourceCodeKind.Script, 35await VerifyAbsenceAsync(SourceCodeKind.Script, 45await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\AsyncKeywordRecommenderTests.cs (2)
74await VerifyKeywordAsync(SourceCodeKind.Script, text); 81await VerifyKeywordAsync(SourceCodeKind.Script, text);
Recommendations\BaseKeywordRecommenderTests.cs (3)
19await VerifyAbsenceAsync(SourceCodeKind.Script, 26await VerifyAbsenceAsync(SourceCodeKind.Script, 38await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\BoolKeywordRecommenderTests.cs (1)
25await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\BreakKeywordRecommenderTests.cs (1)
24await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\ByKeywordRecommenderTests.cs (1)
24await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\ByteKeywordRecommenderTests.cs (1)
25await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\CaseKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\CatchKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\CharKeywordRecommenderTests.cs (4)
17await VerifyKeywordAsync(SourceCodeKind.Script, 24await VerifyKeywordAsync(SourceCodeKind.Script, 34await VerifyKeywordAsync(SourceCodeKind.Script, 44await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\CheckedKeywordRecommenderTests.cs (4)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\ChecksumKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\ClassKeywordRecommenderTests.cs (6)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script, 219await VerifyAbsenceAsync(SourceCodeKind.Script, 239await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\ConstKeywordRecommenderTests.cs (6)
152[InlineData(SourceCodeKind.Script, Skip = "https://github.com/dotnet/roslyn/issues/9880")] 164[InlineData(SourceCodeKind.Script, Skip = "https://github.com/dotnet/roslyn/issues/9880")] 195await VerifyKeywordAsync(SourceCodeKind.Script, """ 264=> await VerifyKeywordAsync(SourceCodeKind.Script, @"internal $$"); 282=> await VerifyKeywordAsync(SourceCodeKind.Script, @"public $$"); 304await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\ContinueKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\DecimalKeywordRecommenderTests.cs (4)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\DefaultKeywordRecommenderTests.cs (4)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\DefineKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\DelegateKeywordRecommenderTests.cs (9)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script, 223await VerifyAbsenceAsync(SourceCodeKind.Script, 243await VerifyAbsenceAsync(SourceCodeKind.Script, 354await VerifyKeywordAsync(SourceCodeKind.Script, @"static $$"); 362await VerifyKeywordAsync(SourceCodeKind.Script, AddInsideMethod(@$"{keyword} $$")); 369await VerifyKeywordAsync(SourceCodeKind.Script, @"static public $$");
Recommendations\DescendingKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\DisableKeywordRecommenderTests.cs (4)
32await VerifyAbsenceAsync(SourceCodeKind.Script, 39await VerifyAbsenceAsync(SourceCodeKind.Script, 49await VerifyAbsenceAsync(SourceCodeKind.Script, 59await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\DoKeywordRecommenderTests.cs (4)
17await VerifyKeywordAsync(SourceCodeKind.Script, 24await VerifyKeywordAsync(SourceCodeKind.Script, 34await VerifyKeywordAsync(SourceCodeKind.Script, 44await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\DoubleKeywordRecommenderTests.cs (4)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\DynamicKeywordRecommenderTests.cs (4)
29await VerifyKeywordAsync(SourceCodeKind.Script, 36await VerifyKeywordAsync(SourceCodeKind.Script, 46await VerifyKeywordAsync(SourceCodeKind.Script, 56await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\ElifKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\ElseKeywordRecommenderTests.cs (4)
18await VerifyAbsenceAsync(SourceCodeKind.Script, 25await VerifyAbsenceAsync(SourceCodeKind.Script, 35await VerifyAbsenceAsync(SourceCodeKind.Script, 45await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\EnableKeywordRecommenderTests.cs (4)
35=> await VerifyAbsenceAsync(SourceCodeKind.Script, @"$$"); 40await VerifyAbsenceAsync(SourceCodeKind.Script, 50await VerifyAbsenceAsync(SourceCodeKind.Script, 60await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\EndIfKeywordRecommenderTests.cs (4)
18await VerifyAbsenceAsync(SourceCodeKind.Script, 25await VerifyAbsenceAsync(SourceCodeKind.Script, 35await VerifyAbsenceAsync(SourceCodeKind.Script, 45await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\EndRegionKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\EnumKeywordRecommenderTests.cs (6)
17await VerifyKeywordAsync(SourceCodeKind.Script, 24await VerifyKeywordAsync(SourceCodeKind.Script, 34await VerifyKeywordAsync(SourceCodeKind.Script, 44await VerifyKeywordAsync(SourceCodeKind.Script, 185await VerifyAbsenceAsync(SourceCodeKind.Script, 205await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\EqualsKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\ErrorKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\EventKeywordRecommenderTests.cs (16)
19await VerifyKeywordAsync(SourceCodeKind.Script, 26await VerifyKeywordAsync(SourceCodeKind.Script, 36await VerifyKeywordAsync(SourceCodeKind.Script, 46await VerifyKeywordAsync(SourceCodeKind.Script, 90await VerifyKeywordAsync(SourceCodeKind.Script, """ 108await VerifyKeywordAsync(SourceCodeKind.Script, """ 126await VerifyKeywordAsync(SourceCodeKind.Script, """ 205await VerifyAbsenceAsync(SourceCodeKind.Script, 225await VerifyAbsenceAsync(SourceCodeKind.Script, 244await VerifyKeywordAsync(SourceCodeKind.Script, """ 262await VerifyKeywordAsync(SourceCodeKind.Script, """ 335=> await VerifyKeywordAsync(SourceCodeKind.Script, @"internal $$"); 353=> await VerifyKeywordAsync(SourceCodeKind.Script, @"public $$"); 375await VerifyKeywordAsync(SourceCodeKind.Script, 436=> await VerifyKeywordAsync(SourceCodeKind.Script, @"static $$"); 454=> await VerifyKeywordAsync(SourceCodeKind.Script, @"static public $$");
Recommendations\ExplicitKeywordRecommenderTests.cs (4)
18await VerifyAbsenceAsync(SourceCodeKind.Script, 25await VerifyAbsenceAsync(SourceCodeKind.Script, 35await VerifyAbsenceAsync(SourceCodeKind.Script, 45await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\FalseKeywordRecommenderTests.cs (4)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\FieldKeywordRecommenderTests.cs (4)
19await VerifyAbsenceAsync(SourceCodeKind.Script, 26await VerifyAbsenceAsync(SourceCodeKind.Script, 36await VerifyAbsenceAsync(SourceCodeKind.Script, 46await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\FinallyKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\FixedKeywordRecommenderTests.cs (4)
18await VerifyAbsenceAsync(SourceCodeKind.Script, 25await VerifyAbsenceAsync(SourceCodeKind.Script, 35await VerifyAbsenceAsync(SourceCodeKind.Script, 45await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\FloatKeywordRecommenderTests.cs (4)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\ForEachKeywordRecommenderTests.cs (4)
17await VerifyKeywordAsync(SourceCodeKind.Script, 31await VerifyKeywordAsync(SourceCodeKind.Script, 41await VerifyKeywordAsync(SourceCodeKind.Script, 61await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\ForKeywordRecommenderTests.cs (4)
17await VerifyKeywordAsync(SourceCodeKind.Script, 24await VerifyKeywordAsync(SourceCodeKind.Script, 34await VerifyKeywordAsync(SourceCodeKind.Script, 44await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\FromKeywordRecommenderTests.cs (4)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\GetKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\GlobalKeywordRecommenderTests.cs (1)
298await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\GotoKeywordRecommenderTests.cs (4)
17await VerifyKeywordAsync(SourceCodeKind.Script, 24await VerifyKeywordAsync(SourceCodeKind.Script, 34await VerifyKeywordAsync(SourceCodeKind.Script, 44await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\GroupKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\HiddenKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\IfKeywordRecommenderTests.cs (4)
17await VerifyKeywordAsync(SourceCodeKind.Script, 24await VerifyKeywordAsync(SourceCodeKind.Script, 34await VerifyKeywordAsync(SourceCodeKind.Script, 44await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\ImplicitKeywordRecommenderTests.cs (4)
18await VerifyAbsenceAsync(SourceCodeKind.Script, 25await VerifyAbsenceAsync(SourceCodeKind.Script, 35await VerifyAbsenceAsync(SourceCodeKind.Script, 45await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\InitKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\InKeywordRecommenderTests.cs (5)
18await VerifyAbsenceAsync(SourceCodeKind.Script, 25await VerifyAbsenceAsync(SourceCodeKind.Script, 35await VerifyAbsenceAsync(SourceCodeKind.Script, 45await VerifyAbsenceAsync(SourceCodeKind.Script, 437await VerifyAbsenceAsync(SourceCodeKind.Script, """
Recommendations\InterfaceKeywordRecommenderTests.cs (6)
17await VerifyKeywordAsync(SourceCodeKind.Script, 24await VerifyKeywordAsync(SourceCodeKind.Script, 34await VerifyKeywordAsync(SourceCodeKind.Script, 44await VerifyKeywordAsync(SourceCodeKind.Script, 195await VerifyAbsenceAsync(SourceCodeKind.Script, 215await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\InternalKeywordRecommenderTests.cs (6)
17await VerifyKeywordAsync(SourceCodeKind.Script, 24await VerifyKeywordAsync(SourceCodeKind.Script, 34await VerifyKeywordAsync(SourceCodeKind.Script, 44await VerifyKeywordAsync(SourceCodeKind.Script, 195await VerifyAbsenceAsync(SourceCodeKind.Script, 215await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\IntKeywordRecommenderTests.cs (7)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script, 55await VerifyKeywordAsync(SourceCodeKind.Script, 62await VerifyKeywordAsync(SourceCodeKind.Script, 801await VerifyKeywordAsync(SourceCodeKind.Script, """
Recommendations\IntoKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\IsKeywordRecommenderTests.cs (4)
18await VerifyAbsenceAsync(SourceCodeKind.Script, 25await VerifyAbsenceAsync(SourceCodeKind.Script, 35await VerifyAbsenceAsync(SourceCodeKind.Script, 45await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\JoinKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\LetKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\LineKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\LockKeywordRecommenderTests.cs (4)
17await VerifyKeywordAsync(SourceCodeKind.Script, 24await VerifyKeywordAsync(SourceCodeKind.Script, 34await VerifyKeywordAsync(SourceCodeKind.Script, 44await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\LongKeywordRecommenderTests.cs (4)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\MethodKeywordRecommenderTests.cs (4)
18await VerifyAbsenceAsync(SourceCodeKind.Script, 25await VerifyAbsenceAsync(SourceCodeKind.Script, 35await VerifyAbsenceAsync(SourceCodeKind.Script, 45await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\ModuleKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\NameOfKeywordRecommenderTests.cs (4)
22await VerifyKeywordAsync(SourceCodeKind.Script, 29await VerifyKeywordAsync(SourceCodeKind.Script, 39await VerifyKeywordAsync(SourceCodeKind.Script, 49await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\NamespaceKeywordRecommenderTests.cs (17)
31await VerifyAbsenceAsync(SourceCodeKind.Script, 41await VerifyAbsenceAsync(SourceCodeKind.Script, 51await VerifyAbsenceAsync(SourceCodeKind.Script, 75await VerifyAbsenceAsync(SourceCodeKind.Script, 130await VerifyAbsenceAsync(SourceCodeKind.Script, 150await VerifyAbsenceAsync(SourceCodeKind.Script, 204await VerifyAbsenceAsync(SourceCodeKind.Script, 214await VerifyAbsenceAsync(SourceCodeKind.Script, 234await VerifyAbsenceAsync(SourceCodeKind.Script, 254await VerifyAbsenceAsync(SourceCodeKind.Script, 274await VerifyAbsenceAsync(SourceCodeKind.Script, 294await VerifyAbsenceAsync(SourceCodeKind.Script, 335await VerifyAbsenceAsync(SourceCodeKind.Script, 365await VerifyAbsenceAsync(SourceCodeKind.Script, 397await VerifyAbsenceAsync(SourceCodeKind.Script, 489await VerifyAbsenceAsync(SourceCodeKind.Script, 535await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\NewKeywordRecommenderTests.cs (9)
739await VerifyAbsenceAsync(SourceCodeKind.Script, 759await VerifyAbsenceAsync(SourceCodeKind.Script, 788await VerifyKeywordAsync(SourceCodeKind.Script, """ 849=> await VerifyKeywordAsync(SourceCodeKind.Script, @"internal $$"); 857=> await VerifyKeywordAsync(SourceCodeKind.Script, @"public $$"); 865=> await VerifyKeywordAsync(SourceCodeKind.Script, @"static internal $$"); 873=> await VerifyKeywordAsync(SourceCodeKind.Script, @"internal static $$"); 893await VerifyKeywordAsync(SourceCodeKind.Script, 907=> await VerifyKeywordAsync(SourceCodeKind.Script, @"static $$");
Recommendations\NotnullKeywordRecommenderTests.cs (1)
28await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\NullableKeywordRecommenderTests.cs (4)
18await VerifyAbsenceAsync(SourceCodeKind.Script, 25await VerifyAbsenceAsync(SourceCodeKind.Script, 35await VerifyAbsenceAsync(SourceCodeKind.Script, 45await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\NullKeywordRecommenderTests.cs (4)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\ObjectKeywordRecommenderTests.cs (4)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\OnKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\OperatorKeywordRecommenderTests.cs (4)
18await VerifyAbsenceAsync(SourceCodeKind.Script, 25await VerifyAbsenceAsync(SourceCodeKind.Script, 35await VerifyAbsenceAsync(SourceCodeKind.Script, 45await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\OrderByKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\OutKeywordRecommenderTests.cs (4)
18await VerifyAbsenceAsync(SourceCodeKind.Script, 25await VerifyAbsenceAsync(SourceCodeKind.Script, 35await VerifyAbsenceAsync(SourceCodeKind.Script, 45await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\OverrideKeywordRecommenderTests.cs (6)
18await VerifyAbsenceAsync(SourceCodeKind.Script, 25await VerifyAbsenceAsync(SourceCodeKind.Script, 35await VerifyAbsenceAsync(SourceCodeKind.Script, 45await VerifyAbsenceAsync(SourceCodeKind.Script, 188await VerifyAbsenceAsync(SourceCodeKind.Script, 208await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\ParamKeywordRecommenderTests.cs (4)
26await VerifyAbsenceAsync(SourceCodeKind.Script, 33await VerifyAbsenceAsync(SourceCodeKind.Script, 43await VerifyAbsenceAsync(SourceCodeKind.Script, 53await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\ParamsKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\PartialKeywordRecommenderTests.cs (6)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script, 207await VerifyAbsenceAsync(SourceCodeKind.Script, 227await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\PragmaKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\PrivateKeywordRecommenderTests.cs (12)
17await VerifyKeywordAsync(SourceCodeKind.Script, 24await VerifyKeywordAsync(SourceCodeKind.Script, 34await VerifyKeywordAsync(SourceCodeKind.Script, 44await VerifyKeywordAsync(SourceCodeKind.Script, 88await VerifyKeywordAsync(SourceCodeKind.Script, """ 106await VerifyKeywordAsync(SourceCodeKind.Script, """ 124await VerifyKeywordAsync(SourceCodeKind.Script, """ 212await VerifyAbsenceAsync(SourceCodeKind.Script, """ 231await VerifyAbsenceAsync(SourceCodeKind.Script, 250await VerifyKeywordAsync(SourceCodeKind.Script, """ 268await VerifyKeywordAsync(SourceCodeKind.Script, """ 386=> await VerifyKeywordAsync(SourceCodeKind.Script, @"static $$");
Recommendations\PropertyKeywordRecommenderTests.cs (4)
18await VerifyAbsenceAsync(SourceCodeKind.Script, 25await VerifyAbsenceAsync(SourceCodeKind.Script, 35await VerifyAbsenceAsync(SourceCodeKind.Script, 45await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\ProtectedKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\PublicKeywordRecommenderTests.cs (6)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script, 196await VerifyAbsenceAsync(SourceCodeKind.Script, 216await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\ReadOnlyKeywordRecommenderTests.cs (3)
206await VerifyAbsenceAsync(SourceCodeKind.Script, 226await VerifyAbsenceAsync(SourceCodeKind.Script, 690@"ref int x = ref $$", topLevelStatement: true), options: CSharp9ParseOptions.WithKind(SourceCodeKind.Script));
Recommendations\RecommenderTests.cs (2)
180case SourceCodeKind.Script: 205case SourceCodeKind.Script:
Recommendations\RecordKeywordRecommenderTests.cs (6)
19await VerifyKeywordAsync(SourceCodeKind.Script, 26await VerifyKeywordAsync(SourceCodeKind.Script, 36await VerifyKeywordAsync(SourceCodeKind.Script, 46await VerifyKeywordAsync(SourceCodeKind.Script, 220await VerifyAbsenceAsync(SourceCodeKind.Script, 240await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\ReferenceKeywordRecommenderTests.cs (7)
82await VerifyKeywordAsync(SourceCodeKind.Script, 96await VerifyKeywordAsync(SourceCodeKind.Script, 103await VerifyKeywordAsync(SourceCodeKind.Script, 114await VerifyKeywordAsync(SourceCodeKind.Script, 124await VerifyKeywordAsync(SourceCodeKind.Script, 134await VerifyAbsenceAsync(SourceCodeKind.Script, 144await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\RefKeywordRecommenderTests.cs (6)
857[InlineData(SourceCodeKind.Script, true, Skip = "https://github.com/dotnet/roslyn/issues/44630")] 858[InlineData(SourceCodeKind.Script, false)] 866options: sourceCodeKind == SourceCodeKind.Script ? Options.Script : CSharp9ParseOptions); 872[InlineData(SourceCodeKind.Script, true, Skip = "https://github.com/dotnet/roslyn/issues/44630")] 873[InlineData(SourceCodeKind.Script, false)] 882options: sourceCodeKind == SourceCodeKind.Script ? Options.Script : CSharp9ParseOptions);
Recommendations\RegionKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\RemoveKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\RestoreKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\ReturnKeywordRecommenderTests.cs (5)
18await VerifyAbsenceAsync(SourceCodeKind.Script, 32await VerifyAbsenceAsync(SourceCodeKind.Script, 52await VerifyAbsenceAsync(SourceCodeKind.Script, 72await VerifyAbsenceAsync(SourceCodeKind.Script, 294await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\SByteKeywordRecommenderTests.cs (4)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\ScopedKeywordRecommenderTests.cs (4)
26await VerifyKeywordAsync(SourceCodeKind.Script, 33await VerifyKeywordAsync(SourceCodeKind.Script, 43await VerifyKeywordAsync(SourceCodeKind.Script, 53await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\SealedKeywordRecommenderTests.cs (6)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script, 219await VerifyAbsenceAsync(SourceCodeKind.Script, 239await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\SelectKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\SetKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\ShortKeywordRecommenderTests.cs (4)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\SizeOfKeywordRecommenderTests.cs (4)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\StackAllocKeywordRecommenderTests.cs (4)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\StaticKeywordRecommenderTests.cs (6)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script, 219await VerifyAbsenceAsync(SourceCodeKind.Script, 239await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\StringKeywordRecommenderTests.cs (4)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\StructKeywordRecommenderTests.cs (6)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script, 285await VerifyAbsenceAsync(SourceCodeKind.Script, 295await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\SwitchKeywordRecommenderTests.cs (4)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\ThisKeywordRecommenderTests.cs (4)
18await VerifyAbsenceAsync(SourceCodeKind.Script, 25await VerifyAbsenceAsync(SourceCodeKind.Script, 35await VerifyAbsenceAsync(SourceCodeKind.Script, 45await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\ThrowKeywordRecommenderTests.cs (4)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\TrueKeywordRecommenderTests.cs (4)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\TryKeywordRecommenderTests.cs (4)
17await VerifyKeywordAsync(SourceCodeKind.Script, 24await VerifyKeywordAsync(SourceCodeKind.Script, 34await VerifyKeywordAsync(SourceCodeKind.Script, 44await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\TypeKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\TypeOfKeywordRecommenderTests.cs (4)
22await VerifyKeywordAsync(SourceCodeKind.Script, 29await VerifyKeywordAsync(SourceCodeKind.Script, 39await VerifyKeywordAsync(SourceCodeKind.Script, 49await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\TypeVarKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\UIntKeywordRecommenderTests.cs (4)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\ULongKeywordRecommenderTests.cs (4)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\UncheckedKeywordRecommenderTests.cs (4)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\UndefKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\UnmanagedKeywordRecommenderTests.cs (1)
17await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\UnsafeKeywordRecommenderTests.cs (6)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script, 219await VerifyAbsenceAsync(SourceCodeKind.Script, 239await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\UShortKeywordRecommenderTests.cs (4)
18await VerifyKeywordAsync(SourceCodeKind.Script, 25await VerifyKeywordAsync(SourceCodeKind.Script, 35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\UsingKeywordRecommenderTests.cs (4)
41await VerifyKeywordAsync(SourceCodeKind.Script, 51await VerifyKeywordAsync(SourceCodeKind.Script, 303await VerifyAbsenceAsync(SourceCodeKind.Script, 323await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\VarKeywordRecommenderTests.cs (4)
29await VerifyKeywordAsync(SourceCodeKind.Script, 36await VerifyKeywordAsync(SourceCodeKind.Script, 46await VerifyKeywordAsync(SourceCodeKind.Script, 56await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\VirtualKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\VoidKeywordRecommenderTests.cs (8)
35await VerifyKeywordAsync(SourceCodeKind.Script, 45await VerifyKeywordAsync(SourceCodeKind.Script, 202await VerifyAbsenceAsync(SourceCodeKind.Script, 222await VerifyAbsenceAsync(SourceCodeKind.Script, 331=> await VerifyKeywordAsync(SourceCodeKind.Script, @"internal $$"); 349=> await VerifyKeywordAsync(SourceCodeKind.Script, @"public $$"); 371await VerifyKeywordAsync(SourceCodeKind.Script, 436=> await VerifyKeywordAsync(SourceCodeKind.Script, @"static public $$");
Recommendations\VolatileKeywordRecommenderTests.cs (16)
17await VerifyKeywordAsync(SourceCodeKind.Script, 24await VerifyKeywordAsync(SourceCodeKind.Script, 34await VerifyKeywordAsync(SourceCodeKind.Script, 44await VerifyKeywordAsync(SourceCodeKind.Script, 88await VerifyKeywordAsync(SourceCodeKind.Script, """ 106await VerifyKeywordAsync(SourceCodeKind.Script, """ 124await VerifyKeywordAsync(SourceCodeKind.Script, """ 203await VerifyAbsenceAsync(SourceCodeKind.Script, 223await VerifyAbsenceAsync(SourceCodeKind.Script, 242await VerifyKeywordAsync(SourceCodeKind.Script, """ 260await VerifyKeywordAsync(SourceCodeKind.Script, """ 329=> await VerifyKeywordAsync(SourceCodeKind.Script, @"internal $$"); 347=> await VerifyKeywordAsync(SourceCodeKind.Script, @"public $$"); 369await VerifyKeywordAsync(SourceCodeKind.Script, 420=> await VerifyKeywordAsync(SourceCodeKind.Script, @"static $$"); 438=> await VerifyKeywordAsync(SourceCodeKind.Script, @"static public $$");
Recommendations\WarningKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\WarningsKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\WhereKeywordRecommenderTests.cs (4)
18await VerifyAbsenceAsync(SourceCodeKind.Script, 25await VerifyAbsenceAsync(SourceCodeKind.Script, 35await VerifyAbsenceAsync(SourceCodeKind.Script, 45await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\WhileKeywordRecommenderTests.cs (4)
17await VerifyKeywordAsync(SourceCodeKind.Script, 24await VerifyKeywordAsync(SourceCodeKind.Script, 34await VerifyKeywordAsync(SourceCodeKind.Script, 44await VerifyKeywordAsync(SourceCodeKind.Script,
Recommendations\WithKeywordRecommenderTests.cs (4)
25await VerifyAbsenceAsync(SourceCodeKind.Script, 32await VerifyAbsenceAsync(SourceCodeKind.Script, 42await VerifyAbsenceAsync(SourceCodeKind.Script, 52await VerifyAbsenceAsync(SourceCodeKind.Script,
Recommendations\YieldKeywordRecommenderTests.cs (4)
17await VerifyAbsenceAsync(SourceCodeKind.Script, 24await VerifyAbsenceAsync(SourceCodeKind.Script, 34await VerifyAbsenceAsync(SourceCodeKind.Script, 44await VerifyAbsenceAsync(SourceCodeKind.Script,
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
Attributes\AttributeTests_Dynamic.cs (5)
1294[InlineData(SourceCodeKind.Script)] 1304[InlineData(SourceCodeKind.Script)] 1342[InlineData(SourceCodeKind.Script)] 1356[InlineData(SourceCodeKind.Script)] 1370[InlineData(SourceCodeKind.Script)]
Microsoft.CodeAnalysis.CSharp.Features (1)
ExtractMethod\CSharpSelectionValidator.cs (1)
100if (localFunction && options is { Kind: SourceCodeKind.Script })
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Diagnostics\AbstractCSharpDiagnosticProviderBasedUserDiagnosticTest_NoEditor.cs (1)
16private static readonly CSharpParseOptions Script = new(kind: SourceCodeKind.Script);
Microsoft.CodeAnalysis.CSharp.Scripting (1)
CSharpScriptCompiler.cs (1)
18internal static readonly CSharpParseOptions DefaultParseOptions = new CSharpParseOptions(kind: SourceCodeKind.Script, languageVersion: LanguageVersion.Latest);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
ScriptOptionsTests.cs (1)
36var options = ScriptOptions.Default.WithParseOptions(new VisualBasicParseOptions(kind: SourceCodeKind.Script, languageVersion: VisualBasic.LanguageVersion.Latest));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (13)
Semantics\DelegateTypeTests.cs (2)
10251var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9.WithKind(SourceCodeKind.Script)); 10263comp = CreateCompilation(source, parseOptions: TestOptions.Regular10.WithKind(SourceCodeKind.Script));
Semantics\ScriptSemanticsTests.cs (11)
1179var compilationUnit = CSharp.SyntaxFactory.ParseCompilationUnit(code, options: new CSharp.CSharpParseOptions(kind: SourceCodeKind.Script)); 1207syntaxTree = SyntaxFactory.ParseSyntaxTree(code, options: new CSharp.CSharpParseOptions(kind: SourceCodeKind.Script)); 1216syntaxTree = SyntaxFactory.ParseSyntaxTree(code, options: new CSharp.CSharpParseOptions(kind: SourceCodeKind.Script)); 1225syntaxTree = SyntaxFactory.ParseSyntaxTree(code, options: new CSharp.CSharpParseOptions(kind: SourceCodeKind.Script)); 1237syntaxTree = SyntaxFactory.ParseSyntaxTree(code, options: new CSharp.CSharpParseOptions(kind: SourceCodeKind.Script)); 1249syntaxTree = SyntaxFactory.ParseSyntaxTree(code, options: new CSharp.CSharpParseOptions(kind: SourceCodeKind.Script)); 1267var compilationUnit = CSharp.SyntaxFactory.ParseCompilationUnit("\nSystem.Console.WriteLine(1);", options: new CSharp.CSharpParseOptions(kind: SourceCodeKind.Script)); 1269var syntaxTree2 = SyntaxFactory.ParseSyntaxTree("System.Console.WriteLine(2);", options: new CSharp.CSharpParseOptions(kind: SourceCodeKind.Script)); 1306var compilationUnit = CSharp.SyntaxFactory.ParseCompilationUnit(code, options: new CSharp.CSharpParseOptions(kind: SourceCodeKind.Script)); 1336syntaxTree = SyntaxFactory.ParseSyntaxTree(code, options: new CSharp.CSharpParseOptions(kind: SourceCodeKind.Script)); 1351syntaxTree = SyntaxFactory.ParseSyntaxTree(code, options: new CSharp.CSharpParseOptions(kind: SourceCodeKind.Script));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (34)
LexicalAndXml\PreprocessorTests.cs (7)
4300var node = Parse(text, SourceCodeKind.Script); 4315var node = Parse(text, SourceCodeKind.Script); 4388var node = Parse(text, SourceCodeKind.Script); 4403var node = Parse(text, SourceCodeKind.Script); 4417var node = Parse(text, SourceCodeKind.Script); 4432var node = Parse(text, SourceCodeKind.Script); 4447var node = Parse(text, SourceCodeKind.Script);
Parsing\CSharpParseOptionsTests.cs (11)
44TestProperty((old, value) => old.WithKind(value), opt => opt.Kind, SourceCodeKind.Script); 89options = new CSharpParseOptions(kind: SourceCodeKind.Script); 90Assert.Equal(SourceCodeKind.Script, options.Kind); 91Assert.Equal(SourceCodeKind.Script, options.SpecifiedKind); 97Assert.Equal(SourceCodeKind.Script, options.Kind); 117var options1 = new CSharpParseOptions(kind: SourceCodeKind.Script); 118var options2 = new CSharpParseOptions(kind: SourceCodeKind.Script); 124options1 = new CSharpParseOptions(kind: SourceCodeKind.Script); 134var options1 = new CSharpParseOptions(kind: SourceCodeKind.Script); 135var options2 = new CSharpParseOptions(kind: SourceCodeKind.Script); 141options1 = new CSharpParseOptions(kind: SourceCodeKind.Script);
Parsing\MemberDeclarationParsingTests.cs (1)
2256bool isScript = parseOptions.Kind == SourceCodeKind.Script;
Syntax\SyntaxRewriterTests.cs (15)
368Assert.Equal(SourceCodeKind.Script, newTree.Options.Kind); 377Assert.Equal(SourceCodeKind.Script, tree.Options.Kind); 387Assert.Equal(SourceCodeKind.Script, newTree.Options.Kind); 396Assert.Equal(SourceCodeKind.Script, tree.Options.Kind); 407Assert.Equal(SourceCodeKind.Script, newTree.Options.Kind); 414Assert.Equal(SourceCodeKind.Script, newTree2.Options.Kind); 423Assert.Equal(SourceCodeKind.Script, tree.Options.Kind); 434Assert.Equal(SourceCodeKind.Script, newTree.Options.Kind); 451Assert.Equal(SourceCodeKind.Script, newTree.Options.Kind); 457Assert.Equal(SourceCodeKind.Script, newTree2.Options.Kind); 478Assert.Equal(SourceCodeKind.Script, newTree.Options.Kind); 484Assert.Equal(SourceCodeKind.Script, newTree2.Options.Kind); 506Assert.Equal(SourceCodeKind.Script, newTree.Options.Kind); 519Assert.Equal(SourceCodeKind.Script, newTree.Options.Kind); 532Assert.Equal(SourceCodeKind.Script, newTree.Options.Kind);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
TestOptions.cs (1)
20public static readonly CSharpParseOptions Script = Regular.WithKind(SourceCodeKind.Script);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
630if (((CSharpParseOptions)container.SyntaxTree.Options).Kind == SourceCodeKind.Script)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (5)
Completion\AbstractCompletionProviderTests.cs (2)
392await VerifyCustomCommitProviderWorkerAsync(code, position, itemToCommit, expectedCodeAfterCommit, SourceCodeKind.Script, commitChar); 419await VerifyProviderCommitWorkerAsync(code, position, itemToCommit, expectedCodeAfterCommit, commitChar, SourceCodeKind.Script);
GoToAdjacentMember\AbstractGoToAdjacentMemberTests.cs (1)
28: [SourceCodeKind.Regular, SourceCodeKind.Script];
SignatureHelp\AbstractSignatureHelpProviderTests.cs (2)
64await TestSignatureHelpWorkerAsync(markup, SourceCodeKind.Script, experimental, expectedOrderedItemsOrNull, usePreviousCharAsTrigger); 155await VerifyCurrentParameterNameWorkerAsync(markup, expectedParameterName, SourceCodeKind.Script);
Microsoft.CodeAnalysis.Features (2)
Workspace\MiscellaneousFileUtilities.cs (2)
41parseOptions = parseOptions.WithKind(SourceCodeKind.Script); 71hasAllInformation: sourceCodeKind == SourceCodeKind.Script),
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Utils\Options.cs (1)
13internal static readonly CSharpParseOptions Script = new CSharpParseOptions(kind: SourceCodeKind.Script);
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
DeterministicKeyBuilderTests.cs (1)
427sourceCodeKind = SourceCodeKind.Script;
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\CompilationExtensions.cs (1)
367if (blockOperation.Syntax.SyntaxTree.Options.Kind != SourceCodeKind.Script)
Microsoft.CodeAnalysis.VisualBasic (5)
Binding\BinderFactory.vb (1)
36Return _tree.Options.Kind = SourceCodeKind.Script
CommandLine\VisualBasicCommandLineParser.vb (1)
1417kind:=If(IsScriptCommandLineParser, SourceCodeKind.Script, SourceCodeKind.Regular),
CommandLine\VisualBasicCompiler.vb (1)
95Dim scriptParseOptions = parseOptions.WithKind(SourceCodeKind.Script)
Parser\Parser.vb (1)
75Return _scanner.Options.Kind = SourceCodeKind.Script
Syntax\VisualBasicSyntaxTree.vb (1)
88Return Options.Kind = SourceCodeKind.Script AndAlso GetCompilationUnitRoot().GetReferenceDirectives().Count > 0
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (2)
GenerateVariable\GenerateVariableTests.vb (2)
1353parseOptions:=New VisualBasicParseOptions(kind:=SourceCodeKind.Script)) 1363parseOptions:=New VisualBasicParseOptions(kind:=SourceCodeKind.Script),
Microsoft.CodeAnalysis.VisualBasic.Scripting (1)
VisualBasicScriptCompiler.vb (1)
18Private Shared ReadOnly s_defaultOptions As VisualBasicParseOptions = New VisualBasicParseOptions(kind:=SourceCodeKind.Script, languageVersion:=LanguageVersion.Latest)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (9)
Compilation\VisualBasicCompilationOptionsTests.vb (1)
103New VisualBasicParseOptions(kind:=SourceCodeKind.Script))
Semantics\ScriptSemanticsTests.vb (8)
42Dim compilationUnit = VisualBasic.SyntaxFactory.ParseCompilationUnit(code, options:=New VisualBasicParseOptions(kind:=SourceCodeKind.Script)) 74syntaxTree = SyntaxFactory.ParseSyntaxTree(code, options:=New VisualBasicParseOptions(kind:=SourceCodeKind.Script)) 83syntaxTree = SyntaxFactory.ParseSyntaxTree(code, options:=New VisualBasicParseOptions(kind:=SourceCodeKind.Script)) 92syntaxTree = SyntaxFactory.ParseSyntaxTree(code, options:=New VisualBasicParseOptions(kind:=SourceCodeKind.Script)) 105syntaxTree = SyntaxFactory.ParseSyntaxTree(code, options:=New VisualBasicParseOptions(kind:=SourceCodeKind.Script)) 118syntaxTree = SyntaxFactory.ParseSyntaxTree(code, options:=New VisualBasicParseOptions(kind:=SourceCodeKind.Script)) 133Dim compilationUnit = VisualBasic.SyntaxFactory.ParseCompilationUnit("System.Console.WriteLine(1)", options:=New VisualBasicParseOptions(kind:=SourceCodeKind.Script)) 135Dim syntaxTree2 = SyntaxFactory.ParseSyntaxTree("System.Console.WriteLine(2)", options:=New VisualBasicParseOptions(kind:=SourceCodeKind.Script))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (27)
Parser\VisualBasicParseOptionsTests.vb (11)
23TestProperty(Function(old, value) old.WithKind(value), Function(opt) opt.Kind, SourceCodeKind.Script) 257options = New VisualBasicParseOptions(kind:=SourceCodeKind.Script) 258Assert.Equal(SourceCodeKind.Script, options.Kind) 259Assert.Equal(SourceCodeKind.Script, options.SpecifiedKind) 265Assert.Equal(SourceCodeKind.Script, options.Kind) 280Dim options1 = New VisualBasicParseOptions(kind:=SourceCodeKind.Script) 281Dim options2 = New VisualBasicParseOptions(kind:=SourceCodeKind.Script) 287options1 = New VisualBasicParseOptions(kind:=SourceCodeKind.Script) 296Dim options1 = New VisualBasicParseOptions(kind:=SourceCodeKind.Script) 297Dim options2 = New VisualBasicParseOptions(kind:=SourceCodeKind.Script) 303options1 = New VisualBasicParseOptions(kind:=SourceCodeKind.Script)
Syntax\SyntaxRewriterTests.vb (16)
529Assert.Equal(SourceCodeKind.Script, tree.Options.Kind) 537Assert.Equal(SourceCodeKind.Script, newTree.Options.Kind) 546Assert.Equal(SourceCodeKind.Script, tree.Options.Kind) 556Assert.Equal(SourceCodeKind.Script, newTree.Options.Kind) 565Assert.Equal(SourceCodeKind.Script, tree.Options.Kind) 576Assert.Equal(SourceCodeKind.Script, newTree.Options.Kind) 583Assert.Equal(SourceCodeKind.Script, newTree2.Options.Kind) 592Assert.Equal(SourceCodeKind.Script, tree.Options.Kind) 603Assert.Equal(SourceCodeKind.Script, newTree.Options.Kind) 621Assert.Equal(SourceCodeKind.Script, newTree.Options.Kind) 627Assert.Equal(SourceCodeKind.Script, newTree2.Options.Kind) 648Assert.Equal(SourceCodeKind.Script, newTree.Options.Kind) 654Assert.Equal(SourceCodeKind.Script, newTree2.Options.Kind) 676Assert.Equal(SourceCodeKind.Script, newTree.Options.Kind) 689Assert.Equal(SourceCodeKind.Script, newTree.Options.Kind) 702Assert.Equal(SourceCodeKind.Script, newTree.Options.Kind)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
TestOptions.vb (1)
12Public Shared ReadOnly Script As New VisualBasicParseOptions(kind:=SourceCodeKind.Script)
Microsoft.CodeAnalysis.Workspaces (5)
src\Compilers\Core\Portable\SourceCodeKindExtensions.cs (3)
13case SourceCodeKind.Script: 17return SourceCodeKind.Script; 27return value >= SourceCodeKind.Regular && value <= SourceCodeKind.Script;
Workspace\CommandLineProject.cs (1)
167sourceCodeKind: fileArg.IsScript ? SourceCodeKind.Script : SourceCodeKind.Regular,
Workspace\Solution\Solution.cs (1)
1403sourceCodeKind = SourceCodeKind.Script;
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Workspaces\TestWorkspace`1.cs (2)
752var document = CreateDocument(exportProvider, languageServices, code, submissionName, submissionName, cursorPosition, spans, SourceCodeKind.Script); 778var parseOptions = syntaxFactory.GetDefaultParseOptions().WithKind(SourceCodeKind.Script);
Microsoft.CodeAnalysis.Workspaces.UnitTests (37)
SolutionTests\DocumentInfoTests.cs (7)
39sourceCodeKind: SourceCodeKind.Script, 45Assert.Equal(SourceCodeKind.Script, info.SourceCodeKind); 58sourceCodeKind: SourceCodeKind.Script, 64Assert.Equal(SourceCodeKind.Script, info.SourceCodeKind); 88[InlineData(SourceCodeKind.Script, null, "")] 89[InlineData(SourceCodeKind.Script, "", "")] 90[InlineData(SourceCodeKind.Script, "path", "path")]
SolutionTests\SolutionTests.cs (25)
257var newSolution1 = solution.WithDocumentSourceCodeKind(documentId, SourceCodeKind.Script); 258Assert.Equal(SourceCodeKind.Script, newSolution1.GetRequiredDocument(documentId).SourceCodeKind); 262Assert.Throws<ArgumentNullException>(() => solution.WithDocumentSourceCodeKind(null!, SourceCodeKind.Script)); 263Assert.Throws<InvalidOperationException>(() => solution.WithDocumentSourceCodeKind(s_unrelatedDocumentId, SourceCodeKind.Script)); 275solution = solution.WithProjectParseOptions(projectId, CSharpParseOptions.Default.WithKind(SourceCodeKind.Script)); 278Assert.Equal(SourceCodeKind.Script, document1.DocumentState.ParseOptions?.Kind); 279Assert.Equal(SourceCodeKind.Script, document1.SourceCodeKind); 294Assert.Equal(SourceCodeKind.Script, newSolution.GetDocument(documentId)!.SourceCodeKind); 1107sourceCodeKind: SourceCodeKind.Script, 1126sourceCodeKind: SourceCodeKind.Script, 1145sourceCodeKind: SourceCodeKind.Script, 2363WithProjectParseOptions(projectId, new CSharpParseOptions(kind: SourceCodeKind.Script)); 2372Assert.Equal(SourceCodeKind.Script, document.SourceCodeKind); 2389WithProjectParseOptions(projectId, new CSharpParseOptions(kind: SourceCodeKind.Script)); 2404Assert.Equal(SourceCodeKind.Script, document.SourceCodeKind); 2419WithProjectParseOptions(projectId, new CSharpParseOptions(kind: SourceCodeKind.Script)); 2432Assert.Equal(SourceCodeKind.Script, document.SourceCodeKind); 2448WithProjectParseOptions(projectId, new CSharpParseOptions(kind: SourceCodeKind.Script)); 2461Assert.Equal(SourceCodeKind.Script, document2.SourceCodeKind); 2477WithProjectParseOptions(projectId, new CSharpParseOptions(kind: SourceCodeKind.Script)); 2497Assert.Equal(SourceCodeKind.Script, document2.SourceCodeKind); 2508WithProjectParseOptions(projectId, new CSharpParseOptions(kind: SourceCodeKind.Script)); 3817var newOptions = tree.Options.WithKind(SourceCodeKind.Script); 4902.AddDocument(DocumentInfo.Create(documentId, "Test", sourceCodeKind: SourceCodeKind.Script)); 4905Assert.Equal(SourceCodeKind.Script, document1.SourceCodeKind);
WorkspaceTests\AdhocWorkspaceTests.cs (3)
517var changedDoc = originalDoc.WithSourceCodeKind(SourceCodeKind.Script); 518Assert.Equal(SourceCodeKind.Script, changedDoc.SourceCodeKind); 533Assert.Equal(SourceCodeKind.Script, appliedDoc.SourceCodeKind);
WorkspaceTests\WorkspaceTests.cs (2)
93var changedDoc = originalDoc.WithSourceCodeKind(SourceCodeKind.Script); 94Assert.Equal(SourceCodeKind.Script, changedDoc.SourceCodeKind);
Microsoft.VisualStudio.LanguageServices.UnitTests (2)
LanguageBlockTests.vb (2)
216", LanguageNames.CSharp, SourceCodeKind.Script) 229", LanguageNames.VisualBasic, SourceCodeKind.Script)
Roslyn.VisualStudio.Next.UnitTests (1)
Services\SolutionServiceTests.cs (1)
319document = document.WithSourceCodeKind(SourceCodeKind.Script);