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)
545return 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)
1627[InlineData("6", "default", LanguageVersion.Default)] 1628[InlineData("7", "default", LanguageVersion.Default)] 1640LanguageVersion defaultEffectiveVersion = LanguageVersion.Default.MapSpecifiedToEffectiveVersion(); 1641Assert.NotEqual(LanguageVersion.Default, defaultEffectiveVersion); 1646Assert.Equal(LanguageVersion.Default, parsedArgs.ParseOptions.SpecifiedLanguageVersion); 1668Assert.Equal(LanguageVersion.Default, parsedArgs.ParseOptions.SpecifiedLanguageVersion); 1743LanguageVersion.Default, 1795InlineData(LanguageVersion.CSharp13, LanguageVersion.Default), 1821InlineData("05", false, LanguageVersion.Default), 1826InlineData("07", false, LanguageVersion.Default), 1842InlineData("08", false, LanguageVersion.Default), 1843InlineData("07.1", false, LanguageVersion.Default), 1844InlineData("default", true, LanguageVersion.Default), 1848InlineData("latestpreview", false, LanguageVersion.Default), 1849InlineData(null, true, LanguageVersion.Default), 1850InlineData("bad", false, LanguageVersion.Default)]
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (5)
CodeActions\GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersTests.cs (3)
4039LanguageVersion = LanguageVersion.Default, 4096LanguageVersion = LanguageVersion.Default, 4401LanguageVersion = 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;