42 references to Default
Microsoft.CodeAnalysis.CSharp (9)
CommandLine\CSharpCommandLineParser.cs (1)
88LanguageVersion languageVersion = LanguageVersion.Default;
CommandLine\CSharpCompiler.cs (1)
285var defaultVersion = LanguageVersion.Default.MapSpecifiedToEffectiveVersion();
Compilation\CSharpCompilation.cs (1)
550return result ?? LanguageVersion.Default.MapSpecifiedToEffectiveVersion();
CSharpParseOptions.cs (1)
51LanguageVersion languageVersion = LanguageVersion.Default,
LanguageVersion.cs (5)
410case LanguageVersion.Default: 430result = LanguageVersion.Default; 437result = LanguageVersion.Default; 532result = LanguageVersion.Default; 545case LanguageVersion.Default:
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (2)
src\Analyzers\CSharp\Tests\UpgradeProject\UpgradeProjectTests.cs (2)
610var defaultVersion = LanguageVersion.Default.MapSpecifiedToEffectiveVersion().ToDisplayString(); 664var defaultEffectiveVersion = LanguageVersion.Default.MapSpecifiedToEffectiveVersion().ToDisplayString();
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (16)
CommandLineTests.cs (16)
1628[InlineData("6", "default", LanguageVersion.Default)] 1629[InlineData("7", "default", LanguageVersion.Default)] 1641LanguageVersion defaultEffectiveVersion = LanguageVersion.Default.MapSpecifiedToEffectiveVersion(); 1642Assert.NotEqual(LanguageVersion.Default, defaultEffectiveVersion); 1647Assert.Equal(LanguageVersion.Default, parsedArgs.ParseOptions.SpecifiedLanguageVersion); 1669Assert.Equal(LanguageVersion.Default, parsedArgs.ParseOptions.SpecifiedLanguageVersion); 1744LanguageVersion.Default, 1796InlineData(LanguageVersion.CSharp13, LanguageVersion.Default), 1822InlineData("05", false, LanguageVersion.Default), 1827InlineData("07", false, LanguageVersion.Default), 1843InlineData("08", false, LanguageVersion.Default), 1844InlineData("07.1", false, LanguageVersion.Default), 1845InlineData("default", true, LanguageVersion.Default), 1849InlineData("latestpreview", false, LanguageVersion.Default), 1850InlineData(null, true, LanguageVersion.Default), 1851InlineData("bad", false, LanguageVersion.Default)]
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (5)
CodeActions\GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersTests.cs (3)
4038LanguageVersion = LanguageVersion.Default, 4095LanguageVersion = LanguageVersion.Default, 4400LanguageVersion = LanguageVersion.Default,
Completion\CompletionProviders\AwaitCompletionProviderTests.cs (2)
36private async Task VerifyAbsenceAsync(string code, LanguageVersion languageVersion = LanguageVersion.Default) 42private async Task VerifyKeywordAsync(string code, LanguageVersion languageVersion = LanguageVersion.Default, string? inlineDescription = null, bool dotAwait = false, bool dotAwaitf = false)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
src\Analyzers\CSharp\Tests\UpgradeProject\UpgradeProjectTests.cs (2)
610var defaultVersion = LanguageVersion.Default.MapSpecifiedToEffectiveVersion().ToDisplayString(); 664var defaultEffectiveVersion = LanguageVersion.Default.MapSpecifiedToEffectiveVersion().ToDisplayString();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
LexicalAndXml\PreprocessorTests.cs (1)
3227[InlineData(LanguageVersion.Default, "default (13.0)")]
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
TestOptions.cs (1)
31public static readonly CSharpParseOptions RegularDefault = Regular.WithLanguageVersion(LanguageVersion.Default);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Workspace\LanguageServices\CSharpSyntaxTreeFactoryService.cs (1)
40langVersion = LanguageVersion.Default;
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities2 (1)
Intellisense\TestStateFactory.vb (1)
15Optional languageVersion As LanguageVersion = LanguageVersion.Default,
Microsoft.CodeAnalysis.Test.Utilities (1)
CommonTestBase.cs (1)
363parseOptions = CSharp.CSharpParseOptions.Default.WithLanguageVersion(CSharp.LanguageVersion.Default).WithDocumentationMode(DocumentationMode.None);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
BatchFixAllProviderTests.cs (1)
156return new CSharpParseOptions(LanguageVersion.Default, DocumentationMode.Diagnose);
Microsoft.DotNet.GenFacades (2)
NotSupportedAssemblyGenerator.cs (1)
73LanguageVersion languageVersion = LanguageVersion.Default;
TypeParser.cs (1)
20LanguageVersion languageVersion = LanguageVersion.Default;