2 instantiations of CSharpCompilation
Microsoft.CodeAnalysis.CSharp (2)
Compilation\CSharpCompilation.cs (2)
418var compilation = new CSharpCompilation( 721return new CSharpCompilation(
27390 references to CSharpCompilation
ConfigurationSchemaGenerator (4)
ConfigSchemaGenerator.cs (2)
19var compilation = CSharpCompilation.Create(
RuntimeSource\Configuration.Binder\Parser\KnownTypeSymbols.cs (2)
16public CSharpCompilation Compilation { get; } 68public KnownTypeSymbols(CSharpCompilation compilation)
ConfigurationSchemaGenerator.Tests (2)
GeneratorTests.cs (2)
1563var compilation = CSharpCompilation.Create("Test", [s_implicitUsingsSyntaxTree, s_attributesSyntaxTree, sourceSyntaxTree], s_defaultReferences.AddRange(references), compilationOptions);
InteractiveHost.UnitTests (9)
AbstractInteractiveHostTests.cs (1)
197var compilation = CreateEmptyCompilation(
InteractiveHostDesktopTests.cs (8)
503var c1 = CreateCompilation(source1, assemblyName: "C"); 515var c2 = CreateCompilation(source2, assemblyName: "C"); 543var c1 = CreateCompilation(source1, assemblyName: "C"); 547var c2 = CreateCompilation(source2, assemblyName: "C"); 578var c1 = CreateCompilation(source1, assemblyName: "C"); 582var c2 = CreateCompilation(source2, assemblyName: "C"); 936var lib = CSharpCompilation.Create(
Microsoft.Analyzers.Extra.Tests (8)
SyntaxNodeExtensionsTests.cs (8)
49var compilation = CSharpCompilation.Create( 81var compilation = CSharpCompilation.Create( 144var compilation = CSharpCompilation.Create( 174var compilation = CSharpCompilation.Create(
Microsoft.AspNetCore.Analyzers.Test (1)
src\Shared\AnalyzerTesting\TestCompilation.cs (1)
13return CSharpCompilation.Create("Test",
Microsoft.AspNetCore.App.Analyzers.Test (2)
Infrastructure\WellKnownTypesTests.cs (2)
77var compilation = CSharpCompilation.Create(assemblyName, trees).WithOptions(options);
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
Helpers\DiagnosticVerifier.Helper.cs (1)
22private static readonly MetadataReference CSharpSymbolsReference = MetadataReference.CreateFromFile(typeof(CSharpCompilation).Assembly.Location);
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
Helpers\DiagnosticVerifier.Helper.cs (1)
22private static readonly MetadataReference CSharpSymbolsReference = MetadataReference.CreateFromFile(typeof(CSharpCompilation).Assembly.Location);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (4)
CSharpCompiler.cs (2)
80public CSharpCompilation CreateCompilation(string assemblyName) 82return CSharpCompilation.Create(
RuntimeViewCompiler.cs (2)
340var compilation = CreateCompilation(generatedCode, assemblyName); 372private CSharpCompilation CreateCompilation(string compilationContent, string assemblyName)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (2)
CompilerFailedExceptionFactoryTest.cs (2)
50var compilation = CSharpCompilation.Create("Test", options: new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary));
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
MiscTests.cs (1)
32name.Name == typeof(CSharpCompilation).Assembly.GetName().Name ||
Microsoft.CodeAnalysis.CSharp (581)
Binder\Binder.cs (4)
23internal CSharpCompilation Compilation { get; } 30internal Binder(CSharpCompilation compilation) 809CSharpCompilation compilation, 828CSharpCompilation compilation,
Binder\Binder_Expressions.cs (5)
1489internal static bool CheckManagedAddr(CSharpCompilation compilation, TypeSymbol type, Location location, BindingDiagnosticBag diagnostics, bool errorForManaged = false) 1499internal static bool CheckManagedAddr(CSharpCompilation compilation, TypeSymbol type, ManagedKind managedKind, Location location, BindingDiagnosticBag diagnostics, bool errorForManaged = false) 9226internal static int? InferConstantIndexFromSystemIndex(CSharpCompilation compilation, BoundExpression convertedIndex, int length, out SyntaxNode location) 10881static bool checkConstraints(CSharpCompilation compilation, ConversionsBase conversions, NamedTypeSymbol delegateType, ImmutableArray<TypeWithAnnotations> typeArguments) 11031internal static bool MethodOrLambdaRequiresValue(Symbol symbol, CSharpCompilation compilation)
Binder\Binder_Initializers.cs (4)
26CSharpCompilation compilation, 42CSharpCompilation compilation, 71CSharpCompilation compilation, 162CSharpCompilation compilation,
Binder\Binder_Invocation.cs (1)
1033private void CheckRestrictedTypeReceiver(BoundExpression expression, CSharpCompilation compilation, BindingDiagnosticBag diagnostics)
Binder\Binder_Lookup.cs (3)
265for (CSharpCompilation submission = Compilation; submission != null; submission = submission.PreviousSubmission) 1187private static bool IsDerivedType(NamedTypeSymbol baseType, NamedTypeSymbol derivedType, ConsList<TypeSymbol> basesBeingResolved, CSharpCompilation compilation, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1891for (CSharpCompilation submission = Compilation; submission != null; submission = submission.PreviousSubmission)
Binder\Binder_Operators.cs (1)
3847CSharpCompilation compilation,
Binder\Binder_Statements.cs (2)
2228protected static void GenerateImplicitConversionError(BindingDiagnosticBag diagnostics, CSharpCompilation compilation, SyntaxNode syntax, 3802MethodSymbol constructor, BindingDiagnosticBag diagnostics, CSharpCompilation compilation)
Binder\Binder_Symbols.cs (11)
748internal static void ReportMissingTupleElementNamesAttributesIfNeeded(CSharpCompilation compilation, Location location, BindingDiagnosticBag diagnostics) 1636internal static NamedTypeSymbol GetSpecialType(CSharpCompilation compilation, SpecialType typeId, SyntaxNode node, BindingDiagnosticBag diagnostics) 1644internal static NamedTypeSymbol GetSpecialType(CSharpCompilation compilation, SpecialType typeId, Location location, BindingDiagnosticBag diagnostics) 1661internal static Symbol GetSpecialTypeMember(CSharpCompilation compilation, SpecialMember member, BindingDiagnosticBag diagnostics, SyntaxNode syntax) 1669internal static bool TryGetSpecialTypeMember<TSymbol>(CSharpCompilation compilation, SpecialMember specialMember, SyntaxNode syntax, BindingDiagnosticBag diagnostics, out TSymbol symbol, bool isOptional = false) 1768internal static NamedTypeSymbol GetWellKnownType(CSharpCompilation compilation, WellKnownType type, BindingDiagnosticBag diagnostics, SyntaxNode node) 1773internal static NamedTypeSymbol GetWellKnownType(CSharpCompilation compilation, WellKnownType type, BindingDiagnosticBag diagnostics, Location location) 1802internal static Symbol GetWellKnownTypeMember(CSharpCompilation compilation, WellKnownMember member, BindingDiagnosticBag diagnostics, Location location = null, SyntaxNode syntax = null, bool isOptional = false) 1816internal static Symbol GetWellKnownTypeMember(CSharpCompilation compilation, WellKnownMember member, out UseSiteInfo<AssemblySymbol> useSiteInfo, bool isOptional = false) 2460var compilation = this.Compilation; 2502private static BestSymbolLocation GetLocation(CSharpCompilation compilation, Symbol symbol)
Binder\Binder_TupleOperators.cs (2)
243var compilation = this.Compilation; 397bool isNullable, CSharpCompilation compilation, BindingDiagnosticBag diagnostics)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
45private CSharpCompilation compilation
Binder\BinderFactory.cs (2)
50private readonly CSharpCompilation _compilation; 63internal BinderFactory(CSharpCompilation compilation, SyntaxTree syntaxTree, bool ignoreAccessibility, ObjectPool<BinderFactoryVisitor> binderFactoryVisitorPoolOpt = null)
Binder\BuckStopsHereBinder.cs (3)
17internal BuckStopsHereBinder(CSharpCompilation compilation, FileIdentifier? associatedFileIdentifier) 28/// This is <see langword="null"/> in some scenarios, such as the binder used for <see cref="CSharpCompilation.Conversions" /> 29/// or the binder used to bind usings in <see cref="CSharpCompilation.UsingsFromOptionsAndDiagnostics"/>.
Binder\DecisionDagBuilder.cs (5)
58private readonly CSharpCompilation _compilation; 69private DecisionDagBuilder(CSharpCompilation compilation, LabelSymbol defaultLabel, bool forLowering, BindingDiagnosticBag diagnostics) 82CSharpCompilation compilation, 98CSharpCompilation compilation, 114CSharpCompilation compilation,
Binder\ExecutableCodeBinder.cs (1)
103public static void ValidateIteratorMethod(CSharpCompilation compilation, MethodSymbol iterator, BindingDiagnosticBag diagnostics)
Binder\ForEachLoopBinder.cs (3)
1788TypeSymbol type, bool isAsync, CSharpCompilation compilation, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, 1811private static void GetIEnumerableOfT(ImmutableArray<NamedTypeSymbol> interfaces, bool isAsync, CSharpCompilation compilation, ref NamedTypeSymbol result, ref bool foundMultiple) 1838internal static bool IsIEnumerableT(TypeSymbol type, bool isAsync, CSharpCompilation compilation)
Binder\ImportChain.cs (1)
142var referenceManager = ((CSharpCompilation)moduleBuilder.CommonCompilation).GetBoundReferenceManager();
Binder\Imports.cs (2)
60internal static Imports ExpandPreviousSubmissionImports(Imports previousSubmissionImports, CSharpCompilation newSubmission) 91internal static ImmutableArray<NamespaceOrTypeAndUsingDirective> ExpandPreviousSubmissionImports(ImmutableArray<NamespaceOrTypeAndUsingDirective> previousSubmissionUsings, CSharpCompilation newSubmission)
Binder\InMethodBinder.cs (2)
145internal static TypeWithAnnotations GetIteratorElementTypeFromReturnType(CSharpCompilation compilation, 177internal static bool IsAsyncStreamInterface(CSharpCompilation compilation, RefKind refKind, TypeSymbol returnType)
Binder\InSubmissionClassBinder.cs (1)
41for (var submission = this.Compilation; submission != null; submission = submission.PreviousSubmission)
Binder\RefSafetyAnalysis.cs (3)
18internal static void Analyze(CSharpCompilation compilation, MethodSymbol symbol, BoundNode node, BindingDiagnosticBag diagnostics) 57private readonly CSharpCompilation _compilation; 72CSharpCompilation compilation,
Binder\Semantics\AccessCheck.cs (6)
138CSharpCompilation compilation, 228var compilation = within.DeclaringCompilation; 303CSharpCompilation compilation, 347CSharpCompilation compilation, 420CSharpCompilation compilation, 546CSharpCompilation compilation,
Binder\Semantics\Conversions\Conversions.cs (2)
36protected override CSharpCompilation Compilation { get { return _binder.Compilation; } } 402public static void GetDelegateOrFunctionPointerArguments(SyntaxNode syntax, AnalyzedArguments analyzedArguments, ImmutableArray<ParameterSymbol> delegateParameters, CSharpCompilation compilation)
Binder\Semantics\Conversions\ConversionsBase.cs (8)
92protected abstract CSharpCompilation? Compilation { get; } 1467private static LambdaConversionResult IsAnonymousFunctionCompatibleWithDelegate(UnboundLambda anonymousFunction, TypeSymbol type, CSharpCompilation compilation, bool isTargetExpressionTree) 1588private static LambdaConversionResult IsAnonymousFunctionCompatibleWithExpressionTree(UnboundLambda anonymousFunction, NamedTypeSymbol type, CSharpCompilation compilation) 1626public static LambdaConversionResult IsAnonymousFunctionCompatibleWithType(UnboundLambda anonymousFunction, TypeSymbol type, CSharpCompilation compilation) 1643private static bool HasAnonymousFunctionConversion(BoundExpression source, TypeSymbol destination, CSharpCompilation compilation) 1656internal static CollectionExpressionTypeKind GetCollectionExpressionTypeKind(CSharpCompilation compilation, TypeSymbol destination, out TypeWithAnnotations elementType) 1700static bool implementsSpecialInterface(CSharpCompilation compilation, TypeSymbol targetType, SpecialType specialInterface) 1708internal static bool IsSpanOrListType(CSharpCompilation compilation, TypeSymbol targetType, WellKnownType spanType, [NotNullWhen(true)] out TypeWithAnnotations elementType)
Binder\Semantics\Conversions\TypeConversions.cs (1)
66protected override CSharpCompilation Compilation => null;
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (5)
132private readonly CSharpCompilation _compilation; 315CSharpCompilation compilation, 2831CSharpCompilation compilation, 3174CSharpCompilation compilation, 3189CSharpCompilation compilation,
Binder\Semantics\OverloadResolution\OverloadResolution.cs (4)
38private CSharpCompilation Compilation 2481var compilation1 = m1.Member.DeclaringCompilation; 2482var compilation2 = m2.Member.DeclaringCompilation; 3907internal static bool AreRefsCompatibleForMethodConversion(RefKind candidateMethodParameterRefKind, RefKind delegateParameterRefKind, CSharpCompilation compilation)
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
964CSharpCompilation compilation,
BoundTree\BoundIsPatternExpression.cs (1)
11public BoundDecisionDag GetDecisionDagForLowering(CSharpCompilation compilation)
BoundTree\BoundSwitchExpression.cs (1)
12public BoundDecisionDag GetDecisionDagForLowering(CSharpCompilation compilation, out LabelSymbol? defaultLabel)
BoundTree\BoundSwitchStatement.cs (1)
12public BoundDecisionDag GetDecisionDagForLowering(CSharpCompilation compilation)
BoundTree\UnboundLambda.cs (2)
147var compilation = Binder.Compilation; 786var compilation = Binder.Compilation;
CodeGen\EmitStatement.cs (2)
1759CSharpCompilation.DynamicTransformsEncoder.Encode(local.Type, RefKind.None, 0) : 1762CSharpCompilation.TupleNamesEncoder.Encode(local.Type) :
CommandLine\CSharpCompiler.cs (3)
160return CSharpCompilation.Create( 245var comp = (CSharpCompilation)compilation;
Compilation\AttributeSemanticModel.cs (1)
123internal static bool IsNullableAnalysisEnabledIn(CSharpCompilation compilation, AttributeSyntax syntax)
Compilation\BuiltInOperators.cs (2)
25private readonly CSharpCompilation _compilation; 32internal BuiltInOperators(CSharpCompilation compilation)
Compilation\CSharpCompilation.cs (43)
351public static CSharpCompilation Create( 371public static CSharpCompilation CreateScriptCompilation( 376CSharpCompilation? previousScriptCompilation = null, 394private static CSharpCompilation Create( 399CSharpCompilation? previousSubmission, 418var compilation = new CSharpCompilation( 450CSharpCompilation? previousSubmission, 467CSharpCompilation? previousSubmission, 551public new CSharpCompilation Clone() 567private CSharpCompilation Update( 589public new CSharpCompilation WithAssemblyName(string? assemblyName) 613/// The new <see cref="CSharpCompilation"/> will query the given <see cref="MetadataReference"/> for the underlying 620public new CSharpCompilation WithReferences(IEnumerable<MetadataReference>? references) 642public new CSharpCompilation WithReferences(params MetadataReference[] references) 650public CSharpCompilation WithOptions(CSharpCompilationOptions options) 682public CSharpCompilation WithScriptCompilationInfo(CSharpScriptCompilationInfo? info) 762internal CSharpCompilation? PreviousSubmission => ScriptCompilationInfo?.PreviousScriptCompilation; 831public new CSharpCompilation AddSyntaxTrees(params SyntaxTree[] trees) 839public new CSharpCompilation AddSyntaxTrees(IEnumerable<SyntaxTree> trees) 903public new CSharpCompilation RemoveSyntaxTrees(params SyntaxTree[] trees) 912public new CSharpCompilation RemoveSyntaxTrees(IEnumerable<SyntaxTree> trees) 965public new CSharpCompilation RemoveAllSyntaxTrees() 977public new CSharpCompilation ReplaceSyntaxTree(SyntaxTree oldTree, SyntaxTree? newTree) 1151internal bool ReferenceManagerEquals(CSharpCompilation other) 1239public new CSharpCompilation AddReferences(params MetadataReference[] references) 1241return (CSharpCompilation)base.AddReferences(references); 1247public new CSharpCompilation AddReferences(IEnumerable<MetadataReference> references) 1249return (CSharpCompilation)base.AddReferences(references); 1255public new CSharpCompilation RemoveReferences(params MetadataReference[] references) 1257return (CSharpCompilation)base.RemoveReferences(references); 1263public new CSharpCompilation RemoveReferences(IEnumerable<MetadataReference> references) 1265return (CSharpCompilation)base.RemoveReferences(references); 1271public new CSharpCompilation RemoveAllReferences() 1273return (CSharpCompilation)base.RemoveAllReferences(); 1279public new CSharpCompilation ReplaceReference(MetadataReference oldReference, MetadataReference newReference) 1281return (CSharpCompilation)base.ReplaceReference(oldReference, newReference); 1568var previousSubmission = PreviousSubmission; 1634var previous = this.PreviousSubmission; 4084static CustomModifier getCustomModifierForType(INamedTypeSymbol type, CSharpCompilation @this, int index) 4812private readonly CSharpCompilation _compilation; 4819CSharpCompilation compilation, SymbolFilter filter, CancellationToken cancellationToken) 5003CSharpCompilation compilation, SymbolFilter filter, Func<string, bool> predicate, CancellationToken cancellationToken) 5026CSharpCompilation compilation, SymbolFilter filter, string name, CancellationToken cancellationToken)
Compilation\CSharpCompilation.UsingsFromOptionsAndDiagnostics.cs (3)
27public static UsingsFromOptionsAndDiagnostics FromOptions(CSharpCompilation compilation) 86internal void Complete(CSharpCompilation compilation, CancellationToken cancellationToken) 124private void Validate(CSharpCompilation compilation)
Compilation\CSharpCompilationExtensions.cs (2)
12internal static bool IsFeatureEnabled(this CSharpCompilation compilation, MessageID feature) 22internal static bool ShouldEmitNativeIntegerAttributes(this CSharpCompilation compilation, TypeSymbol type)
Compilation\CSharpCompilationReference.cs (3)
21public new CSharpCompilation Compilation { get; } 35CSharpCompilation compilation, 43private CSharpCompilationReference(CSharpCompilation compilation, MetadataReferenceProperties properties)
Compilation\CSharpScriptCompilationInfo.cs (4)
12public new CSharpCompilation? PreviousScriptCompilation { get; } 14internal CSharpScriptCompilationInfo(CSharpCompilation? previousCompilationOpt, Type? returnType, Type? globalsType) 24public CSharpScriptCompilationInfo WithPreviousScriptCompilation(CSharpCompilation? compilation) => 28WithPreviousScriptCompilation((CSharpCompilation?)compilation);
Compilation\CSharpSemanticModel.cs (4)
50public new abstract CSharpCompilation Compilation { get; } 4661CSharpCompilation compilation) 4701CSharpCompilation compilation) 4740private static OneOrMany<MethodSymbol> CreateReducedExtensionMethodsFromOriginalsIfNecessary(BoundCall call, CSharpCompilation compilation)
Compilation\MemberSemanticModel.cs (1)
65public override CSharpCompilation Compilation
Compilation\SpeculativeSemanticModelWithMemberModel.cs (1)
125public override CSharpCompilation Compilation => _parentSemanticModel.Compilation;
Compilation\SyntaxTreeSemanticModel.cs (4)
27private readonly CSharpCompilation _compilation; 44internal SyntaxTreeSemanticModel(CSharpCompilation compilation, SyntaxTree syntaxTree, SemanticModelOptions options) 53internal SyntaxTreeSemanticModel(CSharpCompilation parentCompilation, SyntaxTree parentSyntaxTree, SyntaxTree speculatedSyntaxTree, SemanticModelOptions options) 64public override CSharpCompilation Compilation
Compiler\ClsComplianceChecker.cs (3)
26private readonly CSharpCompilation _compilation; 38CSharpCompilation compilation, 73public static void CheckCompliance(CSharpCompilation compilation, BindingDiagnosticBag diagnostics, CancellationToken cancellationToken, SyntaxTree filterTree = null, TextSpan? filterSpanWithinTree = null)
Compiler\DocumentationCommentCompiler.cs (4)
35private readonly CSharpCompilation _compilation; 53CSharpCompilation compilation, 86public static void WriteDocumentationCommentXml(CSharpCompilation compilation, string? assemblyName, Stream? xmlDocStream, BindingDiagnosticBag diagnostics, CancellationToken cancellationToken, SyntaxTree? filterTree = null, TextSpan? filterSpanWithinTree = null) 148CSharpCompilation compilation = symbol.DeclaringCompilation;
Compiler\DocumentationCommentCompiler.DocumentationCommentWalker.cs (4)
31private readonly CSharpCompilation _compilation; 41CSharpCompilation compilation, 67CSharpCompilation compilation, 118CSharpCompilation compilation,
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (4)
32private readonly CSharpCompilation _compilation; 45CSharpCompilation compilation, 69CSharpCompilation compilation, 547private static Binder MakeNameBinder(bool isParameter, bool isTypeParameterRef, Symbol memberSymbol, CSharpCompilation compilation, SyntaxTree syntaxTree)
Compiler\MethodBodySynthesizer.cs (5)
26CSharpCompilation compilation) 88CSharpCompilation compilation) 215internal static BoundBlock ConstructFieldLikeEventAccessorBody(SourceEventSymbol eventSymbol, bool isAddMethod, CSharpCompilation compilation, BindingDiagnosticBag diagnostics) 232internal static BoundBlock ConstructFieldLikeEventAccessorBody_WinRT(SourceEventSymbol eventSymbol, bool isAddMethod, CSharpCompilation compilation, BindingDiagnosticBag diagnostics) 344internal static BoundBlock ConstructFieldLikeEventAccessorBody_Regular(SourceEventSymbol eventSymbol, bool isAddMethod, CSharpCompilation compilation, BindingDiagnosticBag diagnostics)
Compiler\MethodCompiler.cs (7)
31private readonly CSharpCompilation _compilation; 87internal MethodCompiler(CSharpCompilation compilation, PEModuleBuilder moduleBeingBuiltOpt, bool emittingPdb, bool hasDeclarationErrors, bool emitMethodBodies, 110CSharpCompilation compilation, 221private static MethodSymbol GetEntryPoint(CSharpCompilation compilation, PEModuleBuilder moduleBeingBuilt, bool hasDeclarationErrors, bool emitMethodBodies, BindingDiagnosticBag diagnostics, CancellationToken cancellationToken) 342private static void WarnUnusedFields(CSharpCompilation compilation, BindingDiagnosticBag diagnostics, CancellationToken cancellationToken) 1800var compilation = bodyBinder.Compilation; 2340var compilation = method.DeclaringCompilation;
Compiler\SynthesizedMetadataCompiler.cs (1)
42CSharpCompilation compilation,
Compiler\TypeCompilationState.cs (2)
70public readonly CSharpCompilation Compilation; 82public TypeCompilationState(NamedTypeSymbol? typeOpt, CSharpCompilation compilation, PEModuleBuilder? moduleBuilderOpt)
CSharpExtensions.cs (2)
440var cscomp = compilation as CSharpCompilation;
CSharpFileSystemExtensions.cs (1)
32this CSharpCompilation compilation,
Declarations\DeclarationTable.cs (4)
103public MergedNamespaceDeclaration GetMergedRoot(CSharpCompilation compilation) 114internal MergedNamespaceDeclaration CalculateMergedRoot(CSharpCompilation compilation) 142private readonly CSharpCompilation _compilation; 144internal RootNamespaceLocationComparer(CSharpCompilation compilation)
Declarations\MergedNamespaceDeclaration.cs (1)
46public LexicalSortKey GetLexicalSortKey(CSharpCompilation compilation)
Declarations\MergedTypeDeclaration.cs (1)
160public LexicalSortKey GetLexicalSortKey(CSharpCompilation compilation)
Emitter\EditAndContinue\EmitHelpers.cs (5)
24CSharpCompilation compilation, 59var previousSourceAssembly = ((CSharpCompilation)baseline.Compilation).SourceAssembly; 156private static bool GetPredefinedHotReloadExceptionTypeConstructor(CSharpCompilation compilation, DiagnosticBag diagnostics, out MethodSymbol? constructor) 188CSharpCompilation compilation, 211var previousSourceAssembly = ((CSharpCompilation)previousGeneration.Compilation).SourceAssembly;
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (2)
88internal static EmitBaseline.MetadataSymbols GetOrCreateMetadataSymbols(EmitBaseline initialBaseline, CSharpCompilation compilation) 99var metadataCompilation = compilation.RemoveAllSyntaxTrees();
Emitter\Model\PEAssemblyBuilder.cs (1)
624var compilation = _sourceAssembly.DeclaringCompilation;
Emitter\Model\PEModuleBuilder.cs (3)
26internal abstract class PEModuleBuilder : PEModuleBuilder<CSharpCompilation, SourceModuleSymbol, AssemblySymbol, TypeSymbol, NamedTypeSymbol, MethodSymbol, SyntaxNode, NoPia.EmbeddedTypesManager, ModuleCompilationState> 470CSharpCompilation compilation = symbol.DeclaringCompilation; 1650CSharpCompilation.NativeIntegerTransformsEncoder.Encode(builder, type);
Errors\MessageID.cs (2)
438if (GetFeatureAvailabilityDiagnosticInfo(feature, (CSharpCompilation)compilation) is { } diagInfo) 449internal static CSDiagnosticInfo? GetFeatureAvailabilityDiagnosticInfo(this MessageID feature, CSharpCompilation compilation)
FlowAnalysis\AbstractFlowPass.cs (2)
47protected readonly CSharpCompilation compilation; 183CSharpCompilation compilation,
FlowAnalysis\AbstractRegionControlFlowPass.cs (1)
15CSharpCompilation compilation,
FlowAnalysis\AbstractRegionDataFlowPass.cs (1)
17CSharpCompilation compilation,
FlowAnalysis\AlwaysAssignedWalker.cs (2)
27private AlwaysAssignedWalker(CSharpCompilation compilation, Symbol member, BoundNode node, BoundNode firstInRegion, BoundNode lastInRegion) 32internal static IEnumerable<Symbol> Analyze(CSharpCompilation compilation, Symbol member, BoundNode node, BoundNode firstInRegion, BoundNode lastInRegion)
FlowAnalysis\ControlFlowPass.cs (3)
34internal ControlFlowPass(CSharpCompilation compilation, Symbol member, BoundNode node) 39internal ControlFlowPass(CSharpCompilation compilation, Symbol member, BoundNode node, BoundNode firstInRegion, BoundNode lastInRegion) 154public static bool Analyze(CSharpCompilation compilation, Symbol member, BoundBlock block, DiagnosticBag diagnostics)
FlowAnalysis\DataFlowsInWalker.cs (2)
27private DataFlowsInWalker(CSharpCompilation compilation, Symbol member, BoundNode node, BoundNode firstInRegion, BoundNode lastInRegion, 33internal static HashSet<Symbol> Analyze(CSharpCompilation compilation, Symbol member, BoundNode node, BoundNode firstInRegion, BoundNode lastInRegion,
FlowAnalysis\DataFlowsOutWalker.cs (2)
27private DataFlowsOutWalker(CSharpCompilation compilation, Symbol member, BoundNode node, BoundNode firstInRegion, BoundNode lastInRegion, HashSet<Symbol> unassignedVariables, ImmutableArray<ISymbol> dataFlowsIn) 33internal static HashSet<Symbol> Analyze(CSharpCompilation compilation, Symbol member, BoundNode node, BoundNode firstInRegion, BoundNode lastInRegion, HashSet<Symbol> unassignedVariables, ImmutableArray<ISymbol> dataFlowsIn)
FlowAnalysis\DefiniteAssignment.cs (5)
167CSharpCompilation compilation, 192CSharpCompilation compilation, 214CSharpCompilation compilation, 233CSharpCompilation compilation, 542CSharpCompilation compilation,
FlowAnalysis\DefinitelyAssignedWalker.cs (2)
27CSharpCompilation compilation, 37CSharpCompilation compilation, Symbol member, BoundNode node, BoundNode firstInRegion, BoundNode lastInRegion)
FlowAnalysis\EmptyStructTypeCache.cs (2)
36public static EmptyStructTypeCache CreateForDev12Compatibility(CSharpCompilation compilation) 52private EmptyStructTypeCache(CSharpCompilation compilation, bool dev12CompilerCompatibility)
FlowAnalysis\EntryPointsWalker.cs (2)
23internal static IEnumerable<LabeledStatementSyntax> Analyze(CSharpCompilation compilation, Symbol member, BoundNode node, BoundNode firstInRegion, BoundNode lastInRegion, out bool? succeeded) 48private EntryPointsWalker(CSharpCompilation compilation, Symbol member, BoundNode node, BoundNode firstInRegion, BoundNode lastInRegion)
FlowAnalysis\ExitPointsWalker.cs (2)
23private ExitPointsWalker(CSharpCompilation compilation, Symbol member, BoundNode node, BoundNode firstInRegion, BoundNode lastInRegion) 41internal static ImmutableArray<StatementSyntax> Analyze(CSharpCompilation compilation, Symbol member, BoundNode node, BoundNode firstInRegion, BoundNode lastInRegion)
FlowAnalysis\FlowAnalysisPass.cs (2)
44var compilation = method.DeclaringCompilation; 208CSharpCompilation compilation,
FlowAnalysis\LocalDataFlowPass.cs (2)
35CSharpCompilation compilation, 47CSharpCompilation compilation,
FlowAnalysis\NullableWalker.cs (16)
448CSharpCompilation compilation, 1335CSharpCompilation compilation, 1362CSharpCompilation compilation, 1403internal static VariableState? GetAfterInitializersState(CSharpCompilation compilation, Symbol? symbol, BoundNode constructorBody) 1421internal static VariableState? GetAfterInitializersState(CSharpCompilation compilation, MethodSymbol method, BoundNode nodeToAnalyze, BoundNode? constructorBody, BindingDiagnosticBag diagnostics) 1472CSharpCompilation compilation, 1487CSharpCompilation compilation, 1503CSharpCompilation compilation, 1548static bool isNullableAnalysisEnabledAnywhere(CSharpCompilation compilation) 1623private static bool HasRequiredLanguageVersion(CSharpCompilation compilation) 1632internal static bool NeedsAnalysis(CSharpCompilation compilation, SyntaxNode syntaxNode) 1647var compilation = binder.Compilation; 1680CSharpCompilation compilation, 1718CSharpCompilation compilation, 2360static bool allowUnconstrainedTypeParameterAnnotations(CSharpCompilation compilation) 6356static bool isWellKnownEqualityMethodOrImplementation(CSharpCompilation compilation, MethodSymbol method, TypeSymbol? receiverType, WellKnownMember wellKnownMember)
FlowAnalysis\ReadWriteWalker.cs (2)
22CSharpCompilation compilation, Symbol member, BoundNode node, BoundNode firstInRegion, BoundNode lastInRegion, HashSet<PrefixUnaryExpressionSyntax> unassignedVariableAddressOfSyntaxes, 70private ReadWriteWalker(CSharpCompilation compilation, Symbol member, BoundNode node, BoundNode firstInRegion, BoundNode lastInRegion,
FlowAnalysis\RegionAnalysisContext.cs (2)
21public readonly CSharpCompilation Compilation; 34public RegionAnalysisContext(CSharpCompilation compilation, Symbol member, BoundNode boundNode, BoundNode firstInRegion, BoundNode lastInRegion)
FlowAnalysis\RegionReachableWalker.cs (2)
17internal static void Analyze(CSharpCompilation compilation, Symbol member, BoundNode node, BoundNode firstInRegion, BoundNode lastInRegion, 39private RegionReachableWalker(CSharpCompilation compilation, Symbol member, BoundNode node, BoundNode firstInRegion, BoundNode lastInRegion)
FlowAnalysis\UnassignedAddressTakenVariablesWalker.cs (2)
18private UnassignedAddressTakenVariablesWalker(CSharpCompilation compilation, Symbol member, BoundNode node) 23internal static HashSet<PrefixUnaryExpressionSyntax> Analyze(CSharpCompilation compilation, Symbol member, BoundNode node)
FlowAnalysis\UnassignedVariablesWalker.cs (2)
21private UnassignedVariablesWalker(CSharpCompilation compilation, Symbol member, BoundNode node) 26internal static HashSet<Symbol> Analyze(CSharpCompilation compilation, Symbol member, BoundNode node,
FlowAnalysis\VariablesDeclaredWalker.cs (2)
22internal static IEnumerable<Symbol> Analyze(CSharpCompilation compilation, Symbol member, BoundNode node, BoundNode firstInRegion, BoundNode lastInRegion) 39internal VariablesDeclaredWalker(CSharpCompilation compilation, Symbol member, BoundNode node, BoundNode firstInRegion, BoundNode lastInRegion)
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (1)
438var sym = CSharpCompilation.GetRuntimeMember(
Lowering\AsyncRewriter\AsyncRewriter.cs (1)
59CSharpCompilation compilation = method.DeclaringCompilation;
Lowering\AsyncRewriter\AsyncStateMachine.cs (1)
29CSharpCompilation compilation = asyncMethod.DeclaringCompilation;
Lowering\DiagnosticsPass_ExpressionTrees.cs (3)
23private readonly CSharpCompilation _compilation; 31public static void IssueDiagnostics(CSharpCompilation compilation, BoundNode node, BindingDiagnosticBag diagnostics, MethodSymbol containingSymbol) 49private DiagnosticsPass(CSharpCompilation compilation, BindingDiagnosticBag diagnostics, MethodSymbol containingSymbol)
Lowering\DiagnosticsPass_Warnings.cs (1)
106internal static bool IsNonAgileFieldAccess(BoundFieldAccess fieldAccess, CSharpCompilation compilation)
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (1)
564private static MethodSymbol GetCreatePayloadOverload(CSharpCompilation compilation, WellKnownMember overload, SyntaxNode syntax, BindingDiagnosticBag diagnostics)
Lowering\IteratorRewriter\IteratorConstructor.cs (1)
35var compilation = this.DeclaringCompilation;
Lowering\LocalRewriter\LocalRewriter.cs (6)
24private readonly CSharpCompilation _compilation; 56CSharpCompilation compilation, 85CSharpCompilation compilation, 616/// Recommendation: Do not use, use <see cref="TryGetSpecialTypeMethod(SyntaxNode, SpecialMember, CSharpCompilation, BindingDiagnosticBag, out MethodSymbol, bool)"/> instead! 619private static MethodSymbol UnsafeGetSpecialTypeMethod(SyntaxNode syntax, SpecialMember specialMember, CSharpCompilation compilation, BindingDiagnosticBag diagnostics) 641private static bool TryGetSpecialTypeMethod(SyntaxNode syntax, SpecialMember specialMember, CSharpCompilation compilation, BindingDiagnosticBag diagnostics, out MethodSymbol method, bool isOptional = false)
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
851var compilation = _localRewriter._compilation;
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
1904internal static MethodSymbol UnsafeGetNullableMethod(SyntaxNode syntax, TypeSymbol nullableType, SpecialMember member, CSharpCompilation compilation, BindingDiagnosticBag diagnostics)
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (3)
99static bool useListOptimization(CSharpCompilation compilation, BoundCollectionExpression node) 501internal static bool IsAllocatingRefStructCollectionExpression(BoundCollectionExpressionBase node, CollectionExpressionTypeKind collectionKind, TypeSymbol? elementType, CSharpCompilation compilation) 518private static bool ShouldUseInlineArray(BoundCollectionExpressionBase node, CSharpCompilation compilation)
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
809CSharpCompilation compilation, 1723static TypeSymbol get64BitType(CSharpCompilation compilation, bool signed) => compilation.GetSpecialType(signed ? SpecialType.System_Int64 : SpecialType.System_UInt64);
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
753static bool isFieldOfMarshalByRef(BoundExpression expr, CSharpCompilation compilation)
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
1085CSharpCompilation compilation,
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (2)
42private IteratorAndAsyncCaptureWalker(CSharpCompilation compilation, MethodSymbol method, BoundNode node, HashSet<Symbol> initiallyAssignedVariables) 53public static OrderedSet<Symbol> Analyze(CSharpCompilation compilation, MethodSymbol method, BoundNode node, DiagnosticBag diagnostics)
Lowering\StateMachineRewriter\SynthesizedStateMachineMethod.cs (1)
123var compilation = this.DeclaringCompilation;
Lowering\SynthesizedMethodBaseSymbol.cs (1)
85var compilation = this.DeclaringCompilation;
Lowering\SynthesizedSubmissionFields.cs (2)
26private readonly CSharpCompilation _compilation; 31public SynthesizedSubmissionFields(CSharpCompilation compilation, NamedTypeSymbol submissionClass)
Lowering\SyntheticBoundNodeFactory.cs (1)
44public CSharpCompilation Compilation { get { return CompilationState.Compilation; } }
Operations\CSharpOperationFactory.cs (5)
1228IMethodSymbol? constructMethod = getConstructMethod((CSharpCompilation)_semanticModel.Compilation, expr).GetPublicSymbol(); 1238static MethodSymbol? getConstructMethod(CSharpCompilation compilation, BoundCollectionExpression expr) 1895var compilation = (CSharpCompilation)_semanticModel.Compilation; 2078TypeWithAnnotations.Create(((CSharpCompilation)_semanticModel.Compilation).GetSpecialType(SpecialType.System_Boolean)),
Symbols\AliasSymbol.cs (1)
78internal AliasSymbol ToNewSubmission(CSharpCompilation compilation)
Symbols\AnonymousTypes\AnonymousTypeManager.cs (2)
17internal AnonymousTypeManager(CSharpCompilation compilation) 26public CSharpCompilation Compilation { get; }
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (4)
121CSharpCompilation previousSubmission = this.Compilation.PreviousSubmission; 143CSharpCompilation previousSubmission = this.Compilation.PreviousSubmission; 798private readonly CSharpCompilation _compilation; 800public AnonymousTypeOrDelegateComparer(CSharpCompilation compilation)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.DelegateTemplateSymbol.cs (1)
250var compilation = ContainingSymbol.DeclaringCompilation;
Symbols\Attributes\AttributeData.cs (5)
99internal bool IsSecurityAttribute(CSharpCompilation compilation) 215internal void DecodeSecurityAttribute<T>(Symbol targetSymbol, CSharpCompilation compilation, ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 241internal static void DecodeSkipLocalsInitAttribute<T>(CSharpCompilation compilation, ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 339private DeclarativeSecurityAction DecodeSecurityAttributeAction(Symbol targetSymbol, CSharpCompilation compilation, AttributeSyntax? nodeOpt, out bool hasErrors, BindingDiagnosticBag diagnostics) 508private string? DecodePermissionSetAttribute(CSharpCompilation compilation, AttributeSyntax? nodeOpt, BindingDiagnosticBag diagnostics)
Symbols\Attributes\SourceAttributeData.cs (5)
20private readonly CSharpCompilation _compilation; 31CSharpCompilation compilation, 61internal SourceAttributeData(CSharpCompilation compilation, AttributeSyntax attributeSyntax, NamedTypeSymbol attributeClass, MethodSymbol? attributeConstructor, bool hasErrors) 76CSharpCompilation compilation, 224internal static int GetTargetAttributeSignatureIndex(CSharpCompilation compilation, NamedTypeSymbol attributeClass, MethodSymbol? attributeConstructor, AttributeDescription description)
Symbols\BaseTypeAnalysis.cs (1)
32private static void TypeDependsClosure(NamedTypeSymbol type, CSharpCompilation currentCompilation, HashSet<Symbol> partialClosure)
Symbols\Compilation_WellKnownMembers.cs (2)
1242private readonly CSharpCompilation _compilation; 1244public WellKnownMembersSignatureComparer(CSharpCompilation compilation)
Symbols\ConstantValueUtils.cs (1)
36var compilation = symbol.DeclaringCompilation;
Symbols\ConstraintsHelper.cs (10)
77CSharpCompilation currentCompilation, 134CSharpCompilation currentCompilation, 490CSharpCompilation compilation, 503CSharpCompilation compilation, 526public readonly CSharpCompilation CurrentCompilation; 533public CheckConstraintsArgs(CSharpCompilation currentCompilation, ConversionsBase conversions, Location location, BindingDiagnosticBag diagnostics) : 538public CheckConstraintsArgs(CSharpCompilation currentCompilation, ConversionsBase conversions, bool includeNullability, Location location, BindingDiagnosticBag diagnostics) : 543public CheckConstraintsArgs(CSharpCompilation currentCompilation, ConversionsBase conversions, bool includeNullability, Location location, BindingDiagnosticBag diagnostics, CompoundUseSiteInfo<AssemblySymbol> template) 561public static CheckConstraintsArgsBoxed Allocate(CSharpCompilation currentCompilation, ConversionsBase conversions, Location location, BindingDiagnosticBag diagnostics) 569public static CheckConstraintsArgsBoxed Allocate(CSharpCompilation currentCompilation, ConversionsBase conversions, bool includeNullability, Location location, BindingDiagnosticBag diagnostics)
Symbols\ExtendedErrorTypeSymbol.cs (1)
28internal ExtendedErrorTypeSymbol(CSharpCompilation compilation, string name, int arity, DiagnosticInfo? errorInfo, bool unreported = false, bool variableUsedBeforeDeclaration = false)
Symbols\FieldSymbol.cs (2)
495Symbol found = CSharpCompilation.GetRuntimeMember(ImmutableArray.Create<Symbol>(this), descriptor, CSharpCompilation.SpecialMembersSignatureComparer.Instance,
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (9)
108static CallingConvention getCallingConvention(CSharpCompilation compilation, FunctionPointerCallingConventionSyntax? callingConventionSyntax, ArrayBuilder<CustomModifier> customModifiers, BindingDiagnosticBag diagnostics) 189static CallingConvention handleSingleConvention(FunctionPointerUnmanagedCallingConventionSyntax specifier, CSharpCompilation compilation, ArrayBuilder<CustomModifier> customModifiers, BindingDiagnosticBag diagnostics) 200static CustomModifier? handleIndividualUnrecognizedSpecifier(FunctionPointerUnmanagedCallingConventionSyntax specifier, CSharpCompilation compilation, BindingDiagnosticBag diagnostics) 229static void checkUnmanagedSupport(CSharpCompilation compilation, Location errorLocation, BindingDiagnosticBag diagnostics) 251CSharpCompilation compilation) 274CSharpCompilation compilation) 310private static CustomModifier? GetCustomModifierForRefKind(RefKind refKind, CSharpCompilation compilation) 494CSharpCompilation compilation) 513static ImmutableArray<CustomModifier> getCustomModifierArrayForRefKind(RefKind refKind, CSharpCompilation compilation)
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (2)
39CSharpCompilation compilation) 52CSharpCompilation compilation)
Symbols\LexicalSortKey.cs (5)
62private LexicalSortKey(SyntaxTree tree, int position, CSharpCompilation compilation) 67public LexicalSortKey(SyntaxReference syntaxRef, CSharpCompilation compilation) 74public LexicalSortKey(Location location, CSharpCompilation compilation) 82public LexicalSortKey(CSharpSyntaxNode node, CSharpCompilation compilation) 90public LexicalSortKey(SyntaxToken token, CSharpCompilation compilation)
Symbols\MergedNamespaceSymbol.cs (1)
108internal NamespaceSymbol GetConstituentForCompilation(CSharpCompilation compilation)
Symbols\Metadata\PE\PEAssemblySymbol.cs (1)
299internal sealed override CSharpCompilation DeclaringCompilation // perf, not correctness
Symbols\Metadata\PE\PEEventSymbol.cs (1)
506internal sealed override CSharpCompilation? DeclaringCompilation // perf, not correctness
Symbols\Metadata\PE\PEFieldSymbol.cs (1)
676internal sealed override CSharpCompilation DeclaringCompilation // perf, not correctness
Symbols\Metadata\PE\PEGlobalNamespaceSymbol.cs (1)
101internal sealed override CSharpCompilation DeclaringCompilation // perf, not correctness
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
1672internal override CSharpCompilation DeclaringCompilation => null;
Symbols\Metadata\PE\PEModuleSymbol.cs (1)
694internal sealed override CSharpCompilation DeclaringCompilation // perf, not correctness
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
2430internal sealed override CSharpCompilation DeclaringCompilation // perf, not correctness
Symbols\Metadata\PE\PENestedNamespaceSymbol.cs (1)
138internal sealed override CSharpCompilation DeclaringCompilation // perf, not correctness
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
1174internal sealed override CSharpCompilation DeclaringCompilation // perf, not correctness
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
1041internal sealed override CSharpCompilation DeclaringCompilation // perf, not correctness
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
712internal sealed override CSharpCompilation DeclaringCompilation // perf, not correctness
Symbols\MetadataOrSourceAssemblySymbol.cs (2)
210result = CSharpCompilation.GetRuntimeMember(type, descriptor, CSharpCompilation.SpecialMembersSignatureComparer.Instance, accessWithinOpt: null);
Symbols\MethodSymbol.cs (4)
738public MethodSymbol ReduceExtensionMethod(TypeSymbol receiverType, CSharpCompilation compilation) 750public MethodSymbol ReduceExtensionMethod(TypeSymbol receiverType, CSharpCompilation compilation, out bool wasFullyInferred) 1158var compilation = this.DeclaringCompilation; 1276CSharpCompilation declaringCompilation = methodToAttribute.DeclaringCompilation;
Symbols\MethodSymbolExtensions.cs (4)
157public static bool IsAsyncEffectivelyReturningTask(this MethodSymbol method, CSharpCompilation compilation) 167public static bool IsAsyncEffectivelyReturningGenericTask(this MethodSymbol method, CSharpCompilation compilation) 177public static bool IsAsyncReturningIAsyncEnumerable(this MethodSymbol method, CSharpCompilation compilation) 186public static bool IsAsyncReturningIAsyncEnumerator(this MethodSymbol method, CSharpCompilation compilation)
Symbols\NamespaceExtent.cs (3)
74public CSharpCompilation Compilation 80return (CSharpCompilation)_symbolOrCompilation; 113internal NamespaceExtent(CSharpCompilation compilation)
Symbols\NamespaceSymbol.cs (1)
71public CSharpCompilation ContainingCompilation
Symbols\ReducedExtensionMethodSymbol.cs (2)
37public static MethodSymbol Create(MethodSymbol method, TypeSymbol receiverType, CSharpCompilation compilation, out bool wasFullyInferred) 112internal static MethodSymbol InferExtensionMethodTypeArguments(MethodSymbol method, TypeSymbol thisType, CSharpCompilation compilation,
Symbols\ReferenceManager.cs (9)
56internal sealed class ReferenceManager : CommonReferenceManager<CSharpCompilation, AssemblySymbol> 168public void CreateSourceAssemblyForCompilation(CSharpCompilation compilation) 298private void CreateAndSetSourceAssemblyReuseData(CSharpCompilation compilation) 343private bool CreateAndSetSourceAssemblyFullBind(CSharpCompilation compilation) 1086public readonly CSharpCompilation Compilation; 1088public AssemblyDataForCompilation(CSharpCompilation compilation, bool embedInteropTypes) 1094private static ImmutableArray<AssemblyIdentity> GetReferencedAssemblies(CSharpCompilation compilation) 1190internal static bool IsSourceAssemblySymbolCreated(CSharpCompilation compilation) 1198internal static bool IsReferenceManagerInitialized(CSharpCompilation compilation)
Symbols\Retargeting\RetargetingAssemblySymbol.cs (1)
280internal sealed override CSharpCompilation DeclaringCompilation // perf, not correctness
Symbols\Retargeting\RetargetingEventSymbol.cs (1)
187internal sealed override CSharpCompilation? DeclaringCompilation // perf, not correctness
Symbols\Retargeting\RetargetingFieldSymbol.cs (1)
136internal sealed override CSharpCompilation DeclaringCompilation // perf, not correctness
Symbols\Retargeting\RetargetingMethodSymbol.cs (1)
362internal sealed override CSharpCompilation DeclaringCompilation // perf, not correctness
Symbols\Retargeting\RetargetingModuleSymbol.cs (1)
305internal sealed override CSharpCompilation DeclaringCompilation // perf, not correctness
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (1)
377internal sealed override CSharpCompilation DeclaringCompilation // perf, not correctness
Symbols\Retargeting\RetargetingNamespaceSymbol.cs (1)
245internal sealed override CSharpCompilation DeclaringCompilation // perf, not correctness
Symbols\Retargeting\RetargetingParameterSymbol.cs (1)
138internal sealed override CSharpCompilation? DeclaringCompilation
Symbols\Retargeting\RetargetingPropertySymbol.cs (1)
248internal sealed override CSharpCompilation DeclaringCompilation // perf, not correctness
Symbols\Retargeting\RetargetingTypeParameterSymbol.cs (1)
112internal sealed override CSharpCompilation DeclaringCompilation // perf, not correctness
Symbols\Source\CustomModifierUtils.cs (3)
78ImmutableArray<bool> flags = CSharpCompilation.DynamicTransformsEncoder.EncodeWithoutCustomModifierFlags(destinationType, refKind); 84CSharpCompilation.NativeIntegerTransformsEncoder.Encode(builder, destinationType); 91ImmutableArray<string> names = CSharpCompilation.TupleNamesEncoder.Encode(destinationType);
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
397var compilation = this.DeclaringCompilation;
Symbols\Source\GlobalExpressionVariable.cs (1)
81var compilation = this.DeclaringCompilation;
Symbols\Source\LambdaSymbol.cs (2)
43CSharpCompilation compilation, 322CSharpCompilation compilation,
Symbols\Source\LocalFunctionSymbol.cs (2)
126var compilation = DeclaringCompilation; 254var compilation = DeclaringCompilation;
Symbols\Source\ParameterHelpers.cs (9)
227internal static void EnsureRefKindAttributesExist(CSharpCompilation? compilation, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag diagnostics, bool modifyCompilation) 239private static void EnsureRefKindAttributesExist(CSharpCompilation compilation, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag? diagnostics, bool modifyCompilation, PEModuleBuilder? moduleBuilder) 268internal static void EnsureParamCollectionAttributeExistsAndModifyCompilation(CSharpCompilation compilation, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag diagnostics) 282internal static void EnsureNativeIntegerAttributeExists(CSharpCompilation? compilation, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag diagnostics, bool modifyCompilation) 299private static void EnsureNativeIntegerAttributeExists(CSharpCompilation compilation, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag? diagnostics, bool modifyCompilation, PEModuleBuilder? moduleBuilder) 349internal static void EnsureScopedRefAttributeExists(CSharpCompilation? compilation, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag diagnostics, bool modifyCompilation) 361private static void EnsureScopedRefAttributeExists(CSharpCompilation compilation, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag? diagnostics, bool modifyCompilation, PEModuleBuilder? moduleBuilder) 384internal static void EnsureNullableAttributeExists(CSharpCompilation? compilation, Symbol container, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag? diagnostics, bool modifyCompilation) 396private static void EnsureNullableAttributeExists(CSharpCompilation compilation, Symbol container, ImmutableArray<ParameterSymbol> parameters, BindingDiagnosticBag? diagnostics, bool modifyCompilation, PEModuleBuilder? moduleBuilder)
Symbols\Source\SourceAssemblySymbol.cs (5)
33private readonly CSharpCompilation _compilation; 116CSharpCompilation compilation, 163internal sealed override CSharpCompilation DeclaringCompilation 643private static void ReportDiagnosticsForSynthesizedAttributes(CSharpCompilation compilation, BindingDiagnosticBag diagnostics) 684private static void ReportDiagnosticsForUnsafeSynthesizedAttributes(CSharpCompilation compilation, BindingDiagnosticBag diagnostics)
Symbols\Source\SourceComplexParameterSymbol.cs (6)
302var compilation = this.DeclaringCompilation; 984var compilation = this.DeclaringCompilation; 1061CSharpCompilation compilation = this.DeclaringCompilation; 1089CSharpCompilation compilation = this.DeclaringCompilation; 1122CSharpCompilation compilation = this.DeclaringCompilation; 1163CSharpCompilation compilation = this.DeclaringCompilation;
Symbols\Source\SourceConstructorSymbolBase.cs (1)
89var compilation = DeclaringCompilation;
Symbols\Source\SourceCustomEventSymbol.cs (1)
233private SourceCustomEventAccessorSymbol? CreateAccessorSymbol(CSharpCompilation compilation, AccessorDeclarationSyntax? syntaxOpt,
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
313var compilation = DeclaringCompilation;
Symbols\Source\SourceEventAccessorSymbol.cs (1)
108CSharpCompilation compilation = this.DeclaringCompilation;
Symbols\Source\SourceEventFieldSymbol.cs (1)
63var compilation = this.DeclaringCompilation;
Symbols\Source\SourceEventSymbol.cs (2)
328var compilation = this.DeclaringCompilation; 750var compilation = DeclaringCompilation;
Symbols\Source\SourceFieldSymbol.cs (1)
136var compilation = DeclaringCompilation;
Symbols\Source\SourceFixedFieldSymbol.cs (2)
44var compilation = this.DeclaringCompilation; 209var compilation = ContainingSymbol.DeclaringCompilation;
Symbols\Source\SourceMemberContainerSymbol.cs (13)
491internal static void ReportReservedTypeName(string? name, CSharpCompilation compilation, DiagnosticBag? diagnostics, Location location) 1813var compilation = DeclaringCompilation; 2886public DeclaredMembersAndInitializers ToReadOnlyAndFree(CSharpCompilation compilation) 2900public void UpdateIsNullableEnabledForConstructorsAndFields(bool useStatic, CSharpCompilation compilation, CSharpSyntaxNode syntax) 2961CSharpCompilation compilation) 2981public static void AssertInitializers(ImmutableArray<ImmutableArray<FieldOrPropertyInitializer>> initializers, CSharpCompilation compilation) 3061var compilation = declaredMembers.PrimaryConstructor.DeclaringCompilation; 3147public void UpdateIsNullableEnabledForConstructorsAndFields(bool useStatic, CSharpCompilation compilation, CSharpSyntaxNode syntax) 3578var compilation = DeclaringCompilation; 4212CSharpCompilation compilation = this.DeclaringCompilation; 4900var compilation = DeclaringCompilation; 5276var compilation = DeclaringCompilation; 5320var compilation = DeclaringCompilation;
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (3)
1234CSharpCompilation compilation, 1518CSharpCompilation compilation, 1531CSharpCompilation compilation,
Symbols\Source\SourceMemberFieldSymbol.cs (2)
107var compilation = this.DeclaringCompilation; 448var compilation = this.DeclaringCompilation;
Symbols\Source\SourceMemberMethodSymbol.cs (3)
954var compilation = this.DeclaringCompilation; 983var compilation = DeclaringCompilation; 1017var compilation = this.DeclaringCompilation;
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
651var compilation = this.DeclaringCompilation; 1602var declaringCompilation = methodSymbol.DeclaringCompilation;
Symbols\Source\SourceModuleSymbol.cs (4)
458internal override CSharpCompilation DeclaringCompilation 598static bool isFeatureDisabled(CSharpCompilation compilation) 628var compilation = _assemblySymbol.DeclaringCompilation; 697var compilation = _assemblySymbol.DeclaringCompilation;
Symbols\Source\SourceNamedTypeSymbol.cs (2)
1222var compilation = this.DeclaringCompilation; 1666CSharpCompilation compilation = this.DeclaringCompilation;
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (1)
712var compilation = this.DeclaringCompilation;
Symbols\Source\SourceNamedTypeSymbol_Enum.cs (1)
51var compilation = this.DeclaringCompilation;
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (4)
470CSharpCompilation compilation = declaringSymbol.DeclaringCompilation; 638var compilation = declaringSymbol.DeclaringCompilation; 964var compilation = declaringSymbol.DeclaringCompilation; 1163var compilation = declaringSymbol.DeclaringCompilation;
Symbols\Source\SourceOrdinaryMethodOrUserDefinedOperatorSymbol.cs (1)
226var compilation = DeclaringCompilation;
Symbols\Source\SourceOrdinaryMethodSymbolBase.cs (1)
103var compilation = this.DeclaringCompilation;
Symbols\Source\SourceParameterSymbolBase.cs (1)
73var compilation = this.DeclaringCompilation;
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
406var compilation = this.DeclaringCompilation; 810var compilation = this.DeclaringCompilation;
Symbols\Source\SourcePropertySymbol.cs (1)
543var compilation = this.DeclaringCompilation;
Symbols\Source\SourcePropertySymbolBase.cs (2)
1004var compilation = DeclaringCompilation; 1367var compilation = this.DeclaringCompilation;
Symbols\Source\SourceTypeParameterSymbol.cs (1)
394var compilation = DeclaringCompilation;
Symbols\Source\SynthesizedAttributeData.cs (3)
17public static SynthesizedAttributeData Create(CSharpCompilation compilation, MethodSymbol wellKnownMember, ImmutableArray<TypedConstant> arguments, ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments) 29private readonly CSharpCompilation _compilation; 34internal FromMethodAndArguments(CSharpCompilation compilation, MethodSymbol wellKnownMember, ImmutableArray<TypedConstant> arguments, ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments)
Symbols\SubstitutedTypeParameterSymbol.cs (1)
185internal override CSharpCompilation DeclaringCompilation => ContainingSymbol.DeclaringCompilation;
Symbols\Symbol.cs (5)
190internal virtual CSharpCompilation DeclaringCompilation 407var declaringCompilation = this.DeclaringCompilation; 906internal bool IsFromCompilation(CSharpCompilation compilation) 1030CSharpCompilation compilation = this.DeclaringCompilation; 1626internal void GetCommonNullableValues(CSharpCompilation compilation, ref MostCommonNullableValueBuilder builder)
Symbols\Symbol_Attributes.cs (5)
310var compilation = this.DeclaringCompilation; 568CSharpCompilation compilation = this.DeclaringCompilation; 588CSharpCompilation compilation, 669private Binder GetAttributeBinder(SyntaxList<AttributeListSyntax> attributeDeclarationSyntaxList, CSharpCompilation compilation, Binder? rootBinder = null) 889CSharpCompilation compilation,
Symbols\SymbolDistinguisher.cs (4)
27private readonly CSharpCompilation _compilation; 33public SymbolDistinguisher(CSharpCompilation compilation, Symbol symbol0, Symbol symbol1) 161private static string GetLocationString(CSharpCompilation compilation, Symbol unwrappedSymbol) 233var compilation = _distinguisher._compilation;
Symbols\SymbolExtensions.cs (1)
26var comp = symbol.DeclaringCompilation;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (1)
28var compilation = containingType.DeclaringCompilation;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (5)
129var compilation = containingModule.DeclaringCompilation; 232static DiagnosticInfo? getSpecialTypeMemberDiagnosticInfo(CSharpCompilation compilation, SpecialMember member) 243static DiagnosticInfo? getWellKnownTypeMemberDiagnosticInfo(CSharpCompilation compilation, WellKnownMember member) 267var compilation = containingModule.DeclaringCompilation; 778public static bool CanCreateSingleElement(CSharpCompilation compilation)
Symbols\Synthesized\Records\SynthesizedRecordBaseEquals.cs (1)
27var compilation = DeclaringCompilation;
Symbols\Synthesized\Records\SynthesizedRecordCopyCtor.cs (1)
79var compilation = this.DeclaringCompilation;
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (1)
33var compilation = DeclaringCompilation;
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (2)
96var compilation = this.DeclaringCompilation; 162var compilation = this.DeclaringCompilation;
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperatorBase.cs (2)
66var compilation = DeclaringCompilation; 85var compilation = this.DeclaringCompilation;
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
34var compilation = DeclaringCompilation;
Symbols\Synthesized\Records\SynthesizedRecordGetHashCode.cs (1)
32var compilation = DeclaringCompilation;
Symbols\Synthesized\Records\SynthesizedRecordObjEquals.cs (1)
29var compilation = DeclaringCompilation;
Symbols\Synthesized\Records\SynthesizedRecordOrdinaryMethod.cs (1)
79var compilation = this.DeclaringCompilation;
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (1)
91var compilation = DeclaringCompilation;
Symbols\Synthesized\Records\SynthesizedRecordToString.cs (2)
40var compilation = DeclaringCompilation; 55CSharpCompilation compilation = ContainingType.DeclaringCompilation;
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
44var compilation = this.DeclaringCompilation;
Symbols\Synthesized\SynthesizedContainer.cs (1)
67var compilation = ContainingSymbol.DeclaringCompilation;
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (3)
30var compilation = containingType.DeclaringCompilation; 341internal AsyncForwardEntryPoint(CSharpCompilation compilation, NamedTypeSymbol containingType, MethodSymbol userMain) : 468var compilation = _containingType.DeclaringCompilation;
Symbols\Synthesized\SynthesizedEventAccessorSymbol.cs (1)
77var compilation = this.DeclaringCompilation;
Symbols\Synthesized\SynthesizedFieldSymbolBase.cs (1)
50CSharpCompilation compilation = this.DeclaringCompilation;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
192var compilation = _containingModule.DeclaringCompilation;
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (2)
250var compilation = DeclaringCompilation; 264CSharpCompilation compilation = containingType.DeclaringCompilation;
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
82internal override CSharpCompilation DeclaringCompilation
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
154var compilation = this.DeclaringCompilation;
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (7)
38CSharpCompilation compilation = containingType.DeclaringCompilation; 68CSharpCompilation compilation = containingType.DeclaringCompilation; 87internal static SynthesizedSimpleProgramEntryPointSymbol? GetSimpleProgramEntryPoint(CSharpCompilation compilation, CompilationUnitSyntax compilationUnit, bool fallbackToMainEntryPoint) 108internal static SynthesizedSimpleProgramEntryPointSymbol? GetSimpleProgramEntryPoint(CSharpCompilation compilation) 113private static SourceNamedTypeSymbol? GetSimpleProgramNamedTypeSymbol(CSharpCompilation compilation) 219CSharpCompilation compilation = DeclaringCompilation; 283private static bool IsNullableAnalysisEnabled(CSharpCompilation compilation, CompilationUnitSyntax syntax)
Symbols\Synthesized\SynthesizedSubmissionConstructor.cs (1)
22var compilation = containingType.DeclaringCompilation;
Symbols\Tuples\TupleTypeSymbol.cs (7)
35CSharpCompilation compilation, 74static NamedTypeSymbol getTupleUnderlyingType(ImmutableArray<TypeWithAnnotations> elementTypes, CSharpSyntaxNode? syntax, CSharpCompilation compilation, BindingDiagnosticBag? diagnostics) 261internal static void VerifyTupleTypePresent(int cardinality, CSharpSyntaxNode? syntax, CSharpCompilation compilation, BindingDiagnosticBag diagnostics) 524return CSharpCompilation.GetRuntimeMember(members, relativeDescriptor, CSharpCompilation.SpecialMembersSignatureComparer.Instance, 815return CSharpCompilation.GetRuntimeMember(members, relativeDescriptor, CSharpCompilation.SpecialMembersSignatureComparer.Instance,
Symbols\TypeSymbol.cs (3)
835CSharpCompilation compilation = implementingType.DeclaringCompilation; 1770CSharpCompilation compilation = implementingType.DeclaringCompilation; 1848CSharpCompilation compilation = implementingType.DeclaringCompilation;
Symbols\TypeSymbolExtensions.cs (14)
238public static bool IsValidAttributeParameterType(this TypeSymbol type, CSharpCompilation compilation) 249public static TypedConstantKind GetAttributeParameterTypedConstantKind(this TypeSymbol type, CSharpCompilation compilation) 1828internal static bool IsNonGenericTaskType(this TypeSymbol type, CSharpCompilation compilation) 1846internal static bool IsGenericTaskType(this TypeSymbol type, CSharpCompilation compilation) 1859internal static bool IsIAsyncEnumerableType(this TypeSymbol type, CSharpCompilation compilation) 1869internal static bool IsIAsyncEnumeratorType(this TypeSymbol type, CSharpCompilation compilation) 1906internal static TypeSymbol NormalizeTaskTypes(this TypeSymbol type, CSharpCompilation compilation) 1915private static bool NormalizeTaskTypesInType(CSharpCompilation compilation, ref TypeSymbol type) 1952private static bool NormalizeTaskTypesInType(CSharpCompilation compilation, ref TypeWithAnnotations typeWithAnnotations) 1963private static bool NormalizeTaskTypesInNamedType(CSharpCompilation compilation, ref NamedTypeSymbol type) 2019private static bool NormalizeTaskTypesInArray(CSharpCompilation compilation, ref ArrayTypeSymbol arrayType) 2030private static bool NormalizeTaskTypesInPointer(CSharpCompilation compilation, ref PointerTypeSymbol pointerType) 2042private static bool NormalizeTaskTypesInFunctionPointer(CSharpCompilation compilation, ref FunctionPointerTypeSymbol funcPtrType) 2090var compilation = declaringSymbol.DeclaringCompilation;
Symbols\TypeWithAnnotations.cs (4)
173private static TypeWithAnnotations CreateLazyNullableTypeParameter(CSharpCompilation compilation, TypeWithAnnotations underlying) 194public TypeWithAnnotations SetIsAnnotated(CSharpCompilation compilation) 1061private readonly CSharpCompilation _compilation; 1065public LazyNullableTypeParameter(CSharpCompilation compilation, TypeWithAnnotations underlying)
Symbols\TypeWithState.cs (2)
85public TypeWithAnnotations ToTypeWithAnnotations(CSharpCompilation compilation, bool asAnnotatedType = false) 98public TypeWithAnnotations ToAnnotatedTypeWithAnnotations(CSharpCompilation compilation) =>
Utilities\TypeSymbolExtensions.cs (3)
179internal static TypeSymbol GetNextBaseTypeNoUseSiteDiagnostics(this TypeSymbol type, ConsList<TypeSymbol> basesBeingResolved, CSharpCompilation compilation, ref PooledHashSet<NamedTypeSymbol> visited) 209private static TypeSymbol GetNextDeclaredBase(NamedTypeSymbol type, ConsList<TypeSymbol> basesBeingResolved, CSharpCompilation compilation, ref PooledHashSet<NamedTypeSymbol> visited) 268private static NamedTypeSymbol GetDefaultBaseOrNull(NamedTypeSymbol type, CSharpCompilation compilation)
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveRedundantNullableDirectiveDiagnosticAnalyzer.cs (2)
36var compilation = (CSharpCompilation)context.Compilation;
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.cs (2)
61var compilation = (CSharpCompilation)context.Compilation;
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.cs (2)
59var compilation = (CSharpCompilation)context.Compilation;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\CompilationExtensions.cs (1)
10=> ((CSharpCompilation)compilation).LanguageVersion;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSemanticFactsService.cs (1)
68var isLanguageVersionGreaterOrEqualToCSharp8 = (semanticModel.Compilation as CSharpCompilation)?.LanguageVersion >= LanguageVersion.CSharp8;
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (6)
CommandLineIVTTests.cs (4)
22var comp1 = CreateCompilation(source1, options: TestOptions.DebugDll, assemblyName: "N1", targetFramework: TargetFramework.Mscorlib461); 99var comp1 = CreateCompilation(source1, options: TestOptions.DebugDll, assemblyName: "N1", targetFramework: TargetFramework.Mscorlib461); 177var comp1 = CreateCompilation(source1, options: TestOptions.DebugDll, assemblyName: "N1", targetFramework: TargetFramework.Mscorlib461); 260var comp1 = CreateCompilation(source1, options: TestOptions.DebugDll, assemblyName: "N1", targetFramework: TargetFramework.Mscorlib461);
CommandLineTests.cs (2)
753var compilation = CreateCompilation(new SyntaxTree[0]); 877var compilation = CreateCompilation(new SyntaxTree[0]);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (38)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (6)
105var compilerEngineCompilation = (CSharpCompilation)compilerEngineWorkspace.CurrentSolution.Projects.Single().GetRequiredCompilationAsync(CancellationToken.None).Result; 279var compilerEngineCompilation = (CSharpCompilation)compilerEngineWorkspace.CurrentSolution.Projects.Single().GetRequiredCompilationAsync(CancellationToken.None).Result; 338var compilerEngineCompilation = (CSharpCompilation)(await compilerEngineWorkspace.CurrentSolution.Projects.Single().GetRequiredCompilationAsync(CancellationToken.None));
Semantics\SpeculationAnalyzerTests.cs (1)
529return CSharpCompilation.Create(
SymbolKey\SymbolKeyCompilationsTests.cs (14)
74var comp1 = CreateCompilation(src1, assemblyName: "Test"); 75var comp2 = CreateCompilation(src2, assemblyName: "Test"); 95var comp1 = CreateCompilation(src1, assemblyName: "C2CErrorSymbolUnchanged01"); 96var comp2 = CreateCompilation(src2, assemblyName: "C2CErrorSymbolUnchanged01"); 254var comp1 = CreateCompilation(src1); 255var comp2 = CreateCompilation(src1); 284var originalComp = CreateCompilation(src1, assemblyName: "Test"); 285var newComp = CreateCompilation(src1, assemblyName: "Test"); 305var originalComp = CreateCompilation(src1, assemblyName: "Test"); 306var newComp = CreateCompilation(src1, assemblyName: "Test"); 423var comp1 = CreateCompilation(src1, assemblyName: "Test"); 424var comp2 = CreateCompilation(src2, assemblyName: "Test"); 509var comp1 = CreateCompilation(src1, assemblyName: "Test"); 510var comp2 = CreateCompilation(src2, assemblyName: "Test");
SymbolKey\SymbolKeyErrorTypeTests.cs (2)
387var emptyCompilation = CSharpCompilation.Create("empty", options: new(OutputKind.DynamicallyLinkedLibrary, concurrentBuild: false))
SymbolKey\SymbolKeyMetadataVsSourceTests.cs (7)
61var comp1 = CreateCompilation(src1); 145var comp1 = CreateCompilation(src1); 148var comp2 = CreateCompilation(src2, [comp1.EmitToImageReference()]); 334var comp20 = CreateEmptyCompilation(src1, [Net40.References.mscorlib]); 337var comp40 = CreateCompilation(src2, [new CSharpCompilationReference(comp20)]); 418var comp20 = CreateEmptyCompilation(src1, [Net40.References.mscorlib]); 421var comp40 = CreateCompilation(src2, [new CSharpCompilationReference(comp20)]);
SymbolKey\SymbolKeyTestBase.cs (8)
41internal static void ResolveAndVerifySymbolList(IEnumerable<ISymbol> newSymbols, IEnumerable<ISymbol> originalSymbols, CSharpCompilation originalComp) 54internal static void ResolveAndVerifyTypeSymbol(ExpressionSyntax node, ITypeSymbol sourceSymbol, SemanticModel model, CSharpCompilation sourceComp) 60internal static void ResolveAndVerifySymbol(ExpressionSyntax node, ISymbol sourceSymbol, SemanticModel model, CSharpCompilation sourceComp, SymbolKeyComparison comparison = SymbolKeyComparison.None) 149internal static IEnumerable<ISymbol> GetSourceSymbols(Microsoft.CodeAnalysis.CSharp.CSharpCompilation compilation, SymbolCategory category) 198internal static IList<ISymbol> GetSourceSymbols(CSharpCompilation compilation, bool includeLocal) 248private static void GetSourceAliasSymbols(CSharpCompilation comp, List<ISymbol> list) 273private readonly CSharpCompilation _compilation; 274public LocalSymbolDumper(CSharpCompilation compilation)
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (2)
Recommendations\RecommenderTests.cs (2)
64var compilation = CSharpCompilation.Create(
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3031)
BreakingChanges.cs (17)
42var comp = CreateCompilation(text); 65var comp = CreateCompilation(text); 82var compilation1 = CreateCompilation(source1); 92var comp = CreateCompilation(source2, new[] { new CSharpCompilationReference(compilation1) }); 161var compilation = CreateCompilation(text); 295var comp = CreateCompilation(text); 406var standardCompilation = CreateCompilation(source); 407var strictCompilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithStrictFeature()); 579var comp = CreateCompilation(source); 983var comp = CreateCompilation(text); 1408var cs1Compilation = CreateCSharpCompilation("CS1", 1414var cs2Compilation = CreateCSharpCompilation("CS2", 1421var cs3Compilation = CreateCSharpCompilation("CS3", 1428var cs4Compilation = CreateCSharpCompilation("CS4", 1604var comp = CreateCompilation(source, new[] { libRef }, TestOptions.ReleaseExe); 1629var comp = CreateCompilation(source, new[] { libRef }, TestOptions.ReleaseExe); 1680var comp = CreateCompilation(source, new[] { libRef }, TestOptions.ReleaseExe);
CodeGen\CodeGenAsyncIteratorTests.cs (174)
115var lib = CreateCompilationWithTasksExtensions(AsyncStreamsTypes); 117var comp = CreateCompilationWithTasksExtensions(source, references: new[] { lib_ref }); 132var lib = CreateCompilationWithTasksExtensions(new[] { AsyncStreamsTypes }); 134var comp = CreateCompilationWithTasksExtensions(source, references: new[] { lib_ref }); 140private CSharpCompilation CreateCompilationWithAsyncIterator(string source, CSharpCompilationOptions options = null, CSharpParseOptions parseOptions = null) 144private CSharpCompilation CreateCompilationWithAsyncIterator(CSharpTestSource source, CSharpCompilationOptions options = null, CSharpParseOptions parseOptions = null) 151var comp = CreateCompilationWithAsyncIterator(@" 320var comp = CreateCompilationWithAsyncIterator(@" 474var comp = CreateCompilationWithAsyncIterator(@" 499var comp = CreateCompilationWithAsyncIterator(@" 528var comp = CreateCompilationWithAsyncIterator(@" 580var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, references: new[] { CSharpRef }, TestOptions.ReleaseExe); 609var comp = CreateCompilationWithTasksExtensions(new[] { source }, parseOptions: TestOptions.Regular7_3); 651var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 703var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular12); 862var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular12); 910var comp = CreateCompilationWithAsyncIterator(source, parseOptions: TestOptions.Regular12); 946var comp = CreateCompilationWithAsyncIterator(source); 995var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }); 1055var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }); 1087var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugDll); 1107var comp = CreateCompilationWithAsyncIterator(source); 1134var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugDll); 1161var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugDll); 1397var comp1 = CreateCompilation(_enumerable); 1405var comp2 = CreateCompilation(@" 1423var comp3 = CreateCompilation(_enumerator); 1489var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 1678var comp = CreateCompilationWithAsyncIterator(source); 1703var comp = CreateCompilationWithAsyncIterator(source); 1734var comp = CreateCompilationWithAsyncIterator(source); 1765var comp = CreateCompilationWithAsyncIterator(source); 1805var comp = CreateCompilationWithAsyncIterator(source); 1855var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 1917var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, parseOptions: TestOptions.Regular7_3); 1936var comp = CreateCompilationWithAsyncIterator(source); 1959var comp = CreateCompilationWithAsyncIterator(source); 1976var comp = CreateCompilationWithAsyncIterator(source); 2002var comp = CreateCompilationWithAsyncIterator(source); 2028var comp = CreateCompilationWithAsyncIterator(source); 2048var comp = CreateCompilationWithAsyncIterator(source); 2080var comp = CreateCompilationWithAsyncIterator(source); 2109var comp = CreateCompilationWithAsyncIterator(source); 2131var comp = CreateCompilationWithAsyncIterator(source); 2158var comp = CreateCompilationWithAsyncIterator(source); 2181var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations: 2), source }, options: TestOptions.DebugExe); 2203var comp = CreateCompilationWithAsyncIterator(source); 2229var comp = CreateCompilationWithAsyncIterator(source); 2249var comp = CreateCompilationWithAsyncIterator(source); 2271var comp = CreateCompilationWithAsyncIterator(source); 2294var comp = CreateCompilationWithAsyncIterator(source); 2314var comp = CreateCompilationWithAsyncIterator(source); 2354var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 2395var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe); 2473var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe); 2522var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe); 2567var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe); 2610var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe); 2642var comp = CreateCompilationWithAsyncIterator(source, options: options); 3199var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.ReleaseDll); 3467var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3736var comp = CreateCompilationWithTasksExtensions(new[] { source, EnumeratorCancellationAttributeType, AsyncStreamsTypes }, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular9); 4000var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.ReleaseDll); 4205private static void VerifyStateMachineFields(CSharpCompilation comp, string methodName, string[] expectedFields) 4240var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 4273var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 4305var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 4338var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 4356var comp = CreateCompilationWithAsyncIterator(source); 4389var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 4420var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 4449var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 4472var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 4506var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 4550var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 4578var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 4651var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 4686var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 4734var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 4775var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 4821var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 4870var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 4914var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 4968var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5012var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5058var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5111var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5144var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5175var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5240var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5274var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5305var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5337var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5372var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5406var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5445var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5485var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5563var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 5656var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 5691var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5721var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5752var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5785var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 5809var comp = CreateCompilationWithAsyncIterator(source); 5842var comp = CreateCompilationWithAsyncIterator(source); 5869var comp = CreateCompilationWithAsyncIterator(source); 5902var comp = CreateCompilationWithAsyncIterator(source); 5935var comp = CreateCompilationWithAsyncIterator(source); 5970var comp = CreateCompilationWithAsyncIterator(source); 6016var comp = CreateCompilationWithAsyncIterator(source); 6054var comp = CreateCompilationWithAsyncIterator(source); 6100var comp = CreateCompilationWithAsyncIterator(source); 6134var comp = CreateCompilationWithAsyncIterator(source); 6177var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 6211var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 6252var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 6291var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 6327var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 6361var comp = CreateCompilationWithAsyncIterator(new[] { Run(iterations), source }, options: TestOptions.DebugExe); 6377var comp = CreateCompilationWithAsyncIterator(source); 6403var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 6431var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 6450var comp = CreateCompilationWithAsyncIterator(source); 6473var comp = CreateCompilationWithAsyncIterator(source); 6490var comp = CreateCompilation(AsyncStreamsTypes, references: new[] { NetStandard20.ExtraReferences.SystemThreadingTasksExtensions }, targetFramework: TargetFramework.NetStandard20); 6590var comp = CreateCompilationWithTasksExtensions(new[] { source }); 6644var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.DebugExe); 6667var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 6697var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 6743var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 6820var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 6884var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe); 6933var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.DebugExe); 6985var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7036var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.DebugExe); 7084var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.DebugExe); 7135var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: options); 7268var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: options, parseOptions: TestOptions.Regular9); 7401var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: options); 7443var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.DebugExe); 7489var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.DebugExe); 7551var comp = CreateCompilationWithAsyncIterator(new[] { source.Replace("SOURCETOCANCEL", sourceToCancel), EnumeratorCancellationAttributeType }, options: options); 7611var comp = CreateCompilationWithAsyncIterator(new[] { source.Replace("SOURCETOCANCEL", sourceToCancel), EnumeratorCancellationAttributeType }, options: options, parseOptions: TestOptions.Regular9); 7646var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.DebugExe); 7673var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, TestOptions.DebugExe); 7704var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, TestOptions.DebugExe, TestOptions.Regular9); 7728var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }); 7749var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }); 7771var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }); 7791var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }); 7809var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }); 7834var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }); 7857var comp = CreateCompilationWithAsyncIterator(new[] { source }); 7930var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.DebugExe); 7974var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.DebugExe); 8032var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.DebugExe); 8063var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 8112var comp = CreateCompilationWithTasksExtensions(new[] { source, EnumeratorCancellationAttributeType, AsyncStreamsTypes }, parseOptions: TestOptions.Regular9); 8162var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 8186var comp = CreateCompilationWithAsyncIterator(@" 8235var comp = CreateCompilationWithAsyncIterator(@" 8284var comp = CreateCompilationWithAsyncIterator(@" 8371var comp = CreateCompilationWithAsyncIterator(source); 8424var comp = CreateCompilationWithAsyncIterator(source); 8470var comp = CreateCompilationWithAsyncIterator(source); 8515var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 8550var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 8591var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 8614var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80); 8629var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: TargetFramework.Net80); 8655var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80); 8672var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: TargetFramework.Net80); 8698var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 8766var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80);
CodeGen\CodeGenAsyncLocalsTests.cs (1)
962var comp = CreateCompilationWithMscorlib461("", new[] { reference }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
CodeGen\CodeGenAsyncMainTests.cs (63)
40var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe.WithMainTypeName("Program"), parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 65var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 93var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe.WithMainTypeName("Program"), parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 118var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 159var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 202var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 233var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 270var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 306var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 337var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 362var corCompilation = CreateEmptyCompilation(corAssembly, options: TestOptions.DebugDll); 369var taskCompilation = CreateCompilationWithMscorlib461(taskAssembly, options: TestOptions.DebugDll); 381var sourceCompilation = CreateEmptyCompilation(source, new[] { corCompilation.ToMetadataReference(), taskCompilation.ToMetadataReference() }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 402var corCompilation = CreateEmptyCompilation(corAssembly, options: TestOptions.DebugDll); 409var taskCompilation = CreateCompilationWithMscorlib461(taskAssembly, options: TestOptions.DebugDll); 421var sourceCompilation = CreateEmptyCompilation(source, new[] { corCompilation.ToMetadataReference(), taskCompilation.ToMetadataReference() }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 449var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 467var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 489var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 508var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 526var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 544var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 566var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 584var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 601var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 623var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 645var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 667var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 690var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 712var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 789var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 809var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 831var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 858var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 883var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 903var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 923var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 945var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 967var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 987var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 1007var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 1029var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 1052var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 1142var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)).VerifyDiagnostics(); 1164var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)).VerifyDiagnostics( 1192var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 1220var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)).VerifyDiagnostics( 1246var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithMainTypeName("A")).VerifyDiagnostics( 1273var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseDebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)).VerifyDiagnostics( 1310var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseDebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)).VerifyDiagnostics( 1341var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 1368var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithMainTypeName("A")).VerifyDiagnostics(); 1411var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 1412var verifier = sourceCompilation.VerifyEmitDiagnostics( 1465var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 1466var verifier = sourceCompilation.VerifyEmitDiagnostics( 1520var sourceCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 1521var verifier = sourceCompilation.VerifyEmitDiagnostics( 1566var comp = CreateCompilation(source, options: TestOptions.ReleaseExe.WithOptimizationLevel(OptimizationLevel.Release)); 1808var comp = CreateCompilation(source, options: TestOptions.ReleaseExe.WithOptimizationLevel(OptimizationLevel.Release)); 1982var comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 2004var comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 2064var comp = CreateCompilation(source, options: TestOptions.ReleaseExe);
CodeGen\CodeGenAsyncMethodBuilderOverrideTests.cs (46)
116var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular9); 226var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular10); 277var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 331var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 369var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 407var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 447var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 485var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 522var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular9); 571var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 617var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 659var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 696var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 766var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular9); 820var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular9); 883var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 941var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 983var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1027var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1070var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1110var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1151var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1192var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1241var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1285var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1319var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1349var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1401var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1442var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1476var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1504var compilation = CreateCompilationWithMscorlib461(source); 1538var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1578var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1618var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1658var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1702var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1742var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1782var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1822var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1862var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1902var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 1942var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.RegularPreview); 2007var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 2063var compilation = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.RegularPreview); 2098var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 2135var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview);
CodeGen\CodeGenAsyncSpillTests.cs (16)
3473var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseExe); 3708var comp = CreateCompilationWithMscorlibAndSpan(source, options: TestOptions.DebugExe); 3750var comp = CreateCompilationWithMscorlibAndSpan(source, options: TestOptions.DebugExe); 3789var comp = CreateCompilationWithMscorlibAndSpan(source, options: options); 4065var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4289var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4508var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4698var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4890var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 5083var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 5268var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 5468var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 5682var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 5923var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 6168var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 6334var comp = CreateCompilation(source, options: TestOptions.ReleaseExe);
CodeGen\CodeGenAsyncTests.cs (59)
22private static CSharpCompilation CreateCompilation(string source, IEnumerable<MetadataReference> references = null, CSharpCompilationOptions options = null) 34var compilation = CreateCompilation(source, references: references, options: options); 57var c = CreateCompilationWithMscorlib461(source); 3307var comp = CSharpTestBase.CreateEmptyCompilation(source, new[] { Net40.References.mscorlib }, TestOptions.ReleaseDll); // NOTE: 4.0, not 4.5, so it's missing the async helpers. 3337var comp = CSharpTestBase.CreateEmptyCompilation(source, new[] { Net40.References.mscorlib }, TestOptions.ReleaseDll); // NOTE: 4.0, not 4.5, so it's missing the async helpers. 3368var comp = CSharpTestBase.CreateEmptyCompilation(source, new[] { Net40.References.mscorlib }, TestOptions.ReleaseDll); // NOTE: 4.0, not 4.5, so it's missing the async helpers. 3545var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3615var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3640var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3668var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3693var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3706var cB = CreateCompilationWithMscorlib461(libB); 3717var cT = CreateCompilationWithMscorlib461(libT, references: new[] { rB }); 3729var c = CreateCompilationWithMscorlib461(source, references: new[] { rT }); 3780var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3831var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3864var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3988var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4026var comp = CreateCompilationWithMscorlib461(source); 4071var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe); 4105var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 4379var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4416var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4453var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4494var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4504var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe); 4513var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe); 4523var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe); 4538var s0 = CSharpCompilation.CreateScriptCompilation("s0.dll", SyntaxFactory.ParseSyntaxTree(source0, options: TestOptions.Script), references); 4539var s1 = CSharpCompilation.CreateScriptCompilation("s1.dll", SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.Script), references, previousScriptCompilation: s0); 4549var s0 = CSharpCompilation.CreateScriptCompilation("s0.dll", SyntaxFactory.ParseSyntaxTree(source0, options: TestOptions.Script), references); 4567var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe); 4601var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4639var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4696var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4737var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4787var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4840var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4898var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4987var compilation = CreateEmptyCompilation(new[] { Parse(source) }); 5038var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 5084var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 5118var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 5153var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5205var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5248var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5287var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5319var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 5493var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 5730var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5749var c = CreateCompilation(source, options: TestOptions.DebugDll); 5786var comp = CSharpTestBase.CreateCompilation(source, options: TestOptions.ReleaseExe); 5819var comp = CSharpTestBase.CreateCompilation(source, options: TestOptions.ReleaseExe); 5903var comp = CreateCompilation(source, options: TestOptions.DebugDll); 5929var comp = CSharpTestBase.CreateCompilation(source, options: TestOptions.ReleaseDll); 6053var comp = CSharpTestBase.CreateCompilation(source);
CodeGen\CodeGenAwaitForeachTests.cs (190)
42var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular7_3); 72var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular7_3); 90var lib = CreateCompilationWithTasksExtensions(new[] { lib_cs, s_IAsyncEnumerable }); 102var comp = CreateCompilationWithTasksExtensions(source, references: new[] { lib.EmitToImageReference() }); 125var comp_checked = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }); 176var comp_checked = CreateCompilationWithTasksExtensions(new[] { source.Replace("REPLACE", "checked"), s_IAsyncEnumerable }, options: TestOptions.DebugExe); 180var comp_unchecked = CreateCompilationWithTasksExtensions(new[] { source.Replace("REPLACE", "unchecked"), s_IAsyncEnumerable }, options: TestOptions.DebugExe); 203var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }); 224var comp = CreateCompilationWithMscorlib46(source); 252var comp = CreateCompilationWithMscorlib46(source); 280var comp = CreateCompilationWithMscorlib46(source); 322var comp = CreateCompilationWithMscorlib46(source); 353var comp = CreateCompilationWithMscorlib46(source); 382var comp = CreateCompilationWithMscorlib46(source, parseOptions: useCsharp8 ? TestOptions.Regular8 : TestOptions.Regular9); 423var comp = CreateCompilationWithMscorlib46(source); 459var comp = CreateCompilationWithMscorlib46(source); 489var comp = CreateCompilationWithMscorlib46(source); 517var comp = CreateCompilationWithMscorlib46(source); 547var comp = CreateCompilationWithMscorlib46(source); 581var comp = CreateCompilationWithMscorlib46(source); 611var comp = CreateCompilationWithMscorlib46(source); 656var comp = CreateCompilationWithTasksExtensions(source); 703var comp = CreateCompilationWithTasksExtensions(source); 742var comp = CreateCompilationWithMscorlib46(source); 778var comp = CreateCompilationWithMscorlib46(source); 816var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe); 851var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe); 892var comp = CreateCompilationWithTasksExtensions(source); 927var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 979var comp = CreateCompilationWithTasksExtensions(source); 1038var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 1082var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 1139var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 1179var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 1222var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 1269var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 1312var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 1330var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }); 1356var comp = CreateCompilationWithMscorlib46(source); 1389var comp = CreateCompilationWithMscorlib46(source); 1425var comp = CreateCompilationWithMscorlib46(source); 1458var comp = CreateCompilationWithMscorlib46(source); 1485var comp = CreateCompilationWithMscorlib46(source); 1507var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 1529var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 1561var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 1594var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 1620var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 1656var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 1700var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12); 1767var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12); 1818var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular12); 1857var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.UnsafeDebugDll); 1893var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 1930var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 1967var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 2004var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 2059var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 2233var comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 2280var comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 2382var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe); 2453var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe); 2561var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 2614var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe); 2678var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe); 2857var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }); 2912var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 2963var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 3028var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 3066var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 3106var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 3115private static void VerifyEmptyForEachStatementInfo(CSharpCompilation comp) 3157var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 3198var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 3228var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }); 3287var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 3345var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 3541var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 3585var lib = CreateCompilationWithTasksExtensions(enumerator + s_IAsyncEnumerable); 3588var comp = CreateCompilationWithTasksExtensions(source, references: new[] { lib.EmitToImageReference() }); 3624var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 3654var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 3708var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 3781var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 4051var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4105var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4161var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4216var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4234var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 4264var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 4307var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4367var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4398var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 4456var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4529var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4585var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4639var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4686var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 4739var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4818var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4853var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4899var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 4941var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 4961var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 4987var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable); 5042var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 5123var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 5349var comp = CreateCompilationWithTasksExtensions(source + s_IAsyncEnumerable, options: TestOptions.DebugExe); 5381var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }); 5426var comp = CreateCompilationWithTasksExtensions(source); 5472var comp = CreateCompilationWithTasksExtensions(source); 5518var comp = CreateCompilationWithTasksExtensions(source); 5561var comp = CreateCompilationWithTasksExtensions(source); 5588var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }); 5623var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 5645var comp = CreateCompilationWithMscorlib46(source); 5673var comp = CreateCompilationWithMscorlib46(source); 5719var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 5764var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 5807var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 5855var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 5899var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 5932var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }); 5975var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }); 6033var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 6077var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 6123var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 6168var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 6223var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.ReleaseExe); 6322var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6346var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6433var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6476var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6506var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6536var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6568var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular9); 6754var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6789var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6820var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6852var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6951var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6982var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7012var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7043var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7073var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7103var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7133var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7166var comp = CreateCompilationWithTasksExtensions( 7201var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7237var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7270var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular9); 7308var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular9); 7352var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7388var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular9); 7439var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7509var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular9); 7629var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7749var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7825var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7896var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7963var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7993var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular9); 8026var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular9); 8059var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular9); 8099var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 8132var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 8162var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular8); 8195var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8225var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8337var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8374var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8407var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8440var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8474var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8507var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8537var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8573var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8620var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8687var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8738var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8787var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8932var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 8967var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 9037var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 9088var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, 9164var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, 9242var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, 9315var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 9374var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, 9481var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe);
CodeGen\CodeGenAwaitUsingTests.cs (78)
36var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, parseOptions: TestOptions.Regular7_3); 62var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, parseOptions: TestOptions.Regular7_3); 92var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 119var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 149var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 171var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 213var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 240var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.UnsafeDebugDll); 270var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 297var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 321var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 367var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 401var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 432var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 475var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 516var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 552var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 579var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 602var comp = CreateCompilationWithTasksExtensions(source); 631var comp = CreateCompilationWithMscorlib46(source); 670var comp = CreateCompilationWithMscorlib46(source); 702var comp = CreateCompilationWithTasksExtensions(source); 731var comp = CreateCompilationWithTasksExtensions(source); 767var comp = CreateCompilationWithTasksExtensions(source); 803var comp = CreateCompilationWithTasksExtensions(source); 841var libComp = CreateCompilationWithTasksExtensions(lib_cs + IAsyncDisposableDefinition); 842var comp = CreateCompilationWithTasksExtensions(comp_cs, references: new[] { libComp.EmitToImageReference() }, options: TestOptions.DebugExe); 878var libComp = CreateCompilationWithTasksExtensions(lib_cs + IAsyncDisposableDefinition); 879var comp = CreateCompilationWithTasksExtensions(comp_cs, references: new[] { libComp.EmitToImageReference() }, options: TestOptions.DebugExe); 909var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 931var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 956var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 989var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 1011var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 1036var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 1066var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, references: new[] { CSharpRef }); 1093var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, references: new[] { CSharpRef }); 1119var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 1293var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 1468var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 1638var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 1657var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 1687var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, references: new[] { CSharpRef }); 1713var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 1882var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2060var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2087var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2114var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2123var comp = CreateCompilationWithTasksExtensions(@" 2186var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2225var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2270var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2292var comp = CreateCompilation(source); 2369var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2400var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2428var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2461var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2491var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2524var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2554var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2584var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2609var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 2636var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 2666var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 2697var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2906var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2935var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2966var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 2983var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 3035var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.ReleaseExe); 3056var comp = CreateCompilationWithTasksExtensions(source); 3075var comp = CreateCompilation(source); 3098var comp = CreateCompilation(source); 3372var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe); 3532var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe); 3653var comp = CreateCompilationWithIL(source, ilSrc); 3720var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3749var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80);
CodeGen\CodeGenCheckedTests.cs (10)
1990var comp = CreateCompilation(source); 2122var comp = CreateCompilation(source); 2160var comp = CreateCompilation(source); 2687var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 2710var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 2734var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 2757var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 2849var comp = CreateCompilation(source); 2912var comp = CreateCompilation(source); 2944var comp = CreateCompilation(source);
CodeGen\CodeGenClosureLambdaTests.cs (3)
4715var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseDll); 4807var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseDll); 4936var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseDll);
CodeGen\CodeGenConditionalOperatorTests.cs (3)
568var comp = CreateCompilationWithIL(source2, source1, options: TestOptions.ReleaseExe); 713var comp = CreateCompilation(source); 3920var comp = CreateCompilation(source);
CodeGen\CodeGenConstructorInitTests.cs (4)
1272var comp = CreateCompilation(source); 1306var comp = CreateCompilation(source); 1331var comp = CreateCompilation(source); 1356var comp = CreateCompilation(source);
CodeGen\CodeGenConversionTests.cs (4)
284var comp2 = CreateCompilation(source2, new[] { MetadataReference.CreateFromImage(verifier1.EmittedAssemblyData) }, TestOptions.ReleaseExe); 382var comp2 = CreateCompilation(source2, new[] { MetadataReference.CreateFromImage(verifier1.EmittedAssemblyData) }, TestOptions.ReleaseExe); 1070var compilation = CreateCompilationWithMscorlib461AndCSharp(source, options: TestOptions.ReleaseExe.WithAllowUnsafe(true)); 1243var comp = CreateCompilationWithIL(@"
CodeGen\CodeGenDeconstructTests.cs (162)
92var compilation = sourceModule.DeclaringCompilation; 161var comp = CreateCompilation(source); 259var firstDeconstructMethod = ((CSharpCompilation)comp.Compilation).GetTypeByMetadataName("C").GetMembers(WellKnownMemberNames.DeconstructMethodName) 299var comp = CreateCompilation(source); 341var comp = CreateCompilation(source); 800var comp = CreateCompilation(source); 1363var compilation = sourceModule.DeclaringCompilation; 1420var compilation = sourceModule.DeclaringCompilation; 1460var comp = CreateCompilationWithMscorlib40(source, parseOptions: TestOptions.Regular7, options: TestOptions.DebugExe); 1503var comp = CreateCompilationWithMscorlib40(source, parseOptions: TestOptions.Regular7, options: TestOptions.DebugExe); 1556var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 1585var comp = CreateCompilationWithMscorlib40(source, parseOptions: TestOptions.Regular7); 1607var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 1635var comp = CreateCompilation(source, 1665var compilation = sourceModule.DeclaringCompilation; 1708var comp = CreateCompilation(source); 1745var comp = CreateCompilation(source); 1793var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1837var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1870var comp = CreateCompilation(source); 2149var comp = CreateCompilationWithILAndMscorlib40(source, ilSource, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe); 2343var comp = CreateCompilation(source); 2521var comp = CreateCompilation(source); 2620var comp = CreateCompilation(source); 2684var compilation = sourceModule.DeclaringCompilation; 3126var compilation = sourceModule.DeclaringCompilation; 3174var compilation = sourceModule.DeclaringCompilation; 3238var compilation = sourceModule.DeclaringCompilation; 3276var compilation = sourceModule.DeclaringCompilation; 3326var compilation = sourceModule.DeclaringCompilation; 3364var compilation = sourceModule.DeclaringCompilation; 3439var compilation = sourceModule.DeclaringCompilation; 3475var compilation = sourceModule.DeclaringCompilation; 3540var compilation = sourceModule.DeclaringCompilation; 3686var compilation = sourceModule.DeclaringCompilation; 3731var compilation = sourceModule.DeclaringCompilation; 3788var compilation = sourceModule.DeclaringCompilation; 3838var compilation = sourceModule.DeclaringCompilation; 3884var compilation = sourceModule.DeclaringCompilation; 3928var compilation = sourceModule.DeclaringCompilation; 3974var compilation = sourceModule.DeclaringCompilation; 4023var compilation = sourceModule.DeclaringCompilation; 4129var compilation = sourceModule.DeclaringCompilation; 4214var compilation = sourceModule.DeclaringCompilation; 4325var compilation = sourceModule.DeclaringCompilation; 4401var compilation = CreateCompilation(source); 4434var compilation = sourceModule.DeclaringCompilation; 4588var compilation = sourceModule.DeclaringCompilation; 4960var comp = CreateCompilation(source); 5017var compilation = sourceModule.DeclaringCompilation; 5046var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5119var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5137var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5151var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5169var compilation = sourceModule.DeclaringCompilation; 5197var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5212var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5306var compilation = sourceModule.DeclaringCompilation; 5321var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5342var compilation = sourceModule.DeclaringCompilation; 5357var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5371var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp6), options: TestOptions.DebugExe, references: s_valueTupleRefs); 5391var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5424var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5459var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5494var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5525var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5557var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5582var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5630var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5671var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5716var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5758var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5797var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5847var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 5901var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5945var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5972var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5992var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6025var comp = CreateCompilation(source); 6078var comp = CreateCompilation(source); 6127var comp = CreateCompilation(source); 6172var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6199var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6231var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6277var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6298var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6330var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6360var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6387var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6435var compilation = sourceModule.DeclaringCompilation; 6474var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6503var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6555var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6586var comp = CreateCompilation(source, parseOptions: TestOptions.Regular6); 6627var comp = CreateCompilation(source, parseOptions: TestOptions.Regular6); 6680var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll); 6702var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6727var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6746var compCSharp9 = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6762var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10); 6790var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6816var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6836var comp = CreateCompilation(source, options: TestOptions.DebugExe); 6856var compilation = sourceModule.DeclaringCompilation; 6877var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 6896var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe); 6911var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 6928var compilation = sourceModule.DeclaringCompilation; 6946var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe, references: s_valueTupleRefs); 6968var comp = CreateCompilation(source, options: TestOptions.DebugExe); 7034var comp = CreateCompilation(source, options: TestOptions.DebugExe); 7058var comp = CreateCompilation(source, options: TestOptions.DebugExe); 7089var comp = CreateCompilation(source, options: TestOptions.DebugExe); 7114var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7147var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7198var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7260var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 7291var compilation = CreateCompilation(source); 7339var compilation = CreateCompilation(source); 7384var compilation = CreateCompilation(source); 7420var compilation = CreateCompilation(source); 7460var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7541var compilation = CreateCompilation(source); 7588var compilation = CreateCompilation(source); 7661var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7703var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7724var compilation = CreateCompilation(source); 7748var compilation = CreateCompilation(source); 7834var comp1 = CreateEmptyCompilation(source1, WinRtRefs, TestOptions.ReleaseWinMD, TestOptions.Regular); 7881var comp1 = CreateEmptyCompilation(source1, WinRtRefs, TestOptions.ReleaseWinMD, TestOptions.Regular); 7952var compilation = CreateCompilation(source); 7980var compilation = CreateCompilation(source); 8207var comp = CreateCompilationWithMscorlib461(source, references: s_valueTupleRefs, options: TestOptions.DebugExe); 8228var comp = CreateCompilationWithMscorlib461(source, references: s_valueTupleRefs, options: TestOptions.DebugDll); 8259var comp = CreateCompilationWithMscorlib461(source, references: s_valueTupleRefs, options: TestOptions.DebugDll); 8294var comp = CreateCompilationWithMscorlib461(source, references: s_valueTupleRefs, options: TestOptions.DebugDll); 8324var comp = CreateCompilationWithMscorlib461(source, references: s_valueTupleRefs, options: TestOptions.DebugDll); 8353var comp = CreateCompilationWithMscorlib461(source, references: s_valueTupleRefs, options: TestOptions.DebugDll); 8409var comp = CreateCompilationWithMscorlib461(source, references: s_valueTupleRefs, options: TestOptions.DebugDll); 8432var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll); // no ValueTuple reference 8444var missing = CreateCompilationWithMscorlib461(missing_cs, options: TestOptions.DebugDll, assemblyName: "missing"); 8447var lib = CreateCompilationWithMscorlib461(lib_cs, references: new[] { missing.EmitToImageReference() }, options: TestOptions.DebugDll); 8461var comp = CreateCompilationWithMscorlib461(source, references: new[] { lib.EmitToImageReference() }, options: TestOptions.DebugDll); // no ValueTuple reference 8473var missing = CreateCompilationWithMscorlib461(missing_cs, options: TestOptions.DebugDll, assemblyName: "missing"); 8476var lib = CreateCompilationWithMscorlib461(lib_cs, references: new[] { missing.ToMetadataReference() }, options: TestOptions.DebugDll); 8490var comp = CreateCompilationWithMscorlib461(source, references: new[] { lib.ToMetadataReference() }, options: TestOptions.DebugDll); // no ValueTuple reference 8708var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 8730var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 8755var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7, options: TestOptions.DebugExe); 8775var comp = CreateCompilation( 8800var comp = CreateCompilation( 8826var comp = CreateCompilation( 8861var comp = CreateCompilation( 8887var comp = CreateCompilation( 8929var comp = CreateCompilation( 8984var comp = CreateCompilation( 9007var comp = CreateCompilation(source); 9038var comp = CreateCompilation(source, options: TestOptions.DebugExe); 9063var comp = CreateCompilation(source, options: TestOptions.DebugExe); 9436var comp = CreateCompilation(source); 9491var comp = CreateCompilation(source, options: TestOptions.DebugExe);
CodeGen\CodeGenDynamicTests.cs (11)
41var unoptimizedCompilation = CreateCompilationWithMscorlib461(source, references, parseOptions: parseOptions, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All).WithAllowUnsafe(allowUnsafe)); 42var optimizedCompilation = CreateCompilationWithMscorlib461(source, references, parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All).WithAllowUnsafe(allowUnsafe)); 311Assert.Equal(1, ((CSharpCompilation)c.Compilation).GlobalNamespace.GetMember<NamespaceSymbol>("System").GetMember<NamedTypeSymbol>("Func`13").Arity); 7486var lib = CreateCompilation(sourceLib); 7492var script = CreateCompilationWithMscorlib461( 7580var lib = CreateCompilation(sourceLib); 7590var script = CreateCompilationWithMscorlib461( 15339var comp = CreateCompilationWithCSharp(source, options: TestOptions.ReleaseExe); 15384var comp = CreateCompilationWithCSharp(source, options: TestOptions.ReleaseExe); 15790var comp = CreateCompilationWithMscorlib461( 15812var comp = CreateCompilationWithMscorlib461(
CodeGen\CodeGenExplicitImplementationTests.cs (13)
124var comp1 = CreateCompilation(text1, assemblyName: "OHI_ExplicitImplProp1"); 126var comp = CreateCompilation( 211var comp1 = CreateCompilation( 217var comp = CreateCompilation( 254var comp = CreateCompilation( 370var comp1 = CreateCompilation( 376var comp = CreateCompilation( 993var libComp = CreateCompilation(libSource); 996var comp = CreateCompilation(source, new[] { new CSharpCompilationReference(libComp, aliases: ImmutableArray.Create("Q")) }); 1038var libComp1 = CreateCompilation(libSource, assemblyName: "lib1"); 1041var libComp2 = CreateCompilation(libSource, assemblyName: "lib2"); 1045var comp1 = CreateCompilation(source, new[] { new CSharpCompilationReference(libComp1, aliases: ImmutableArray.Create("A")), new CSharpCompilationReference(libComp1, aliases: ImmutableArray.Create("B")) }); 1061var comp2 = CreateCompilation(source, new[] { new CSharpCompilationReference(libComp1, aliases: ImmutableArray.Create("A")), new CSharpCompilationReference(libComp2, aliases: ImmutableArray.Create("B")) });
CodeGen\CodeGenExprLambdaTests.cs (12)
1535var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll); 2379var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll); 2464var comp = CreateCompilationWithMscorlib461( 3514var comp = CreateEmptyCompilation( 3524var comp45 = CreateCompilationWithMscorlib461( 5305var compilation = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 5367var compilation = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 5440var compilation = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 5945var compilation1 = CreateCompilationWithMscorlib461(source1); 5956var compilation2 = CreateCompilationWithMscorlib461(source2, references: new[] { reference1 }); 5992var compilation1 = CreateCompilationWithMscorlib461(source1); 6003var compilation2 = CreateCompilationWithMscorlib461(source2, references: new[] { reference1 });
CodeGen\CodeGenFieldInitTests.cs (8)
435var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 462var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 483var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 511var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 565var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 592var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 658var compilation = CreateCompilationWithMscorlib461(trees, options: TestOptions.ReleaseExe); 690var compilation1 = CreateCompilation(source1, assemblyName: "1110a705-cc34-430b-9450-ca37031aa828");
CodeGen\CodeGenForEachTests.cs (13)
797var compilation = CreateCompilationWithILAndMscorlib40(csharp, il, TargetFramework.Mscorlib40); 1394var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 1749var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3298var comp = CreateCompilationWithSpan(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 3329var comp = CreateCompilationWithIndexAndRange(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 3684var comp = CreateCompilationWithCSharp(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9) 4446var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular8); 5592var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 5623var comp = CreateCompilation(source); 5693var comp = CreateCompilation(source); 5750var comp = CreateCompilation(source); 5780var comp = CreateCompilation(source); 5816var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80);
CodeGen\CodeGenFunctionPointersTests.cs (179)
36var comp = CreateCompilation( 46private static CSharpCompilation CreateCompilationWithFunctionPointers(CSharpTestSource source, IEnumerable<MetadataReference>? references = null, CSharpCompilationOptions? options = null, TargetFramework? targetFramework = null) 51private static CSharpCompilation CreateCompilationWithFunctionPointers(CSharpTestSource source, bool includeUnmanagedCallersOnly, CSharpCompilationOptions? options = null) 61var comp = CreateCompilationWithIL(source, ilStub, parseOptions: TestOptions.RegularPreview, options: expectedOutput is null ? TestOptions.UnsafeReleaseDll : TestOptions.UnsafeReleaseExe); 65private static CSharpCompilation CreateCompilationWithFunctionPointersAndIl(string source, string ilStub, CSharpCompilationOptions? options = null, bool includeUnmanagedCallersOnly = true) 266var comp = CreateCompilationWithFunctionPointersAndIl(source, il); 343var comp = CreateCompilationWithFunctionPointersAndIl(source, il); 562var c = ((CSharpCompilation)verifier.Compilation).GetTypeByMetadataName("C"); 683var compilation = CreateCompilationWithIL(source: "", ilSource, parseOptions: TestOptions.RegularPreview); 944var comp = CreateCompilationWithFunctionPointersAndIl(source, ilSource); 2632var cComp = CreateCompilation(@" 2662var cComp = CreateCompilation(@" 3058var comp = (CSharpCompilation)verifier.Compilation; 3090var comp = CreateCompilationWithFunctionPointers(@" 3127var comp = CreateCompilationWithFunctionPointers(@" 3169var comp = CreateCompilationWithFunctionPointers(@" 3266var comp = CreateCompilationWithFunctionPointers($@" 3316var comp = CreateCompilationWithFunctionPointers(@" 3389var comp = CreateCompilationWithFunctionPointers(@" 3438var comp = CreateCompilationWithFunctionPointers(@" 3485var comp = CreateCompilationWithFunctionPointers(@" 3546var comp = CreateCompilationWithFunctionPointers(@" 3589var comp = CreateCompilationWithFunctionPointers(@" 3641var comp = CreateCompilationWithFunctionPointers(@" 3691var comp = CreateCompilationWithFunctionPointers(@" 3723var comp = CreateCompilationWithFunctionPointers(@" 3754var comp = CreateCompilationWithFunctionPointers(@" 3777var comp = CreateCompilationWithFunctionPointers(@" 3841var comp = CreateCompilationWithFunctionPointers(@" 3904var comp = CreateCompilationWithFunctionPointers(@" 3974var comp = CreateCompilationWithFunctionPointers(@" 4004var comp = CreateCompilationWithFunctionPointers(@" 4030var comp = CreateCompilationWithFunctionPointers(@" 4072var comp = CreateCompilationWithFunctionPointers(@" 4092var comp = CreateCompilationWithFunctionPointers(@" 4292var comp = CreateCompilationWithFunctionPointers(@" 4913var comp = (CSharpCompilation)verifier.Compilation; 5017var comp = CreateCompilationWithSpan(@" 5210var comp = CreateCompilationWithFunctionPointers($@" 5233var comp = CreateCompilationWithFunctionPointers($@" 5261var comp = CreateCompilationWithFunctionPointers($@" 5313var comp = CreateCompilationWithFunctionPointers($@" 5334var comp = CreateCompilationWithFunctionPointers($@" 5395var comp = CreateCompilationWithFunctionPointers(source, options: WithNullableEnable(TestOptions.UnsafeReleaseDll)); 5702var comp = CreateCompilationWithFunctionPointersAndIl("", il); 5964var comp = CreateCompilationWithFunctionPointers(@" 5988var comp = CreateCompilationWithFunctionPointers(@" 6095var comp = CreateCompilationWithFunctionPointers($@" 6126var comp = CreateCompilationWithFunctionPointers(@" 6151var comp = CreateCompilationWithFunctionPointers(@" 6271var allSourceComp = CreateCompilationWithFunctionPointers(new[] { executableCode, source1, source2 }, options: TestOptions.UnsafeReleaseExe); 6279var baseComp = CreateCompilationWithFunctionPointers(source1); 6282var derivedComp = CreateCompilationWithFunctionPointers(new[] { executableCode, source2 }, references: new[] { metadataRef }, options: TestOptions.UnsafeReleaseExe); 6331var comp = CreateCompilationWithFunctionPointers(@$" 6362var comp = CreateCompilationWithFunctionPointers(@$" 6387var comp = CreateCompilationWithFunctionPointers(@" 6412var comp = CreateCompilationWithFunctionPointers(@" 6437var comp = CreateCompilationWithFunctionPointers(@" 6490var comp = CreateCompilationWithFunctionPointers(@" 6543var comp = CreateCompilationWithFunctionPointers(@" 6601var comp = CreateCompilationWithFunctionPointers(@" 6667var comp = CreateCompilationWithFunctionPointers(@" 6745var comp = CreateCompilationWithFunctionPointers(@" 6867var comp = CreateCompilationWithFunctionPointersAndIl(source, il); 7053var comp = (CSharpCompilation)verifier.Compilation; 7091var comp = CreateCompilationWithFunctionPointers(@" 7294var comp = CreateCompilationWithFunctionPointers(@" 7322var comp = CreateCompilationWithFunctionPointers(@" 7398var comp = CreateCompilationWithFunctionPointers(@" 7429var comp = CreateCompilationWithFunctionPointers(@" 7494var comp = CreateCompilationWithFunctionPointers(@" 7563var allInCoreLib = CreateEmptyCompilation(source1 + source2, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll); 7580var coreLib = CreateEmptyCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 7583var comp1 = CreateEmptyCompilation(source2, references: new[] { coreLib.EmitToImageReference() }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll); 7632var allInCoreLib = CreateEmptyCompilation(source1 + source2, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll); 7649var coreLib = CreateEmptyCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 7652var comp1 = CreateEmptyCompilation(source2, references: new[] { coreLib.EmitToImageReference() }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll); 7719var comp1 = CreateCompilationWithFunctionPointers(source1 + source2); 7736var reference = CreateCompilation(source1); 7737var comp2 = CreateCompilationWithFunctionPointers(source2, new[] { reference.EmitToImageReference() }); 7823var comp = CreateCompilation(new[] { @" 7852var comp = CreateCompilation(new[] { @" 7874var comp = CreateEmptyCompilation(new[] { @" 7914var comp = CreateEmptyCompilation(new[] { @" 7959var comp = CreateCompilation(new[] { @" 7985var comp = CreateCompilation(new[] { @" 8005var comp = CreateCompilationWithFunctionPointers(@" 8047var comp = CreateCompilationWithFunctionPointersAndIl(@" 8075var comp = CreateCompilation(new[] { @" 8094var comp = CreateCompilation(new[] { @" 8167var comp = CreateCompilation(new[] { @" 8210var comp = CreateCompilation(new[] { @" 8245var comp = CreateCompilation(new[] { @" 8324var comp = CreateCompilationWithFunctionPointersAndIl(@" 8340var comp = CreateCompilation(new[] { @" 8449var comp = CreateCompilationWithFunctionPointersAndIl(@" 8474var comp = CreateCompilation(new[] { @" 8493var comp = CreateCompilation(new[] { @" 8521var comp = CreateCompilation(new[] { @" 8562var comp = CreateCompilationWithFunctionPointers(@" 8591var comp = CreateCompilationWithFunctionPointers(@" 8624var comp = CreateCompilationWithFunctionPointers(@" 8657var comp0 = CreateCompilation(new[] { @" 8671var comp1 = CreateCompilationWithFunctionPointers(@" 8723var comp = CreateCompilationWithFunctionPointersAndIl(@" 8766var comp = CreateCompilationWithIL(@" 8815var comp = CreateCompilationWithIL(@" 8836var comp = CreateCompilation(new[] { @" 8871var comp = CreateCompilation(new[] { @" 8937var comp = CreateCompilationWithIL(@" 8961var comp = CreateCompilation(new[] { @" 9007var comp = CreateCompilationWithIL(@" 9072var comp = CreateCompilationWithIL(@" 9096var comp = CreateCompilation(new[] { @" 9157var comp = CreateCompilationWithIL(@" 9181var comp = CreateCompilation(new[] { @" 9223var comp = CreateCompilationWithIL(@" 9243var comp = CreateCompilation(new[] { @" 9284var comp = CreateCompilationWithIL(@" 9322var comp = CreateCompilationWithIL(@" 9342var comp = CreateCompilation(new[] { @" 9373var comp = CreateCompilation(new[] { @" 9404var comp = CreateCompilation(new[] { @" 9439var comp = CreateCompilation(new[] { @" 9470var comp = CreateCompilation(new[] { @" 9510var comp = CreateCompilation(new[] { @" 9537var comp = CreateCompilation(new[] { @" 9568var comp = CreateCompilation(new[] { @" 9614var comp = CreateCompilation(new[] { @" 9651var comp = CreateCompilation(new[] { @" 9684var comp = CreateCompilation(new[] { @" 9720var comp = CreateCompilation(new[] { @" 9739var comp = CreateCompilation(new[] { @" 9765var comp = CreateCompilation(new[] { @" 9784var comp = CreateCompilation(new[] { @" 9820var comp = CreateCompilation(new[] { @" 9850var comp = CreateCompilation(new[] { @" 9874var comp = CreateCompilation(new[] { @" 9903var comp = CreateCompilation(new[] { @" 9926var comp = CreateCompilation(@" 9952var comp = CreateCompilation(@" 9978var comp = CreateCompilation(new[] { @" 9997var comp = CreateCompilation(new[] { @" 10018var comp = CreateCompilation(new[] { @" 10042var comp = CreateCompilationWithFunctionPointers(@" 10071var comp = CreateCompilationWithFunctionPointers(@" 10103var comp = CreateCompilationWithFunctionPointers(@" 10124var comp = CreateCompilationWithFunctionPointers(@" 10147var comp = CreateCompilation(@" 10210var allInOne = CreateCompilationWithFunctionPointers(definition + usage, includeUnmanagedCallersOnly: false); 10218var definitionComp = CreateCompilation(definition); 10220var usageComp = CreateCompilationWithFunctionPointers(usage, new[] { definitionComp.EmitToImageReference() }); 10264var allInOne = CreateCompilationWithFunctionPointers(definition + usage, includeUnmanagedCallersOnly: false); 10272var definitionComp = CreateCompilation(definition); 10274var usageComp = CreateCompilationWithFunctionPointers(usage, new[] { definitionComp.EmitToImageReference() }); 10316var sameComp = CreateCompilationWithFunctionPointers(source1 + source2, includeUnmanagedCallersOnly: false); 10325var refComp = CreateCompilation(source1); 10327var differentComp = CreateCompilationWithFunctionPointers(source2, new[] { refComp.EmitToImageReference() }); 10336static void verifyUnmanagedData(CSharpCompilation compilation) 10378var sameComp = CreateCompilationWithFunctionPointers(source1 + source2, includeUnmanagedCallersOnly: false); 10390var refComp = CreateCompilation(source1); 10392var differentComp = CreateCompilationWithFunctionPointers(source2, new[] { refComp.EmitToImageReference() }); 10404static void verifyUnmanagedData(CSharpCompilation compilation) 10490var comp = CreateCompilationWithFunctionPointersAndIl(@" 10527var comp = CreateCompilationWithFunctionPointers(@" 10575var comp = CreateCompilationWithFunctionPointers($@" 10662var comp = CreateCompilationWithFunctionPointers(@" 10770var comp = CreateCompilationWithFunctionPointers(@" 10949var comp = CreateCompilationWithFunctionPointers(@" 10987var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular10, options: TestOptions.UnsafeReleaseExe); 11021var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular10, options: TestOptions.UnsafeReleaseExe); 11044var comp = CreateCompilationWithFunctionPointers(@" 11283var comp = CreateCompilationWithSpan(@" 11402var comp = CreateCompilationWithFunctionPointers(@" 11465var comp = CreateCompilationWithFunctionPointers(@" 12765return ((CSharpCompilation)verifier.Compilation).SourceModule;
CodeGen\CodeGenImplicitImplementationTests.cs (3)
2291private static CSharpCompilation CreateCompilationWithMscorlibAndReference(string libSource, string exeSource) 2293var libComp = CreateCompilation(libSource, options: TestOptions.ReleaseDll, assemblyName: "OtherAssembly"); 2296var exeComp = CreateCompilation(exeSource, options: TestOptions.ReleaseExe, references: new[] { new CSharpCompilationReference(libComp) });
CodeGen\CodeGenImplicitlyTypeArraysTests.cs (6)
128var comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40Extended); 480var compilation = CreateCompilationWithMscorlib40AndSystemCore(testSrc); 522var compilation = CreateCompilationWithMscorlib40AndSystemCore(testSrc); 555var compilation = CreateCompilationWithMscorlib40AndSystemCore(testSrc); 936var comp = CreateCompilation(testSrc); 961var comp = CreateCompilation(testSrc);
CodeGen\CodeGenInParametersTests.cs (42)
1157var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 1209var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 1234var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 1267var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.UnsafeReleaseDll); 1300var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 1419var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 1528var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe); 1570var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe); 1751var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.UnsafeReleaseExe); 1876var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe); 1936var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe); 2004var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe); 2066var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe); 2123var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe); 2183var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe); 2262var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe); 2343var comp = CreateCompilationWithMscorlib46(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe); 2773var reference = CreateCompilation(@" 2804var reference = CreateCompilation(@" 2835var reference = CreateCompilation(@" 2866var reference = CreateCompilation(@" 2896var reference = CreateCompilation(@" 3735var compilation = CreateCompilationWithMscorlib40AndSystemCore(code, options: TestOptions.ReleaseExe); 3773var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 3824var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 3882var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 3946var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 4008var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 4087var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 4143var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 4201var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 4264var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 4337var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 4394var compilation = CreateCompilation(code, options: TestOptions.ReleaseExe); 4782var libOrig = CreateCompilation(libOrig_cs, assemblyName: "lib"); 4792var libChanged = CreateCompilation(libChanged_cs, assemblyName: "lib"); 4803var libUser = CreateCompilation(libUser_cs, references: new[] { libOrig.EmitToImageReference() }); 4828var comp = CreateCompilation(src, references: new[] { libChanged.EmitToImageReference(), libUser.EmitToImageReference() }); 4842var libOrig = CreateCompilation(libOrig_cs, assemblyName: "lib"); 4852var libChanged = CreateCompilation(libChanged_cs, assemblyName: "lib"); 4869var libUser = CreateCompilation(libUser_cs, references: new[] { libOrig.EmitToImageReference() }); 4908var comp = CreateCompilation(src, references: new[] { libChanged.EmitToImageReference(), libUser.EmitToImageReference() });
CodeGen\CodeGenInterfaceImplementation.cs (5)
358var comp1 = CreateCompilation( 363var comp2 = CreateCompilation( 368var comp3 = CreateCompilation( 2639var comp = CreateCompilationWithILAndMscorlib40(source, il, options: TestOptions.DebugDll); 2734var comp = CreateCompilationWithILAndMscorlib40(source, il, options: TestOptions.DebugDll);
CodeGen\CodeGenInterpolatedString.cs (1)
32var comp = CreateCompilation(source, options: TestOptions.ReleaseExe);
CodeGen\CodeGenIterators.cs (5)
1939var comp = CreateCompilationWithMscorlib461(parsed); 1971var comp = CreateCompilation(parsed); 2390var compilation = CreateEmptyCompilation(new[] { Parse(source, options: parseOptions), Parse(corlib, options: parseOptions) }); 2435var compilation = CreateEmptyCompilation(new[] { Parse(source, options: TestOptions.Regular.WithNoRefSafetyRulesAttribute()) }); 2499var compilation = CreateEmptyCompilation(new[] { Parse(source, options: TestOptions.Regular.WithNoRefSafetyRulesAttribute()) });
CodeGen\CodeGenLocalFunctionTests.cs (19)
92var comp = CreateCompilation(@" 136var comp = CreateCompilation(@" 206var comp = CreateCompilation(@" 240var comp = CreateCompilation(@" 332var comp = CreateCompilationWithMscorlib46(@" 373var comp = CreateCompilationWithMscorlib46(@" 759var comp = CreateCompilation(@" 1049var comp = CreateCompilationWithMscorlib46(@" 1149var comp = CreateCompilation(@" 1707var comp = CreateCompilation(src); 2085var comp = CreateCompilationWithMscorlib461AndCSharp(source, options: TestOptions.ReleaseExe); 5452var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5487var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5998var methodParam = ((CSharpCompilation)verifier.Compilation).GetMember<MethodSymbol>("Program.M").Parameters[0]; 6054var methodParam = ((CSharpCompilation)verifier.Compilation).GetMember<MethodSymbol>("Program.M").Parameters[0]; 6111var methodParam = ((CSharpCompilation)verifier.Compilation).GetMember<MethodSymbol>("Program.M").Parameters[0]; 6157var comp = CreateCompilation(source); 6303var comp = CreateCompilationWithMscorlib461AndCSharp(source, options: options); 6309var comp = CreateCompilationWithMscorlib461AndCSharp(source, options: TestOptions.ReleaseExe);
CodeGen\CodeGenLockTests.cs (17)
478var compilation = CreateCompilationWithMscorlib40AndSystemCore(text); 651var compilation = CreateCompilationWithMscorlib40AndSystemCore(text); 1362var compilation = CreateCompilationWithCorlib20(text); 1412var compilation = CreateCompilationWithCorlib20(text); 1461var compilation = CreateCompilationWithCorlib20(text); 1512var compilation = CreateCompilationWithCorlib20(text); 1564var compilation = CreateCompilationWithCorlib20(text); 1613var compilation = CreateCompilationWithCorlib20(text); 1662var compilation = CreateCompilationWithCorlib20(text); 1711var compilation = CreateCompilationWithCorlib20(text); 1743private static CSharpCompilation CreateCompilationWithCorlib20(string text) 1902var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 1923var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 1944var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 1973var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2001var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2037var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe);
CodeGen\CodeGenMscorlib.cs (19)
153var c = CreateEmptyCompilation(text, options: TestOptions.UnsafeReleaseDll); 223var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 247var compilation1 = CreateEmptyCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyName: GetUniqueName()); 257var compilation2 = CreateEmptyCompilation(source2, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), references: new[] { reference1 }); 281var compilation1 = CreateEmptyCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyName: GetUniqueName()); 298var compilation2 = CreateEmptyCompilation(source2, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), references: new[] { reference1 }); 318var compilation1 = CreateEmptyCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyName: GetUniqueName()); 335var compilation2 = CreateEmptyCompilation(source2, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), references: new[] { reference1 }); 356var compilation1 = CreateEmptyCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyName: GetUniqueName()); 374var compilation2 = CreateEmptyCompilation(source2, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), references: new[] { reference1 }); 415var compilation1 = CreateEmptyCompilation(source1, assemblyName: GetUniqueName()); 433var compilation2 = CreateEmptyCompilation(source2, new[] { reference1 }); 477var compilation1 = CreateEmptyCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyName: GetUniqueName()); 490var compilation2 = CreateEmptyCompilation(source2, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), references: new[] { reference1 }); 612var comp = CreateEmptyCompilation( 750var comp = CreateEmptyCompilation( 880var comp = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1037var comp = CreateEmptyCompilation(text, options: TestOptions.UnsafeReleaseDll); 1163var comp = CreateEmptyCompilation(text, options: TestOptions.UnsafeReleaseDll);
CodeGen\CodeGenNullCoalescingAssignmentTests.cs (7)
1496var compilation = CreateCompilation(@" 2447var compilation = CreateCompilation(source); 2579var compilation = CreateCompilation(source); 2634var compilation = CreateCompilation(source); 2683var compilation = CreateCompilation(testSource, new[] { bRef }); 2771var c1 = CreateCompilation(source); 2778var c2 = CreateCompilation(source);
CodeGen\CodeGenOperators.cs (16)
5440var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5499var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5607var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5692var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5730var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 6080var comp = CreateCompilation(source); 6112var comp = CreateCompilation(source); 6136var comp = CreateCompilation(source); 6175var comp = CreateCompilation(source); 6198var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 6301var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 6325var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 6563var comp = CreateCompilation(code, parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.Net60); 6613var comp = CreateCompilation(code, parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.Net60); 6971var comp = CreateCompilation(code, parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.Net60); 7027var comp = CreateCompilation(code, parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.Net60);
CodeGen\CodeGenOverridingAndHiding.cs (39)
1194var compilation = CreateCompilation(substitutedSource, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.NetLatest); 2243var compilation1 = CreateCompilation(source1); 2534var referencedCompilation = 2539var outerCompilation = 2654var referencedCompilation = CreateCompilation(source, assemblyName: "OHI_CodeGen_TestHideWithInaccessibleMember"); 2759var referencedCompilation = CreateCompilation(source, assemblyName: "OHI_CodeGen_TestHideSealedMember"); 2829var comp1 = CreateCompilation(text1, references: refs, assemblyName: "OHI_DeriveOverrideNewVirtualOverload001", 2833var comp = CreateCompilation(text2, references: refs, assemblyName: "OHI_DeriveOverrideNewVirtualOverload002", 2922var comp1 = CreateCompilation(text1, references: refs, assemblyName: "OHI_DeriveOverrideVirtualProp001", 2926var comp = CreateCompilation(text2, references: refs, assemblyName: "OHI_DeriveOverrideVirtualProp002", 2982var comp1 = CreateCompilation( 2987var comp2 = CreateCompilation( 3160var comp1 = CreateCompilation(text1, references: refs, assemblyName: "OHI_GenericDDeriveBaseInMetadata001", 3167var comp2 = CreateCompilation(text2, references: refs, assemblyName: "OHI_GenericDDeriveBaseInMetadata002", 3172var comp = CreateCompilation(text3, references: refs, assemblyName: "OHI_GenericDDeriveBaseInMetadata003", 3219var comp = CreateCompilation( 3371var comp1 = CreateCompilation( 3376var comp2 = CreateCompilation( 3381var comp = CreateCompilation( 3475var comp1 = CreateCompilation( 3480var comp2 = CreateCompilation( 3485var comp = CreateCompilation( 3596var comp = (CSharpCompilation)verifier.Compilation; 4180var compref = CreateCompilation(source, assemblyName: "XNoDefaultForParams_Dev10781558_Library"); 4194var cs1Compilation = CreateCSharpCompilation("CS1", 4219var cs2Compilation = CreateCSharpCompilation("CS2", 4262var cs1Compilation = CreateCSharpCompilation("CS1", 4288var cs2Compilation = CreateCSharpCompilation("CS2", 4358var A = CreateCSharpCompilation("A", @"public class A {}", 4362var B = CreateCSharpCompilation("B", @"public interface B { void M(A a); }", 4367var C = CreateCSharpCompilation("C", @"public class C { public void M(int a) { } }", 4372var D = CreateCSharpCompilation("D", @"public class D : C, B { }", 4385var A = CreateCompilation(@"public class A {}", assemblyName: "A"); 4386var B = CreateCompilation(@"public interface B { void M(A a); }", references: new[] { new CSharpCompilationReference(A) }, assemblyName: "B"); 4387var C = CreateCompilation(@"public class C { public void M(A a) { } }", references: new[] { new CSharpCompilationReference(A) }, assemblyName: "C"); 4389var D = CreateCompilation(@"public class D : C, B { }", references: new[] { new CSharpCompilationReference(B), new CSharpCompilationReference(C) }, assemblyName: "D"); 4412var cs1Compilation = CreateCSharpCompilation("CS1", 4434var cs2Compilation = CreateCSharpCompilation("CS2",
CodeGen\CodeGenReadOnlySpanConstructionTest.cs (51)
110var comp = CreateCompilation(@" 173var comp = CreateCompilationWithMscorlibAndSpan(@$" 235var comp = CreateCompilationWithMscorlibAndSpan(@" 289var comp = CreateCompilationWithMscorlibAndSpan(@" 346var comp = CreateCompilationWithMscorlibAndSpan(@" 403var comp = CreateCompilationWithMscorlibAndSpan(@" 461var comp = CreateCompilationWithMscorlibAndSpan(@" 518var comp = CreateCompilationWithMscorlibAndSpan(@" 591var comp = CreateCompilation(@" 628var comp = CreateCompilationWithMscorlibAndSpan(@" 705var comp = CreateCompilationWithMscorlibAndSpan(@" 764var compilation = CreateCompilationWithMscorlibAndSpan(csharp, compilationOptions, parseOptions); 803var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseExe); 898var compilation = CreateCompilationWithIL(csharp, ilSource); 945var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseDll); 1026var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.UnsafeReleaseDll); 1050var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.UnsafeReleaseDll); 1093var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.UnsafeReleaseDll); 1172var compilation = CreateCompilationWithMscorlibAndSpan(csharp, options: TestOptions.UnsafeReleaseDll); 1314var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseDll); 1367var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseExe); 1478var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseDll); 1515var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseDll); 1548var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseExe); 1616var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseExe); 2013var compilation = CreateCompilationWithMscorlibAndSpan(@" 2406var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseDll); 2513var compilation = CreateCompilationWithIL(csharp, ilSource); 2566var compilation = CreateCompilation(csharp, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.UnsafeReleaseDll); 2614var compilation = CreateCompilation(csharp, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.UnsafeReleaseDll); 2665var compilation = CreateCompilation(csharp, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.UnsafeReleaseDll); 2731var compilation = CreateCompilationWithMscorlibAndSpan(src); 2800var compilation = CreateCompilationWithMscorlibAndSpan(src); 2872var compilation = CreateCompilationWithMscorlibAndSpan(src); 2919var compilation = CreateCompilationWithMscorlibAndSpan(src); 2962var compilation = CreateCompilationWithMscorlibAndSpan(src); 2986var compilation = CreateCompilationWithMscorlibAndSpan(src); 3036var compilation = CreateCompilationWithMscorlibAndSpan(src); 3079var compilation = CreateCompilationWithMscorlibAndSpan(src); 3129var compilation = CreateCompilationWithMscorlibAndSpan(src); 3169var compilation = CreateCompilationWithMscorlibAndSpan(src); 3238var compilation = CreateCompilationWithMscorlibAndSpan(src); 3286var compilation = CreateCompilationWithMscorlibAndSpan(src); 3317var compilation = CreateCompilationWithMscorlibAndSpan(src); 3351var compilation = CreateCompilationWithMscorlibAndSpan(src); 3368var compilation = CreateCompilationWithMscorlibAndSpan(src); 3385var compilation = CreateCompilation(src, targetFramework: TargetFramework.Net80); 3410var compilation = CreateCompilationWithMscorlibAndSpan(src); 3433var compilation = CreateCompilationWithMscorlibAndSpan(src); 3457var comp = CreateCompilationWithMscorlibAndSpan($$""" 3527var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseDll);
CodeGen\CodeGenReadonlyStructTests.cs (21)
107var comp1 = CreateCompilation(text1, assemblyName: "A"); 325var comp1 = CreateCompilation(text1, assemblyName: "A"); 638var comp = CreateCompilation(text); 710var comp = CreateCompilation(text); 824var comp = CreateCompilation(text, parseOptions: TestOptions.Regular); 909var clientComp = CreateCompilation("", references: new[] { comp.EmitToImageReference() }); 995var comp1 = CreateCompilation(text1, assemblyName: "A"); 998var comp = CreateCompilation("//NO CODE HERE", new[] { ref1 }, parseOptions: TestOptions.Regular); 1076var comp = CreateCompilationWithMscorlibAndSpan(@" 1098var comp = CreateCompilationWithMscorlibAndSpan(@" 1130var comp = CreateCompilationWithMscorlibAndSpan(@" 1188var comp = CreateCompilationWithMscorlibAndSpan(@" 1221var comp = CreateCompilationWithMscorlibAndSpan(@" 1274var comp = CreateCompilationWithMscorlibAndSpan(@" 1304var comp = CreateCompilationWithMscorlibAndSpan(@" 1557var externalComp = CreateCompilation(external); 1561var comp = CreateCompilation("", references: new[] { externalComp.EmitToImageReference() }); 1564var comp2 = CreateCompilation("", references: new[] { externalComp.ToMetadataReference() }); 1567void verify(CSharpCompilation comp) 1673var comp = CreateCompilation("", references: new[] { ilRef }); 2581var type = ((CSharpCompilation)verifier.Compilation).GetMember<NamedTypeSymbol>("S");
CodeGen\CodeGenRefConditionalOperatorTests.cs (15)
529var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 574var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 601var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 632var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 666var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_1); 696var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 727var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 763var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 800var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 947var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 972var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 1198var comp = CreateCompilationWithMscorlib461(source, references: new[] { SystemRuntimeFacadeRef, ValueTupleRef }, options: TestOptions.ReleaseExe); 1267var comp = CreateCompilation(code, options: options); 1354var comp = CreateCompilation(code, options: options); 2293var comp = CreateCompilation(source);
CodeGen\CodeGenRefLocalTests.cs (11)
515var comp = CreateCompilation(@" 4003var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 4027var comp = CreateCompilation(text); 4060var comp = CreateCompilation(text); 4098var comp = CreateCompilation(text); 4140var c = CreateCompilation(source); 4241var comp = CreateCompilation(code, options: options); 4310var comp = CreateCompilationWithIL(code, unsafeAsPointerIl, options: options); 4375var comp = CreateCompilation(code, options: options); 4427var comp = CreateCompilation(code, options: options); 4483var comp = CreateCompilation(code, options: options);
CodeGen\CodeGenRefOutTests.cs (8)
350var compilation = CreateCompilationWithMscorlib40AndSystemCore(code, options: TestOptions.ReleaseExe); 412var compilation = CreateCompilationWithMscorlib40AndSystemCore(code, options: TestOptions.ReleaseExe); 474var compilation = CreateCompilationWithMscorlib40AndSystemCore(code, options: TestOptions.ReleaseExe); 542var comp = CreateCompilation(code, options: options); 629var comp = CreateCompilation(code, options: options); 691var comp = CreateCompilation(code, options: options); 777var comp = CreateCompilation(code, options: options); 829var comp = CreateCompilation(code, options: options);
CodeGen\CodeGenRefReadonlyReturnTests.cs (14)
502var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 542var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 588var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 632var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 688var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.UnsafeReleaseDll); 746var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 973var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, parseOptions: TestOptions.Regular10); 1017var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 1044var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 1074var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 1100var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 1124var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 1151var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 1179var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef });
CodeGen\CodeGenRefReturnTests.cs (10)
2304var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 2339var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 2381var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 2402var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 2431var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 2480var compilation = CreateCompilation("", options: TestOptions.DebugDll, references: new[] { ref1 }); 2520var comp = CreateCompilation(text, options: TestOptions.ReleaseDll); 2553var comp = CreateCompilation(text, options: TestOptions.ReleaseDll); 2967var comp = CreateCompilationWithMscorlib461AndCSharp(source, options: TestOptions.ReleaseExe); 3080var comp = CreateCompilationWithMscorlib461AndCSharp(source, options: TestOptions.ReleaseExe);
CodeGen\CodeGenScriptTests.cs (38)
115var compilation = CreateCompilationWithMscorlib461( 140var compilation = CreateCompilationWithMscorlib461( 171var compilation = CreateCompilationWithMscorlib461( 199var compilation = CreateCompilationWithMscorlib461( 212var s0 = CreateSubmission("var x = new { a = 1 }; "); 213var sx = CreateSubmission("var y = new { b = 2 }; ", previous: s0); 214var s1 = CreateSubmission("var y = new { b = new { a = 3 } };", previous: s0); 215var s2 = CreateSubmission("x = y.b; ", previous: s1); 238var s0 = CreateSubmission("var i = 1; dynamic d = null; d.m(ref i);", references); 239var sx = CreateSubmission("var i = 1; dynamic d = null; d.m(ref i, ref i);", references, previous: s0); 240var s1 = CreateSubmission("var i = 1; dynamic d = null; d.m(out i);", references, previous: s0); 259var s0 = CreateSubmission("int a = 1;"); 260var s11 = CreateSubmission("a + 1", previous: s0); 261var s12 = CreateSubmission("a + 2", previous: s0); 270var c0 = CreateSubmission(@" 277var c1 = CreateSubmission(@" 292var c0 = CreateSubmission(@" 299var c1 = CreateSubmission(@" 314var c0 = CreateSubmission(@" 321var c1 = CreateSubmission(@" 336var c0 = CreateSubmission(@" 343var c1 = CreateSubmission(@" 358var c0 = CreateSubmission(@" 375var c0 = CreateSubmission(@" 382var c1 = CreateSubmission(@" 397var c0 = CreateSubmission(@" 407var c1 = CreateSubmission(@" 422var c0 = CreateSubmission(@" 442var c0 = CreateSubmission(@" 464var c0 = CreateSubmission(@" 477var s0 = CreateSubmission("int Goo() { return 2;}"); 478var s1 = CreateSubmission("(4 + 5) * Goo()", previous: s0); 496var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe); 553var s0 = CSharpCompilation.CreateScriptCompilation( 603var compilation = CreateCompilationWithMscorlib40(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe); 638var compilation = CreateCompilationWithMscorlib461( 648var s = CreateSubmission(test);
CodeGen\CodeGenShortCircuitOperatorTests.cs (21)
2755var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 2824var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 2905var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 2975var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 3058var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 3141var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 3373var comp = CreateCompilationWithMscorlib461(source, references: new[] { CSharpRef }); 3422var comp = CreateCompilationWithMscorlib461(source, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe); 4777var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 5357var compilation = CreateCompilation(source); 5487var compilation = CreateCompilation(source); 5616var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 5753var compilation = CreateCompilation(source); 5862var compilation = CreateCompilationWithMscorlib461( 6191var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 6228var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 6271var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 6307var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 6350var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 6385var c = CreateCompilationWithMscorlib461(source, new[] { SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929, CSharpRef }, TestOptions.ReleaseExe); 7548var compilation = CreateCompilation(source);
CodeGen\CodeGenStackAllocInitializerTests.cs (4)
203var comp = CreateCompilationWithMscorlibAndSpan(@" 849var comp = CreateCompilation(@" 1024var comp = CreateCompilation(@" 1526var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70);
CodeGen\CodeGenTests.cs (35)
38var comp = CreateCompilation(src, parseOptions: parseOptions, options: options); 476var compilation = CreateEmptyCompilation(tree, [Net461.References.mscorlib], TestOptions.ReleaseExe, assemblyName: "Test"); 534var compilation = CreateCompilationWithILAndMscorlib40(source, il, TargetFramework.Mscorlib461, options: TestOptions.ReleaseDll); 608var compilation = CreateCompilationWithILAndMscorlib40(source, il, TargetFramework.Mscorlib461, options: TestOptions.DebugDll); 867var compilation = CreateCompilationWithILAndMscorlib40(source, il, TargetFramework.Mscorlib461, options: TestOptions.ReleaseExe); 4460var comp = CreateCompilation(@" 7009var compilation = CreateCompilationWithMscorlib461(source: source, options: TestOptions.ReleaseExe.WithModuleName("MODULE")); 10448var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10793var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 10913var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 10993var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 11067var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 11786var compilation1 = CreateCompilation(source1); 13079var comp = CreateCompilationWithILAndMscorlib40("", il); 13270var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithConcurrentBuild(false)); 13477var reference = CreateCompilation(@" 13509var comp = CreateCompilation(code, references: new[] { reference.ToMetadataReference() }); 13579var comp = CreateCompilation(code, references: new[] { reference }); 13612var compRelease = CreateCompilation(source, options: TestOptions.ReleaseExe); 13613var compDebug = CreateCompilation(source, options: TestOptions.DebugExe); 13656var comp = CreateCompilation(source, options: TestOptions.DebugExe); 14564var compilation = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 14598var compilation = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 14634var compilation = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 14842var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 14868var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 16289var comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.UnsafeReleaseExe); 16311CSharpCompilation comp; 16388var comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseExe); 16481var comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseExe); 16537var comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseExe); 16602var comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseExe); 16746var comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.UnsafeReleaseExe); 16770var comp = CreateCompilationWithMscorlibAndSpan(source, TestOptions.UnsafeReleaseExe); 17311var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe);
CodeGen\CodeGenTryFinally.cs (2)
4021var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 4053var comp = CreateCompilation(source, options: TestOptions.ReleaseDll);
CodeGen\CodeGenTupleEqualityTests.cs (114)
31var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_2); 66var comp = CreateCompilation(source, options: TestOptions.DebugExe, assemblyName: name); 82var comp = CreateCompilation(source); 103var comp = CreateCompilation(source); 124var comp = CreateCompilation(source); 143var comp = CreateCompilationWithMscorlib40(source); 172var comp = CreateCompilation(source); 751var comp = CreateCompilation(source); 785var comp = CreateCompilation(source, options: TestOptions.DebugExe); 830var comp = CreateCompilation(source, options: TestOptions.DebugExe); 847var comp = CreateCompilation(source, options: TestOptions.DebugExe); 895var comp = CreateCompilation(source, options: TestOptions.DebugExe); 944var comp = CreateCompilation(source, options: TestOptions.DebugExe); 994var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1048var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1082var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1114var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1145var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1177var comp = CreateCompilation(source); 1205var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1234var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1259var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1281var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1305var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1335var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1376var comp = CreateCompilation(source); 1437var comp = CreateCompilation(source); 1489var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1550var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1587var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1612var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1649var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1669static void verify(CSharpCompilation comp, bool inferDelegate) 1741var comp = CreateCompilation(source); 1763var comp = CreateCompilation(source); 1806var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 1822var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 1840var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 1860var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 1893var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 1911var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 1943var comp = CreateCompilation(source); 1971var comp = CreateCompilation(source); 1995var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2058var comp = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe); 2098var comp = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe); 2154var comp = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe); 2175var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2219var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 2266var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 2297var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2320var comp = CreateCompilation(source); 2414var comp = CreateCompilation(source.Replace("EXPRESSION", expression), options: TestOptions.DebugExe); 2502var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2548var comp = CreateCompilation(source); 2628var comp = CreateEmptyCompilation(source); 2732var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2819var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2858var comp = CreateCompilation(source); 2891var comp = CreateCompilation(source); 2917var comp = CreateCompilation(source); 2944var comp = CreateCompilation(source); 2983var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3013var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3032var comp = CreateCompilation(source); 3057var comp = CreateCompilation(source); 3085var comp = CreateCompilation(source); 3110var comp = CreateCompilation(source); 3159var comp = CreateCompilation(source); 3194var comp = CreateCompilation(source); 3234var comp = CreateCompilation(source); 3271var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3356var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3391var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3426var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3642var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3677var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3776var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3801var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3904var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3997var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4075var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4116var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4177var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4231var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4261var comp = CreateCompilation(source); 4304var comp = CreateCompilation(source); 4333var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4381var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4477var comp = CreateCompilation(source.Replace("REPLACE", expression), 4581var comp = CreateCompilation(source.Replace("REPLACE", expression), 4671var comp = CreateCompilation(source.Replace("REPLACE", expression), options: TestOptions.DebugExe); 4741var comp = CreateCompilation(source.Replace("REPLACE", expression)); 4797var comp = CreateCompilation(source); 4835var comp = CreateCompilation(source); 4933var comp = CreateCompilation(source.Replace("REPLACE", expression)); 4978var comp = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugExe); 4999var comp = CreateCompilation(source); 5045var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 5085var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 5107var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5150var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5220var comp = CreateCompilation(source); 5244var comp = CreateCompilation(source); 5266var comp = CreateCompilation(source); 5296var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5316var comp = CreateCompilation(source); 5343var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5371var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5392var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5418var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5439var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 5502var comp = CreateCompilation(source, options: TestOptions.DebugExe); 5558var comp = CreateCompilation(source, options: TestOptions.DebugExe);
CodeGen\CodeGenTupleTest.cs (624)
229var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 267var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 294var comp = CreateCompilation(src); 331var comp = CreateCompilation(src); 349var comp1 = CreateCompilation(src1); 352var comp2 = CreateCompilation(src2, 356var comp3 = CreateCompilation(src2, 404var comp1 = CreateCompilationWithMscorlib40(src1, references: s_valueTupleRefs); 407var comp2 = CreateCompilationWithMscorlib40(src2, 411var comp3 = CreateCompilationWithMscorlib40(src2, 419var comp = CreateCompilation(@" 590var comp = CreateCompilation(@" 772var comp = CreateCompilationWithILAndMscorlib40("", 868var comp = CreateCompilationWithILAndMscorlib40("", 966var comp = CreateCompilationWithILAndMscorlib40("", 1068var comp = CreateCompilation(source); 1095var comp = CreateCompilation(source); 1126var comp = CreateCompilation(source); 1171var comp = CreateCompilation(source); 1601var comp = CreateCompilation(tree); 1682var comp1 = CreateCompilationWithMscorlib40(source2 + source1, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, 1687var compLib = CreateCompilationWithMscorlib40(source1, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, 1691var comp2 = CreateCompilationWithMscorlib40(source2, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef, compLibCompilationRef }, 1696var comp3 = CreateCompilationWithMscorlib40(source2, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef, compLib.EmitToImageReference() }, 2940var comp = CreateCompilationWithMscorlib40(source); 2968var comp = CreateCompilationWithMscorlib40(source, assemblyName: "comp"); 2992var comp = CreateCompilation(source); 3020var comp = CreateCompilation(source); 3050var comp = CreateCompilation(source); 3097var comp = CreateCompilation(source); 3121var comp = CreateCompilation(source); 3157var comp = CreateCompilation(source); 3215var compilation = sourceModule.DeclaringCompilation; 3248var compilation = sourceModule.DeclaringCompilation; 3335var comp = CreateCompilationWithMscorlib40(source); 3414var comp = CreateCompilationWithMscorlib40(source); 3461var compilation = sourceModule.DeclaringCompilation; 3632var compilation = sourceModule.DeclaringCompilation; 3683var compilation = sourceModule.DeclaringCompilation; 3732var comp = CreateCompilationWithMscorlib40(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, parseOptions: TestOptions.Regular7); 3765var missingComp = CreateCompilation(missing_cs, assemblyName: "UseSiteDiagnosticOnTupleField_missingComp"); 3768var libComp = CreateCompilationWithMscorlib40(lib_cs, 3772var comp7 = CreateCompilationWithMscorlib40(source_cs, 3784var comp7_1 = CreateCompilationWithMscorlib40(source_cs, assemblyName: "UseSiteDiagnosticOnTupleField_comp7_1", 3819var comp7 = CreateCompilation(source_cs, parseOptions: TestOptions.Regular, assemblyName: "UseSiteDiagnosticOnTupleField2_comp7"); 3826var comp7_1 = CreateCompilation(source_cs, parseOptions: TestOptions.Regular7_1, assemblyName: "UseSiteDiagnosticOnTupleField2_comp7_1"); 3858var comp = CreateCompilation(source, targetFramework: TargetFramework.NetFramework, parseOptions: TestOptions.Regular7); 3884var comp = CreateCompilationWithMscorlib40(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular7_1); 3929var compilation = sourceModule.DeclaringCompilation; 3971var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1)); 4019var compilation = sourceModule.DeclaringCompilation; 4077var comp7 = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 4105var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7), 4151var compilation = sourceModule.DeclaringCompilation; 4225var comp1 = CreateCompilation(source1); 4227var comp2 = CreateCompilation(source2); 4272var comp1 = CreateCompilation(source1); 4274var comp2 = CreateCompilation(source2); 4276var comp = CreateCompilation(source, references: new[] { new CSharpCompilationReference(comp1), new CSharpCompilationReference(comp2) }, options: TestOptions.ReleaseExe); 4316var comp1 = CreateCompilationWithMscorlib40(trivial2uple, assemblyName: "comp1"); 4317var comp2 = CreateCompilationWithMscorlib40(trivial2uple, assemblyName: "comp2"); 4319var comp = CreateCompilationWithMscorlib40(source, references: new[] { new CSharpCompilationReference(comp1), new CSharpCompilationReference(comp2) }); 4339var comp1 = CreateCompilationWithMscorlib40(trivial2uple, assemblyName: "comp1"); 4340var comp2 = CreateCompilationWithMscorlib40(trivial2uple, assemblyName: "comp2"); 4342var comp = CreateCompilationWithMscorlib40(source, references: new[] { new CSharpCompilationReference(comp1), new CSharpCompilationReference(comp2) }); 4362var comp1 = CreateCompilationWithMscorlib40(trivial2uple, assemblyName: "comp1"); 4363var comp2 = CreateCompilationWithMscorlib40(trivial2uple, assemblyName: "comp2"); 4365var comp = CreateCompilationWithMscorlib40(source, 4422var comp1 = CreateCompilationWithMscorlib40(source1); 4424var comp2 = CreateCompilationWithMscorlib40(source2); 4460var comp = CreateCompilation(source, assemblyName: "comp"); 4568var comp = CreateCompilationWithMscorlib40(source, assemblyName: "comp"); 4662var comp = CreateCompilation(source, assemblyName: "comp"); 4701var comp = CreateCompilation(source, assemblyName: "comp"); 4830var comp = CreateCompilation(source); 4946var comp = CreateCompilation(source); 4976var comp = CreateCompilation(source); 5003var comp = CreateCompilation(source); 5030var comp = CreateCompilation(source); 5066var comp = CreateCompilation(source); 5110var comp = CreateCompilation(source); 5148var comp = CreateCompilation(source); 5192var comp = CreateCompilation(source); 5263var comp = CreateCompilation(source); 5438var comp = CreateCompilationWithMscorlib40(source); 5470var comp = CreateCompilation(new[] { tree }); 5507var comp1 = CreateCompilationWithMscorlib40AndSystemCore(source1, assemblyName: "comp1"); 5509var comp2 = CreateCompilationWithMscorlib40AndSystemCore(source2, assemblyName: "comp2"); 5523var comp = CreateCompilationWithMscorlib40(source, references: new[] { comp1.ToMetadataReference(), comp2.ToMetadataReference() }); 5608var comp = CreateCompilation(source, references: new[] { CSharpRef }); 5788var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef }); // no ValueTuple 5807var tupleComp = CreateCompilationWithMscorlib40(@" 5814var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef, tupleComp.ToMetadataReference() }); 5838var tupleComp = CreateCompilationWithMscorlib40(@" 5851var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef, tupleComp.ToMetadataReference() }); 5867var tupleComp = CreateCompilationWithMscorlib40(trivial2uple); 5868var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef, tupleComp.ToMetadataReference() }); 5902var tupleComp = CreateCompilation(trivial2uple); 5903var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef, tupleComp.ToMetadataReference() }); 5937var tupleComp = CreateCompilation(trivial2uple_withoutFields); 5938var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef, tupleComp.EmitToImageReference() }); 5946var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef }); // no ValueTuple 5967var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef }); // no ValueTuple 5986var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef }); // no ValueTuple 6005var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef }); // no ValueTuple 6023var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef }); // no ValueTuple 6048var tupleComp = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 6049var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef, tupleComp.ToMetadataReference() }); 6075var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef }); // no ValueTuple 6100var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef }); // no ValueTuple 6125var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef }); // no ValueTuple 6151var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef }); // no ValueTuple 6183var tupleComp = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 6184var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef, tupleComp.ToMetadataReference() }); 6208var comp = (Compilation)CSharpCompilation.Create("test", references: new[] { MscorlibRef, TestReferences.SymbolsTests.netModule.netModule1 }); 6268var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef }); 6290var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef }); 6313var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef }); 6330var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef }); 6338var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef }); // no ValueTuple 6361var tupleComp = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 6362var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef, tupleComp.ToMetadataReference() }); 6380var tupleComp = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 6381var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef, tupleComp.ToMetadataReference() }); 6411var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef }); // no ValueTuple 6427var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef }); // no ValueTuple 6443var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef }); // no ValueTuple 6458var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef }); // no ValueTuple 6478var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef }); // no ValueTuple 6498var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef }); // no ValueTuple 6519var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef }); // no ValueTuple 6540var tupleComp = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 6541var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef, tupleComp.ToMetadataReference() }); 6558var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef }); 6583var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef }); 6794var comp = CreateCompilation(source); 6933var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef }); 6961var comp = CreateCompilation(source); 7491var comp = CreateCompilation(source, options: TestOptions.DebugExe); 7524var comp = CreateCompilation(source, options: TestOptions.DebugExe); 7561var comp = CreateCompilation(source, options: TestOptions.DebugExe); 7618var comp = CreateCompilation(source, options: TestOptions.DebugExe); 8288var comp = CreateCompilation(tree); 8319var comp = CreateCompilation(tree); 8374var comp = CreateCompilation(tree); 8403var comp = CreateCompilation(tree); 8432var comp = CreateCompilation(tree); 8480var comp = CreateCompilation(tree); 8514var comp = CreateCompilation(tree); 8547var comp = CreateCompilation(tree); 8576var comp = CreateCompilation(tree); 8623var comp = CreateCompilation(tree); 8658var comp = CreateCompilation(tree); 8687var comp = CreateCompilation(tree); 8716var comp = CreateCompilation(tree); 8746var comp = CreateCompilation(tree); 8801var comp = CreateCompilation(tree); 8831var comp = CreateCompilation(tree); 8890var comp = CreateCompilation(tree, options: TestOptions.ReleaseExe); 8937var comp = CreateCompilation(tree, options: TestOptions.ReleaseExe); 9008var comp = CreateCompilation(tree, options: TestOptions.ReleaseExe); 9060var comp = CreateCompilation(tree, 9137var comp = CreateCompilation(tree, options: TestOptions.ReleaseExe); 9218var comp = CreateCompilation(tree, options: TestOptions.ReleaseExe); 9301var comp = CreateCompilation(tree, options: TestOptions.ReleaseExe); 9355var comp = CreateCompilation(tree, 9808var comp = CreateCompilation(source); 9845var comp = CreateCompilation(source, references: new[] { CSharpRef }); 9900var comp = CreateCompilation(source, references: new[] { CSharpRef }); 9942var comp = CreateCompilation(source); 9988var comp = CreateCompilation(source, references: new[] { CSharpRef }); 10027var comp = CreateCompilation(source, references: new[] { CSharpRef }); 10054var comp = CreateCompilation(source, references: new[] { CSharpRef }); 10093var comp = CreateCompilationWithMscorlib40(source, references: s_valueTupleRefs); 10127var comp = CreateCompilation(source); 10234var comp = CreateCompilation(source); 10266var comp = CreateCompilation(source); 10362var comp = CreateCompilationWithMscorlib461AndCSharp(source); 10392var comp = CreateCompilationWithMscorlib461AndCSharp(source, references: s_valueTupleRefs, 10443var comp = CreateCompilationWithMscorlib461AndCSharp(source); 10484var comp = CreateCompilationWithMscorlib461AndCSharp(source); 10522var comp = CreateCompilationWithMscorlib461AndCSharp(source); 10595var comp = CreateCompilationWithMscorlib461AndCSharp(source); 10641var comp = CreateCompilationWithMscorlib461AndCSharp(source, references: s_valueTupleRefs, 10698var comp = CreateCompilationWithMscorlib40(source); 10737var comp = CreateCompilationWithMscorlib40(source); 10757var comp = CreateCompilation(source); 10914var comp = CreateCompilation(source); 10941var comp = CreateCompilation(source, parseOptions: TestOptions.Regular6); 11025var c = ((CSharpCompilation)comp.Compilation).GetTypeByMetadataName("C"); 11346var c = ((CSharpCompilation)comp.Compilation).GetTypeByMetadataName("C"); 11738var c = ((CSharpCompilation)comp.Compilation).GetTypeByMetadataName("C"); 11886var c = ((CSharpCompilation)comp.Compilation).GetTypeByMetadataName("C"); 12058var comp = CreateCompilation(source); 12170var c = ((CSharpCompilation)comp.Compilation).GetTypeByMetadataName("C"); 12343var comp = CreateCompilation(source); 12429var comp = CreateCompilation(source); 12532var comp = CreateCompilation(source); 12689var c = (CSharpCompilation)comp.Compilation; 12919var comp = CreateCompilationWithMscorlib40(source); 12998var libComp = CreateCompilationWithMscorlib40(lib_cs); 13001var comp = CreateCompilationWithMscorlib40(source, references: new[] { libComp.EmitToImageReference() }); 13133var comp = CreateCompilation(source); 13295var comp = CreateCompilationWithMscorlib40(source); 13339var comp = CreateCompilation(source, assemblyName: "test"); 13371var comp = CreateCompilation(source, assemblyName: "test"); 13402var comp = CreateCompilationWithMscorlib40(source); 13420var comp = CreateCompilationWithMscorlib40(source, assemblyName: "test"); 13441var comp = CreateCompilationWithMscorlib40(source, assemblyName: "test"); 13519var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 13582var comp = CreateCompilation(source); 13907var comp1 = CreateCompilationWithMscorlib40(source2 + source1, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, 13912var comp2 = CreateCompilationWithMscorlib40(source2, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, 13916var comp3 = CreateCompilationWithMscorlib461(source1, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef, comp2CompilationRef }, 13922var comp4 = CreateCompilationWithMscorlib40(source1, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef, comp2.EmitToImageReference() }, 13927private void UnifyUnderlyingWithTuple_01_AssertCompilation(CSharpCompilation comp) 13970var c = (CSharpCompilation)comp.Compilation; 14026var comp = CreateCompilation(source); 14072var comp1 = CreateCompilationWithMscorlib40(source2 + source1, references: s_valueTupleRefs, 14077var comp2 = CreateCompilationWithMscorlib40(source2, references: s_valueTupleRefs, 14081var comp3 = CreateCompilationWithMscorlib461(source1, references: (new[] { comp2CompilationRef }).Concat(s_valueTupleRefs), 14087var comp4 = CreateCompilationWithMscorlib40(source1, references: (new[] { comp2.EmitToImageReference() }).Concat(s_valueTupleRefs), 14091void unifyUnderlyingWithTuple_04_AssertCompilation(CSharpCompilation comp) 14241var c = (CSharpCompilation)comp.Compilation; 14499var comp1 = CreateCompilationWithMscorlib40(source1, 14504var comp2 = CreateCompilationWithMscorlib40(source2, references: new[] { comp1.ToMetadataReference() }, 14769var lib = CreateCompilationWithMscorlib40(tuple, options: TestOptions.ReleaseDll); 14772var consumer1 = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseExe, references: new[] { lib.ToMetadataReference() }); 14775var consumer2 = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseExe, references: new[] { lib.EmitToImageReference() }); 15030var lib = CreateCompilationWithMscorlib40(tuple, options: TestOptions.ReleaseDll); 15033var consumer1 = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseExe, references: new[] { lib.ToMetadataReference() }); 15036var consumer2 = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseExe, references: new[] { lib.EmitToImageReference() }); 15416var lib = CreateCompilationWithMscorlib46(tuple, options: TestOptions.ReleaseDll); 15419var consumer1 = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseExe, references: new[] { lib.ToMetadataReference() }); 15422var consumer2 = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseExe, references: new[] { lib.EmitToImageReference() }); 15677var lib = CreateCompilationWithMscorlib46(tuple, options: TestOptions.ReleaseDll); 15680var consumer1 = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseExe, references: new[] { lib.ToMetadataReference() }); 15683var consumer2 = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseExe, references: new[] { lib.EmitToImageReference() }); 15787var c = ((CSharpCompilation)comp.Compilation).GetTypeByMetadataName("C"); 16014var c = ((CSharpCompilation)comp.Compilation).GetTypeByMetadataName("C"); 16148var comp = CreateCompilation(source); 16169var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 16198var comp = CreateCompilation(source); 16219var comp = CreateCompilation(source); 16243var comp = CreateCompilation(source); 16269var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 16300var comp = CreateCompilation(source); 16326var comp = CreateCompilation(source); 16349var comp = CreateCompilation(source); 16424var comp = CreateCompilation(source, references: new[] { SystemRef }); 16515var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 16530var comp = CreateCompilation(source); 16563var comp = CreateCompilationWithMscorlib40(new[] { tree }); 16600var comp = CreateCompilationWithMscorlib40(new[] { tree }); 16727var comp = CreateCompilation(source); 16764var libComp = CreateCompilation(lib_cs, assemblyName: "lib"); 16767var comp1 = CreateCompilation(source, references: new[] { libComp.ToMetadataReference() }); 16770var comp2 = CreateCompilation(source, references: new[] { libComp.EmitToImageReference() }); 16788var comp1 = CreateCompilationWithMscorlib40(trivial2uple, assemblyName: "comp1"); 16789var comp2 = CreateCompilationWithMscorlib40(trivial2uple, assemblyName: "comp2"); 16791var comp = CreateCompilationWithMscorlib40(source, 16838var comp1 = CreateCompilationWithMscorlib40AndSystemCore(source1, assemblyName: "comp1"); 16840var comp2 = CreateCompilationWithMscorlib40AndSystemCore(source2, assemblyName: "comp2"); 16853var comp = CreateCompilationWithMscorlib40(source3, 16910var comp1 = CreateCompilationWithMscorlib40AndSystemCore(source1, assemblyName: "comp1"); 16912var comp2 = CreateCompilationWithMscorlib40AndSystemCore(source2, assemblyName: "comp2"); 16925var comp = CreateCompilationWithMscorlib40(source3, 16999var comp1 = CreateCompilationWithMscorlib40AndSystemCore(source1, 17003var comp2 = CreateCompilationWithMscorlib40AndSystemCore(source2, 17022var comp = CreateCompilationWithMscorlib40(source3, 17105var comp1 = CreateCompilationWithMscorlib40AndSystemCore(source1, assemblyName: "comp1"); 17107var comp2 = CreateCompilationWithMscorlib40AndSystemCore(source2, assemblyName: "comp2"); 17123var comp = CreateCompilationWithMscorlib46(source, 17160var comp1 = CreateCompilationWithMscorlib40AndSystemCore(source1, assemblyName: "comp1"); 17162var comp2 = CreateCompilationWithMscorlib40AndSystemCore(source2, assemblyName: "comp2"); 17177var comp = CreateCompilation(source, 17206var comp = CreateCompilation(tree); 17267var comp = CreateCompilation(tree); 17326var comp = CreateCompilation(tree); 17365var comp = CreateCompilation(tree); 17397var comp = CreateCompilation(tree); 17430var comp = CreateCompilation(tree); 17465var tupleComp = CreateCompilationWithMscorlib40( 17957var comp = CreateCompilation(source, 18121var comp = CreateCompilation(source); 18172var comp = CreateCompilation(source); 18211var comp = CreateCompilation(source, assemblyName: "ImplicitConversions06Err"); 18251var comp = CreateCompilation(source, assemblyName: "ImplicitConversions06Err"); 18662var comp = CreateCompilation(source, assemblyName: "ImplicitConversions06Err"); 18823var comp = CreateCompilation(source); 18840var tupleComp = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 18841var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef, tupleComp.ToMetadataReference() }); 18858var tupleComp = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 18859var comp = (Compilation)CSharpCompilation.Create("test", references: new[] { MscorlibRef, tupleComp.ToMetadataReference() }); 18878var tupleComp = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 18879var comp = (Compilation)CSharpCompilation.Create("test", references: new[] { MscorlibRef, tupleComp.ToMetadataReference() }); 18901var tupleComp = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 18902var comp = CSharpCompilation.Create("test", references: new[] { MscorlibRef, tupleComp.ToMetadataReference() }); 18918var tupleComp = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 18919var comp = (Compilation)CSharpCompilation.Create("test", references: new[] { MscorlibRef, tupleComp.ToMetadataReference() }); 18943var tupleComp1 = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 18944var tupleComp2 = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 18945var comp = (Compilation)CSharpCompilation.Create("test", references: new[] { MscorlibRef, tupleComp1.ToMetadataReference(), tupleComp2.ToMetadataReference() }); 18968var tupleComp1 = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 18969var tupleComp2 = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 18970var comp = (Compilation)CSharpCompilation.Create("test", references: new[] { MscorlibRef, tupleComp1.ToMetadataReference(), tupleComp2.ToMetadataReference() }); 18993var tupleComp1 = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 18994var tupleComp2 = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 18995var comp = (Compilation)CSharpCompilation.Create("test", references: new[] { MscorlibRef, tupleComp1.ToMetadataReference(), tupleComp2.ToMetadataReference() }); 19019var tupleComp1 = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 19020var tupleComp2 = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 19021var comp = (Compilation)CSharpCompilation.Create("test", references: new[] { MscorlibRef, tupleComp1.ToMetadataReference(), tupleComp2.ToMetadataReference() }); 19056var tupleComp1 = CreateCompilationWithMscorlib40(trivial2uple + trivial3uple + trivialRemainingTuples); 19059var comp = (Compilation)CSharpCompilation.Create("test", syntaxTrees: new[] { tree }, references: new[] { (MetadataReference)Net40.References.mscorlib, tupleComp1.ToMetadataReference() }); 19095var tupleComp1 = CreateCompilationWithMscorlib40(trivial2uple + trivial3uple + trivialRemainingTuples); 19098var comp = (Compilation)CSharpCompilation.Create("test", syntaxTrees: new[] { tree }, references: new[] { (MetadataReference)Net40.References.mscorlib, tupleComp1.ToMetadataReference() }); 19134var tupleComp1 = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 19137var comp = (Compilation)CSharpCompilation.Create("test", syntaxTrees: new[] { tree }, references: new[] { MscorlibRef, tupleComp1.ToMetadataReference() }); 19173var tupleComp1 = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples); 19176var comp = (Compilation)CSharpCompilation.Create("test", syntaxTrees: new[] { tree }, references: new[] { MscorlibRef, tupleComp1.ToMetadataReference() }); 19217var comp = CreateCompilation(source); 19272var comp = CreateCompilation(source); 19336var comp = CreateCompilation(source); 19376var comp = CreateCompilation(source); 19416var comp = CreateCompilation(source); 19464var comp = CreateCompilation(source); 19522var comp = CreateCompilation(source); 19577var comp = CreateCompilation(source); 19598var comp = CreateCompilation(source); 19636var comp = CreateCompilation(source); 19689var comp = CreateCompilation(source); 19730var comp = CreateCompilation(source); 19765var comp1 = CreateCompilation(source1 + trivial2uple + source2); 19768var comp2 = CreateCompilationWithMscorlib461(source1 + trivial2uple); 19772var comp3 = CreateCompilationWithMscorlib46(source2, references: new[] { new CSharpCompilationReference(comp2) }); 19776var comp4 = CreateCompilationWithMscorlib461(source2, references: new[] { comp2.EmitToImageReference() }); 19803var comp = CreateCompilationWithMscorlib40(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef, SystemCoreRef }); 19851var comp = CreateCompilation(source, references: new[] { CSharpRef }); 19890var comp = CreateCompilation(source); 19926var comp = CreateCompilation(source); 19962var comp = CreateCompilation(source); 20027var comp = CreateCompilation(source); 20080var comp = CreateCompilation(source); 20114var comp = CreateCompilation(source); 20141var comp = CreateCompilation(source); 20177var comp = CreateCompilation(source); 20214var comp = CreateCompilation(source); 20254var comp = CreateCompilation(source); 20274var comp = CreateCompilation(source); 20308var comp = CreateCompilation(source); 20336var comp = CreateCompilation(source); 20541var comp = CreateCompilation(source, options: TestOptions.DebugExe); 20792var comp = CreateCompilation(source); 20837var comp = CreateCompilation(source); 20862var comp = CreateCompilation(source); 20890var comp = CreateCompilation(source); 20931var comp = CreateCompilation(source); 20979var comp = CreateCompilation(source); 21007var comp = CreateCompilation(source); 21039var comp = CreateCompilation(source); 21062var comp = CreateCompilation(source); 21085var comp = CreateCompilation(source); 21103var comp = CreateCompilation(source); 21137var comp = CreateCompilation(source); 21155var comp = CreateCompilation(source); 21186var comp = CreateCompilation(source); 21294var compMatching = CreateCompilationWithILAndMscorlib40(sourceWithMatchingNames, ilSource, 21306var compDifferent1 = CreateCompilationWithILAndMscorlib40(sourceWithDifferentNames1, ilSource, 21322var compDifferent2 = CreateCompilationWithILAndMscorlib40(sourceWithDifferentNames2, ilSource, 21345var comp = CreateCompilation(source, options: TestOptions.DebugExe); 21382var comp = CreateCompilation(source, references: new[] { CSharpRef }); 21919var comp = CreateCompilation(source, 22009var comp = CreateCompilation(source, 22061var comp = CreateCompilation(source, 22100var comp = CreateCompilation(source, 22248var comp = CreateCompilation(source); 22271var lib = CreateCompilationWithMscorlib40(lib_cs, references: s_valueTupleRefs); 22274var comp = CreateCompilationWithMscorlib40(source, references: new[] { lib.ToMetadataReference() }); 22311var lib = CreateCompilationWithMscorlib40(lib_cs, references: s_valueTupleRefs); 22314var comp = CreateCompilationWithMscorlib40(source, references: new[] { lib.ToMetadataReference() }); 22346var comp = CreateCompilationWithMscorlib40(source); 22377var comp1 = CreateCompilationWithMscorlib40AndSystemCore(source1, assemblyName: "comp1", 22379var comp2 = CreateCompilationWithMscorlib40AndSystemCore(source2, assemblyName: "comp2", 22393var comp = CreateCompilationWithMscorlib40(source, 22426var comp = CreateCompilation(source); 22479var compLib = CreateCompilationWithMscorlib40(lib_cs, options: TestOptions.ReleaseDll); 22481var comp = CreateCompilationWithMscorlib40(source, references: new[] { compLib.ToMetadataReference() }); 22541var comp = CreateCompilation(source); 22582var comp = CreateCompilation(source, assemblyName: "comp"); 22639var comp = CreateCompilation(source); 22661var comp = CreateCompilation(source); 22690var comp = CreateCompilation(source); 22713var comp1 = CreateCompilation(source); 22730var comp1 = CreateCompilation(source); 22747var comp1 = CreateCompilation(source); 22770var comp = CreateCompilation(source, assemblyName: "comp", options: TestOptions.DebugExe); 22807var libComp = CreateCompilationWithMscorlib40(libSource, assemblyName: "lib"); 22810var comp = CreateCompilationWithMscorlib40(source, assemblyName: "comp", references: new[] { libComp.EmitToImageReference() }, options: TestOptions.DebugExe); 22852var compilation = sourceModule.DeclaringCompilation; 22897var comp = CreateCompilation(source, assemblyName: "ValueTupleNotStruct", options: TestOptions.DebugExe); 22966var comp = CreateCompilation(source, assemblyName: "ValueTupleNotStruct", options: TestOptions.DebugExe); 23010var comp = CreateCompilation(source, assemblyName: "ValueTupleNotStruct", options: TestOptions.DebugExe); 23044var comp = CreateCompilation(source, assemblyName: "ValueTupleNotStruct", options: TestOptions.DebugExe); 23086var comp = CreateCompilation(source, assemblyName: "ValueTupleNotStruct", options: TestOptions.DebugExe); 23125var comp = CreateCompilation(source, assemblyName: "ValueTupleNotStruct", options: TestOptions.DebugExe); 23148var comp = CreateCompilationWithMscorlib40(source, references: [ValueTupleLegacyRef]); 23172var comp0 = CreateCompilationWithMscorlib40(source0, assemblyName: "92872377-08d1-4723-8906-a43b03e56ed3"); 23190var comp1 = CreateCompilationWithMscorlib40(source1, references: new[] { ref0 }); 23198var comp = CreateCompilationWithMscorlib40(source, references: new[] { ref1 }); 23220var comp0v1 = CreateCompilationWithMscorlib40(source0v1, assemblyName: "A", options: signedDllOptions); 23228var comp0v2 = CreateCompilationWithMscorlib40(source0v2, assemblyName: "A", options: signedDllOptions); 23235var comp1 = CreateCompilationWithMscorlib40(source1, references: new[] { ref0v1 }); 23246var comp2 = CreateCompilationWithMscorlib40(source2, references: new[] { ref1, ref0v1 }); 23254var comp = CreateCompilationWithMscorlib40(source, references: new[] { ref0v2, ref1, ref2 }); 23397var comp1 = CreateCompilation(source); 23419var libComp = CreateCompilationWithMscorlib461AndCSharp(lib, references: s_valueTupleRefs, options: TestOptions.DebugDll); 23448var m = (MethodSymbol)(((CSharpCompilation)comp.Compilation).GetTypeByMetadataName("ConsoleApplication5.C2").GetMembers("Goo").First()); 23473var libComp = CreateCompilationWithMscorlib461AndCSharp(lib, options: TestOptions.DebugDll, references: s_valueTupleRefs); 23846var comp = CreateCompilationWithMscorlib461AndCSharp(source, references: (new[] { libCompRef }).Concat(s_valueTupleRefs).ToArray(), options: TestOptions.DebugExe); 23875var libComp = CreateCompilationWithMscorlib461AndCSharp(lib, references: s_valueTupleRefs, options: TestOptions.DebugDll); 23903var m = (PropertySymbol)(((CSharpCompilation)comp.Compilation).GetTypeByMetadataName("ConsoleApplication5.C2").GetMembers("Goo").First()); 23926var compilation = CreateCompilationWithMscorlib40(source, references: [ValueTupleLegacyRef]); 23981var compilation = CreateCompilationWithMscorlib40(source, references: new[] { ValueTupleLegacyRef }); 24075var comp = CreateCompilationWithMscorlib461AndCSharp(source, references: s_valueTupleRefs, options: TestOptions.UnsafeDebugDll); 24174var compilation = CreateCompilationWithMscorlib40(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 24254var comp = CreateCompilation(source, options: TestOptions.DebugExe); 24317var comp = CreateCompilation(source, options: TestOptions.DebugExe); 24382var comp = CreateCompilation(source, options: TestOptions.DebugExe); 24454var comp = CreateCompilation(source, options: TestOptions.DebugExe); 24527var comp = CreateCompilation(source, options: TestOptions.DebugExe); 24597var comp = CreateCompilation(source, options: TestOptions.DebugExe); 24638var comp = CreateCompilation(source); 24654var comp = CreateCompilation(source); 24677var comp = CreateCompilation(source); 24700var comp = CreateCompilation(source); 24727var comp = CreateCompilation(source); 24753var comp = CreateCompilation(source); 24784var comp = CreateCompilation(source); 24812var comp = CreateCompilation(source); 24835var comp1 = CreateCompilation(source1); 24851var comp2 = CreateCompilation(source2, references: new[] { comp1.ToMetadataReference() }); 24882var comp = CreateCompilation(source); 24908var comp = CreateCompilation(source); 24934var comp = CreateCompilation(source); 24960var comp = CreateCompilation(source); 24986var comp = CreateCompilation(source); 25018var comp = CreateCompilation(source, options: TestOptions.DebugExe); 25040var comp = CreateCompilation(source); 25074var comp = CreateCompilation(source); 25187var comp = CreateCompilation(source); 25228var comp = CreateCompilation(source); 25274var comp = CreateCompilationWithMscorlib40(new[] { source, tuplelib_cs }, 25316var corlibWithoutVT = CreateEmptyCompilation(new[] { Parse(String.Format(versionTemplate, "1") + corlib_cs, options: parseOptions) }, assemblyName: "corlib"); 25320var corlibWithVT = CreateEmptyCompilation(new[] { Parse(String.Format(versionTemplate, "2") + corlib_cs + valuetuple_cs, options: parseOptions) }, assemblyName: "corlib"); 25324var libWithVT = CreateEmptyCompilation(valuetuple_cs, references: new[] { corlibWithoutVTRef }, parseOptions: parseOptions, options: TestOptions.DebugDll); 25328var comp = CSharpCompilation.Create("test", references: new[] { libWithVTRef, corlibWithVTRef }); 25333var comp2 = comp.WithOptions(comp.Options.WithTopLevelBinderFlags(BinderFlags.IgnoreCorLibraryDuplicatedTypes)); 25338var comp3 = CSharpCompilation.Create("test", references: new[] { corlibWithVTRef, libWithVTRef }) // order reversed 25345var comp4 = CreateEmptyCompilation("", references: new[] { libWithVTRef, libWithVTRef2, corlibWithoutVTRef }, parseOptions: parseOptions); 25364var comp = CreateCompilationWithMscorlib40(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 25393var comp = CreateCompilationWithMscorlib40( 25424var comp = CreateCompilationWithMscorlib40(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.DebugExe); 25443var comp = CreateCompilationWithMscorlib40(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 25464var comp = CreateCompilationWithMscorlib40(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, parseOptions: TestOptions.Regular8); 25494var comp = CreateCompilationWithMscorlib40(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 25545var comp = CreateCompilationWithMscorlib40( 25688var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 25699private static void VerifySemanticModelTypelessTupleWithNoImplicitConversion(CSharpCompilation comp) 25733var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 25759var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 25770private static void VerifySemanticModelTypelessTupleWithNoImplicitConversion2(CSharpCompilation comp) 25804var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 25830var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 25869var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 25902var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), 26216var comp = CreateCompilation(source, options: TestOptions.DebugExe); 26290var comp = CreateCompilation(source); 26323var comp = CreateCompilation(source); 26356var comp = CreateCompilation(source); 26389var comp = CreateCompilation(source); 26420var lib = CreateCompilationWithMscorlib40(lib_cs, references: s_valueTupleRefs); 26433var comp = CreateCompilationWithMscorlib40(source_cs, references: new[] { libRef }); 26445var executeComp = CreateCompilationWithMscorlib40(executable_cs, 26464var missingContainer = CreateCompilationWithMscorlib40(missingContainer_cs, references: s_valueTupleRefs); 26482var lib = CreateCompilationWithMscorlib40(lib_cs, references: new[] { missingContainerRef, SystemRuntimeFacadeRef, ValueTupleRef }); 26497var comp = CreateCompilationWithMscorlib40(source_cs, references: references); 26510var executeComp = CreateCompilationWithMscorlib40(executable_cs, 26527var missingContainer = CreateCompilationWithMscorlib40(missingContainer_cs, references: s_valueTupleRefs); 26541var lib = CreateCompilationWithMscorlib40(lib_cs, references: new[] { SystemRuntimeFacadeRef, ValueTupleRef, missingContainerRef }); 26564var comp = CreateCompilationWithMscorlib40(source_cs, references: new[] { libRef }); // missing System.ValueTuple and MissingContainer 26567var executeComp = CreateCompilationWithMscorlib40(executable_cs, 26572var comp2 = CreateCompilationWithMscorlib40(source_cs, references: new[] { libRef, missingContainerRef }); // missing System.ValueTuple 26575var executeComp2 = CreateCompilationWithMscorlib40(executable_cs, 26588var missing = CreateCompilation(missing_cs); 26606var lib = CreateCompilation(lib_cs, references: new[] { missingRef }); 26619var comp = CreateCompilation(source_cs, references: new[] { libRef }); 26631var executeComp = CreateCompilation(executable_cs, references: new[] { comp.EmitToImageReference(), libRef, missingRef }, options: TestOptions.DebugExe); 26641var comp = CreateCompilation(sourceA, assemblyName: "A"); 26669var vtLib = CreateEmptyCompilation(trivial2uple + tupleattributes_cs, references: new[] { MscorlibRef }, assemblyName: "vt"); 26681var lib = CreateEmptyCompilation(lib_cs, references: new[] { MscorlibRef, vtLib.EmitToImageReference() }); 26692var comp = CreateEmptyCompilation(client_cs, references: new[] { MscorlibRef, lib.EmitToImageReference() }); // missing reference to vt 26696var compWithMetadataReference = CreateEmptyCompilation(client_cs, references: new[] { MscorlibRef, lib.ToMetadataReference() }); // missing reference to vt 26700var fakeVtLib = CreateEmptyCompilation("", references: new[] { MscorlibRef }, assemblyName: "vt"); 26701var compWithFakeVt = CreateEmptyCompilation(client_cs, references: new[] { MscorlibRef, lib.EmitToImageReference(), fakeVtLib.EmitToImageReference() }); // reference to fake vt 26716var comp2 = CreateEmptyCompilation(client2_cs, references: new[] { MscorlibRef, lib.EmitToImageReference() }); // missing reference to vt 26727var comp2WithFakeVt = CreateEmptyCompilation(client2_cs, references: new[] { MscorlibRef, lib.EmitToImageReference(), fakeVtLib.EmitToImageReference() }); // reference to fake vt 26738void verifyTupleTypeWithErrorUnderlyingType(CSharpCompilation compilation, bool decodingSuccessful) 26771var vtLib = CreateEmptyCompilation(tuplelib_cs + tupleattributes_cs, references: new[] { MscorlibRef }, assemblyName: "vt"); 26783var lib = CreateEmptyCompilation(lib_cs, references: new[] { MscorlibRef, vtLib.EmitToImageReference() }); 26797var fakeVtLib = CreateEmptyCompilation("", references: new[] { MscorlibRef }, assemblyName: "vt"); 26798var comp = CreateEmptyCompilation(client2_cs, references: new[] { MscorlibRef, lib.EmitToImageReference() }); // missing reference to vt 26809var compWithFakeVt = CreateEmptyCompilation(client2_cs, references: new[] { MscorlibRef, lib.EmitToImageReference(), fakeVtLib.EmitToImageReference() }); // reference to fake vt 26820void verifyTupleTypeWithErrorUnderlyingType(CSharpCompilation compilation) 26835var containerLib = CreateEmptyCompilation("public class Container<T> { }", references: new[] { MscorlibRef }, assemblyName: "container"); 26847var lib = CreateEmptyCompilation(lib_cs + tuplelib_cs + tupleattributes_cs, references: new[] { MscorlibRef, containerLib.EmitToImageReference() }); 26858var comp = CreateEmptyCompilation(client_cs, references: new[] { MscorlibRef, lib.EmitToImageReference() }); // missing reference to container 26862var compWithMetadataReference = CreateEmptyCompilation(client_cs, references: new[] { MscorlibRef, lib.ToMetadataReference() }); // missing reference to container 26866var fakeContainerLib = CreateEmptyCompilation("", references: new[] { MscorlibRef }, assemblyName: "container"); 26867var compWithFakeContainer = CreateEmptyCompilation(client_cs, references: new[] { MscorlibRef, lib.EmitToImageReference(), fakeContainerLib.EmitToImageReference() }); // reference to fake container 26871void verifyTupleTypeWithErrorUnderlyingType(CSharpCompilation compilation, bool decodingSuccessful) 26910var containerLib = CreateEmptyCompilation("public class Container<T> { public class Contained<U> { } }", references: new[] { MscorlibRef }, assemblyName: "container"); 26922var lib = CreateEmptyCompilation(lib_cs + tuplelib_cs + tupleattributes_cs, references: new[] { MscorlibRef, containerLib.EmitToImageReference() }); 26933var comp = CreateEmptyCompilation(client_cs, references: new[] { MscorlibRef, lib.EmitToImageReference() }); // missing reference to container 26937var compWithMetadataReference = CreateEmptyCompilation(client_cs, references: new[] { MscorlibRef, lib.ToMetadataReference() }); // missing reference to container 26941var fakeContainerLib = CreateEmptyCompilation("", references: new[] { MscorlibRef }, assemblyName: "container"); 26942var compWithFakeContainer = CreateEmptyCompilation(client_cs, references: new[] { MscorlibRef, lib.EmitToImageReference(), fakeContainerLib.EmitToImageReference() }); // reference to fake container 26946void verifyTupleTypeWithErrorUnderlyingType(CSharpCompilation compilation, bool decodingSuccessful) 27039var comp1 = CreateCompilation(source0 + source1, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe); 27046var comp4 = CreateCompilation(source0 + source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe); 27049var comp5 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe, references: comp1Ref); 27053var comp6 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe, references: comp1ImageRef); 27057var comp7 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib46, options: TestOptions.DebugExe, references: comp1Ref); 27061static void verifyField(CSharpCompilation comp) 27123var comp1 = CreateCompilation(source0 + source1, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe); 27130var comp4 = CreateCompilation(source0 + source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe); 27133var comp5 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe, references: comp1Ref); 27137var comp6 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe, references: comp1ImageRef); 27141var comp7 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib46, options: TestOptions.DebugExe, references: comp1Ref); 27145static void verifyField(CSharpCompilation comp) 27197var comp1 = CreateCompilation(source0 + source1, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe); 27204var comp4 = CreateCompilation(source0 + source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe); 27207var comp5 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe, references: comp1Ref); 27211var comp6 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe, references: comp1ImageRef); 27215var comp7 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib46, options: TestOptions.DebugExe, references: comp1Ref); 27219static void verifyField(CSharpCompilation comp) 27275var comp1 = CreateCompilation(source0 + source1, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe); 27282var comp4 = CreateCompilation(source0 + source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe); 27285var comp5 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe, references: comp1Ref); 27289var comp6 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.DebugExe, references: comp1ImageRef); 27293var comp7 = CreateCompilation(source2, targetFramework: TargetFramework.Mscorlib46, options: TestOptions.DebugExe, references: comp1Ref); 27297static void verifyField(CSharpCompilation comp) 27336var comp1 = CreateCompilation(source0, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 27394var comp = CreateCompilation(source); 27537var comp0 = CreateCompilation(new[] { source0, source1 }, options: TestOptions.DebugDll); 27540var comp1 = CreateCompilation(source0, options: TestOptions.DebugDll); 27543var comp2 = CreateCompilation(source1, references: new[] { comp1.EmitToImageReference() }, options: TestOptions.DebugDll); 27563var comp = CreateCompilation(new[] { source }, options: TestOptions.DebugDll); 27616var compilation = CreateCompilationWithMscorlib461(source, null, TestOptions.UnsafeDebugExe); 27652var comp = CreateCompilation( 27899var comp = CreateCompilation( 27921var comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib461); 27949var comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40, assemblyName: "emptyValueTuple"); 27970var comp2 = CreateCompilation(client, references: new[] { comp.EmitToImageReference() }, targetFramework: TargetFramework.Mscorlib40); 27977var comp3 = CreateCompilation("", references: new[] { comp.ToMetadataReference() }, targetFramework: TargetFramework.Mscorlib46); 28025var comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40, assemblyName: "emptyValueTuple", parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 28059var comp2 = CreateCompilation(client, references: new[] { comp.EmitToImageReference() }, targetFramework: TargetFramework.Mscorlib40); 28092var comp = CreateCompilation(source + tupleattributes_cs, targetFramework: TargetFramework.Mscorlib40); 28155var comp = CreateCompilation(source + tupleattributes_cs, targetFramework: TargetFramework.Mscorlib40); 28186var comp = CreateCompilation(trivial2uple + trivial3uple + trivialRemainingTuples, targetFramework: TargetFramework.Mscorlib40); 28189var comp2 = CreateCompilation("", targetFramework: TargetFramework.Mscorlib46, references: new[] { comp.ToMetadataReference() }); 28300var comp = CreateCompilation(trivialRemainingTuples, targetFramework: TargetFramework.Mscorlib40); 28303var comp2 = CreateCompilation("", targetFramework: TargetFramework.Mscorlib46, references: new[] { comp.ToMetadataReference() }); 28388var comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40, assemblyName: "customValueTuple"); 28392var comp3 = CreateCompilation("", references: new[] { comp.ToMetadataReference() }, targetFramework: TargetFramework.Mscorlib46); 28483var comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40, assemblyName: "customValueTuple"); 28531var comp = CreateCompilation(source); 28549var comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib461); 28585var comp = CreateCompilation(source); 28617var comp = CreateCompilation(source); 28683var comp = CreateCompilation(source); 28802var comp = CreateCompilation(source + trivialRemainingTuples); 28987var comp = CreateCompilation("", targetFramework: TargetFramework.Minimal);
CodeGen\CodeGenUsingDeclarationTests.cs (20)
681var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe).VerifyDiagnostics(); 816var comp = CreateCompilation(source); 1162var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe).VerifyDiagnostics(); 1189var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe).VerifyDiagnostics(); 1234var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe).VerifyDiagnostics(); 1281var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe).VerifyDiagnostics(); 1317var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe).VerifyDiagnostics(); 1344var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 1375var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 1402var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 1429var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe); 1446var comp = CreateCompilation(source); 1498var comp = CreateCompilation(source); 1554var comp = CreateCompilation(source); 1609var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1668var comp = CreateCompilation(source); 1726var comp = CreateCompilation(source); 1784var comp = CreateCompilation(source); 1843var comp = CreateCompilation(source); 1874var comp = CreateCompilation(source);
CodeGen\CodeGenUsingStatementTests.cs (3)
1155var comp = CreateCompilation(source); 1237var comp = CreateCompilation(source); 1267var comp = CreateCompilation(source);
CodeGen\DestructorTests.cs (2)
669var compilation = CreateCompilationWithILAndMscorlib40("", text); 692var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll);
CodeGen\EventTests.cs (6)
620var compilation = CreateCompilation(csharpSource, new MetadataReference[] { ilAssemblyReference }, TestOptions.ReleaseExe); 646var compilation1 = CreateEmptyCompilation(source1, assemblyName: GetUniqueName(), parseOptions: parseOptions); 664var compilation2 = CreateEmptyCompilation(source2, new[] { reference1 }, parseOptions: parseOptions); 707var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 779var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 842var compilation = CreateCompilation(source, options: TestOptions.DebugDll);
CodeGen\FixedSizeBufferTests.cs (4)
571var comp2 = (CSharpCompilation)CompileAndVerify(s2, 1152var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Mscorlib40, assemblyName: "fixedBuffer"); 1155var comp3 = CreateCompilation("", references: new[] { comp.ToMetadataReference() }, targetFramework: TargetFramework.Mscorlib46);
CodeGen\ForeachTest.cs (12)
314var comp = CreateCompilationWithMscorlibAndSpan(@" 367var comp = CreateCompilationWithMscorlibAndSpan(@" 431var comp = CreateCompilationWithMscorlibAndSpan(@" 483var comp = CreateCompilation(@" 532var comp = CreateCompilationWithMscorlibAndSpan(@" 581var comp = CreateCompilationWithMscorlibAndSpan(@" 630var comp = CreateEmptyCompilation(@" 726var comp = CreateCompilationWithMscorlibAndSpan(@" 780var comp = CreateCompilationWithMscorlibAndSpan(@" 852var comp = CreateCompilationWithMscorlibAndSpan(@" 1398var comp = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.ReleaseExe); 1683var comp = CreateCompilation(source, parseOptions: TestOptions.RegularDefault.WithFeature("run-nullable-analysis", "never"));
CodeGen\GotoTest.cs (17)
932var compilation = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions: TestOptions.Script, options: TestOptions.DebugExe); 947var compilation = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions: TestOptions.Script, options: TestOptions.DebugExe); 983var compilation = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions: TestOptions.Script, options: TestOptions.DebugExe); 1000var s0 = CSharpCompilation.CreateScriptCompilation("s0.dll", SyntaxFactory.ParseSyntaxTree(source0, options: TestOptions.Script), references); 1002var s1 = CSharpCompilation.CreateScriptCompilation("s1.dll", SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.Script), references, previousScriptCompilation: s0); 1019var compilation = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions: TestOptions.Script); 1039var compilation = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions: TestOptions.Script); 1066var compilation = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions: TestOptions.Script, options: TestOptions.DebugExe); 1086var compilation = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions: TestOptions.Script, options: TestOptions.DebugExe); 1111var s0 = CSharpCompilation.CreateScriptCompilation("s0.dll", SyntaxFactory.ParseSyntaxTree(source0, options: TestOptions.Script), references); 1113var s1 = CSharpCompilation.CreateScriptCompilation("s1.dll", SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.Script), references, previousScriptCompilation: s0); 1129var compilation = CreateCompilationWithMscorlib461(sourceB, options: options, parseOptions: TestOptions.Script); 1173var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script);
CodeGen\IndexAndRangeTests.cs (47)
22var comp = CreateCompilationWithIndexAndRange( 28private static (SemanticModel model, List<ElementAccessExpressionSyntax> accesses) GetModelAndAccesses(CSharpCompilation comp) 70var comp = CreateCompilationWithIndexAndRange( 104var comp = CreateCompilationWithIndexAndRange(src); 190var comp = CreateCompilationWithIndexAndRangeAndSpan(src, TestOptions.ReleaseExe); 280var comp = CreateCompilationWithIndexAndRangeAndSpan(src, TestOptions.ReleaseExe); 358var comp = CreateCompilationWithIndexAndRangeAndSpan(src); 412var comp = CreateCompilationWithIndexAndRangeAndSpan(src, TestOptions.ReleaseExe); 509var comp = CreateCompilationWithIndex(src, options: TestOptions.ReleaseExe); 676var comp = CreateCompilationWithIndex(src, options: TestOptions.ReleaseExe); 829var comp = CreateCompilationWithIndexAndRangeAndSpanAndMemoryExtensions(src, TestOptions.ReleaseExe); 917var comp = CreateCompilationWithIndexAndRangeAndSpan(src, TestOptions.ReleaseExe); 951var comp = CreateCompilationWithIndexAndRange(src, TestOptions.ReleaseExe); 1010var comp = CreateCompilationWithIndexAndRangeAndSpan(@" 1084var comp = CreateCompilationWithIndexAndRangeAndSpanAndMemoryExtensions(@" 1169var comp = CreateCompilationWithIndexAndRangeAndSpan(@" 1578var comp = CreateCompilationWithIndexAndRange(@" 1602var comp = CreateCompilationWithIndex(@" 1815var comp = CreateCompilationWithIndexAndRangeAndSpan(@" 1883var comp = CreateCompilationWithIndex(@" 1957var comp = CreateCompilationWithIndex(source, WithNullableEnable(TestOptions.DebugExe)); 2084var comp = CreateCompilationWithIndexAndRange(@" 2120var compilation = CreateCompilationWithIndex(@" 2141var compilation = CreateCompilationWithIndex(@" 2175var compilation = CreateCompilationWithIndexAndRange(@" 2221var compilation = CreateCompilationWithIndexAndRange(@" 2242var compilation = CreateCompilationWithIndexAndRange(@" 2279var compilation = CreateCompilationWithIndexAndRange(@" 2316var compilation = CreateCompilationWithIndexAndRange(@" 2357var compilation = CreateCompilationWithIndexAndRange(@" 2377var compilation = CreateCompilationWithIndexAndRange(@" 2410var compilation = CreateCompilationWithIndexAndRange(@" 2430var compilation = CreateCompilationWithIndexAndRange(@" 2463var compilation = CreateCompilationWithIndexAndRange(@" 2482var compilation = CreateCompilationWithIndexAndRange(@" 2575var compilation = CreateCompilationWithIndexAndRange(@" 2600var compilation = CreateCompilationWithIndexAndRange(@" 2664var compilation = CreateCompilationWithIndexAndRange(@" 3150var comp = CreateCompilationWithIndexAndRangeAndSpan(@" 3209var comp = CreateCompilationWithIndexAndRangeAndSpan(@" 3284var comp = CreateCompilationWithIndexAndRangeAndSpan(@" 3744var comp = CreateCompilation(new[] { source, TestSources.Index }); 3777var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 3820var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 3853var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 3904var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }); 4235var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70);
CodeGen\IndexerTests.cs (4)
1200var comp1 = CreateCompilation(text1); 1232var comp1 = CreateCompilation(text1); 1240var comp2 = CreateCompilation(text2, references: [comp1.ToMetadataReference()]); 1260var comp1 = CreateCompilation(text1);
CodeGen\ITuplePatternTests.cs (3)
17protected CSharpCompilation CreatePatternCompilation(string source, CSharpCompilationOptions options = null) 53var compilation = CreatePatternCompilation(source); 137var compilation = CreatePatternCompilation(source);
CodeGen\ObjectAndCollectionInitializerTests.cs (5)
1386var comp = CreateCompilationWithMscorlib461AndCSharp(source, options: TestOptions.ReleaseExe); 1483var comp = CreateCompilationWithMscorlib461AndCSharp(source, options: TestOptions.ReleaseExe); 1820var comp = CreateCompilationWithMscorlib461AndCSharp(source, options: TestOptions.ReleaseExe); 3692var comp = CSharpTestBase.CreateCompilation(source, options: TestOptions.ReleaseExe); 3731var comp = CSharpTestBase.CreateCompilation(source, options: TestOptions.ReleaseExe);
CodeGen\PatternTests.cs (87)
99var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll); 122var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll); 152var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll); 200var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseDll); 235var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 333var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 401var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 502var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 634var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 771var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 832var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 857var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 893var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 932var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 968var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1008var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1055var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1106var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1141var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1179var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1223var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1282var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1339var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1399var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1471var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1535var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1598var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1657var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1712var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1773var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1840var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1904var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1973var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2038var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2173var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2267var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2404var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithRecursivePatterns); 2538var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithoutRecursivePatterns); 2612var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2646var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularWithRecursivePatterns); 2667var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularWithRecursivePatterns); 2713var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2793var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2839var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2902var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2999var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3055var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3096var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3128var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 3237var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, references: new[] { CSharpRef }); 3265var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 3295var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 3315var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll); 3384var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3550var compilation = CreateCompilation(source, options: options); 3633var compilation = CreateCompilation(source, options: options); 3705var compilation = CreateCompilation(source, options: options); 3781var compilation = CreateCompilation(source, options: options); 3992var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4030var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4058var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4094var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4121var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 4173var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 4213var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 4248var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 4329var compilation = CreateCompilation(source, options: compilationOptions); 4508var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4542var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4576var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4773var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4806var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4842var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4880var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4914var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4951var compilation = CreateCompilationWithMscorlibAndSpan(source, options: TestOptions.ReleaseExe); 4988var compilation = CreateCompilation(source); 5114var compilation = CreateCompilation(source); 5263var compilation = CreateCompilation(source); 5396var compilation = CreateCompilation(source); 5453var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5481var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5507var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularWithPatternCombinators); 5607var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularWithPatternCombinators); 5715var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularWithPatternCombinators); 5879var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularWithPatternCombinators); 6023var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularWithPatternCombinators);
CodeGen\PropertyTests.cs (1)
30var compilation = CreateCompilation(source, options: TestOptions.DebugDll);
CodeGen\SwitchTests.cs (14)
2624var compilation = base.CreateCSharpCompilation(text); 2652var compilation = base.CreateCSharpCompilation(text); 3040var comp = CSharpCompilation.Create("Name", references: new[] { reference }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 4512var comp = CreateEmptyCompilation( 7852var comp = CreateCompilation(text, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch(), 8092var comp = CreateCompilation(text, parseOptions: TestOptions.RegularPreview.WithDisableLengthBasedSwitch(), 9881var compilation = CreateCompilation(source, 9933var compilation = CreateCompilation(source, 10026var compilation = CreateCompilation(source, 10118var compilation = CreateCompilation(source, 10519var compilation = CreateCompilation(source, 10607var compilation = CreateCompilation(source, options: TestOptions.DebugExe) 10802var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9)
CodeGen\UnsafeTests.cs (32)
89var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 115var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 141var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 167var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 193var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 4272var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular7_2); 4482var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 4534var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 4581var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 4619var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 5172var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 5214var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 5253var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular7_2); 5289var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 5325var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 5361var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 5400var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 5413var missing = CreateCompilationWithMscorlib461(missing_cs, options: TestOptions.DebugDll, assemblyName: "missing"); 5424var lib = CreateCompilationWithMscorlib461(lib_cs, references: new[] { missing.EmitToImageReference() }, options: TestOptions.DebugDll); 5439var comp = CreateCompilationWithMscorlib461(source, references: new[] { lib.EmitToImageReference() }, options: TestOptions.UnsafeDebugDll); 5474var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 5502var comp = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 5619var compVerifier = CreateCompilationWithMscorlib46(text, options: TestOptions.UnsafeReleaseExe); 5793var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseExe); 9955var comp = CreateCompilation($@" 10523var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugExe); 10553var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 10624var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 10903var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 11357var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 11770var cscomp = CreateCompilationWithILAndMscorlib40(csharpSource, ilSource); 11806var compilation = CreateCompilationWithILAndMscorlib40(csharpSource, ilSource, targetFramework: TargetFramework.Mscorlib40, options: TestOptions.ReleaseExe);
Emit\BinaryCompatibility.cs (1)
69var compilation = CreateCompilationWithMscorlib46(program, references: new[] { lib1Image, clientImage }, options: TestOptions.ReleaseExe);
Emit\CompilationEmitTests.cs (159)
47var compilation = CreateCompilation(source); 80var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("abc.X")); 122var compilation = CreateCompilation(source); 139CSharpCompilation comp = CreateCompilation(@" 183CSharpCompilation comp = CreateCompilation(@" 235CSharpCompilation compUsing = CreateCompilation(srcUsing, new[] { MetadataReference.CreateFromImage(mdOnlyImage.AsImmutableOrNull()) }); 250CSharpCompilation comp = CreateCompilation(@" 295CSharpCompilation comp = CreateCompilation(@" 341CSharpCompilation comp = CreateCompilation(@" 395CSharpCompilation comp = CreateCompilation(@" 451CSharpCompilation comp = CreateCompilation(@" 504CSharpCompilation comp = CreateCompilation(@" 553CSharpCompilation comp = CreateCompilation(@" 697CSharpCompilation comp = CreateCompilation(@" 723CSharpCompilation comp = CreateCompilation(@" 747CSharpCompilation comp = CreateCompilation(@" 772CSharpCompilation comp = CreateCompilation(@" 800CSharpCompilation comp = CreateCompilation(@" 821CSharpCompilation comp = CreateCompilation(@" 854CSharpCompilation comp = CreateCompilation(@" 896var compWithMetadata = CreateEmptyCompilation("", references: new[] { MscorlibRef, metadataRef }, 942var comp = CreateCompilation(""); 1021var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1043var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, 1051var comp = CreateCompilation(source, options: TestOptions.DebugDll, 1061var comp = CreateCompilation("", references: new[] { reference }); 1099var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1122var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, 1130var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, 1143var comp = CreateCompilation("", references: new[] { reference }); 1205CSharpCompilation comp1 = CreateCompilation(Parse(source1), options: TestOptions.DebugDll.WithDeterministic(true), assemblyName: name); 1281var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithDeterministic(true), assemblyName: name); 1294var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithDeterministic(true), assemblyName: name); 1309CSharpCompilation moduleComp = CreateEmptyCompilation("", 1314CSharpCompilation compilation = CreateCompilation( 1799var comp1 = CreateCSharpCompilation("CS1", 1810var comp2 = CreateCSharpCompilation("CS2", 1821var comp3 = CreateCSharpCompilation("CS3", 1860private void VerifyRefAssemblyClient(string lib_cs, string client_cs, Action<CSharpCompilation> validator, int debugFlag = -1) 1884private static void VerifyRefAssemblyClient(string lib_cs, string source, Action<CSharpCompilation> validator, EmitOptions emitOptions) 1887var libComp = CreateCompilation(lib_cs, 1892var comp = CreateCompilation(source, references: new[] { libImage }, 1905var comp1 = CreateCompilation(source, options: options, assemblyName: name); 1924var comp2 = CreateCompilation(source, options: options, assemblyName: name); 1968private static (ImmutableArray<byte> image, ImmutableArray<byte> refImage) EmitRefOut(CSharpCompilation comp) 1981private static ImmutableArray<byte> EmitRefOnly(CSharpCompilation comp) 1998var comp = CreateCompilation("public class C{}", 2017var comp = CreateCompilation("public class C{}", options: signedDllOptions); 2037var comp = CreateCompilation("public class C{}", options: signedDllOptions); 2056var comp = CreateCompilation("public class C{}", options: signedDllOptions); 2095CSharpCompilation comp = CreateCompilation(Parse(source), 2123CSharpCompilation comp = CreateEmptyCompilation(source, references: new[] { MscorlibRef }, 2132var compWithReal = CreateEmptyCompilation("", parseOptions: parseOptions, references: new[] { MscorlibRef, realImage }, 2163var compWithReal2 = CreateEmptyCompilation("", parseOptions: parseOptions, references: new[] { MscorlibRef, realImage2 }, 2191var compWithMetadata = CreateEmptyCompilation("", parseOptions: parseOptions, references: new[] { MscorlibRef, metadataImage }, 2220var compWithRef = CreateEmptyCompilation("", parseOptions: parseOptions, references: new[] { MscorlibRef, refImage }, 2262CSharpCompilation comp = CreateEmptyCompilation(source, parseOptions: parseOptions, references: new[] { MscorlibRef }, 2269var compWithReal = CreateEmptyCompilation("", parseOptions: parseOptions, references: new[] { MscorlibRef, realImage }, 2279var compWithMetadata = CreateEmptyCompilation("", parseOptions: parseOptions, references: new[] { MscorlibRef, metadataImage }, 2291var compWithRef = CreateEmptyCompilation("", parseOptions: parseOptions, references: new[] { MscorlibRef, refImage }, 2298void verifyPropertyWasEmitted(CSharpCompilation input) 2329CSharpCompilation comp = CreateEmptyCompilation(source, parseOptions: parseOptions, references: new[] { MscorlibRef }, 2336var compWithReal = CreateEmptyCompilation("", parseOptions: parseOptions, references: new[] { MscorlibRef, realImage }, 2346var compWithMetadata = CreateEmptyCompilation("", parseOptions: parseOptions, references: new[] { MscorlibRef, metadataImage }, 2358var compWithRef = CreateEmptyCompilation("", parseOptions: parseOptions, references: new[] { MscorlibRef, refImage }, 2365void verifyEventWasEmitted(CSharpCompilation input) 2396CSharpCompilation comp = CreateEmptyCompilation(source, parseOptions: parseOptions, references: new[] { MscorlibRef }, 2403var compWithReal = CreateEmptyCompilation("", parseOptions: parseOptions, references: new[] { MscorlibRef, realImage }, 2413var compWithMetadata = CreateEmptyCompilation("", parseOptions: parseOptions, references: new[] { MscorlibRef, metadataImage }, 2425var compWithRef = CreateEmptyCompilation("", parseOptions: parseOptions, references: new[] { MscorlibRef, refImage }, 2432void verifyIndexerWasEmitted(CSharpCompilation input) 2456CSharpCompilation comp = CreateEmptyCompilation(source, parseOptions: parseOptions, references: new[] { MscorlibRef }, 2464var compWithRef = CreateEmptyCompilation("", parseOptions: parseOptions, references: new[] { MscorlibRef, refImage }, 2501CSharpCompilation comp = CreateEmptyCompilation(source, parseOptions: parseOptions, references: new[] { MscorlibRef }, 2509var compWithRef = CreateEmptyCompilation("", parseOptions: parseOptions, references: new[] { MscorlibRef, refImage }, 2523CSharpCompilation comp = CreateEmptyCompilation("", references: new[] { MscorlibRef }, 2537CSharpCompilation comp = CreateEmptyCompilation("", references: new[] { MscorlibRef }, 2551CSharpCompilation comp = CreateEmptyCompilation("", references: new[] { MscorlibRef }, 2566CSharpCompilation comp = CreateEmptyCompilation("", references: new[] { MscorlibRef }, 2579CSharpCompilation comp = CreateEmptyCompilation("", references: new[] { MscorlibRef }, 2593CSharpCompilation comp = CreateEmptyCompilation("", references: new[] { MscorlibRef }, 2606CSharpCompilation comp = CreateEmptyCompilation("", references: new[] { MscorlibRef }, 2632CSharpCompilation comp = CreateEmptyCompilation("", references: new[] { MscorlibRef }, 2652CSharpCompilation comp = CreateEmptyCompilation(source, references: new[] { MscorlibRef }, 2696var libComp = CreateCompilation( 2754var exeComp = CreateCompilation( 3369var compilation = CreateCompilation(source); 3402var compilation = CreateCompilation(source); 3440var compilation = CreateCompilation(source); 3462var compilation = CSharpCompilation.Create( 3485var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithPlatform(Platform.AnyCpu)); 3522var compilation = CreateCompilation(source, 3556var compilation = CreateCompilation(source, 3606var compilation = CreateCompilation(source, 3646var compilation = CreateCompilation(source, 3688var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithPlatform(Platform.X64)); 3720var compilation = CreateCompilation(source); 3738var compilation = CreateCompilation(source, options: TestOptions.CreateTestOptions(OutputKind.WindowsRuntimeApplication, OptimizationLevel.Debug)); 3756var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 3810var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4001var compilation = CreateCompilation(source); 4013var compilation = CreateCompilation("class A { }", options: TestOptions.ReleaseDll, assemblyName: name); 4044var compilation = CSharpCompilation.Create( 4079var compilation = CreateCompilation("class A { }", options: TestOptions.ReleaseDll, assemblyName: name); 4110var compilation = CreateCompilation("class A { }", options: TestOptions.ReleaseDll, assemblyName: name); 4141var compilation = CreateCompilation("class A { }", options: TestOptions.ReleaseDll, assemblyName: name); 4172var compilation = CreateCompilation("class A { }", options: TestOptions.ReleaseDll, assemblyName: name); 4210var compilation = CreateCompilation(source, options: TestOptions.ReleaseModule, assemblyName: "ContentType"); 4230var compilation = CreateCompilation("class A { }", options: TestOptions.ReleaseDll); 4253var compilation = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 4288var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule)); 4317var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 4364var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 4425var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 4491var compilation = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 4548var compilation = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 4610var c1 = CreateCompilation(p1, options: TestOptions.ReleaseDll, assemblyName: Guid.NewGuid().ToString()); 4620var comp = CreateCompilation(source1, options: TestOptions.ReleaseModule); 4631var c1 = CreateCompilation(p1); 4659var comp = CreateCompilation(text, options: TestOptions.ReleaseExe).VerifyDiagnostics( 4678var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.Itanium), assemblyName: "PlatformMismatch"); 4690var useCompilation = CreateEmptyCompilation(useSource, 4763var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options: TestOptions.ReleaseModule.WithPlatform(Platform.Itanium), assemblyName: "PlatformMismatch"); 4774var useCompilation = CreateEmptyCompilation(useSource, 4808var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.X86), assemblyName: "PlatformMismatch"); 4821var useCompilation = CreateEmptyCompilation(useSource, 4864var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options: TestOptions.ReleaseModule.WithPlatform(Platform.X86), assemblyName: "PlatformMismatch"); 4876var useCompilation = CreateEmptyCompilation(useSource, 4895var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.AnyCpu), assemblyName: "PlatformMismatch"); 4908var useCompilation = CreateEmptyCompilation(useSource, 4943var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options: TestOptions.ReleaseModule.WithPlatform(Platform.AnyCpu), assemblyName: "PlatformMismatch"); 4955var useCompilation = CreateEmptyCompilation(useSource, 4972var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.Itanium), assemblyName: "PlatformMismatch"); 4985var useCompilation = CreateEmptyCompilation(useSource, 5020var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options: TestOptions.ReleaseModule.WithPlatform(Platform.Itanium), assemblyName: "PlatformMismatch"); 5033var useCompilation = CreateEmptyCompilation(useSource, 5043var comp = CreateEmptyCompilation("", new[] { TestReferences.SymbolsTests.netModule.x64COFF }, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 5069var compilation = CreateCompilation(source, null, TestOptions.ReleaseDll); 5141var compilation = CreateCompilation(source, null, TestOptions.ReleaseDll); 5162var compilation = CreateCompilation(source); 5187var compilation = CreateCompilation(source); 5206var compilation = CreateCompilation(source, null, TestOptions.DebugDll); 5262var comp1 = CreateCompilation(s1, options: TestOptions.ReleaseModule); 5266var comp2 = CreateCompilation(s2, options: TestOptions.ReleaseModule, references: new[] { ref1 }); 5270var comp3 = CreateCompilation(s3, options: TestOptions.ReleaseExe, references: new[] { ref1, ref2 }); 5309var comp1 = CreateCompilation(s1, options: TestOptions.ReleaseModule.WithModuleName("A")); 5313var comp2 = CreateCompilation(s2, options: TestOptions.ReleaseModule.WithModuleName("B"), references: new[] { ref1 }); 5317var comp3 = CreateCompilation(s3, options: TestOptions.ReleaseExe.WithModuleName("C"), references: new[] { ref1, ref2 }); 5354var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll); 5416var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll, references: new[] { CSharpRef }); 5454var compilation = CreateCompilation(source); 5467var comp = CreateCompilation("class C {}"); 5506var compilation = CreateCompilation(source); 5533var compilation = CreateCompilation(source); 5550var comp = CreateCompilation("public class B : A { }", references: new[] { modRef }, assemblyName: "sourceMod"); 5590var compilation = CreateCompilation(source, options: options); 5641var compilation = CreateCompilation(source, options: options);
Emit\CovariantReturnTests.cs (7)
226var compilation = CreateEmptyCompilation(new string[] { 234private static CSharpCompilation CreateCovariantCompilation( 278var compilation = CreateCovariantCompilation(source, options: TestOptions.DebugExe); 313var compilation = CreateCovariantCompilation(source, options: TestOptions.DebugExe); 336var csharpCompilation = CreateCovariantCompilation(cSharpSource).VerifyDiagnostics(); 392var csharpCompilation = CreateCovariantCompilation(cSharpSource).VerifyDiagnostics(); 546var compilation = CreateCovariantCompilation(program, options: TestOptions.DebugExe, references: new[] { ref0, ref1b, ref2 });
Emit\DesktopStrongNameProviderTests.cs (2)
99var comp = CreateCompilation(src, options: options); 116var comp = CreateCompilation(src, options: options);
Emit\DeterministicTests.cs (11)
36var compilation = CreateEmptyCompilation(source, 55var compilation = CreateEmptyCompilation(source, assemblyName: "DeterminismTest", references: new[] { MscorlibRef, SystemCoreRef, CSharpRef }, options: options); 74var compilationDeterministic = CreateEmptyCompilation( 78var compilationNonDeterministic = CreateEmptyCompilation( 265var compilation = CSharpCompilation.Create("Program", 299var forwardedToCompilation1 = CreateCompilation(forwardedToCode, assemblyName: "ForwardedTo"); 317var forwardingCompilation = CreateCompilation(forwardingCode, new MetadataReference[] { forwardedToReference1 }); 352var forwardedToCompilation2 = CreateCompilation(forwardedToCode, assemblyName: "ForwardedTo"); 355var withRetargeting = CreateCompilation("", new MetadataReference[] { forwardedToReference2, forwardingReference }); 485var comp = CreateCompilation(source1, options: opt, assemblyName: assemblyName);
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.cs (13)
75var c = CreateCompilation(Parse(ExampleSource + InstrumentationHelperSource, @"C:\myproject\doc1.cs"), references: new[] { RefSafetyRulesAttributeLib }); 219var c = CreateCompilation(Parse(source + InstrumentationHelperSource, @"C:\myproject\doc1.cs"), references: new[] { RefSafetyRulesAttributeLib }); 339var c = CreateCompilation(Parse(source + InstrumentationHelperSource, @"C:\myproject\doc1.cs"), references: new[] { RefSafetyRulesAttributeLib }); 433var c = CreateCompilation(Parse(source + InstrumentationHelperSource, @"C:\myproject\doc1.cs"), references: new[] { RefSafetyRulesAttributeLib }); 490var c = CreateCompilation(Parse(source + InstrumentationHelperSource, @"C:\myproject\doc1.cs"), references: new[] { RefSafetyRulesAttributeLib }); 529var c = CreateCompilation(Parse(source + InstrumentationHelperSource, @"C:\myproject\doc1.cs"), references: new[] { RefSafetyRulesAttributeLib }); 560var c = CreateCompilation(Parse(source + InstrumentationHelperSource, @"C:\myproject\doc1.cs"), references: new[] { RefSafetyRulesAttributeLib }); 600var c = CreateCompilation(Parse(source + InstrumentationHelperSource, @"C:\myproject\doc1.cs"), references: new[] { RefSafetyRulesAttributeLib }); 668var c = CreateCompilation(Parse(source + InstrumentationHelperSource, @"C:\myproject\doc1.cs"), references: new[] { RefSafetyRulesAttributeLib }); 749var c = CreateCompilation(Parse(source + InstrumentationHelperSource, @"C:\myproject\doc1.cs"), references: new[] { RefSafetyRulesAttributeLib }); 830var c = CreateCompilation(Parse(source + InstrumentationHelperSource, @"C:\myproject\doc1.cs"), references: new[] { RefSafetyRulesAttributeLib }); 924var c = CreateCompilation(Parse(source + InstrumentationHelperSource, @"C:\myproject\doc1.cs"), references: new[] { RefSafetyRulesAttributeLib }); 957var c = CreateCompilation(Parse(ExampleSource + InstrumentationHelperSource, @"C:\myproject\doc1.cs"));
Emit\DynamicAnalysis\DynamicInstrumentationTests.cs (3)
2958var c = CreateCompilationWithMscorlib40(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 2994var c = CreateCompilationWithMscorlib40(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 3661var compilation = CreateCompilation(trees.ToArray(), options: (options ?? TestOptions.ReleaseExe).WithDeterministic(true));
Emit\EmitCustomModifiers.cs (5)
43var c = CreateCompilation(source, 600var comp = CreateCompilationWithILAndMscorlib40(source, il, TargetFramework.Mscorlib40, options: TestOptions.ReleaseExe); 656var comp = CreateCompilationWithILAndMscorlib40(source, il, TargetFramework.Mscorlib40, options: TestOptions.ReleaseExe); 707var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.UnsafeReleaseExe); 741var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.UnsafeReleaseExe);
Emit\EmitErrorTests.cs (13)
38var compilation1 = CreateCompilation(source1); 67var compilation1 = CreateCompilation(source1); 99var compilation1 = CreateCompilation(source1); 133var compilation1 = CreateCompilation(source1); 170var compilation1 = CreateCompilation(source1); 217var compilation1 = CreateCompilation(source1); 235private static void VerifyEmitDiagnostics(string source2, CSharpCompilation compilation1, params DiagnosticDescription[] expectedDiagnostics) 237var compilation2 = CreateCompilation(source2, new MetadataReference[] { new CSharpCompilationReference(compilation1) }); 264var netModule = CreateCompilation(moduleSource, options: TestOptions.ReleaseModule, assemblyName: "ModuleNameMismatch"); 270var compilationOK = CreateCompilation(source, new MetadataReference[] { moduleMetadata.GetReference(filePath: @"R:\A\B\ModuleNameMismatch.netmodule") }); 274var compilationError = CreateCompilation(source, new MetadataReference[] { moduleMetadata.GetReference(filePath: @"R:\A\B\ModuleNameMismatch.mod") }); 306var compilation1 = CreateCompilation(builder.ToString(), null, TestOptions.DebugDll.WithSpecificDiagnosticOptions(warnOpts)); 336var compilation = CreateCompilation(builder.ToString());
Emit\EmitMetadataTests.cs (9)
894var comp = CreateCompilationWithMscorlib461(@"using System; 924var comp = CreateCompilation(@"using System; 980var comp = CreateCompilation(@" 2210var comp = CreateCompilation("class Test { static void Main() { } }"); 2220private void VerifyEmitWithNoResources(CSharpCompilation comp, Platform platform) 2680var comAssembly = CreateCompilationWithMscorlib40(@" 2790var comp = CreateCompilation(@" 2839var reference = CreateCompilation(@" 2891var reference = CreateCompilation(@"
Emit\EntryPointTests.cs (41)
16private CSharpCompilation CompileConsoleApp(string source, CSharpParseOptions parseOptions = null, string mainTypeName = null) 31var compilation = CompileConsoleApp(source); 49var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 72var compilation = CompileConsoleApp(source); 103var compilation = CompileConsoleApp(source); 125var compilation = CompileConsoleApp(source, parseOptions: TestOptions.Regular7_1); 144var compilation = CompileConsoleApp(source, parseOptions: TestOptions.Regular7); 162var compilation = CompileConsoleApp(source); 187var compilation = CompileConsoleApp(source); 214var compilation = CompileConsoleApp(source); 239var compilation = CompileConsoleApp(source, mainTypeName: "D"); 242var compilation2 = CompileConsoleApp(source, mainTypeName: "C"); 260var compilation = CompileConsoleApp(source, mainTypeName: "C"); 280var compilation = CreateCompilationWithMscorlib461( 311var compilation = CompileConsoleApp(source); 336var compilation = CompileConsoleApp(source); 371var compilation = CreateCompilationWithMscorlib461( 392var compilation = CreateCompilationWithMscorlib461( 410var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("N.M")); 428var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("C.D")); 446var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("C.D")); 481var compilation = CreateCompilation(cs, options: TestOptions.ReleaseExe); 602var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("C")); 624var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("C")); 647var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("C")); 675var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("C")); 696var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("C")); 711var compilation = CompileConsoleApp(source); 725var compilation = CreateCompilationWithMscorlib461( 746var compilation = CreateCompilationWithMscorlib461( 780var compilation = CreateCompilationWithMscorlib461( 812var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("C")); 829var compilation = CreateCompilation( 847var compilation = CreateCompilation( 895var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("C")); 927var compilation = CreateCompilationWithMscorlib461( 1570var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 1573var netModule = CreateCompilation(source, options: TestOptions.ReleaseModule); 1596var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1617var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1637var compilation = CreateCompilation(source, options: TestOptions.DebugExe);
Emit\InAttributeModifierTests.cs (44)
22var reference = CreateCompilation(@" 58var reference = CreateCompilation(@" 85var reference = CreateCompilation(@" 109var reference = CreateCompilation(@" 136var reference = CreateCompilation(@" 160var reference = CreateCompilation(@" 186var reference = CreateCompilation(@" 2491var reference = CreateCompilation(@" 2539var reference = CreateCompilation(@" 2586var reference = CreateCompilation(@" 2641var reference = CreateCompilation(@" 2689var reference = CreateCompilation(@" 2736var reference = CreateCompilation(@" 2781var reference = CreateCompilation(@" 2826var reference = CreateCompilation(@" 2871var reference = CreateCompilation(@" 2916var reference = CreateCompilation(@" 2961var reference = CreateCompilation(@" 3006var reference = CreateCompilation(@" 3052var reference = CreateCompilation(@" 3098var reference = CreateCompilation(@" 3144var reference = CreateCompilation(@" 3190var reference = CreateCompilation(@" 3238var reference = CreateCompilation(@" 3286var reference = CreateCompilation(@" 3341var reference = CreateCompilation(@" 3389var reference = CreateCompilation(@" 3437var reference = CreateCompilation(@" 3483var reference = CreateCompilation(@" 3529var reference = CreateCompilation(@" 3575var reference = CreateCompilation(@" 3621var reference = CreateCompilation(@" 3667var reference = CreateCompilation("public delegate void D(in int p);"); 3700var reference = CreateCompilation("public delegate ref readonly int D();"); 3733var reference = CreateCompilation(@" 3776var reference = CreateCompilation(@" 3828var comp = CreateCompilation(code).VerifyDiagnostics( 3857var comp = CreateCompilation(code).VerifyDiagnostics( 4160var testRef = CreateCompilation(@" 4207var testRef = CreateCompilation(@" 4254var testRef = CreateCompilation(@" 4303var testRef = CreateCompilation(@" 4355var testRef = CreateCompilation(@" 4423var comp = CreateCompilation(user, references: new[] { ref1, ref2 }).VerifyDiagnostics();
Emit\NoPiaEmbedTypes.cs (214)
46var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 70var compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 95var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 115var compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 128CSharpCompilation compilation, 171var piaCompilation = CreateCompilation(pia, options: TestOptions.DebugDll); 192var compilation = CreateCompilation(consumer, options: TestOptions.DebugExe, 228var piaCompilation = CreateCompilation(pia, options: TestOptions.DebugDll); 261var compilation = CreateCompilation(consumer, options: TestOptions.DebugExe, 297var piaCompilation = CreateCompilation(pia, options: TestOptions.DebugDll); 321var compilation = CreateCompilation(consumer, options: TestOptions.DebugExe, 350var piaCompilation = CreateCompilation(pia, options: TestOptions.DebugDll); 372var compilation = CreateCompilation(consumer, options: TestOptions.DebugExe, 400var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 422var compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 448var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 471var compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 498var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 521var compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 548var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 571var compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 598var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 621var compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 648var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 671var compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 698var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 721var compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 779var compilation2 = CreateCompilation(sources2, references: new MetadataReference[] { reference1 }); 798var piaCompilation = CreateEmptyCompilation(pia, new MetadataReference[] { MscorlibRef_v20 }, options: TestOptions.ReleaseDll); 821var compilation = CreateEmptyCompilation(consumer, new MetadataReference[] { MscorlibRef_v20, new CSharpCompilationReference(piaCompilation, embedInteropTypes: true) }, options: TestOptions.ReleaseExe); 847var piaCompilation = CreateEmptyCompilation(pia, new MetadataReference[] { MscorlibRef_v20 }, options: TestOptions.DebugDll); 871var compilation = CreateEmptyCompilation(consumer, new MetadataReference[] { MscorlibRef_v20, new CSharpCompilationReference(piaCompilation, embedInteropTypes: true) }, options: TestOptions.DebugExe); 1067var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 1161var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 1164var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 1703var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 1720var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 1723var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 1802var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 1825var compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 1860var piaCompilation = CreateCompilation(pia, options: TestOptions.DebugDll); 1912var compilation = CreateCompilationWithMscorlib40(consumer, options: TestOptions.DebugExe, 1951var piaCompilation = CreateEmptyCompilation(pia, new MetadataReference[] { MscorlibRef_v4_0_30316_17626 }, options: TestOptions.DebugDll); 1999var compilation = CreateEmptyCompilation(consumer, 2040var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 2063var compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2097var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 2130var compilation = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2167var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2188var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2191var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2283var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2304var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2307var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2362var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2389var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2394var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2435var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2470var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, 2475var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, 2501var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2533var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2538var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2648var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2680var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2697var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2700var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2752var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2769var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2772var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2816var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2833var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2836var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2877var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2894var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2897var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2940var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2960var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 2963var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3006var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 3026var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3029var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3085var piaCompilation = CreateCompilation(pia, references: new[] { dispIdDefinition }, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 3105var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3108var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3161var piaCompilation = CreateCompilation(pia, references: new[] { empty }, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 3185var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3225var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 3249var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3286var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 3306var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3309var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3353var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 3373var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3376var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3418var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 3441var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3444var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3535var compilation1 = CreateCompilationWithMscorlib40(consumer, options: TestOptions.ReleaseExe, 3571var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 3591var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3594var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3635var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 3656var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3659var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3700var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 3713var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3716var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3747var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 3760var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3763var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3799var piaCompilation1 = CreateCompilation(pia1, options: TestOptions.ReleaseDll, assemblyName: "Pia1"); 3824var piaCompilation2 = CreateCompilation(pia2, options: TestOptions.ReleaseDll, assemblyName: "Pia2"); 3841var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3845var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3884var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia1"); 3906var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3909var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 3977var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 3982var compilation1 = CreateCompilation(consumer1, options: TestOptions.ReleaseDll, 3988var compilation2 = CreateCompilation(consumer2, options: TestOptions.ReleaseExe, 3994var compilation3 = CreateCompilation(consumer2, options: TestOptions.ReleaseExe, 4000var compilation4 = CreateCompilation(consumer2, options: TestOptions.ReleaseExe, 4006var compilation5 = CreateCompilation(consumer2, options: TestOptions.ReleaseExe, 4073var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 4078var compilation1 = CreateCompilation(consumer1, options: TestOptions.ReleaseDll, 4084var compilation2 = CreateCompilation(consumer2, options: TestOptions.ReleaseExe, 4090var compilation3 = CreateCompilation(consumer2, options: TestOptions.ReleaseExe, 4096var compilation4 = CreateCompilation(consumer2, options: TestOptions.ReleaseExe, 4102var compilation5 = CreateCompilation(consumer2, options: TestOptions.ReleaseExe, 4141var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 4158var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4161var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4218var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 4242var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4245var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4302var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 4319var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4322var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4366var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 4384var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4387var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4431var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 4449var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4452var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4491var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 4509var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4512var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4551var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 4569var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4572var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4617var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 4635var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4638var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4675var piaCompilation1 = CreateCompilation(pia1, options: TestOptions.ReleaseDll, assemblyName: "Pia1"); 4693var piaCompilation2 = CreateCompilation(pia2, options: TestOptions.ReleaseDll, assemblyName: "Pia2", 4716var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4720var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4743var piaCompilation1 = CreateCompilation(pia1, options: TestOptions.ReleaseDll, assemblyName: "Pia1"); 4762var piaCompilation2 = CreateCompilation(pia2, options: TestOptions.ReleaseDll, assemblyName: "Pia2", 4787var compilation1 = CreateCompilationWithMscorlib40(consumer, options: TestOptions.ReleaseExe, 4795var compilation2 = CreateCompilationWithMscorlib40(consumer, options: TestOptions.ReleaseExe, 4805var compilation3 = CreateCompilationWithMscorlib40(consumer, options: TestOptions.ReleaseExe, 4813var compilation4 = CreateCompilationWithMscorlib40(consumer, options: TestOptions.ReleaseExe, 4842var piaCompilation1 = CreateCompilation(pia1, options: TestOptions.DebugDll, assemblyName: "Pia1"); 4862var piaCompilation2 = CreateCompilation(pia2, options: TestOptions.DebugDll, assemblyName: "Pia2", 4888var compilation1 = CreateCompilation(consumer, options: TestOptions.DebugExe, 4892var compilation2 = CreateCompilation(consumer, options: TestOptions.DebugExe, 4896var compilation3 = CreateCompilation(consumer, options: TestOptions.DebugExe, 4900var compilation4 = CreateCompilation(consumer, options: TestOptions.DebugExe, 4923var piaCompilation1 = CreateCompilation(pia1, options: TestOptions.ReleaseDll, assemblyName: "Pia1"); 4943var piaCompilation2 = CreateCompilation(pia2, options: TestOptions.ReleaseDll, assemblyName: "Pia2", 4966var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4970var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 4993var piaCompilation1 = CreateCompilation(pia1, options: TestOptions.DebugDll, assemblyName: "Pia1"); 5014var piaCompilation2 = CreateCompilation(pia2, options: TestOptions.DebugDll, assemblyName: "Pia2", 5038var compilation1 = CreateCompilation(consumer, options: TestOptions.DebugExe, 5042var compilation2 = CreateCompilation(consumer, options: TestOptions.DebugExe, 5065var piaCompilation2 = CreateCompilation(pia2, options: TestOptions.ReleaseDll, assemblyName: "Pia2"); 5082var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 5112var piaCompilation2 = CreateCompilation(pia2, options: TestOptions.ReleaseDll, assemblyName: "Pia2"); 5130var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 5161var piaCompilation1 = CreateCompilation(pia1, options: TestOptions.ReleaseDll, assemblyName: "Pia1"); 5181var piaCompilation2 = CreateCompilation(pia2, options: TestOptions.ReleaseDll, assemblyName: "Pia2", 5204var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 5208var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 5212var compilation3 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 5216var compilation4 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 5239var piaCompilation1 = CreateCompilationWithMscorlib40(pia1, options: TestOptions.ReleaseDll, assemblyName: "Pia1"); 5259var piaCompilation2 = CreateCompilationWithMscorlib40(pia2, options: TestOptions.ReleaseDll, assemblyName: "Pia2", 5283var compilation1 = CreateCompilationWithMscorlib40(consumer, options: TestOptions.ReleaseDll, 5287var compilation2 = CreateCompilationWithMscorlib40(consumer, options: TestOptions.ReleaseDll, 5291var compilation3 = CreateCompilationWithMscorlib40(consumer, options: TestOptions.ReleaseDll, 5295var compilation4 = CreateCompilationWithMscorlib40(consumer, options: TestOptions.ReleaseDll, 5318var piaCompilation1 = CreateCompilation(pia1, options: TestOptions.DebugDll, assemblyName: "Pia1"); 5339var piaCompilation2 = CreateCompilation(pia2, options: TestOptions.DebugDll, assemblyName: "Pia2", 5365var compilation1 = CreateCompilation(consumer, options: TestOptions.DebugExe, 5369var compilation2 = CreateCompilation(consumer, options: TestOptions.DebugExe, 5373var compilation3 = CreateCompilation(consumer, options: TestOptions.DebugExe, 5377var compilation4 = CreateCompilation(consumer, options: TestOptions.DebugExe, 5425var IEvent_Compilation = CreateCompilation(IEvent_cs, options: TestOptions.ReleaseDll, assemblyName: "IEvent"); 5531var NetImpl_1_Compilation = CreateCompilation(NetImpl_cs, new[] { new CSharpCompilationReference(IEvent_Compilation, embedInteropTypes: true) }, options: TestOptions.ReleaseDll, assemblyName: "NetImpl"); 5536var NetImpl_2_Compilation = CreateCompilation(NetImpl_cs, new[] { IEvent_Metadata.GetReference(embedInteropTypes: true) }, options: TestOptions.ReleaseDll, assemblyName: "NetImpl"); 5595var app_compilation = CreateCompilation(App_cs, new[] { NetImpl_ref, IEvent_ref, CSharpRef }, options: TestOptions.ReleaseExe, assemblyName: "App"); 5621var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 5637var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 5640var compilation2 = CreateCompilation(consumer, options: TestOptions.ReleaseExe, 5703var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 5729var compilation0 = CreateCompilation(consumer0, options: TestOptions.ReleaseDll, references: new MetadataReference[] { piaRef1 }); 5758var compilation1 = CreateCompilation(consumer2, options: TestOptions.ReleaseDll, 5761var compilation2 = CreateCompilation(consumer2, options: TestOptions.ReleaseDll, 5800var piaCompilation = CreateCompilationWithMscorlib40(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 5821var compilation1 = CreateCompilationWithMscorlib40(consumer, options: TestOptions.ReleaseExe, 5989var compilation = CreateCompilation(source,
Emit\OptionalArgumentsTests.cs (7)
108var compilation = CreateCompilationWithILAndMscorlib40(csharpSource, ilSource, TargetFramework.Mscorlib461, options: TestOptions.DebugExe); 144var comp1 = CreateCompilation(source1, options: TestOptions.DebugDll); 173var comp2a = CreateCompilation( 182var comp2b = CreateCompilation( 207var comp = CreateCompilation(source); 407var comp = CreateCompilation(source); 459var comp = CreateCompilation(source);
Emit\ResourceTests.cs (27)
42var c1 = CreateCompilation(source, assemblyName: "Win32VerNoAttrs", options: TestOptions.ReleaseExe); 132var c1 = CreateCompilation(source, assemblyName: "Win32WithCoff", options: TestOptions.ReleaseDll); 208var c1 = CreateCompilation(""); 237var c1 = CreateCompilation(""); 257var c1 = CreateCompilation(""); 290var c1 = CSharpCompilation.Create("goo", references: new[] { MscorlibRef }, options: TestOptions.ReleaseDll); 310var c1 = CreateCompilation(""); 337var c1 = CreateCompilation(""); 402var c1 = CreateCompilation(source); 451var c1 = CSharpCompilation.Create( 495var c_mod1 = CSharpCompilation.Create( 514var c2 = CreateCompilation(sourceTree, new[] { ref_mod1 }, TestOptions.ReleaseDll); 544var c_mod2 = CSharpCompilation.Create( 562var c3 = CreateCompilation(sourceTree, new[] { ref_mod2 }, TestOptions.ReleaseDll); 601var c_mod3 = CSharpCompilation.Create( 620var c4 = CreateCompilation(sourceTree, new[] { ref_mod3 }, TestOptions.ReleaseDll); 663var c5 = CreateCompilation(sourceTree, new[] { ref_mod1, ref_mod3 }, TestOptions.ReleaseDll); 707var c6 = CreateCompilation(sourceTree, new[] { ref_mod1, ref_mod2 }, TestOptions.ReleaseDll); 768var c1 = CreateCompilation(source); 795var c1 = CreateCompilation(source); 832var c1 = CreateCompilation(source, assemblyName: "Win32VerAttrs", options: TestOptions.ReleaseExe); 896var c1 = CreateCompilation("");
PrivateProtected.cs (5)
77var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular7_2) 100var baseCompilation = CreateCompilation(source1, parseOptions: TestOptions.Regular7_2, 695var compilation1 = CreateCompilation(source1, parseOptions: TestOptions.Regular7_2); 722var compilation1 = CreateCompilation(source1, parseOptions: TestOptions.Regular7_2); 748var compilation1 = CreateCompilation(source1, parseOptions: TestOptions.Regular7_2);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (893)
CodeGen\CodeGenLengthBasedSwitchTests.cs (30)
77var comp = CreateCompilation(source); 829var comp = CreateCompilationWithSpanAndMemoryExtensions(source); 1314var comp = CreateCompilation(source); 1366var comp = CreateCompilation(source); 1647var comp = CreateCompilation(source); 1787var comp = CreateCompilation(source); 1827var comp = CreateCompilation(source); 1926var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1979var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 2085var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 2191var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 2244var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 2318var comp = CreateCompilation(source); 2634var comp = CreateCompilation(source); 3168var comp = CreateCompilation(source); 4384var comp = CreateCompilation(source); 6750var comp = CreateCompilation(source); 9054var comp = CreateCompilation(source); 9366var comp = CreateCompilation(source); 9825var comp = CreateCompilation(source); 9962var comp = CreateCompilation(source); 10803var comp = CreateCompilation(source); 11085var comp = CreateCompilation(source); 11134var comp = CreateCompilation(source); 11333var comp = CreateCompilation(source); 11990var comp = CreateCompilation(source); 12334var comp = CreateCompilation(source); 12985var comp = CreateCompilation(source); 13302var comp = CreateCompilation(source); 13910var comp = CreateCompilation(source);
CodeGen\CodeGenMethodGroupConversionCachingTests.cs (3)
6026var comp = CreateCompilation(source, parseOptions: TestOptions.Regular11, options: TestOptions.DebugExe); 6169var compilation = CreateCompilationWithIL(source, ilSource, options: TestOptions.ReleaseExe); 6325var compilation = CreateCompilationWithIL(source, ilSource, options: TestOptions.DebugExe);
CodeGen\CodeGenSpanBasedStringConcatTests.cs (47)
329var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 382var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 437var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 481var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 535var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 586var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 648var comp = CreateEmptyCompilation(source, [corlib]); 723var comp = CreateEmptyCompilation(source, [corlib]); 797var comp = CreateEmptyCompilation(source, [corlib]); 1066var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1176var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1356var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1467var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1533var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1598var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1659var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1739var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1785var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1848var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1931var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 2056var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 2117var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 2189var comp = CreateEmptyCompilation(source, [corlib]); 2267var comp = CreateEmptyCompilation(source, [corlib]); 2344var comp = CreateEmptyCompilation(source, [corlib]); 2707var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 2895var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 3171var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 3356var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 3431var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 3507var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 3580var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 3701var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 3749var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 3823var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 3953var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 4285var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 4338var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 4471var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 4561var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 4685var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 4754var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 4842var comp = CreateEmptyCompilation(source, [corlib]); 4923var comp = CreateEmptyCompilation(source, [corlib]); 5003var comp = CreateEmptyCompilation(source, [corlib]); 5479var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 5669var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80);
CodeGen\IndexAndRangeTests.cs (52)
57var comp = CreateCompilationWithIndex(source, parseOptions: useCsharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 233var comp = CreateCompilationWithIndex(source, parseOptions: useCsharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 275var comp = CreateCompilationWithIndex(source, parseOptions: useCsharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 312var comp = CreateCompilationWithIndex(source); 395var comp = CreateCompilationWithIndex(source); 486var comp = CreateCompilationWithIndex(source); 568var comp = CreateCompilationWithIndex(source, options: TestOptions.ReleaseExe); 823var comp = CreateCompilationWithIndex(source, options: TestOptions.ReleaseExe); 870var comp = CreateCompilationWithIndex(source); 918var comp = CreateCompilationWithIndex(source); 1014var comp = CreateCompilationWithIndex(source); 1080var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1116var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1144var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1184var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1217var comp = CreateCompilationWithIndex(source); 1263var comp = CreateCompilationWithIndex(source); 1339var comp = CreateCompilationWithIndex(source); 1399var comp = CreateCompilationWithIndex(source); 1475var comp = CreateCompilationWithIndex(source); 1518var comp = CreateCompilationWithIndex(source); 1567var comp = CreateCompilationWithIndex(source, parseOptions: useCsharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 1759var comp = CreateCompilationWithIndex(source, parseOptions: useCsharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 1802var comp = CreateCompilationWithIndex(source); 1957var comp = CreateCompilationWithIndex(source, parseOptions: TestOptions.Regular12); 2085var comp = CreateCompilationWithIndex(source); 2125var comp = CreateCompilationWithIndex(source); 2158var comp = CreateCompilationWithIndexAndRange(source); 2197var comp = CreateCompilationWithIndexAndRange(source, parseOptions: useCsharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2534var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 2658var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 2755var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 2999var comp = CreateCompilation(source); 3094var comp = CreateCompilation(source); 3284var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 3424var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 3545var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 3620var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 3711var comp = CreateCompilation(source); 3797var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp); 3884var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp); 4024var comp = CreateCompilationWithIndexAndRange(source); 4051var comp = CreateCompilationWithIndexAndRange(source); 4090var comp = CreateCompilationWithIndexAndRange(source); 4120var comp = CreateCompilationWithIndexAndRange(source); 4142var comp = CreateCompilationWithIndexAndRange(source); 4176var comp = CreateCompilationWithIndex(source); 4225var comp = CreateCompilationWithIndex(source); 4264var comp = CreateCompilationWithIndex(source); 4415var comp = CreateCompilation(new[] { source, IndexWithSideEffects }); 4458var comp = CreateCompilation(new[] { source, IndexWithSideEffects }); 4497var comp = CreateCompilationWithIndexAndRange(new[] { src, TestSources.GetSubArray });
Emit\EditAndContinue\AssemblyReferencesTests.cs (32)
66var compilation0 = CreateEmptyCompilation(src1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), references: references); 67var compilation1 = compilation0.WithSource(src2); 139var compilation0 = CreateEmptyCompilation(src1, parseOptions: parseOptions, references: new[] { MscorlibRef }); 140var compilation1 = compilation0.WithSource(src2); 202var lib0 = CreateCompilation(srcLib, assemblyName: "Lib", options: TestOptions.DebugDll); 205var lib1 = CreateCompilation(srcLib, assemblyName: "Lib", options: TestOptions.DebugDll); 208var lib2 = CreateCompilation(srcLib, assemblyName: "Lib", options: TestOptions.DebugDll); 211var compilation0 = CreateEmptyCompilation(src0, new[] { MscorlibRef, lib0.ToMetadataReference() }, assemblyName: "C", options: TestOptions.DebugDll); 212var compilation1 = compilation0.WithSource(src1).WithReferences(new[] { MscorlibRef, lib1.ToMetadataReference() }); 213var compilation2 = compilation1.WithSource(src2).WithReferences(new[] { MscorlibRef, lib2.ToMetadataReference() }); 301var lib0 = CreateCompilation(srcLib, assemblyName: "Lib", options: TestOptions.DebugDll); 306var lib1 = CreateCompilation(srcLib, assemblyName: "Lib", options: TestOptions.DebugDll); 310var lib2 = CreateCompilation(srcLib, assemblyName: "Lib", options: TestOptions.DebugDll); 315var compilation0 = CreateEmptyCompilation(src0, new[] { MscorlibRef, lib0.ToMetadataReference() }, assemblyName: "C", options: TestOptions.DebugDll); 316var compilation1 = compilation0.WithSource(src1).WithReferences(new[] { MscorlibRef, lib1.ToMetadataReference() }); 317var compilation2 = compilation1.WithSource(src2).WithReferences(new[] { MscorlibRef, lib2.ToMetadataReference() }); 386var lib0 = CreateCompilation(srcLib, assemblyName: "Lib", options: TestOptions.DebugDll); 390var lib1 = CreateCompilation(srcLib, assemblyName: "Lib", options: TestOptions.DebugDll); 394var lib2 = CreateCompilation(srcLib, assemblyName: "Lib", options: TestOptions.DebugDll); 398var compilation0 = CreateEmptyCompilation(src0, new[] { MscorlibRef, lib0.EmitToImageReference() }, assemblyName: "C", options: TestOptions.DebugDll); 399var compilation1 = compilation0.WithSource(src1).WithReferences(new[] { MscorlibRef, lib1.EmitToImageReference() }); 400var compilation2 = compilation1.WithSource(src2).WithReferences(new[] { MscorlibRef, lib2.EmitToImageReference() }); 470var lib01 = CreateCompilation(srcLib01, assemblyName: "Lib", options: s_signedDll).VerifyDiagnostics(); 473var lib02 = CreateCompilation(srcLib02, assemblyName: "Lib", options: s_signedDll).VerifyDiagnostics(); 476var lib11 = CreateCompilation(srcLib11, assemblyName: "Lib", options: s_signedDll).VerifyDiagnostics(); 479var lib12 = CreateCompilation(srcLib12, assemblyName: "Lib", options: s_signedDll).VerifyDiagnostics(); 482var compilation0 = CreateEmptyCompilation(src0, new[] { MscorlibRef, ref01, ref11 }, assemblyName: "C", options: TestOptions.DebugDll); 483var compilation1 = compilation0.WithSource(src1).WithReferences(new[] { MscorlibRef, ref02, ref12 }); 585var compilation0 = CreateCompilation(source0.Tree, options: options.WithCurrentLocalTime(new DateTime(2016, 1, 1, 1, 0, 0))); 586var compilation1 = compilation0.WithSource(source1.Tree).WithOptions(options.WithCurrentLocalTime(new DateTime(2016, 1, 1, 1, 0, 10))); 587var compilation2 = compilation1.WithSource(source2.Tree).WithOptions(options.WithCurrentLocalTime(new DateTime(2016, 1, 1, 1, 0, 20))); 588var compilation3 = compilation2.WithSource(source3.Tree).WithOptions(options.WithCurrentLocalTime(new DateTime(2016, 1, 1, 1, 0, 30)));
Emit\EditAndContinue\EditAndContinueClosureTests.cs (59)
246var compilation1 = compilation0.WithSource(source1.Tree); 307var compilation1 = compilation0.WithSource(source1.Tree); 379var compilation1 = compilation0.WithSource(source1.Tree); 437var compilation1 = compilation0.WithSource(source1.Tree); 489var compilation1 = compilation0.WithSource(source1.Tree); 549var compilation1 = compilation0.WithSource(source1.Tree); 603var compilation1 = compilation0.WithSource(source1.Tree); 658var compilation1 = compilation0.WithSource(source1.Tree); 714var compilation1 = compilation0.WithSource(source1.Tree); 769var compilation1 = compilation0.WithSource(source1.Tree); 837var compilation1 = compilation0.WithSource(source1.Tree); 912var compilation1 = compilation0.WithSource(source1.Tree); 986var compilation1 = compilation0.WithSource(source1.Tree); 1053var compilation1 = compilation0.WithSource(source1.Tree); 1112var compilation1 = compilation0.WithSource(source1.Tree); 1200var compilation1 = compilation0.WithSource(source1.Tree); 1289var compilation1 = compilation0.WithSource(source1.Tree); 1373var compilation1 = compilation0.WithSource(source1.Tree); 1464var compilation1 = compilation0.WithSource(source1.Tree); 1546var compilation1 = compilation0.WithSource(source1.Tree); 1623var compilation1 = compilation0.WithSource(source1.Tree); 1624var compilation2 = compilation1.WithSource(source2.Tree); 1722var compilation1 = compilation0.WithSource(source1.Tree); 1723var compilation2 = compilation1.WithSource(source2.Tree); 1813var compilation1 = compilation0.WithSource(source1.Tree); 1814var compilation2 = compilation1.WithSource(source2.Tree); 1920var compilation1 = compilation0.WithSource(source1.Tree); 1921var compilation2 = compilation1.WithSource(source2.Tree); 1922var compilation3 = compilation2.WithSource(source3.Tree); 2118var compilation1 = compilation0.WithSource(source1.Tree); 2119var compilation2 = compilation1.WithSource(source2.Tree); 2120var compilation3 = compilation2.WithSource(source3.Tree); 2330var compilation1 = compilation0.WithSource(source1.Tree); 2331var compilation2 = compilation1.WithSource(source2.Tree); 2464var compilation1 = compilation0.WithSource(source1); 2465var compilation2 = compilation1.WithSource(source2); 2581var compilation1 = compilation0.WithSource(source1); 2582var compilation2 = compilation1.WithSource(source2); 2714var compilation1 = compilation0.WithSource(source1); 2715var compilation2 = compilation1.WithSource(source2); 2716var compilation3 = compilation2.WithSource(source3); 2792var compilation1 = compilation0.WithSource(source1.Tree); 2862var compilation1 = compilation0.WithSource(source1.Tree); 2968var compilation1 = compilation0.WithSource(source1.Tree); 3088var compilation1 = compilation0.WithSource(source1.Tree); 3184var compilation1 = compilation0.WithSource(source1.Tree); 3245var compilation1 = compilation0.WithSource(source1.Tree); 3484var compilation1 = compilation0.WithSource(source1.Tree); 3727var compilation1 = compilation0.WithSource(source1.Tree); 3728var compilation2 = compilation1.WithSource(source2.Tree); 3848var compilation1 = compilation0.WithSource(source1.Tree); 3849var compilation2 = compilation1.WithSource(source2.Tree); 3928var compilation1 = compilation0.WithSource(source1.Tree); 3929var compilation2 = compilation1.WithSource(source2.Tree); 4123var compilation1 = compilation0.WithSource(source1.Tree); 4208var compilation1 = compilation0.WithSource(source1.Tree); 4290var compilation1 = compilation0.WithSource(source1.Tree); 4363var compilation1 = compilation0.WithSource(source1.Tree); 4445var compilation1 = compilation0.WithSource(source1.Tree);
Emit\EditAndContinue\EditAndContinueDelegateCacheTests.cs (10)
45var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 46var compilation1 = compilation0.WithSource(source1); 109var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 110var compilation1 = compilation0.WithSource(source1); 173var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 174var compilation1 = compilation0.WithSource(source1); 237var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 238var compilation1 = compilation0.WithSource(source1); 301var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 302var compilation1 = compilation0.WithSource(source1);
Emit\EditAndContinue\EditAndContinuePdbTests.cs (3)
121var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All), assemblyName: "EncMethodExtents"); 122var compilation1 = compilation0.WithSource(source1.Tree); 123var compilation2 = compilation1.WithSource(source2.Tree);
Emit\EditAndContinue\EditAndContinueStateMachineTests.cs (6)
48var compilation1 = compilation0.WithSource(Parse(source1, "a.cs", parseOptions)); 229var compilation1 = compilation0.WithSource(source1); 346var compilation1 = compilation0.WithSource(source1); 448var compilation1 = compilation0.WithSource(source1); 521var compilation1 = compilation0.WithSource(source1); 572var compilation1 = compilation0.WithSource(source1);
Emit\EditAndContinue\EditAndContinueTestBase.cs (6)
264internal static CSharpCompilation WithSource(this CSharpCompilation compilation, CSharpTestSource newSource) 270internal static CSharpCompilation WithSource(this CSharpCompilation compilation, SyntaxTree newTree) 275internal static CSharpCompilation WithSource(this CSharpCompilation compilation, SyntaxTree[] newTrees)
Emit\EditAndContinue\EditAndContinueTests.cs (17)
259var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 260var compilation1 = compilation0.WithSource(source1); 308var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 309var compilation1 = compilation0.WithSource(source1); 341var compilation0 = CreateCompilationWithMscorlib461(source0, options: ComSafeDebugDll); 342var compilation1 = compilation0.WithSource(source1); 392var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); 393var compilation1 = compilation0.WithSource(source1.Tree); 462var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); 463var compilation1 = compilation0.WithSource(source1.Tree); 500var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe); 501var compilation1 = compilation0.WithSource(source1); 561var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 562var compilation1 = compilation0.WithSource(source1); 563var compilation2 = compilation1.WithSource(source2); 794var compilation0 = CreateCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe, targetFramework: TargetFramework.NetStandard20); 795var compilation1 = compilation0.WithSource(source1);
Emit\EditAndContinue\LocalSlotMappingTests.cs (92)
47var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 48var compilation1 = compilation0.WithSource(source0); 122var compilation0 = CreateCompilation(source, options: ComSafeDebugDll); 123var compilation1 = compilation0.WithSource(source); 340var debug = CreateCompilation(source, options: TestOptions.DebugDll); 341var release = CreateCompilation(source, options: TestOptions.ReleaseDll); 426var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 427var compilation1 = compilation0.WithSource(source); 530var compilation0 = CreateCompilation(source0.Tree, options: TestOptions.DebugDll); 531var compilation1 = compilation0.WithSource(source1.Tree); 642var compilation0 = CreateCompilation(source0.Tree, options: TestOptions.DebugDll); 643var compilation1 = compilation0.WithSource(source1.Tree); 752var compilation0 = CreateCompilationWithTasksExtensions(new[] { source0.Tree, asyncStreamsTree }, options: TestOptions.DebugDll); 753var compilation1 = compilation0.WithSource(new[] { source1.Tree, asyncStreamsTree }); 843var compilation0 = CreateCompilationWithTasksExtensions(new[] { source0.Tree, asyncStreamsTree }, options: TestOptions.DebugDll); 844var compilation1 = compilation0.WithSource(new[] { source1.Tree, asyncStreamsTree }); 1147var compilation0 = CreateEmptyCompilation(source, options: TestOptions.DebugDll, references: new[] { MscorlibRef_v20 }); 1148var compilation1 = CreateEmptyCompilation(source, options: TestOptions.DebugDll, references: new[] { MscorlibRef_v20 }); 1208var compilation0 = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1209var compilation1 = compilation0.WithSource(source); 1316var compilation0 = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1317var compilation1 = compilation0.WithSource(source); 1480var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 1481var compilation1 = compilation0.WithSource(source); 1663var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 1664var compilation1 = compilation0.WithSource(source); 1848var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 1849var compilation1 = compilation0.WithSource(source); 2008var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 2009var compilation1 = compilation0.WithSource(source); 2038var compilation0 = CreateCompilation( 2042var compilation1 = compilation0.WithSource(source); 2148var compilation0 = CreateCompilation(source0.Tree, options: TestOptions.DebugDll); 2194var compilation1 = CreateCompilation(source1.Tree, options: TestOptions.DebugDll); 2195var compilation2 = compilation0.WithSource(source2.Tree); 2341var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 2418var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll); 2419var compilation2 = compilation0.WithSource(source2); 2598var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 2599var compilation1 = compilation0.WithSource(source1); 2736var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 2737var compilation1 = compilation0.WithSource(source); 2881var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 2882var compilation1 = compilation0.WithSource(source1); 2990var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 2991var compilation1 = compilation0.WithSource(source1); 3117var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 3118var compilation1 = compilation0.WithSource(source); 3331var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 3332var compilation1 = compilation0.WithSource(source1); 3438var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 3439var compilation1 = compilation0.WithSource(source1); 3551var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 3552var compilation1 = compilation0.WithSource(source1); 3659var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 3660var compilation1 = compilation0.WithSource(source1); 3751var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 3752var compilation1 = compilation0.WithSource(source); 3888var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); 3889var compilation1 = compilation0.WithSource(source1.Tree); 3890var compilation2 = compilation1.WithSource(source2.Tree); 3970var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 3971var compilation1 = compilation0.WithSource(source); 4079var compilation0 = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll); 4080var compilation1 = compilation0.WithSource(source); 4233var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4234var compilation1 = compilation0.WithSource(source); 4280var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4281var compilation1 = compilation0.WithSource(source); 4336var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4337var compilation1 = compilation0.WithSource(source); 4391var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4392var compilation1 = compilation0.WithSource(source); 4443var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4444var compilation1 = compilation0.WithSource(source); 4499var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4500var compilation1 = compilation0.WithSource(source); 4568var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4569var compilation1 = compilation0.WithSource(source); 4648var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4649var compilation1 = compilation0.WithSource(source); 4741var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4742var compilation1 = compilation0.WithSource(source); 4802var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4803var compilation1 = compilation0.WithSource(source); 4862var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4863var compilation1 = compilation0.WithSource(source); 4951var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 4952var compilation1 = compilation0.WithSource(source); 5052var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithAllowUnsafe(true)); 5054var compilation1 = compilation0.WithSource(source1.Tree); 5055var compilation2 = compilation1.WithSource(source2.Tree);
Emit\EditAndContinue\SymbolMatcherTests.cs (101)
30var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 35private static CSharpSymbolMatcher CreateMatcher(CSharpCompilation fromCompilation, CSharpCompilation toCompilation) 43private static CSharpSymbolMatcher CreateMatcher(CSharpCompilation fromCompilation, PEAssemblySymbol peAssemblySymbol) 77var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 78var compilation1 = compilation0.WithSource(source); 140var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 141var compilation1 = compilation0.WithSource(source); 166var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 167var compilation1 = compilation0.WithSource(source); 190var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll, references: new[] { metadataRef }); 191var compilation1 = compilation0.WithSource(source); 231var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 232var compilation1 = compilation0.WithSource(source1); 276var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll).WithSource(source1); 304var lib0 = CreateCompilation(libSource, options: TestOptions.DebugDll, assemblyName: "Lib"); 305var lib1 = CreateCompilation(libSource, options: TestOptions.DebugDll, assemblyName: "Lib"); 307var compilation0 = CreateCompilation(source, new[] { lib0.ToMetadataReference() }, options: TestOptions.DebugDll); 308var compilation1 = compilation0.WithSource(source).WithReferences(MscorlibRef, lib1.ToMetadataReference()); 341var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 342var compilation1 = compilation0.WithSource(source1); 372var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 373var compilation1 = compilation0.WithSource(source1); 404var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 405var compilation1 = compilation0.WithSource(source1); 439var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 440var compilation1 = compilation0.WithSource(source1); 490var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll); 545var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 561var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll); 600var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 601var compilation1 = compilation0.WithSource(source1); 624var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 625var compilation1 = compilation0.WithSource(source1); 648var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 649var compilation1 = compilation0.WithSource(source1); 672var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 673var compilation1 = compilation0.WithSource(source1); 696var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 697var compilation1 = compilation0.WithSource(source1); 720var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 721var compilation1 = compilation0.WithSource(source1); 744var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 745var compilation1 = compilation0.WithSource(source1); 768var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 769var compilation1 = compilation0.WithSource(source1); 792var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 793var compilation1 = compilation0.WithSource(source1); 816var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 817var compilation1 = compilation0.WithSource(source1); 854var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 855var compilation1 = compilation0.WithSource(source1); 902var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 903var compilation1 = compilation0.WithSource(source1); 943var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 948var compilation1 = CreateCompilation(source, options: TestOptions.DebugDll); 983var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 984var compilation1 = compilation0.WithSource(source1); 1008var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1009var compilation1 = compilation0.WithSource(source1); 1033var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1034var compilation1 = compilation0.WithSource(source1); 1056var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1057var compilation1 = compilation0.WithSource(source1); 1100var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1115var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll); 1162var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 1163var compilation1 = compilation0.WithSource(source); 1211var compilation0 = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1212var compilation1 = compilation0.WithSource(source); 1245var compilation0 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1246var compilation1 = compilation0.WithSource(source2); 1296var compilation0 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1297var compilation1 = compilation0.WithSource(source2); 1319var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1320var compilation1 = compilation0.WithSource(source1); 1341var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1342var compilation1 = compilation0.WithSource(source1); 1364var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1365var compilation1 = compilation0.WithSource(source1); 1385var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1386var compilation1 = compilation0.WithSource(source1); 1411var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1412var compilation1 = compilation0.WithSource(source1); 1469var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll); 1520var compilation0 = CreateCompilation(source0, options: TestOptions.UnsafeDebugDll); 1521var compilation1 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll); 1580var compilation0 = CreateCompilation(source0, options: TestOptions.UnsafeDebugDll); 1581var compilation1 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll); 1650var compilation0 = CreateCompilation(source0, options: TestOptions.UnsafeDebugDll); 1651var compilation1 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll); 1715var compilation0 = CreateCompilation(source, options: TestOptions.DebugDll); 1716var compilation1 = compilation0.WithSource(source); 1757var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1758var compilation1 = compilation0.WithSource(source1); 1809var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1810var compilation1 = compilation0.WithSource(source1); 1856var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1857var compilation1 = compilation0.WithSource(source1); 1901var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 1902var compilation1 = compilation0.WithSource(source1);
Emit\ManagedAddressTests.cs (1)
52var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(
Emit\NumericIntPtrTests.cs (120)
123var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 173var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 233var comp = CreateEmptyCompilation(sourceA); 328var comp = CreateEmptyCompilation(sourceA, options: TestOptions.UnsafeReleaseDll); 429var comp = CreateEmptyCompilation(sourceA, options: TestOptions.UnsafeReleaseDll); 540var comp = CreateEmptyCompilation(sourceA); 625var comp = CreateEmptyCompilation(sourceA); 767var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular9); 809var comp = CreateEmptyCompilation(sourceA); 933var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 995var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1021var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1039var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1069var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1094var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1132var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1188var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1231var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, targetFramework: TargetFramework.Net70); 1252var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1275var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, targetFramework: TargetFramework.Net70); 1296var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1328var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1432var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1456var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 1491var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1520var comp = CreateCompilation("", parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1525static void verifyOperators(CSharpCompilation comp) 1571static void verifyUnaryOperators(CSharpCompilation comp, UnaryOperatorKind operatorKind, bool skipNativeIntegerOperators) 1582static void verifyBinaryOperators(CSharpCompilation comp, BinaryOperatorKind operatorKind, bool skipNativeIntegerOperators) 1625var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1738var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1865var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3, targetFramework: TargetFramework.Net70); 1889var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 1913var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1965var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2048var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2150var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2223var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2274var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2407var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2457var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2598var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2711var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 2776var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2796var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 2811var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2840var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2877var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2919var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2952var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2983var comp = CreateCompilation(source); 3052var comp = CreateCompilation(new[] { sourceA, sourceB }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 3125var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 3293var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 6003var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithAllowUnsafe(useUnsafeContext), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 6240var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 6613var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 6847var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 6897var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 7020var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 8121var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithAllowUnsafe(useUnsafeContext), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 8182var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 8408var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 8612var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 8688var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9013var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9060var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9089var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9157var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9245var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9274var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9298var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9327var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9362var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9427var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9508var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9646var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9702var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9832var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9904var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 9917var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9939var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9971var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 10024var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 10273var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, targetFramework: TargetFramework.Net70); 10327var comp = CreateEmptyCompilation(new[] { source, corlib_cs }, parseOptions: parseOptions); 10330var corlib = CreateEmptyCompilation(corlib_cs, parseOptions: parseOptions); 10339void verify(CSharpCompilation comp) 10500var comp = CreateCompilation(new[] { source }, targetFramework: TargetFramework.Net70); 10543var comp = CreateEmptyCompilation(new[] { source, corlib_cs }); 10576var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 10587var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 10668var comp = CreateEmptyCompilation(sourceA); 10708var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 10721var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 10724var comp2 = CreateCompilation(source, references: new[] { image }, targetFramework: TargetFramework.Net70); 10758var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 10826var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 10894var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 10912var libComp = CreateEmptyCompilation(lib_cs, references: new[] { MscorlibRef_v20 }, assemblyName: "lib"); 10921var comp = CreateCompilation(source, references: new[] { libComp.ToMetadataReference() }, targetFramework: TargetFramework.Net70); 10943var libComp = CreateCompilation(lib_cs, assemblyName: "lib", targetFramework: TargetFramework.Net70); 10952var comp = CreateEmptyCompilation(source, references: new[] { libComp.ToMetadataReference(), MscorlibRef_v46 }); 10985var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 11047var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 11152var corlib = CreateEmptyCompilation(corlib_cs); 11153var comp = CreateEmptyCompilation(source, references: new[] { corlib.EmitToImageReference() }); 11168var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.Net70); 11191var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.Net70); 11219var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.Net70); 11244var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.Net70); 11269var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.Net70); 11289var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.Net70); 11629var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 11687var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 11704var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 11745var comp = CreateCompilation(new[] { TestSources.Span, source }, options: TestOptions.UnsafeReleaseExe); 11751void verify(CSharpCompilation comp) 11810var comp = CreateCompilation( 11817private void VerifyNoNativeIntegerAttributeEmitted(CSharpCompilation comp)
Emit\UnmanagedTypeModifierTests.cs (1)
1374var c = CreateCompilation(code, references: new[] { reference });
PDB\CheckSumTest.cs (10)
20private static CSharpCompilation CreateCompilationWithChecksums(string source, string filePath, string baseDirectory) 22return CSharpCompilation.Create( 37var compilation = CreateCompilation(new[] { tree1, tree256 }); 233var compilation = CreateCompilation(new[] { Parse(text1, "a.cs"), Parse(text2, "b.cs") }); 267var comp = CreateCompilationWithChecksums(source, "b.cs", @"b:\base"); 295var comp = CSharpCompilation.Create( 348var comp = CreateCompilationWithChecksums(source, "b.cs", @"b:\base"); 410var comp = CreateCompilationWithChecksums(source, "file.cs", @"b:\base"); 467var comp = CreateCompilationWithChecksums(source, "file.cs", null);
PDB\CSharpDeterministicBuildCompilationTests.cs (7)
62var originalCompilation = CreateCompilation( 121var referenceOneCompilation = CreateCompilation( 131var referenceTwoCompilation = CreateCompilation( 181var referenceOneCompilation = CreateCompilation( 191var referenceTwoCompilation = CreateCompilation( 245var referenceOneCompilation = CreateCompilation( 255var referenceTwoCompilation = CreateCompilation(
PDB\CSharpPDBTestBase.cs (1)
27var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: compilationOptions, parseOptions: parseOptions);
PDB\PDBAsyncTests.cs (5)
70var compilation = CreateCompilationWithMscorlib461(text, options: TestOptions.DebugDll).VerifyDiagnostics(); 386var compilation = CreateCompilationWithMscorlib461(text, options: TestOptions.DebugDll).VerifyDiagnostics(); 543var compilation = CreateCompilationWithMscorlib461( 2017var compilation = CreateCompilationWithMscorlib461(src, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 2100var v = CreateEmptyCompilation(src, LatestVbReferences, options: TestOptions.DebugDll);
PDB\PDBConstantTests.cs (4)
34var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 100var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 209var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 532var compilation = CreateCompilation(source, options: TestOptions.DebugExe);
PDB\PDBDynamicLocalsTests.cs (31)
49var c = CreateCompilationWithMscorlib40AndSystemCore(source, references: new[] { CSharpRef }, options: TestOptions.DebugDll); 147var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 213var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 272var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 337var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 393var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 451var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 527var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 609var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 676var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 764var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 844var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 926var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1012var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1138var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1286var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1535var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1708var c = CreateCompilation(source, options: TestOptions.DebugDll); 1778var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1832var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1882var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1940var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1998var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2057var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2117var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2171var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2226var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2290var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2352var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2412var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2497var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseDll);
PDB\PDBEmbeddedSourceTests.cs (2)
44var c = CreateCompilation(new[] { tree1, tree2 }, options: TestOptions.DebugDll); 104var c = CreateCompilation(tree, options: TestOptions.DebugDll);
PDB\PDBIteratorTests.cs (8)
34var c = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.DebugDll); 79var c = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.DebugDll); 124var c = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.DebugDll); 339var c = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.DebugDll); 437var c = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.ReleaseExe); 552var c = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.DebugExe); 1587var c = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.DebugDll); 1624var compilation = CreateCompilation(src, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp);
PDB\PDBLambdaTests.cs (26)
35var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 109var compilation = CreateCompilationWithMscorlib40AndSystemCore(source.Tree, options: TestOptions.DebugDll); 129var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 203var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 319var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 439var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 553var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 638var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 748var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 827var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 912var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 992var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1068var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1156var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1229var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1301var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1377var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1447var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1523var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1599var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1675var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1847var compilation = CreateCompilation(source.Tree, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 1875var compilation = CreateCompilation(source.Tree, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 1909var compilation = CreateCompilation(source.Tree, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 1926var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2024var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll);
PDB\PDBLocalFunctionTests.cs (5)
42var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 157var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 235var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 326var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 407var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll);
PDB\PDBSourceLinkTests.cs (5)
51var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options: TestOptions.DebugDll); 81var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options: TestOptions.DebugDll); 121var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options: TestOptions.DebugDll); 143var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options: TestOptions.DebugDll); 185var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options: TestOptions.DebugDll);
PDB\PDBTests.cs (137)
50var comp = CSharpCompilation.Create("Compilation", new[] { tree1, tree2, tree3, tree4 }, new[] { MscorlibRef }, options: TestOptions.ReleaseDll); 70var comp = CSharpCompilation.Create("Compilation", new[] { tree1, tree2, tree3, tree4 }, new[] { MscorlibRef }, options: TestOptions.ReleaseDll); 140var comp = CSharpCompilation.Create("test", new[] { tree1, tree2 }, TargetFrameworkUtil.StandardReferences, TestOptions.DebugDll); 172var compilation = CreateCompilation( 216var compilation = CreateCompilation( 250var compilation = CreateCompilation(source0, options: TestOptions.DebugDll); 282var compilation = CreateCompilation(source0, options: TestOptions.DebugDll); 314var compilation = CreateCompilation(source0, options: TestOptions.DebugDll.WithDeterministic(true)); 346var compilation = CreateCompilation(source0); 397var comp = CreateCompilation(""" 471var debug = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugWinMD); 510var release = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.ReleaseWinMD); 556var debug = CreateCompilation(source, options: TestOptions.DebugWinMD); 581var release = CreateCompilation(source, options: TestOptions.ReleaseWinMD); 611var comp = CreateCompilation(new[] { tree1, tree2 }); 648var c = CreateCompilation(source, options: TestOptions.DebugDll); 671var c = CreateCompilation(source, options: TestOptions.DebugExe); 697var c1 = CreateCompilation(source1, options: TestOptions.DebugDll); 698var c2 = CreateCompilation(source2, options: TestOptions.DebugDll); 745var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 802var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 838var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 879var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 933var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 998var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1066var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1240var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1327var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1423var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1491var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1829var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 1943var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 2023var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2074var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2116var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 2168var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 2226var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 3195var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 3267var c = CreateCompilation(source, options: TestOptions.DebugDll); 3428var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 3519var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 3618var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 3719var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe); 3841var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_1); 4007var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_1); 4535var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 4621var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 4726var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 4897var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 4966var compilation = CreateCompilation(new SyntaxTree[] { Parse(text1, "a.cs"), Parse(text2, "b.cs") }); 5062var compilation = CreateCompilation(new[] { Parse(text1, "a.cs"), Parse(text2, "b.cs"), Parse(text3, "a.cs") }, options: TestOptions.DebugDll); 5109var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 5150var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 5189var comp = CreateCompilation(source, options: TestOptions.DebugDll); 5282var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 5316var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 5399var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 5548var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 6035var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 6104var c = CreateCompilation(source, options: TestOptions.DebugDll); 6221var c = CreateCompilation(source, options: TestOptions.DebugDll); 6347var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 6440var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 6527var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 6588var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 6652var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 6736var c = CreateCompilation(source, options: TestOptions.DebugDll); 6851var c = CreateCompilation(source, options: TestOptions.DebugDll); 6953var c = CreateCompilation(source, options: TestOptions.DebugDll); 7064var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 7105var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 7159var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); 7218var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugDll); 7277var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); 7352var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); 7418var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugDll); 7486var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); 7568var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugDll); 7646var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); 7692var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); 7748var compilation = CreateCompilation(text1, options: TestOptions.DebugDll); 7854var c = CreateCompilationWithMscorlib40AndSystemCore(src, references: new[] { CSharpRef, ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.DebugDll); 7901var c = CreateCompilationWithMscorlib40AndSystemCore(src, references: new[] { CSharpRef, ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.DebugExe); 7955var c = CreateCompilationWithMscorlib40AndSystemCore(src, references: new[] { CSharpRef, ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.DebugDll); 8032var c = CreateCompilation(Parse(source, filename: "file.cs")); 8074var comp = CreateCompilationWithMscorlib461(source); 8107var comp = CreateCompilationWithMscorlib461(@" 8154var comp = CreateCompilationWithMscorlib461(@" 8189var comp = CreateCompilationWithMscorlib461(@" 8219var comp = CreateCompilationWithMscorlib461(@" 8255var comp = CreateCompilationWithMscorlib461(@" 8292var comp = CreateCompilationWithMscorlib461(@" 8325var comp = CreateCompilationWithMscorlib461(@" 8407var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll, references: new[] { SystemCoreRef }); 8452var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll, references: new[] { SystemCoreRef }); 8507var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll, references: new[] { SystemCoreRef }); 8559var c = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll, references: new[] { SystemCoreRef }); 8619var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 8694var c = CreateCompilation(source, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); 9091var c = CreateCompilation(source, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); 9458var c = CreateCompilation(source, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); 9687var c = CreateCompilation(source, options: TestOptions.DebugDll); 10529var c = CreateCompilation(source, options: TestOptions.DebugDll); 10700var c = CreateCompilation(source, options: TestOptions.DebugDll); 10840var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 10883var c = CreateCompilation(source, options: TestOptions.DebugDll); 10970var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11147var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, references: s_valueTupleRefs); 11249var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, references: s_valueTupleRefs); 11286var c = CreateCompilation(source, options: TestOptions.DebugDll); 11320var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, references: s_valueTupleRefs); 11344var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, references: s_valueTupleRefs); 11368var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, references: s_valueTupleRefs); 11423var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11438var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11487var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11533var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11575var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11620var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11676var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11732var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11848var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11908var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 11975var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 12032var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 12068var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 12308var c = CSharpCompilation.Create("Compilation", new[] { tree }, new[] { MscorlibRef_v46 }, options: TestOptions.DebugDll.WithDebugPlusMode(true)); 12402var c = CreateCompilation( 12468var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 12881var compilation = CreateCompilation(""); 12911var c = CreateCompilation(new[] { tree1, tree2 }, options: TestOptions.DebugDll); 12949var c = CreateCompilation(new[] { tree }, options: TestOptions.DebugDll); 12970var c = CreateCompilation(
PDB\PDBTupleTests.cs (6)
27var comp = CreateCompilation(source, options: TestOptions.DebugDll); 74var comp = CreateCompilation(source, options: TestOptions.DebugDll); 126var comp = CreateCompilation(source, options: TestOptions.DebugDll); 193var comp = CreateCompilation(source, options: TestOptions.DebugDll); 244var comp = CreateCompilation(source, options: TestOptions.DebugDll); 310var c = CreateCompilation(source, options: TestOptions.DebugDll);
PDB\PDBUsingTests.cs (54)
28private static CSharpCompilation CreateDummyCompilation(string assemblyName) 548CSharpCompilation dummyCompilation1 = CreateDummyCompilation("a"); 549CSharpCompilation dummyCompilation2 = CreateDummyCompilation("b"); 550CSharpCompilation dummyCompilation3 = CreateDummyCompilation("c"); 571var compilation = CreateCompilation(text, 664var compilation1 = CreateCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, assemblyName: "TestExternAliases2"); 671var compilation2 = CreateCompilation( 717var compilation1 = CreateCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, assemblyName: "TestExternAliases3"); 724var compilation2 = CreateCompilation( 771var dummyCompilation = CreateCompilation(src1, assemblyName: "A", options: TestOptions.DebugDll); 788var compilation = CreateCompilation(src2, 807var comp = CreateCompilation(sourceA, assemblyName: "A1"); 857var comp = CreateCompilation(sourceA1, assemblyName: "A1"); 943var comp = CreateCompilation(sourceA1, assemblyName: "A1"); 1029var comp = CreateCompilation(sourceA1, assemblyName: "A1"); 1122var comp = CreateCompilation(sourceA1, assemblyName: "A1"); 1215var comp = CreateCompilation(sourceA1, assemblyName: "A1"); 1307var comp = CreateCompilation(sourceA1, assemblyName: "A1"); 1398CSharpCompilation dummyCompilation1 = CreateCompilation(dummySource, assemblyName: "A", options: TestOptions.DebugDll); 1399CSharpCompilation dummyCompilation2 = CreateCompilation(dummySource, assemblyName: "B", options: TestOptions.DebugDll); 1410var compilation = CreateCompilation(text, 1463CSharpCompilation libComp = CreateCompilation(@" 1483var compilation = CreateCompilation(text, 1525CSharpCompilation dummyCompilation1 = CreateDummyCompilation("a"); 1526CSharpCompilation dummyCompilation2 = CreateDummyCompilation("b"); 1527CSharpCompilation dummyCompilation3 = CreateDummyCompilation("c"); 1557var compilation = CreateCompilation(text, 1692var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll); 1714var compilation2 = CreateCompilation(source2, 1765var compilation1 = CreateCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll); 1781var compilation2 = CreateCompilation(source2, 1824CSharpCompilation dummyCompilation1 = CreateDummyCompilation("a"); 1825CSharpCompilation dummyCompilation2 = CreateDummyCompilation("b"); 1826CSharpCompilation dummyCompilation3 = CreateDummyCompilation("c"); 1862var compilation = CreateCompilation( 1994CSharpCompilation dummyCompilation1 = CreateDummyCompilation("a"); 1995CSharpCompilation dummyCompilation2 = CreateDummyCompilation("b"); 1996CSharpCompilation dummyCompilation3 = CreateDummyCompilation("c"); 1997CSharpCompilation dummyCompilation4 = CreateDummyCompilation("d"); 2040var compilation = CreateCompilation( 2660var comp = CreateCompilation(source); 2693var lib = CreateCompilation(libSource, assemblyName: "Lib"); 2712var comp = CreateCompilation(source, new[] { libRef }); 2754var comp = CreateCompilation(source); 2834var comp1 = CreateCompilation(source1, options: TestOptions.DebugDll, assemblyName: "Comp1"); 2851var comp2 = CreateCompilation(source2, new[] { comp1.ToMetadataReference() }, options: TestOptions.DebugExe); 2905var compilation = CreateCompilation(text, options: TestOptions.DebugExe); 2930var comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40); 2973var comp = CreateCompilationWithMscorlib40(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), references: new[] { SystemCoreRef.WithAliases(new[] { "A" }), SystemDataRef }); 3018var comp = CreateCompilation(source); 3070var c = CreateCompilation(source, assemblyName: "EmittingPdbVsNot", options: TestOptions.ReleaseDll); 3154var compilation = CreateCompilation(source, new[] { libRef }); 3227var compilation = CreateCompilation(source, new[] { libRef2 }); 3317var c = CreateCompilationWithMscorlib40(sources, new[] { SystemCoreRef.WithAliases(ImmutableArray.Create("A")) });
PDB\PDBWinMdExpTests.cs (5)
27var compilation = CreateCompilationWithMscorlib461( 108var compilation = CreateCompilationWithMscorlib461( 155var compilation = CreateCompilationWithMscorlib461( 234var compilation = CreateCompilationWithMscorlib461( 270var compilation = CreateCompilationWithMscorlib461(
PDB\PortablePdbTests.cs (6)
42var c = CreateCompilation(source, options: TestOptions.DebugDll); 166var c = CreateCompilation(Parse(source, "goo.cs"), options: TestOptions.DebugDll); 226var c = CreateCompilation(Parse(source, "goo.cs"), options: TestOptions.DebugDll.WithDeterministic(true)); 301var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options: TestOptions.DebugDll); 342var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options: TestOptions.DebugDll); 381var c = CreateCompilation(Parse(source, "f:/build/goo.cs"), options: TestOptions.DebugDll);
PDB\TypeDefinitionDocumentTests.cs (1)
464var compilation = CreateCompilation(trees, options: TestOptions.DebugDll);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5832)
Attributes\AttributeTests.cs (267)
40var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithDeterministic(true)); 113var origLibComp = CreateCompilation(origLib_cs, assemblyName: "lib"); 116var compWithReferenceToLib = CreateCompilation(reference_cs, references: new[] { origLibComp.EmitToImageReference() }); 119var newLibComp = CreateCompilation(newLib_cs, references: new[] { compWithReferenceToLib.EmitToImageReference() }, assemblyName: "lib"); 122var newLibComp2 = CreateCompilation(newLib_cs, references: new[] { compWithReferenceToLib.ToMetadataReference() }, assemblyName: "lib"); 146var origLibComp = CreateCompilation(origLib_cs, assemblyName: "lib"); 149var compWithReferenceToLib = CreateCompilation(reference_cs, references: new[] { origLibComp.EmitToImageReference() }); 152var newLibComp = CreateCompilation(newLib_cs, references: new[] { compWithReferenceToLib.EmitToImageReference() }, assemblyName: "lib"); 159var newLibComp2 = CreateCompilation(newLib_cs, references: new[] { compWithReferenceToLib.ToMetadataReference() }, assemblyName: "lib"); 186var origLibComp = CreateCompilation(origLib_cs, assemblyName: "lib"); 189var compWithReferenceToLib = CreateCompilation(reference_cs, references: new[] { origLibComp.EmitToImageReference() }); 192var newLibComp = CreateCompilation(newLib_cs, references: new[] { compWithReferenceToLib.EmitToImageReference() }, assemblyName: "lib"); 199var newLibComp2 = CreateCompilation(newLib_cs, references: new[] { compWithReferenceToLib.ToMetadataReference() }, assemblyName: "lib"); 235var origLibComp = CreateCompilation(origLib_cs, assemblyName: "lib"); 238var compWithReferenceToLib = CreateCompilation(reference_cs, references: new[] { origLibComp.EmitToImageReference() }); 241var newLibComp = CreateCompilation(newLib_cs, references: new[] { compWithReferenceToLib.EmitToImageReference() }, assemblyName: "lib"); 244var newLibComp2 = CreateCompilation(newLib_cs, references: new[] { compWithReferenceToLib.ToMetadataReference() }, assemblyName: "lib"); 268var origLibComp = CreateCompilation(origLib_cs, assemblyName: "lib"); 271var newComp = CreateCompilation(origLib_cs, assemblyName: "new"); 274var compWithReferenceToLib = CreateCompilation(reference_cs, references: new[] { origLibComp.EmitToImageReference() }); 277var newLibComp = CreateCompilation(newLib_cs, 281var newLibComp2 = CreateCompilation(newLib_cs, 305var origLibComp = CreateCompilation(origLib_cs, assemblyName: "lib"); 308var newComp = CreateCompilation(origLib_cs, assemblyName: "new"); 311var compWithReferenceToLib = CreateCompilation(reference_cs, references: new[] { origLibComp.EmitToImageReference() }); 314var newLibComp = CreateCompilation(newLib_cs, references: new[] { compWithReferenceToLib.EmitToImageReference(), newComp.EmitToImageReference() }, assemblyName: "lib"); 317var newLibComp2 = CreateCompilation(newLib_cs, references: new[] { compWithReferenceToLib.ToMetadataReference(), newComp.ToMetadataReference() }, assemblyName: "lib"); 320var newLibComp3 = CreateCompilation(newLib_cs, references: new[] { compWithReferenceToLib.EmitToImageReference(), newComp.EmitToImageReference() }, assemblyName: "lib"); 339var origLibComp = CreateCompilation(cDefinition_cs, assemblyName: "lib"); 342var compWithDerivedAndReferenceToLib = CreateCompilation(typeForward_cs + derivedDefinition_cs, references: new[] { origLibComp.EmitToImageReference() }); 345var compWithC = CreateCompilation(cDefinition_cs, assemblyName: "new"); 348var newLibComp = CreateCompilation(typeForward_cs, references: new[] { compWithDerivedAndReferenceToLib.EmitToImageReference(), compWithC.EmitToImageReference() }, assemblyName: "lib"); 378var origLibComp = CreateCompilation(origLib_cs, assemblyName: "lib"); 381var newComp = CreateCompilation(origLib_cs, assemblyName: "new"); 384var compWithReferenceToLib = CreateCompilation(reference_cs, references: new[] { origLibComp.EmitToImageReference() }); 387var newLibComp = CreateCompilation(newLib_cs, 391var newLibComp2 = CreateCompilation(newLib_cs, 416var origLibComp = CreateCompilation(origLib_cs, assemblyName: "lib"); 419var newComp = CreateCompilation(origLib_cs, assemblyName: "new"); 422var compWithReferenceToLib = CreateCompilation(reference_cs, references: new[] { origLibComp.EmitToImageReference() }); 425var newLibComp = CreateCompilation(newLib_cs, references: new[] { compWithReferenceToLib.EmitToImageReference(), newComp.EmitToImageReference() }, assemblyName: "lib"); 428var newLibComp2 = CreateCompilation(newLib_cs, references: new[] { compWithReferenceToLib.ToMetadataReference(), newComp.ToMetadataReference() }, assemblyName: "lib"); 451var origLibComp = CreateCompilation(origLib_cs, assemblyName: "lib"); 454var newComp = CreateCompilation(origLib_cs, assemblyName: "new"); 457var compWithReferenceToLib = CreateCompilation(reference_cs, references: new[] { origLibComp.EmitToImageReference() }); 460var newLibComp = CreateCompilation(newLib_cs, references: new[] { compWithReferenceToLib.EmitToImageReference(), newComp.EmitToImageReference() }, assemblyName: "lib"); 463var newLibComp2 = CreateCompilation(newLib_cs, references: new[] { compWithReferenceToLib.ToMetadataReference(), newComp.ToMetadataReference() }, assemblyName: "lib"); 470var source = CreateCompilation(@" 511var comp = CreateCompilationWithMscorlib46(@" 539var comp = CreateCompilationWithMscorlib46(@" 561var comp = CreateCompilationWithMscorlib46(@" 599var comp = CreateCompilation(@" 630var comp = CreateCompilation(@" 675var comp = CreateCompilation(source); 702var comp = CreateCompilation(source); 743var comp = CreateCompilation(source); 807var comp = CreateCompilation(source); 849var comp = CreateCompilation(source); 890var comp = CreateCompilation(source); 929var comp = CreateCompilation(source); 992var definitionComp = CreateCompilation(definitionSource, options: WithNullableEnable()); 1018var comp = CreateCompilation(source, options: WithNullableEnable()); 1057var comp = CreateCompilation(source, options: WithNullableEnable()); 1077var comp = CreateCompilationWithMscorlib46(@" 1157var comp = CreateCompilationWithMscorlib46(@" 1197var comp = CreateCompilationWithMscorlib46(@" 1236var comp = CreateCompilationWithMscorlib46(@" 1275var comp = CreateCompilationWithMscorlib46(@" 1313var comp = CreateCompilationWithMscorlib46(@" 1371var source = CreateCompilationWithMscorlib40AndSystemCore(code); 1406var compilation = CreateCompilation(@" 1477var compilation = CreateCompilation(@" 1502var compilation = CreateCompilation(@" 1526var compilation = CreateCompilation(@" 1585var compilation = CreateCompilation(@" 1618var compilation = CreateCompilation(@" 1703var compilation = CreateCompilation(source, references, options: opt); 1748var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_2); 2009var comp = CreateCompilation(source); 2027var comp = CreateCompilation(source); 2051var comp = CreateCompilation(source); 2071var comp = CreateCompilation(source); 2091var comp = CreateCompilation(source); 2109var comp = CreateCompilation(source); 2127var comp = CreateCompilation(source); 2149var comp = CreateCompilation(source); 2171var comp = CreateCompilation(source); 2301var comp = CreateCompilationWithMscorlib40(source); 2370var comp = CreateCompilation(source); 2394var comp = CreateCompilation(source); 2427var comp = CreateCompilation(source); 2503var comp = CreateCompilation(source); 2535var comp = CreateCompilation(source); 2565var comp = CreateCompilation(source); 3093var compilation = CreateCompilation(source, references, options: TestOptions.ReleaseDll); 3168var compilation = CreateCompilation(source, references, options: opt); 3210var compilation = CreateCompilation(source, references, options: opt); 3258var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3306var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3358var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3410var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3444var compilation = CreateCompilation(source, references, options: opt); 3583var compilation = CreateCompilation(source, references, options: opt); 3631var compilation = CreateCompilation(source); 3677var compilation = CreateCompilation(source, references, options: opt); 3784var compilation = CreateCompilation(source, references, options: opt); 3858var compilation = CreateCompilation(source); 3898var compilation = CreateCompilation(source); 3944var compilation = CreateCompilation(source); 3995var compilation = CreateCompilation(source); 4046var source = CreateCompilationWithMscorlib40(@" 4132var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4175var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4219var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4264var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4308var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4510var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 4566var compilation = CreateCompilation(source); 4607var compilation = CreateCompilation(source); 4881var metadataStream1 = CSharpCompilation.Create("bar.dll", 4887var metadataStream2 = CSharpCompilation.Create("goo.dll", references: new[] { MscorlibRef, ref1 }, 4896var compilation = CSharpCompilation.Create("moo.dll", references: new[] { MscorlibRef, ref1, ref2 }); 4956var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5062var compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.ReleaseExe); 5131var compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.ReleaseExe); 5167var compilation = CreateCompilation(new[] { source1, source2 }, options: TestOptions.ReleaseExe); 5204var compilation = CreateCompilation(source); 5242var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5300var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5361var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 5419var comp = CreateCompilation(source); 5473var compilation = CreateCompilation(source); 5706var c1 = CreateCompilation(lib1); 5709var c2 = CreateCompilation(lib2, references: new[] { r1 }); 5712var cm = CreateCompilation(main, new[] { r2 }); 5842var compilation = CreateCompilationWithMscorlib40AndSystemCore(@" 5913var compilation = CreateCompilation(@" 5994var compilation = CreateCompilation(source, references, options: opt); 6036var compilation = CreateCompilation(source); 6063var compilation = CreateCompilation(source); 6097var compilation = CreateCompilation(source); 6146var compilation = CreateCompilation(source); 6166var compilation = CreateCompilation(source); 6185var compilation = CreateCompilation(source); 6206var compilation = CreateCompilation(source); 6235var compilation = CreateCompilation(source); 6266var compilation = CreateCompilation(source); 6286var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular10); 6322var compilation = CreateCompilation(source); 6346var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular10); 6380var compilation = CreateCompilation(new[] { source1, source2 }); 6408var compilation = CreateCompilation(new[] { source1, source2 }); 6440var compilation = CreateCompilation(source); 6469var compilation = CreateCompilation(source); 6503var compilation = CreateCompilation(source); 6542var compilation = CreateCompilation(source); 6575var compilation = CreateCompilation(source); 6612var compilation = CreateCompilation(source); 6640var compilation = CreateCompilation(source); 6697var compilation = CreateCompilation(source); 6718var compilation = CreateCompilation(source); 6758var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 6807var compilation = CreateCompilation(source); 6850var compilation = CreateCompilation(source); 6894var compilation = CreateCompilation(source); 6938var compilation = CreateCompilation(source); 6988var compilation = CreateCompilation(source); 7031var compilation = CreateCompilation(source); 7078var compilation = CreateCompilation(source); 7125var compilation = CreateCompilation(source); 7181var compilation = CreateCompilation(source); 7232var compilation = CreateCompilation(source); 7272var compilation = CreateCompilation(source); 7312var compilation = CreateCompilation(source); 7359var compilation = CreateCompilation(source); 7492var compilation = CreateCompilation(source, null, options: opt); 7524var compilation = CreateCompilation(source); 7569var compilation = CreateCompilation(source); 7610var compilation = CreateCompilation(source, null, options: opt); 7653var compilation = CreateCompilation(source, null, options: opt); 7711var compilation = CreateCompilation(source, null, options: opt); 7809var compilation = CreateCompilation(source, null, options: opt); 7864var compilation = CreateCompilation(new string[] { source, source2 }); 7878var compilation = CreateCompilation(source); 7917var compilation = CreateCompilation(source, null, options: opt, parseOptions: TestOptions.Regular10); 7955var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 7999var comp = CreateCompilationWithILAndMscorlib40(csharpSource, ilSource, parseOptions: TestOptions.Regular9); 8036var comp = CreateCompilation(source); 8077var comp = CreateCompilation(source); 8104var comp = CreateCompilation(source); 8193var comp = CreateCompilation(source); 8383var compilation = CreateCompilation(source); 8420var compilation = CreateCompilationWithMscorlib40(source); 8478var comp3 = CreateCompilationWithMscorlib40(source4, references: new[] { comp1, comp2 }); 8554var comp = CreateCompilation(source1, assemblyName: "A"); 8593var comp = CreateCompilation(source1); 8637var compilation = CreateCompilation(source); 8677var compilation = CreateCompilation(source2, new[] { reference1 }); 8719var compilation = CreateCompilation(source2, new[] { reference1 }); 8762var compilation = CreateCompilation(source2, new[] { reference1 }); 8809var compilation = CreateCompilation(source2, new[] { reference1 }); 8852var compilation = CreateCompilation("", new[] { reference1 }); 8892var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 9009var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 9071var comp = CreateCompilationWithILAndMscorlib40(source, il, parseOptions: TestOptions.Regular10); 9126var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 9172var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 9199var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 9397var comp = CreateCompilation(source); 9476var comp = CreateCompilation(source); 9564var comp = CreateCompilation(source); 9641var comp = CreateCompilation(source); 9713var comp = CreateCompilation(source); 9794var comp = CreateCompilation(source); 9864var comp = CreateCompilation(source); 9908var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 9918var comp2 = CreateCompilation("", new[] { comp.EmitToImageReference() }); 9937var compilation1 = CreateCompilation(source1, assemblyName: "Bug1020038"); 9950var compilation2 = CreateCompilation(source2, new[] { new CSharpCompilationReference(compilation1) }); 9969var compilation3 = CreateCompilation(source3, new[] { new CSharpCompilationReference(compilation1) }); 9990var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 10019var compilation1 = CreateCompilationWithMscorlib40(source1, options: TestOptions.DebugDll); 10032var compilation2 = CreateCompilationWithMscorlib40(source2, new[] { new CSharpCompilationReference(compilation1) }, options: TestOptions.DebugDll, assemblyName: "Test.dll"); 10043var compilation3 = CreateCompilationWithMscorlib461(source2, new[] { new CSharpCompilationReference(compilation1) }, options: TestOptions.DebugDll); 10123var comp = CreateCompilation(source); 10149var comp = CreateCompilation(source); 10173var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 10211var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 10238var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, references: new[] { libRef }); 10259var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 10288var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, references: new[] { libRef }); 10314var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, references: new[] { libRef }); 10340var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, references: new[] { libRef }); 10360var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 10385var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 10421var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 10459var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular10); 10465var comp1 = CreateCompilation(source1); 10466var comp2 = CreateCompilation(source2, references: new[] { comp1.ToMetadataReference() }, parseOptions: TestOptions.Regular9); 10508var comp = CreateCompilationWithIL(source, il, parseOptions: TestOptions.Regular9); 10530var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular10); 10536var comp1 = CreateCompilation(source1); 10537var comp2 = CreateCompilation(source2, references: new[] { comp1.ToMetadataReference() }, parseOptions: TestOptions.Regular9); 10556var comp = CreateCompilation(source); 10574var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10658var comp = CreateCompilation(source); 10754var comp = CreateCompilationWithIL(source, il, options: TestOptions.DebugExe); 10787var comp = CreateCompilation(source); 10834var comp = CreateCompilation(source); 10872var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 10895var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 10922var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 10939var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 10988var comp = CreateCompilation(source, targetFramework: TargetFramework.Net60); 11039var comp = CreateCompilation(source); 11056var comp = CreateCompilation(csSource); 11098var comp = CreateCompilation(source); 11170var comp = CreateCompilation(source); 11264var comp = CreateCompilation(source); 11418var comp = CreateCompilation(source); 11462var comp = CreateCompilation(source); 11498var comp = CreateCompilation(source); 11526var comp = CreateCompilation(source); 11551var comp = CreateCompilation(source); 11576var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 11631var comp = CreateCompilation(source);
Attributes\AttributeTests_Assembly.cs (99)
31var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 41var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 52var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 70var comp = CreateCompilation(s, options: TestOptions.ReleaseDll.WithCurrentLocalTime(now)); 84var comp = CreateCompilation(s, options: TestOptions.ReleaseDll.WithCurrentLocalTime(new DateTime(2300, 1, 1))); 99var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 118var comp = CreateCompilation(s, options: TestOptions.ReleaseDll.WithDeterministic(true)); 131var comp = CreateCompilation(s, options: TestOptions.ReleaseDll.WithDeterministic(true)); 144var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 154var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 164var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 174var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 193var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 206var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 227var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 254var other = CreateCompilation(s); 267var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 277var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 287var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 297var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 306var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 323var comp = CreateCompilation(s, options: TestOptions.ReleaseExe); 335var comp = CreateCompilation(s, options: TestOptions.ReleaseExe); 347var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 362var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 372var neutral = CreateCompilationWithMscorlib40( 380var de = CreateCompilationWithMscorlib40( 390var en_us = CreateCompilationWithMscorlib40( 400CSharpCompilation compilation; 518var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 534var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 544var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 554var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 570var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 584CSharpCompilation compilation; 802var hash_module_Comp = CreateCompilation( 869var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 892var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 905var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 920var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 933CSharpCompilation compilation, 1013var netmoduleCompilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseModule, references: references, assemblyName: assemblyName); 1017private void TestDuplicateAssemblyAttributesNotEmitted(CSharpCompilation compilation, int expectedSrcAttrCount, int expectedDuplicateAttrCount, string attrTypeName) 1073var consoleappCompilation = CreateCompilationWithMscorlib40( 1176var netmoduleCompilation = CreateEmptyCompilation(netModuleSource, 1194var consoleappCompilation = CreateEmptyCompilation( 1271var consoleappCompilation = CreateCompilationWithMscorlib40(consoleappSource, references: new[] { GetNetModuleWithAssemblyAttributesRef() }, options: TestOptions.ReleaseExe); 1323var consoleappCompilation = CreateCompilationWithMscorlib40(consoleappSource, references: new[] { GetNetModuleWithAssemblyAttributesRef() }, options: TestOptions.ReleaseExe); 1374var consoleappCompilation = CreateCompilationWithMscorlib40(consoleappSource, references: new[] { GetNetModuleWithAssemblyAttributesRef() }, options: TestOptions.ReleaseExe); 1419var compilation = CreateCompilationWithMscorlib40(consoleappSource, references: new[] { netmodule1Ref }, options: TestOptions.ReleaseExe); 1457var compilation = CreateCompilation(source); 1497var compilation = CreateCompilationWithMscorlib40(source, references: new[] { GetNetModuleWithAssemblyAttributesRef() }, options: TestOptions.ReleaseDll); 1523var compilation = CreateCompilationWithMscorlib40(source1, references: new[] { defsRef, netmodule1Ref }, options: TestOptions.ReleaseDll); 1576var compilation = CreateCompilationWithMscorlib40(source, references: new[] { netmoduleRef }, options: TestOptions.ReleaseDll); 1629var compilation = CreateCompilationWithMscorlib40(source, references: new[] { netmoduleDefsRef, netmodule0Ref, netmodule1Ref, netmodule2Ref, netmodule3Ref }, options: TestOptions.ReleaseDll); 1671var compilation = CreateCompilationWithMscorlib40(source, references: new[] { netmoduleRef }, options: TestOptions.ReleaseDll); 1718var compilation = CreateCompilationWithMscorlib40(source, references: new[] { netmoduleRef }, options: TestOptions.ReleaseDll); 1744var appCompilation = CreateCompilationWithMscorlib40(app, references: new[] { netModuleRef }, options: TestOptions.ReleaseDll); 1784var appCompilation = CreateCompilationWithMscorlib40(app, references: new[] { netModuleRef }, options: TestOptions.ReleaseDll); 1835var module = CreateCompilation(moduleSrc, options: TestOptions.ReleaseModule, assemblyName: "M"); 1841var assembly = CreateCompilation(assemblySrc, new[] { module.EmitToImageReference() }, assemblyName: "C"); 1932var module = CreateCompilation(moduleSrc, options: TestOptions.ReleaseModule, assemblyName: "M"); 1946var assembly = CreateCompilation(assemblySrc, new[] { module.EmitToImageReference() }, assemblyName: "C"); 1958var module1 = CreateCompilation(moduleSrc1, options: TestOptions.ReleaseModule, assemblyName: "M1"); 1965var module2 = CreateCompilation(moduleSrc2, options: TestOptions.ReleaseModule, assemblyName: "M2"); 1971var assembly = CreateCompilation(assemblySrc, new[] { module1.EmitToImageReference(), module2.EmitToImageReference() }, assemblyName: "C"); 1986var module1 = CreateCompilation(moduleSrc1, options: TestOptions.ReleaseModule, assemblyName: "M1"); 1996var assembly = CreateCompilation(assemblySrc, new[] { module1.EmitToImageReference() }, assemblyName: "C"); 2011var module1 = CreateCompilation(moduleSrc1, options: TestOptions.ReleaseModule, assemblyName: "M1"); 2018var module2 = CreateCompilation(moduleSrc2, options: TestOptions.ReleaseModule, assemblyName: "M2"); 2024var assembly = CreateCompilation(assemblySrc, new[] { module1.EmitToImageReference(), module2.EmitToImageReference() }, assemblyName: "C"); 2039var module1 = CreateCompilation(moduleSrc1, options: TestOptions.ReleaseModule, assemblyName: "M1"); 2049var assembly = CreateCompilation(assemblySrc, new[] { module1.EmitToImageReference() }, assemblyName: "C"); 2064var module1 = CreateCompilation(moduleSrc1, options: TestOptions.ReleaseModule, assemblyName: "M1"); 2071var module2 = CreateCompilation(moduleSrc2, options: TestOptions.ReleaseModule, assemblyName: "M2"); 2077var assembly = CreateCompilation(assemblySrc, new[] { module1.EmitToImageReference(), module2.EmitToImageReference() }, assemblyName: "C"); 2090var module1 = CreateCompilation(moduleSrc1, options: TestOptions.ReleaseModule, assemblyName: "M1"); 2100var assembly = CreateCompilation(assemblySrc, new[] { module1.EmitToImageReference() }, assemblyName: "C"); 2116var compMod1 = CreateCompilation(mod1Source, options: TestOptions.ReleaseModule, assemblyName: "M1"); 2117var compMod2 = CreateCompilation(mod2Source, options: TestOptions.ReleaseModule, assemblyName: "M2"); 2119var appCompilation = CreateCompilation(source, 2148var compMod1 = CreateCompilation(mod1Source, options: TestOptions.ReleaseModule, assemblyName: "M1"); 2149var compMod2 = CreateCompilation(mod2Source, options: TestOptions.ReleaseModule, assemblyName: "M2"); 2151var appCompilation = CreateCompilation(source, 2178var compMod1 = CreateCompilation(mod1Source, options: TestOptions.ReleaseModule, assemblyName: "M1"); 2179var compMod2 = CreateCompilation(mod2Source, options: TestOptions.ReleaseModule, assemblyName: "M2"); 2181var appCompilation = CreateCompilation(source, 2210var compMod1 = CreateCompilation(mod1Source, options: TestOptions.ReleaseModule, assemblyName: "M1"); 2211var compMod2 = CreateCompilation(mod2Source, options: TestOptions.ReleaseModule, assemblyName: "M2"); 2213var appCompilation = CreateCompilation(source, 2237var compMod1 = CreateCompilation(mod1Source, options: TestOptions.ReleaseModule, assemblyName: "M1"); 2238var appCompilation = CreateCompilation(source, 2272var compilation = CreateCompilation(s, options: TestOptions.ReleaseDll); 2293var comp = CreateCompilation("", references: new[] { moduleWithAttribute, attributeDefinition1 }, options: TestOptions.ReleaseDll); 2305var comp2 = CreateCompilation("", references: new[] { moduleWithAttribute }, options: TestOptions.ReleaseDll); 2320var comp3 = CreateCompilation("", references: new[] { moduleWithAttribute, attributeDefinition2 }, options: TestOptions.ReleaseDll); 2349var comp = CreateCompilation("", references: new[] { module1WithAttribute, c1Definition }, options: TestOptions.ReleaseDll); 2361var comp2 = CreateCompilation("", references: new[] { module1WithAttribute }, options: TestOptions.ReleaseDll); 2377var comp3 = CreateCompilation("", references: new[] { module2WithAttribute, c1Definition }, options: TestOptions.ReleaseDll);
Attributes\AttributeTests_CallerInfoAttributes.cs (76)
72var compilation = CreateEmptyCompilation(source, GetReferencesWithoutInteropServices(), options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 138var compilation = CreateEmptyCompilation(source, GetReferencesWithoutInteropServices(), options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 203var compilation = CreateEmptyCompilation(source, GetReferencesWithoutInteropServices(), options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 259var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 318var compilation = CreateEmptyCompilation(source, GetReferencesWithoutInteropServices(), options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 375var compilation = CreateEmptyCompilation(source, GetReferencesWithoutInteropServices(), options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 420var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 459var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 498var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 526var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 565var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 626var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 659var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 679var comp1 = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, parseOptions: TestOptions.Regular9); 690var compilation = CreateCompilation(source2, references: new[] { ref1 }, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 716var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 742var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 767var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 796var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 825var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 854var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 889var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 924var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 953var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 982var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1014var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1063var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1098var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1137var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1177var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1215var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1250var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1290var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1321var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1346var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe); 1393var compilation = CreateCompilationWithIL(source, il, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe); 1444var compilation = CreateCompilation(source, targetFramework: TargetFramework.Net50, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1478var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1512var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1545var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1565var comp1 = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 1582var compilation = CreateCompilation(source2, references: new[] { ref1 }, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1613var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1648var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1688var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1730var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1776var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1815var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1849var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1913var compilation = CreateCompilationWithIL(source, il, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1941var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 1973var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2005var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2038var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2077var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2121var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2153var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2181var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 2209var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2237var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2297var compilation = CreateCompilationWithILAndMscorlib40(source, il, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2331var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2367var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2405var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2442var compilation = CreateCompilation(source, targetFramework: TargetFramework.Net50, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2493var compilation = CreateCompilation(source, targetFramework: TargetFramework.Net50, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular10); 2677var compilation = CreateCompilationWithMscorlib461(source, new MetadataReference[] { SystemRef }, TestOptions.ReleaseExe); 2711var compilation = CreateCompilationWithMscorlib461(source, new MetadataReference[] { SystemRef }, TestOptions.ReleaseExe); 2755var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemRef }, TestOptions.ReleaseExe); 2846var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 2891var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 2926var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 2957var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 3046var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 3077var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 3170var compilation = CreateCompilationWithMscorlib461(source, new[] { libReference }, TestOptions.ReleaseExe);
Attributes\AttributeTests_Conditional.cs (6)
252var compilation = CreateCompilation(syntaxTree, options: TestOptions.ReleaseExe); 268var comp1 = CreateCompilation(source1); 463var compilation = CreateCompilation(syntaxTree, options: TestOptions.ReleaseExe); 479var comp1 = CreateCompilation(source1, assemblyName: Guid.NewGuid().ToString()); 558var compilation = CreateCompilation(@" 704var comp = CreateCompilation(source);
Attributes\AttributeTests_Dynamic.cs (13)
103var comp = CreateCompilationWithMscorlib40(s_dynamicTestSource, options: TestOptions.UnsafeReleaseDll, references: new[] { SystemCoreRef, ValueTupleRef, SystemRuntimeFacadeRef }); 562var comp = CreateCompilationWithMscorlib46(s_dynamicTestSource, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.UnsafeReleaseDll); 819var comp = CreateCompilationWithMscorlib461( 851var comp = CreateCompilationWithMscorlib461( 871var comp = CreateCompilationWithMscorlib461(source: source, parseOptions: TestOptions.Script).VerifyDiagnostics( 886var comp = CreateCompilationWithMscorlib461( 908var comp = CreateCompilationWithMscorlib461( 930var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script).VerifyDiagnostics( 944var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script).VerifyDiagnostics( 974var comp = CreateCompilationWithMscorlib46(source, references: new[] { customRef }); 1189var comp = CreateEmptyCompilation(source0, parseOptions: parseOptions); 1226var comp = CreateEmptyCompilation(source0, parseOptions: parseOptions); 1307var comp = CreateCompilationWithMscorlib461(
Attributes\AttributeTests_Embedded.cs (6)
51var reference = CreateCompilation(@" 91var module = CreateCompilation(@" 132var reference = CreateCompilation(@" 221var module = CreateCompilation(options: TestOptions.ReleaseModule, assemblyName: "testModule", source: @" 492var compilation1 = CreateCompilation(parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), source: @" 505var compilation2 = CreateCompilation("", references: new[] { compilation1.EmitToImageReference() });
Attributes\AttributeTests_Experimental.cs (16)
66var comp1 = CreateCompilation(new[] { Parse(ExperimentalAttributeSource), Parse(source1) }); 89var comp2A = CreateCompilation(source2, new[] { comp1.EmitToImageReference() }); 104var comp2B = CreateCompilation(source2, new[] { new CSharpCompilationReference(comp1) }); 164var comp1 = CreateCompilation(source1, new[] { ref0 }); 207var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(DeprecatedAttributeSource), Parse(ExperimentalAttributeSource), Parse(source) }); 261var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { DeprecatedAttributeSource, ExperimentalAttributeSource, source }, parseOptions: TestOptions.Regular9); 306var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(DeprecatedAttributeSource), Parse(ExperimentalAttributeSource), Parse(source) }); 348var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(DeprecatedAttributeSource), Parse(ExperimentalAttributeSource), Parse(source) }); 368var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(ExperimentalAttributeSource), Parse(source) }); 397var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(ExperimentalAttributeSource), Parse(source) }); 426var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(ExperimentalAttributeSource), Parse(source) }); 457var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(ExperimentalAttributeSource), Parse(source) }); 494var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(ExperimentalAttributeSource), Parse(source) }); 533var comp1 = CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(DeprecatedAttributeSource), Parse(ExperimentalAttributeSource), Parse(source1) }); 559var comp2 = CreateCompilationWithMscorlib40AndSystemCore(source2, references: new[] { comp1.EmitToImageReference() }); 634var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(ExperimentalAttributeSource), Parse(source) });
Attributes\AttributeTests_IsByRefLike.cs (8)
358var code1 = CreateCompilation(@" 364var code2 = CreateCompilation(@" 377var code3 = CreateCompilation(@" 572var comAssembly = CreateCompilationWithMscorlib40(@" 608var compilation_CompilationReference = CreateCompilationWithMscorlib40(code, options: options, references: new[] { comAssembly.ToMetadataReference(embedInteropTypes: true) }); 611var compilation_BinaryReference = CreateCompilationWithMscorlib40(code, options: options, references: new[] { comAssembly.EmitToImageReference(embedInteropTypes: true) }); 895var libComp = CreateCompilation(libSrc); 998var compilation1 = CreateEmptyCompilation(new[] { source1, compilerFeatureRequiredAttribute }, assemblyName: GetUniqueName());
Attributes\AttributeTests_IsUnmanaged.cs (3)
628var code1 = CreateCompilation(@" 634var code2 = CreateCompilation(@" 643var code3 = CreateCompilation(@"
Attributes\AttributeTests_LifetimeAnnotation.cs (16)
39var comp = CreateCompilation(new[] { ScopedRefAttributeDefinition, source }); 54var comp = CreateCompilation(ScopedRefAttributeDefinition); 91var comp = CreateCompilation(new[] { source1, source2 }); 112var comp = CreateCompilation(new[] { ScopedRefAttributeDefinition, source }); 151var comp = CreateCompilation(source); 171var comp = CreateCompilation(new[] { ScopedRefAttributeDefinition, source }); 254var comp = CreateCompilation(source1, references: new[] { ref0 }); 323var comp = CreateCompilation(source1, references: new[] { ref0 }); 339var comp = CreateCompilation(source); 371var comp = CreateCompilation(source); 392var comp = CreateCompilation(source); 415var comp = CreateCompilation(source); 438var comp = CreateCompilation(source); 475var comp = CreateCompilation(source); 511var comp = CreateCompilation(source); 541var comp = CreateCompilation(source);
Attributes\AttributeTests_MarshalAs.cs (4)
31var compilation = CreateEmptyCompilation(new SyntaxTree[0], new[] { assembly.GetReference() }, 63var compilation = CreateEmptyCompilation( 1529var comp1 = CreateCompilation(text1, assemblyName: "OptionalMarshalAsLibrary"); 1530var comp2 = CreateCompilation(text2,
Attributes\AttributeTests_NativeInteger.cs (48)
29var comp = CreateCompilation(source); 44var comp = CreateCompilation(new[] { NativeIntegerAttributeDefinition, source }); 61var comp = CreateCompilation(NativeIntegerAttributeDefinition); 102var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular9); 128var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular9); 165var comp = CreateCompilation(new[] { sourceAttribute, source }, parseOptions: TestOptions.Regular8); 171static void verifyDiagnostics(CSharpCompilation comp) 204var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 256var comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular8); 276static void verify(CSharpCompilation comp) 342var comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular8); 350static void verify(CSharpCompilation comp) 419var comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular8); 433static void verify(CSharpCompilation comp) 502var comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular8); 510static void verify(CSharpCompilation comp) 590var comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular8); 628static void verify(CSharpCompilation comp) 706var comp = CreateCompilation(source1, new[] { ref0 }, parseOptions: TestOptions.Regular8); 770var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 787var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 815var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 834var comp = CreateCompilation(source1, assemblyName: "95d36b13-f2e1-495d-9ab6-62e8cc63ac22"); 876var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 893var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 909var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 927var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 944var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 966var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 986var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1002var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1016var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1030var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1056var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1174var comp = CreateCompilation(source, options: TestOptions.ReleaseModule); 1198var comp = CreateCompilation(source, options: TestOptions.ReleaseModule); 1230var comp = CreateCompilation(new[] { sourceA, sourceB }); 1262var comp = CreateCompilation(new[] { sourceA, sourceB }); 1287var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1308var comp = CreateCompilation(source); 1333var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 1357var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 1375var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 1413var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), parseOptions: TestOptions.Regular9); 1442var comp = CreateCompilation( 1460var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1488var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1629private void AssertNativeIntegerAttributes(CSharpCompilation comp, string expected)
Attributes\AttributeTests_Nullable.cs (136)
30var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular8); 43Func<CSharpCompilation, MetadataReference> getReference = c => useImageReferences ? c.EmitToImageReference() : c.ToMetadataReference(); 58var lib1_comp = CreateCompilation(lib1_source); 66var lib2_comp = CreateCompilation(lib2_source, references: new[] { getReference(lib1_comp) }); 86var client_comp = CreateCompilation(client_source, references: new[] { getReference(lib1_comp), getReference(lib2_comp) }); 108Func<CSharpCompilation, MetadataReference> getReference = c => useImageReferences ? c.EmitToImageReference() : c.ToMetadataReference(); 121var lib1_comp = CreateCompilation(lib1_source); 130var lib2_comp = CreateCompilation(lib2_source, references: new[] { getReference(lib1_comp) }); 165var lib3_comp = CreateCompilation(lib3_source, references: new[] { getReference(lib1_comp), getReference(lib2_comp) }); 206Func<CSharpCompilation, MetadataReference> getReference = c => useImageReferences ? c.EmitToImageReference() : c.ToMetadataReference(); 229var valueTuple_comp = CreateCompilationWithMscorlib40(valueTuple_source); 241var tupleElementNamesAttribute_comp = CreateCompilationWithMscorlib40(tupleElementNamesAttribute_source); 256var lib1_comp = CreateCompilationWithMscorlib40(lib1_source, references: new[] { getReference(valueTuple_comp), getReference(tupleElementNamesAttribute_comp) }); 263var lib2_comp = CreateCompilationWithMscorlib40(lib2_source, references: new[] { getReference(lib1_comp), getReference(valueTuple_comp) }); // missing TupleElementNamesAttribute 325var comp = CreateCompilationWithMscorlib40(source); 355var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 371var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 379var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }, parseOptions: TestOptions.Regular8); 398var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 426var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 451var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 490var comp = CreateCompilation(new[] { sourceAttribute, source }, parseOptions: TestOptions.Regular7); 497static void verifyDiagnostics(CSharpCompilation comp) 527var comp = CreateCompilation(sourceA, assemblyName: "A", options: options); 562var comp = CreateCompilation(new[] { sourceAttribute, sourceA }, assemblyName: "A", options: options); 597var comp0 = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular7); 605var comp = CreateEmptyCompilation( 645var comp0 = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular7); 653var comp = CreateEmptyCompilation( 698var comp0 = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular7); 706var comp = CreateEmptyCompilation( 747var comp = CreateCompilation(source, parseOptions: parseOptions); 797var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 841var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 864var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 886var comp = CreateCompilation(new[] { source }, options: WithNullable(NullableContextOptions.Enable), parseOptions: TestOptions.Regular8); 908var comp = CreateCompilation(new[] { source }, options: WithNullable(NullableContextOptions.Annotations), parseOptions: TestOptions.Regular8); 931var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 954var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 970var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 993var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 1004var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.ReleaseModule); 1020var comp = CreateCompilation(source, options: WithNullableEnable()); 1039var comp = CreateCompilation(source, options: WithNullableEnable()); 1058var comp = CreateCompilation(source, options: WithNullableEnable()); 1082var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1103var comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8, references: new[] { comp.EmitToImageReference() }); 1130var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1158var comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8, references: new[] { comp.EmitToImageReference() }); 1181var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 1208var comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8, references: new[] { comp.EmitToImageReference() }); 1242var comp = CreateCompilation(source); 1281var comp = CreateCompilation(source); 1316var comp = CreateCompilation(source); 1342var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1372var comp2 = CreateCompilation(new[] { source, source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1407var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 1434var comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8, references: new[] { comp.EmitToImageReference() }); 1455var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1480var comp2 = CreateCompilation(new[] { source, source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1513var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1534var comp2 = CreateCompilation(new[] { source, source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1583var comp = CreateCompilation(source); 1639var comp = CreateCompilation(source); 1710var comp = CreateCompilation(source); 1774var comp = CreateCompilation(source); 1831var comp = CreateCompilation(source); 1874var comp = CreateCompilation(source); 1902var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 1923var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 1944var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 1961var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 1984var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 2013var comp = CreateCompilation(source); 2040var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 2056var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 2070var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 2084var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 2111var comp = CreateCompilation(source); 2145var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 2239var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular8); 2254var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, references: new[] { ref0 }); 2322var comp = CreateCompilation(source, options: TestOptions.ReleaseModule); 2349var comp = CreateCompilation(source, options: TestOptions.ReleaseModule); 2383var comp = CreateCompilation(new[] { sourceA, sourceB }); 2416var comp = CreateCompilation(new[] { sourceA, sourceB }); 2450var comp = CreateCompilation(new[] { sourceA, sourceB }); 2479var comp = CreateCompilation(new[] { sourceA, sourceB }); 2492var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular8); 2585var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2627var comp = CreateCompilation(source); 3518var comp = CreateCompilation(new[] { sourceAttribute, source }, options: options, parseOptions: parseOptions); 3634var comp = CreateCompilation(new[] { sourceAttribute, source }, options: options, parseOptions: parseOptions); 3756var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 3826var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 3867var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 3967var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 4036var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 4077var comp = CreateCompilation(source); 4115var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 4144var comp = CreateCompilation(source0); 4238var comp = CreateCompilation(source1); 4278var comp = CreateCompilation(source1); 4327var comp = CreateCompilation(source1); 4393var comp0 = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 4412var comp = CreateEmptyCompilation( 4429var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4449var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4470var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4488var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4503var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4518var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4536var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4560var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4585var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4606var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4621var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4647var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.ReleaseModule); 4669var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4706var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4725var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable(TestOptions.ReleaseModule)); 4744var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4794var comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8, references: new[] { comp.EmitToImageReference() }); 4853var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 4924var comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8, references: new[] { comp.EmitToImageReference() }); 4970var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 4991var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 5028var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.DebugExe); 5063var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.DebugExe); 5087var comp = CreateCompilation(source); 5118var comp = CreateCompilation(source); 5153var comp = CreateCompilation(source); 5187var comp = CreateCompilation(source); 5283var comp = CreateCompilation(source); 5389private static void AssertNoNullableAttributes(CSharpCompilation comp) 5427private void AssertNullableAttributes(CSharpCompilation comp, string expected)
Attributes\AttributeTests_NullableContext.cs (13)
24var comp = CreateCompilation(source); 39var comp = CreateCompilation(new[] { NullableContextAttributeDefinition, source }); 51var comp = CreateCompilation(NullableContextAttributeDefinition); 87var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular7); 128var comp = CreateCompilation(new[] { sourceAttribute, source }, parseOptions: TestOptions.Regular7); 135static void verifyDiagnostics(CSharpCompilation comp) 167var comp = CreateCompilation(sourceAttribute); 204var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 231var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 262var comp0 = CreateCompilation(source0); 288var comp2 = CreateCompilation(source2, references: new[] { ref1 }); 337var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.DebugExe); 418private void AssertNullableAttributes(CSharpCompilation comp, string expected)
Attributes\AttributeTests_NullablePublicOnly.cs (24)
35var comp = CreateCompilation(sources, options: options, parseOptions: parseOptions); 52var comp = CreateCompilation(NullablePublicOnlyAttributeDefinition, parseOptions: TestOptions.Regular7); 86var comp = CreateCompilation(new[] { source1, source2 }, options: options, parseOptions: parseOptions); 102var comp = CreateCompilation(source, options: options, parseOptions: parseOptions); 122var comp = CreateCompilation(source, options: options, parseOptions: parseOptions); 142var comp = CreateCompilation(source, options: options, parseOptions: parseOptions); 162var comp = CreateCompilation(source, options: options, parseOptions: parseOptions); 182var comp = CreateCompilation(source, options: options, parseOptions: parseOptions); 202var comp = CreateCompilation(source, options: options, parseOptions: parseOptions); 220var comp = CreateCompilation(sources, options: options, parseOptions: parseOptions); 237var comp = CreateCompilation(source0); 274var comp = CreateCompilation(sources, options: options, parseOptions: parseOptions); 294var comp = CreateCompilation(sources, options: options, parseOptions: parseOptions); 313var comp = CreateCompilation(sources, options: options, parseOptions: parseOptions); 333var comp = CreateCompilation(sources, options: options, parseOptions: parseOptions); 356var comp = CreateCompilation(source, options: options, parseOptions: parseOptions); 380var comp = CreateCompilation(sources, options: options, parseOptions: parseOptions); 406var comp = CreateCompilation(new[] { sourceAttribute, source }, parseOptions: TestOptions.Regular7); 413static void verifyDiagnostics(CSharpCompilation comp) 440var comp = CreateCompilation(new[] { sourceAttribute, source }); 463var comp = CreateCompilation(sourceAttribute); 501var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNullablePublicOnly(), options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 522var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNullablePublicOnly().WithNoRefSafetyRulesAttribute()); 614private void AssertNullableAttributes(CSharpCompilation comp, string expected)
Attributes\AttributeTests_ReadOnlyStruct.cs (6)
348var code1 = CreateCompilation(@" 354var code2 = CreateCompilation(@" 367var code3 = CreateCompilation(@" 564var comAssembly = CreateCompilationWithMscorlib40(@" 600var compilation_CompilationReference = CreateCompilationWithMscorlib40(code, options: options, references: new[] { comAssembly.ToMetadataReference(embedInteropTypes: true) }); 603var compilation_BinaryReference = CreateCompilationWithMscorlib40(code, options: options, references: new[] { comAssembly.EmitToImageReference(embedInteropTypes: true) });
Attributes\AttributeTests_RefReadOnly.cs (21)
1053var code1 = CreateCompilation(@" 1059var code2 = CreateCompilation(@" 1072var code3 = CreateCompilation(@" 1286var comAssembly = CreateCompilationWithMscorlib40(@" 1327var compilation_CompilationReference = CreateCompilationWithMscorlib40(code, options: options, references: new[] { comAssembly.ToMetadataReference(embedInteropTypes: true) }); 1330var compilation_BinaryReference = CreateCompilationWithMscorlib40(code, options: options, references: new[] { comAssembly.EmitToImageReference(embedInteropTypes: true) }); 1357var reference = CreateCompilation(@" 1363var compilation = CreateCompilation(@" 1394var reference = CreateCompilation(@" 1400var compilation = CreateCompilation(@" 1436var compilation = CreateCompilation(@" 1463var compilation = CreateCompilation(@" 1490var reference = CreateCompilation(@" 1497var compilation = CreateCompilation(@" 1532var compilation = CreateCompilation(code, options: TestOptions.ReleaseModule, references: new[] { reference }); 1556var compilation = CreateCompilation(code, options: TestOptions.ReleaseModule); 2438var comp = CreateCompilation(source, options: TestOptions.ReleaseModule); 2464var comp = CreateCompilation(source, options: TestOptions.ReleaseModule); 2498var comp = CreateCompilation(new[] { sourceA, sourceB }); 2532var comp = CreateCompilation(new[] { sourceA, sourceB }); 2561private static bool NeedsGeneratedIsReadOnlyAttribute(CSharpCompilation compilation)
Attributes\AttributeTests_RefSafetyRules.cs (7)
28var comp = CreateCompilation(new[] { source, RefSafetyRulesAttributeDefinition }, parseOptions: TestOptions.Regular10); 39var comp = CreateCompilation(RefSafetyRulesAttributeDefinition, parseOptions: TestOptions.Regular10); 70var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular10); 85var comp = CreateCompilation(RefSafetyRulesAttributeDefinition); 125var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 154var comp = CreateCompilation(source, references: new[] { refA }, parseOptions: TestOptions.Regular10); 171var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA));
Attributes\AttributeTests_Security.cs (21)
44var compilation = sourceAssembly.DeclaringCompilation; 185var compilation = CreateCompilationWithMscorlib40(source); 229var compilation = CreateCompilationWithMscorlib40(source); 640var comp = CreateEmptyCompilation(source); 670var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll, assemblyName: "Test"); 723var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll); 766var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular9); 804var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 844var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll); 897var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll); 949var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll); 1009var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll); 1075var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll); 1137var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll); 1200var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll); 1303var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.UnsafeReleaseDll); 1383var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.UnsafeReleaseDll); 1503var compilation = CSharpCompilation.Create( 1620CSharpCompilation comp; 1625comp = CSharpCompilation.Create(
Attributes\AttributeTests_Synthesized.cs (20)
125var comp = CreateEmptyCompilation("", new[] { reference }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 146var comp = CreateEmptyCompilation("", new[] { reference }, options: TestOptions.UnsafeReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 371var comp = CreateCompilation(source, options: TestOptions.DebugDll); 647var comp = CreateCompilation(source); 935var comp = CreateCompilation(source); 1262var compilation = CreateEmptyCompilation("", parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: options); 1306var compilation = CreateCompilation(code, options: options); 1355var compilation = CreateCompilation(code, options: options); 1402var compilation = CreateCompilation(code, options: options); 1446var compilation = CreateCompilation(code, options: options); 1489var compilation = CreateCompilation(source, options: options); 1515var referenceComp = CreateCompilation(@" 1556var referenceComp = CreateCompilation(@" 1608var compilation = CreateCompilationWithMscorlib40(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.CreateTestOptions(outputKind, OptimizationLevel.Release, allowUnsafe: true)); 1803var compilation = CreateCompilationWithMscorlib461("", new[] { reference }, options: options); 1902var compilation = CreateCompilationWithMscorlib461("", new[] { reference }, options: options); 1934var mslibComp = CreateEmptyCompilation(new string[] { mslib }, parseOptions: parseOptions).VerifyDiagnostics(); 1938var mslibNoStringComp = CreateEmptyCompilation(new string[] { mslibNoString }, parseOptions: parseOptions).VerifyDiagnostics(); 1955var diagLibComp = CreateEmptyCompilation(new string[] { diagLibSource }, parseOptions: parseOptions, references: new[] { mslibRef }).VerifyDiagnostics(); 1959var comp = CreateEmptyCompilation(new SyntaxTree[] { Parse("", options: parseOptions) }, references: new[] { diagLibRef, mslibNoStringRef });
Attributes\AttributeTests_Tuples.cs (6)
116var comp = CreateCompilationWithMscorlib40(s_tuplesTestSource, 129var comp = CreateCompilationWithMscorlib40( 176var comp = CreateEmptyCompilation(source0, parseOptions: parseOptions); 214var comp = CreateEmptyCompilation(source0, parseOptions: parseOptions); 655var comp = CreateCompilationWithMscorlib40( 817var comp = CreateCompilationWithMscorlib40(text, references: s_attributeRefs);
Attributes\AttributeTests_WellKnownAttributes.cs (127)
101var source = CreateCompilationWithMscorlib40(@" 209var source = CreateCompilationWithMscorlib40(@" 565var libComp = CreateCompilation(source1); 568var comp2 = CreateCompilation(source2, new[] { libCompRef }); 577var comp3 = CreateCompilation(source2, new[] { libAssemblyRef }); 611var comp = CreateCompilation(source); 643var comp = CreateCompilation(source); 883var compilation = CreateCompilation(@" 913var compilation = CreateCompilation(@" 942var c1 = CreateCompilation(@" 964var c2 = CreateCompilation(@" 986var compilation = CreateCompilation(@" 1030var compilation = CreateCompilation(@" 1279var compilation = CreateCompilation(@" 1296var compilation = CreateCompilation(@" 1320var compilation = CreateCompilation(@" 1864var comp = CreateCompilation(source); 2443var source = CreateCompilation(@" 3110var compilation = CreateCompilation(@" 3820var compDll = CreateCompilationWithMscorlib40AndSystemCore(source, assemblyName: "NewOnInterface_FromMetadata"); 3937var compDll = CreateCompilationWithMscorlib40AndSystemCore(source, assemblyName: "NewOnInterface_GenericTypeCoClass"); 4014var compDll = CreateCompilationWithMscorlib40AndSystemCore(source, assemblyName: "NewOnInterface_InaccessibleInterface"); 4092var compDll = CreateCompilationWithMscorlib40AndSystemCore(source, assemblyName: "NewOnInterface_InaccessibleCoClass"); 4170var compDll = CreateCompilationWithMscorlib40AndSystemCore(source, assemblyName: "NewOnInterface_CoClass_Without_ComImport"); 4256var compDll = CreateCompilationWithMscorlib40AndSystemCore(source, assemblyName: "NewOnInterface_StructTypeInCoClassAttribute"); 4376var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource); 4408var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource); 4448var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource); 4488var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource); 4887var lib_comp = CreateCompilation(lib_cs); 4890var client1 = CreateCompilation("", references: new[] { lib_comp.ToMetadataReference() }); 4893var client2 = CreateCompilation("", references: new[] { lib_comp.EmitToImageReference() }); 4896void verify(CSharpCompilation comp, bool isSerializablePresent) 4966var lib = CreateCompilationWithMscorlib46(missing, assemblyName: "missing"); 4968var comp = CreateCompilationWithMscorlib46(source, references: new[] { lib.EmitToImageReference() }); 4970var comp2 = CreateCompilationWithMscorlib46(errors, references: new[] { comp.EmitToImageReference() }); 5016var script = CreateCompilation("", parseOptions: TestOptions.Script); 5058var compilation = CreateCompilation(source); 5104var compilation = CreateCompilationWithMscorlib40(syntaxTree); 5106var comp = compilation.VerifyDiagnostics( 5143var compilation = CreateCompilation(syntaxTree, options: TestOptions.ReleaseDll); 5272var comp1 = CreateCompilation(text1, options: opt); 5274var comp2 = CreateCompilation(text2, references: new[] { compref1 }, options: opt, assemblyName: "Child"); 5275var comp3 = CreateCompilation(text3, references: new[] { compref1, new CSharpCompilationReference(comp2) }, options: opt, assemblyName: "Child2"); 6748var other = CreateCompilation(s); 7333var comp = CreateCompilation(new[] { Parse(source0), Parse(source1) }); 7384var comp = CreateCompilation(new[] { Parse(source0), Parse(source1) }); 8294var comp = CreateCompilation(new[] { ObsoleteAttributeSource, source }); 8327var comp = CreateCompilation(new[] { ObsoleteAttributeSource, source }); 8358var comp = CreateCompilation(new[] { ObsoleteAttributeSource, source }); 8389var comp = CreateCompilation(new[] { ObsoleteAttributeSource, source }); 8429var comp = CreateCompilation(source); 8460var comp = CreateCompilation(new[] { ObsoleteAttributeSource, source }); 8497var comp = CreateCompilation(new[] { ObsoleteAttributeSource, source }); 8547var comp = CreateCompilation(new[] { ObsoleteAttributeSource, source }); 8598var comp1 = CreateCompilation(new[] { ObsoleteAttributeSource, source1 }); 8606var comp2 = CreateCompilation(source2, references: new[] { reference }); 8653var comp1 = CreateCompilation(new[] { ObsoleteAttributeSource, source1 }); 8661var comp2 = CreateCompilation(source2, references: new[] { reference }); 8697var comp1 = CreateCompilation(new[] { ObsoleteAttributeSource, source1 }); 8705var comp2 = CreateCompilation(source2, references: new[] { reference }); 8740var comp1 = CreateCompilation(new[] { ObsoleteAttributeSource, source1 }); 8748var comp2 = CreateCompilation(source2, references: new[] { reference }); 8783var comp1 = CreateCompilation(new[] { ObsoleteAttributeSource, source1 }); 8848var comp2 = CreateCompilation(source2, references: new[] { reference }, options: options); 8892var comp1 = CreateCompilation(source1); 8900var comp2 = CreateCompilation(source2, references: new[] { reference }); 8940var comp1 = CreateCompilation(source1); 8948var comp2 = CreateCompilation(source2, references: new[] { reference }); 9019var comp1 = CreateCompilation(source1); 9027var comp2 = CreateCompilation(source2, references: new[] { reference }); 9073var comp1 = CreateCompilation(source1); 9082var comp2 = CreateCompilation(source2, references: new[] { reference }); 9122var comp1 = CreateCompilation(source1); 9131var comp2 = CreateCompilation(source2, references: new[] { reference }); 9174var comp1 = CreateCompilation(source1); 9182var comp2 = CreateCompilation(source2, references: new[] { reference }); 9323var comp = CreateCompilation(csSource, references: new[] { ilComp }); 9461var comp = CreateCompilation(csSource, references: new[] { ilComp }); 9503var comp1 = CreateCompilation(source1); 9510var comp2 = CreateCompilation(source2, references: new[] { reference }); 9546var comp = CreateCompilation(source); 9595var comp = CreateCompilation(source); 9647var comp1 = CreateCompilation(source1); 9650var comp2 = CreateCompilation(source2, new[] { comp1.EmitToImageReference() }); 9736var comp = CreateCompilation(source); 9779var compilation1 = CreateEmptyCompilation(source1, WinRtRefs, TestOptions.ReleaseDll); 9844var compilation2 = CreateEmptyCompilation(source2, WinRtRefs.Concat(new[] { new CSharpCompilationReference(compilation1) }), TestOptions.ReleaseDll); 9904var compilation = inSource 9964var compilation1 = CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(DeprecatedAttributeSourceTH1), Parse(source1) }); 9979var compilation2 = CreateCompilationWithMscorlib40AndSystemCore(source2, new[] { compilation1.EmitToImageReference() }); 9990var compilation3 = CreateCompilationWithMscorlib40AndSystemCore(source2, new[] { new CSharpCompilationReference(compilation1) }); 10047var compilation1 = CreateCompilationWithMscorlib40AndSystemCore(new[] { Parse(DeprecatedAttributeSourceTH2), Parse(source1) }); 10062var compilation2 = CreateCompilationWithMscorlib40AndSystemCore(source2, new[] { compilation1.EmitToImageReference() }); 10073var compilation3 = CreateCompilationWithMscorlib40AndSystemCore(source2, new[] { new CSharpCompilationReference(compilation1) }); 10171var compilation1 = CreateEmptyCompilation(source1, WinRtRefs, TestOptions.ReleaseDll); 10208var compilation1 = CreateEmptyCompilation(source1, WinRtRefs, TestOptions.ReleaseDll); 10224var compilation2 = CreateEmptyCompilation(source2, WinRtRefs.Concat(new[] { new CSharpCompilationReference(compilation1) }), TestOptions.ReleaseDll); 10284var cscomp = CreateEmptyCompilation(cssource, new[] { MscorlibRef, ilReference }, TestOptions.ReleaseExe); 10392var cscomp = CreateEmptyCompilation(cssource, new[] { MscorlibRef, ilReference }, TestOptions.ReleaseExe); 10422var comp = CreateCompilation(new[] { src, skipLocalsInitDef }, options: options, parseOptions: parseOptions); 10457var comp = CreateCompilation(source); 10695var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 11395var comp = (CSharpCompilation)verifier.Compilation; 11420var comp = (CSharpCompilation)verifier.Compilation; 11451var comp = (CSharpCompilation)verifier.Compilation; 12744var metadata_comp = CreateCompilation(metadata_source, options: TestOptions.DebugModule.WithAllowUnsafe(true)); 12865var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 12919var comp = CreateCompilation(new[] { src, skipLocalsInitDef1 }, options: TestOptions.UnsafeDebugDll); 13113var comp = CreateCompilation(new[] { src, skipLocalsInitDef }, options: TestOptions.UnsafeReleaseDll); 13123var source = CreateCompilationWithMscorlib461(@" 13239var source = CreateCompilationWithMscorlib461(@" 13467var compilation = CreateCompilationWithCSharp(@" 13553var comp = CreateCompilation(new[] { sourceAttribute, sourceA }, parseOptions: TestOptions.RegularPreview); 13598var comp = CreateCompilation(new[] { sourceAttribute, sourceA }, parseOptions: TestOptions.RegularPreview); 13884var comp = CreateCompilation(source); 13910var comp = CreateCompilation(source); 13930var comp = CreateCompilation(source); 13966var comp = CreateCompilation(source); 13996var comp = CreateCompilation(source); 14016var comp = CreateCompilation(source); 14041var comp = CreateCompilation(source); 14079var comp = CreateCompilation(source); 14122var comp = CreateCompilation(source);
Attributes\EmitTestStrongNameProvider.cs (2)
37var comp = CreateCompilation(src, options: options); 57var comp = CreateCompilation(src, options: options);
Attributes\InternalsVisibleToAndStrongNameTests.cs (146)
94var c = CreateCompilation(source, 109var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll, parseOptions: parseOptions); 141var comp = CreateCompilation(syntaxTree, options: TestOptions.ReleaseDll); 148comp = CSharpCompilation.Create( 170var comp = CreateCompilation(syntaxTree, options: TestOptions.ReleaseDll); 178comp = CSharpCompilation.Create( 195var compilation = CreateCompilation(code, options: options, parseOptions: TestOptions.Regular); 210var compilation = CreateCompilation(code, options: options, parseOptions: TestOptions.Regular); 237var comp = CreateCompilation( 255var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll, parseOptions: parseOptions); 281var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), parseOptions: parseOptions); 298var comp = CreateCompilation(s, options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(keyFileName), parseOptions: parseOptions); 307comp = CSharpCompilation.Create( 322var other = CreateCompilation(s, 340var comp = CreateCompilation(s, 354comp = CSharpCompilation.Create( 368var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll.WithCryptoKeyFile("goo"), parseOptions: parseOptions); 383CSharpCompilation other = CreateCompilation(s, options: TestOptions.ReleaseDll.WithCryptoKeyFile(tempFile.Path), parseOptions: parseOptions); 396var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll.WithCryptoKeyContainer("goo"), parseOptions: parseOptions); 415var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), parseOptions: parseOptions); 427var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll.WithCryptoKeyContainer("RoslynTestContainer"), parseOptions: parseOptions); 441var compilation = CreateCompilation(source, options: options, parseOptions: parseOptions); 453var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll, parseOptions: parseOptions); 464var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll, parseOptions: parseOptions); 477var c = CreateCompilation(source, options: TestOptions.ReleaseDll.WithCryptoPublicKey(s_publicKey), parseOptions: parseOptions); 501var c = CreateCompilation(source, options: TestOptions.ReleaseDll.WithCryptoPublicKey(s_publicKey).WithPublicSign(true), parseOptions: parseOptions); 557var c = CreateCompilation(source, options: TestOptions.ReleaseDll.WithPublicSign(true), parseOptions: parseOptions); 577var c = CreateCompilation(source, options: TestOptions.ReleaseDll.WithPublicSign(true), parseOptions: parseOptions); 608var comp = CreateCompilation("public class C{}", 630var comp = CreateCompilation("public class C {}", 652var comp = CreateCompilation(@" 676var comp = CreateCompilation("public class C {}", 693var comp = CreateCompilation("public class C {}", 717var comp = CreateCompilation("public class C {}", 738var comp = CreateCompilation("public class C {}", 755var comp = CreateCompilation("public class C {}", 772var c = CreateCompilation(source, options: TestOptions.SigningReleaseDll. 798var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll, assemblyName: "Paul", parseOptions: parseOptions); 800var c = CreateCompilation( 824var c2 = CreateCompilation( 851var c = CreateCompilation( 872var c2 = CreateCompilation( 898var other = CreateCompilation(s, 905var requestor = CreateCompilation( 931var other = CreateCompilation(s, assemblyName: "Paul", options: TestOptions.SigningReleaseDll, parseOptions: parseOptions); 934var requestor = CreateCompilation( 962var friendClass = CreateCompilation(@" 988var other = CreateCompilation(cs0281, references: new[] { friendClass.EmitToImageReference() }, assemblyName: "cs0281", options: TestOptions.SigningReleaseDll, parseOptions: parseOptions); 1012var friendClass = CreateCompilation(@" 1032var other = CreateCompilation(cs0281, references: new[] { friendClass.EmitToImageReference() }, assemblyName: "cs0281", options: TestOptions.SigningReleaseDll, parseOptions: parseOptions); 1059var requestor = CreateCompilation( 1090var other = CreateCompilation(s, 1097var requestor = CreateCompilation( 1120var other = CreateCompilation(s, 1127var requestor = CreateCompilation( 1149var other = CreateCompilation(s, 1156var requestor = CreateCompilation( 1180var other = CreateCompilation(s, 1187var requestor = CreateCompilation( 1215var other = CreateCompilation(s, 1222var requestor = CreateCompilation( 1255var other = CreateCompilation(s, 1262var requestor = CreateCompilation( 1286var other = CreateCompilation(s, 1293var requestor = CreateCompilation( 1322var other = CreateCompilation(s, 1329var requestor = CreateCompilation( 1364var giver = CreateCompilation(s, 1371var requestor = CreateCompilation( 1398var other = CreateCompilation( 1415var other = CreateCompilation( 1440var comp = CreateCompilation($@" 1471var comp2 = CreateCompilation(src, 1481var comp3 = CreateCompilation(src, 1496var other = CreateCompilation( 1552var assemblyComp = CreateCompilation(source, 1576var other = CreateCompilation(s, options: TestOptions.SigningReleaseModule); 1589var other = CreateCompilation(s, options: TestOptions.SigningReleaseModule); 1602var other = CreateCompilation(s, options: TestOptions.SigningReleaseModule, parseOptions: parseOptions); 1625var other = CreateCompilation(s, options: TestOptions.SigningReleaseModule); 1643var other = CreateCompilation(s, options: options, parseOptions: parseOptions); 1662var other = CreateCompilation(s, options: options); 1682var other = CreateCompilation(s, options: options, parseOptions: parseOptions); 1700var other = CreateCompilation(s, options: TestOptions.SigningReleaseModule.WithCryptoKeyContainer("roslynTestContainer"), parseOptions: parseOptions); 1719var other = CreateCompilation(s, options: options, parseOptions: parseOptions); 1739var compilation = CreateCompilation(s, options: options, parseOptions: parseOptions); 1756var other = CreateCompilation(s, options: options, parseOptions: parseOptions); 1779var other = CreateCompilation(s, options: options, parseOptions: parseOptions); 1796var other = CreateCompilation(s, options: TestOptions.SigningReleaseModule.WithCryptoKeyFile(s_keyPairFile), parseOptions: parseOptions); 1810var other = CreateCompilation( 1824var assembly = CreateCompilation("", 1836var other = CreateCompilation(@" 1847var comp = CreateCompilation("", 1860var other = CreateCompilation( 1879var other = CreateCompilation( 1901var other = CreateCompilation( 1917var other = CreateCompilation( 1936var other = CreateCompilation( 1971var other = CreateCompilation( 2027var comp = CreateCompilation(csharp, new[] { ilRef }, assemblyName: "asm2", options: TestOptions.SigningReleaseDll, parseOptions: parseOptions); 2085var comp1 = CreateCompilationWithMscorlib461(source1, options: TestOptions.SigningReleaseDll, assemblyName: "asm1", parseOptions: parseOptions); 2089var comp2 = CreateCompilationWithMscorlib461(source2, new[] { ref1 }, options: TestOptions.SigningReleaseDll, assemblyName: "asm2", parseOptions: parseOptions); 2093var comp3 = CreateCompilationWithMscorlib461(source3, new[] { SystemCoreRef, ref1, ref2 }, options: TestOptions.SigningReleaseDll, assemblyName: "asm3", parseOptions: parseOptions); 2204var comp1 = CreateCompilationWithMscorlib461(source1, options: TestOptions.SigningReleaseDll, assemblyName: "asm1", parseOptions: parseOptions); 2208var comp2 = CreateCompilationWithMscorlib461(source2, new[] { ref1 }, options: TestOptions.SigningReleaseDll, assemblyName: "asm2", parseOptions: parseOptions); 2212var comp3 = CreateCompilationWithMscorlib461(source3, new[] { ref1, ref2 }, options: TestOptions.SigningReleaseDll, assemblyName: "asm3", parseOptions: parseOptions); 2216var comp4 = CreateCompilationWithMscorlib461(source4, new[] { SystemCoreRef, ref1, ref2, ref3 }, options: TestOptions.SigningReleaseDll, assemblyName: "asm4", parseOptions: parseOptions); 2367var comp1 = CreateCompilation(source1, 2377var comp3 = CreateCompilation(source3, 2397CSharpCompilation unsigned = CreateCompilation( 2403CSharpCompilation other = CreateCompilation( 2425CSharpCompilation unsigned = CreateCompilation( 2431CSharpCompilation other = CreateCompilation( 2501var other = CreateEmptyCompilation( 2530var other = CreateEmptyCompilation( 2571var other = CreateEmptyCompilation(source, options: options, references: new[] { MscorlibRef_v4_0_30316_17626 }, parseOptions: parseOptions); 2589var other = CreateEmptyCompilation( 2621var other = CreateEmptyCompilation( 2646var other = CreateEmptyCompilation( 2676var other = CreateEmptyCompilation( 2702var ca = CreateCompilation( 2714var cb = CreateCompilation( 2752var ca = CreateCompilation(sourceA, options: TestOptions.ReleaseDll, assemblyName: "ClassLibrary2", parseOptions: parseOptions); 2755var cb = CreateCompilation(sourceB, options: TestOptions.ReleaseExe, assemblyName: "X", references: new[] { new CSharpCompilationReference(ca) }, parseOptions: parseOptions); 2780var ca = CreateCompilation(sourceA, options: TestOptions.ReleaseDll, assemblyName: "ClassLibrary2", parseOptions: parseOptions); 2783var cb = CreateCompilation(sourceB, options: TestOptions.ReleaseExe, assemblyName: "X", references: new[] { new CSharpCompilationReference(ca) }, parseOptions: parseOptions); 2794var ca = CreateCompilation(source, parseOptions: parseOptions); 2815var compilation = CreateCompilation(string.Empty, options: options, parseOptions: parseOptions).VerifyDiagnostics(); 2826var compilation = CreateCompilation(string.Empty, options: options, parseOptions: parseOptions).VerifyDiagnostics(); 2865var other = CreateCompilation( 2910var c2 = CreateCompilation(new[] { source1, source2 }, new[] { libRef }, assemblyName: "WantsIVTAccess", 2948var c2 = CreateCompilation(new[] { source1, source2 }, new[] { libRef }, assemblyName: "WantsIVTAccess", options: TestOptions.SigningReleaseDll); 2965var lib = CreateCompilation(lib_cs, assemblyName: "Issue57742_01_Lib"); 2976var comp = CreateCompilation(source1, new[] { lib.ToMetadataReference() }, assemblyName: "Issue57742_01"); 3003var lib = CreateCompilation(lib_cs, assemblyName: "Issue57742_02_Lib"); 3011var comp = CreateCompilation(source1, new[] { lib.ToMetadataReference() }, assemblyName: "Issue57742_02"); 3038var lib = CreateCompilation(lib_cs, assemblyName: "Issue57742_03_Lib"); 3053var comp = CreateCompilation(source1, new[] { compilationReference }, assemblyName: "Issue57742_03"); 3086var comp2 = CreateCompilation(source2, new[] { compilationReference }, assemblyName: "Issue57742_03"); 3112var comp3 = CreateCompilation(source3, new[] { compilationReference }, assemblyName: "Issue57742_03"); 3135var comp4 = CreateCompilation(source4, new[] { compilationReference }, assemblyName: "Issue57742_03"); 3166var lib = CreateCompilation(lib_cs, assemblyName: "Issue57742_04_Lib"); 3177var comp = CreateCompilation(source1, new[] { compilationReference }, assemblyName: "Issue57742_04"); 3206var comp2 = CreateCompilation(source2, new[] { compilationReference }, assemblyName: "Issue57742_04"); 3237var lib = CreateCompilation(lib_cs, assemblyName: "Issue57742_05_Lib"); 3243var comp = CreateCompilation(source1, new[] { lib.ToMetadataReference() }, assemblyName: "Issue57742_05");
Diagnostics\DiagnosticAnalyzerTests.AllInOne.cs (3)
88var comp = CreateCompilationWithMscorlib461(@" 101var compilation = CreateCompilationWithMscorlib461(TestResource.AllInOneCSharpCode); 117var compilation = CreateCompilationWithMscorlib461(TestResource.AllInOneCSharpCode);
Diagnostics\DiagnosticAnalyzerTests.cs (59)
322var comp = CreateCompilationWithMscorlib461("", options: options); 400var comp = CreateCompilationWithMscorlib461("", options: options); 452var comp = CreateCompilationWithMscorlib461("", options: options); 850CSharpCompilation compilation = CreateCompilationWithMscorlib461(source); 910CSharpCompilation compilation = CreateCompilationWithMscorlib461(source); 1010var compilation = CreateCompilationWithMscorlib461(source1); 1011var anotherCompilation = CreateCompilationWithMscorlib461(source2); 1101var compilation = CreateCompilationWithMscorlib461(source1); 1374var compilation = CreateCompilationWithMscorlib461(source); 1536var compilation = CreateCompilationWithMscorlib461(trees, new MetadataReference[] { SystemRef }); 1553var warnAsErrorCompilation = compilation.WithOptions(options); 1571var compilation = CreateCompilationWithMscorlib461(new[] { tree }, new MetadataReference[] { SystemRef }); 1614var compilation = CreateCompilationWithMscorlib461(new[] { tree1, tree2 }, new MetadataReference[] { SystemRef }); 1885var compilation = CreateCompilation(source, new[] { metadataReference }); 1911var compilation = CreateCompilationWithMscorlib461(new[] { tree1, tree2, tree3, tree4, tree5 }); 1944var compilation = CreateCompilationWithMscorlib461(new[] { tree }); 1965var compilation = CreateCompilationWithMscorlib461(new[] { tree }); 1988var compilation = CreateCompilationWithMscorlib461(new[] { tree }); 2009var compilation = CreateCompilationWithMscorlib461(new[] { tree }); 2034var compilation = CreateCompilationWithMscorlib461(new[] { tree }); 2054var compilation = CreateCompilationWithMscorlib461(new[] { tree }); 2073var compilation = CreateCompilationWithMscorlib461(new[] { tree }); 2096var compilation = CreateCompilationWithMscorlib461(new[] { tree }); 2117var compilation = CreateCompilationWithMscorlib461(new[] { tree }); 2143var compilation = CreateCompilationWithMscorlib461(new[] { tree }); 2176var compilation = CreateCompilationWithMscorlib461(new[] { tree }); 2241var compilation = CreateCompilationWithMscorlib461(new[] { tree }); 2458var compilation = CreateCompilationWithMscorlib461(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2533var compilation = CreateCompilationWithMscorlib461(new[] { tree }); 2562var compilation = CreateCompilationWithMscorlib461(new[] { tree }); 2590var compilation = CreateCompilationWithMscorlib461(new[] { tree }); 2608var compilation = CreateCompilationWithMscorlib461(new[] { tree }); 2626var compilation = CreateCompilationWithMscorlib461(new[] { tree }); 2654var compilation = CreateCompilationWithMscorlib461(new[] { tree }); 2671var compilation = CreateCompilationWithMscorlib461(source); 2850var compilation = CreateCompilationWithMscorlib461(new[] { tree }); 3140var compilation = CreateCompilation(new[] { source1, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 3188var compilation = CreateCompilationWithMscorlib461(new[] { source1, source2 }); 3220var compilation = CreateCompilationWithMscorlib461(new[] { source1, source2 }); 3344var compilation = CreateCompilationWithMscorlib461(new[] { source1, source2, source3 }); 3371var compilation = CreateCompilationWithMscorlib461(new[] { tree1, tree2 }); 3414var compilation = CreateCompilationWithMscorlib461(new[] { tree1, tree2 }); 3467var compilation = CreateCompilationWithMscorlib461(new[] { tree1, tree2 }); 3518var compilation = CreateCompilationWithMscorlib461(new[] { tree1, tree2 }); 3592var compilation = CreateCompilationWithMscorlib461(new[] { tree }); 3622var compilation = CreateCompilationWithMscorlib461(new[] { tree }); 3643var compilation = CreateCompilationWithMscorlib461(new[] { tree }); 3680var compilation = CreateCompilationWithMscorlib461(new[] { source1, source2, source3 }); 3747var compilation = CreateCompilationWithMscorlib461(new[] { source }); 3807var compilation = CreateCompilation(source) 3880var compilation = CreateCompilation(new[] { tree }); 3915var compilation = CreateCompilationWithMscorlib461(new[] { tree }); 4048model = ((CSharpCompilation)compilation).GetSemanticModel(tree, ignoreAccessibility: false); 4148var compilation = CreateCompilation(source); 4177var compilation = CreateCompilation(new[] { source1, source2, source3 }); 4217var compilation = CreateCompilation(@" 4308var compilation = CreateCompilationWithMscorlib461(new[] { source1, source2 }); 4394var compilation = CreateCompilation(new[] { tree }); 4419var compilation = CreateCompilationWithCSharp(new[] { tree, CSharpSyntaxTree.ParseText(IsExternalInitTypeDefinition) });
Diagnostics\DiagnosticSuppressorTests.cs (25)
27private static CSharpCompilation VerifyAnalyzerDiagnostics( 28CSharpCompilation c, 33private static CSharpCompilation VerifySuppressedDiagnostics( 34CSharpCompilation c, 39private static CSharpCompilation VerifySuppressedAndFilteredDiagnostics( 40CSharpCompilation c, 59var compilation = CreateCompilation(source); 99var compilation = CreateCompilation(SourceCode); 142var compilation = CreateCompilation(SourceCode); 170var compilation = CreateCompilation(source); 192var compilation = CreateCompilation(source); 213var compilation = CreateCompilation(source); 230var compilation = CreateCompilation(new[] { source1, source2 }); 253var compilation = CreateCompilation(source); 276var compilation = CreateCompilation(source); 301var compilation = CreateCompilation(source); 323var compilation = CreateCompilation(source); 387var compilation = CreateCompilation(source); 429var compilation = CreateCompilation(source); 474var compilation = CreateCompilation(source); 528var compilation = CreateCompilation(source); 581var compilation = CreateCompilation(source); 631var compilation = CreateCompilation(source); 671var compilation = CreateCompilation(source, options: options); 688var compilation = CreateCompilation(new[] { source });
Diagnostics\GetDiagnosticsTests.cs (24)
43var compilation = CreateCompilationWithMscorlib461(source); 78var compilation = CreateCompilationWithMscorlib461(source); 93var compilation = CreateCompilationWithMscorlib461(source); 117var compilation = CreateCompilationWithMscorlib461(source); 385var compilation = CreateEmptyCompilation(string.Empty, parseOptions: new CSharpParseOptions().WithPreprocessorSymbols(new[] { "1" })); 397var compilation = CreateCompilationWithMscorlib461(string.Empty, parseOptions: new CSharpParseOptions().WithKind(SourceCodeKind.Interactive)); 409var compilation = CreateEmptyCompilation(string.Empty, parseOptions: new CSharpParseOptions().WithLanguageVersion((LanguageVersion)10000)); 419var compilation = CreateEmptyCompilation(string.Empty, parseOptions: new CSharpParseOptions().WithDocumentationMode(unchecked((DocumentationMode)100))); 433var compilation = CreateEmptyCompilation(new[] { syntaxTree1, syntaxTree2, syntaxTree3 }); 462var compilation = CreateCompilation(new[] { syntaxTree1, syntaxTree2, syntaxTree3 }); 485var compilation = CreateCompilation(new[] { tree1, tree2 }); 513var compilation = CreateCompilation(source); 547var compilation = CreateCompilation(source); 584var compilation = CreateCompilation(source); 659var compilation = CreateCompilation(new[] { source1, source2, source3 }); 712var compilation = CreateCompilation(sources); 739var compilation = CreateCompilation(source); 777var compilation = CreateCompilation(source); 834var compilation = CreateCompilation(source); 1056var compilation = CreateCompilation(source); 1120var compilation = CreateCompilation(new[] { source1, source2 }); 1430var compilation = CreateCompilation(source); 1513var compilation = CreateCompilation(new[] { source1, source2 }); 1693var compilation = CreateCompilation(source);
Diagnostics\MethodGroupConversion.cs (1)
49var compilation = CreateCompilation(source);
FieldKeywordTests.cs (126)
78var comp = (CSharpCompilation)verifier.Compilation; 142var comp = (CSharpCompilation)verifier.Compilation; 216var comp = CreateCompilation(source); 246var comp = CreateCompilation(source); 278var comp = CreateCompilation(source); 325var comp = CreateCompilation(source); 360var comp = CreateCompilation(source); 384var comp = CreateCompilation(source); 407var comp = CreateCompilation(source); 440var comp = CreateCompilation(source); 460var comp = CreateCompilation(source); 486var comp = CreateCompilation(source); 502var comp = CreateCompilation(source); 587var comp = CreateCompilation(source); 680var comp = CreateCompilation( 841var comp = CreateCompilation( 950var comp = CreateCompilation( 1063var comp = CreateCompilation( 1160var comp = CreateCompilation( 1267var comp = CreateCompilation(source); 1307var comp = CreateCompilation(source); 1399var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80); 1514var comp = (CSharpCompilation)verifier.Compilation; 1672var comp = (CSharpCompilation)verifier.Compilation; 1839var comp = (CSharpCompilation)verifier.Compilation; 1945var comp = (CSharpCompilation)verifier.Compilation; 1997var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 2085var comp = CreateCompilation(source, targetFramework: GetTargetFramework(useInit)); 2150var comp = (CSharpCompilation)verifier.Compilation; 2202var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 2274var comp = CreateCompilation(source); 2296var comp = CreateCompilation(source, targetFramework: GetTargetFramework(useInit)); 3768var comp = CreateCompilation(source); 3801var comp = CreateCompilation(source); 3854var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 3926var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 4559var comp = CreateCompilation(source, targetFramework: GetTargetFramework(useInit)); 4693var comp = CreateCompilation(source); 4876var comp = (CSharpCompilation)verifier.Compilation; 4994var comp = CreateCompilation(source, targetFramework: GetTargetFramework(useInit)); 5124var comp = CreateCompilation(source); 5198var comp = CreateCompilation(source); 5251var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 5390var comp = CreateCompilation(source); 5467var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 5493var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 5513var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 5540var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 5574var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 5599var comp = CreateCompilation(source); 5633var comp = CreateCompilation(source); 5662var comp = CreateCompilation(source); 5692var comp = CreateCompilation(source); 5731var comp = CreateCompilation(source, targetFramework: GetTargetFramework(useInit)); 5811var comp = CreateCompilation(source); 5832var comp = CreateCompilation(source); 5849var comp = CreateCompilation(source); 5869var comp = CreateCompilation(source); 5893var comp = CreateCompilation(source); 5914var comp = CreateCompilation(source); 5931var comp = CreateCompilation(source); 5951var comp = CreateCompilation(source); 5974var comp = CreateCompilation(source); 5994var comp = CreateCompilation(source); 6015var comp = CreateCompilation(source); 6036var comp = CreateCompilation(source); 7081var comp = CreateCompilation(source); 7105var comp = CreateCompilation(source); 7132var comp = CreateCompilation(source); 7166var comp = CreateCompilation(source); 7227var comp = CreateCompilation(new[] { source, NotNullAttributeDefinition }); 7269var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }); 7327var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 7395var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 7453var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 7514var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 7582var comp = CreateCompilation(source, targetFramework: GetTargetFramework(useInit)); 7922var comp = CreateCompilation(source, targetFramework: GetTargetFramework(useInit)); 7973var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8087var comp = (CSharpCompilation)verifier.Compilation; 8118var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 8169var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 8217var comp = CreateCompilation(source); 8253var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 8295var comp = CreateCompilation(sourceA); 8458var comp = (CSharpCompilation)verifier.Compilation; 8503var comp = CreateCompilation( 8592var comp = CreateCompilation( 8667var comp = CreateCompilation( 8729var comp = CreateCompilation( 8787var comp = CreateCompilation( 8868var comp = CreateCompilation( 8999var comp = (CSharpCompilation)verifier.Compilation; 9036var comp = CreateCompilation(source, targetFramework: GetTargetFramework(useInit)); 9126var comp = CreateCompilation( 9263var comp = (CSharpCompilation)verifier.Compilation; 9328var comp = CreateCompilation( 9407var comp = CreateCompilation( 9471static (object, string, string)[] getInitializerValues(CSharpCompilation comp, SyntaxTree tree) 9513var comp = CreateCompilation(source); 9631var comp = CreateCompilation(reverseOrder ? [sourceB, sourceA] : [sourceA, sourceB]); 9830var comp = CreateCompilation(reverseOrder ? [sourceB2, sourceB1, sourceA] : [sourceA, sourceB1, sourceB2]); 9902var comp = CreateCompilation( 9978var comp = CreateCompilation(reverseOrder ? [sourceB2, sourceB1, sourceA] : [sourceA, sourceB1, sourceB2]); 10083var comp = (CSharpCompilation)verifier.Compilation; 10138var comp = CreateCompilation( 10197var comp = CreateCompilation( 10300var comp = CreateCompilation( 10399var comp = CreateCompilation( 10559var comp = CreateCompilation(source); 10605var comp = CreateCompilation(source); 10640var comp = CreateCompilation(source); 10669var comp = CreateCompilation(source);
FirstClassSpanTests.cs (67)
78var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 110var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 156var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe); 192var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 221var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 257var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 279var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 339var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 361var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 392var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 449var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 479var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 509var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 537var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 567var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 620var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 650var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 677var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 711var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 741var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 767var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 823var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 849var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 904var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 931var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 976var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 1039var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 1102var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 1450var comp = CreateCompilation(source); 1484var comp = CreateCompilation(source); 1544var comp = CreateCompilationWithSpanAndMemoryExtensions(source); 1689var comp = CreateCompilationWithIL(source, ilSource); 1801var comp = CreateCompilation(source); 1832var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 2181var comp = CreateCompilation(source, [span1, span2], assemblyName: "Consumer"); 2256var comp = CreateCompilation(source, [span1, span2], assemblyName: "Consumer"); 2492var comp = CreateCompilation(source, [span1, span2], assemblyName: "Consumer"); 2647var comp = CreateCompilation(source, [span1, span2], assemblyName: "Consumer"); 2694var comp2 = CreateCompilation(source2, [comp1Ref], targetFramework: TargetFramework.NetStandard20); 2727var comp = CreateCompilationWithSpanAndMemoryExtensions(source); 2760var comp = CreateCompilationWithSpanAndMemoryExtensions(source); 4068var comp = CreateCompilationWithSpanAndMemoryExtensions(source); 4133var comp = CreateCompilationWithSpanAndMemoryExtensions(source); 4205var comp = CreateCompilationWithSpanAndMemoryExtensions(source, TestOptions.DebugDll); 4489var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 4530var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 4610var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 4657var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90); 4697var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90); 4737var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90); 4904var comp = CreateCompilationWithSpanAndMemoryExtensions(source).VerifyDiagnostics(expectedDiagnostics); 5078var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular13); 5188var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 5273var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 5438var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 5456var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 5488var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 5599var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 5656var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 5700var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 5916var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 5949var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 5982var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90); 6015var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext, targetFramework: TargetFramework.Net90); 6048var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 6089var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularNext); 6123var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
FlowAnalysis\FlowDiagnosticTests.cs (53)
117var comp = CreateCompilation(program); 132var comp = CreateCompilation(program); 153var comp = CreateCompilation(program); 181var comp = CreateCompilation(program); 208var comp = CreateCompilation(program); 231var comp = CreateCompilation(program); 255var comp = CreateCompilation(program); 271var comp = CreateCompilation(program); 289var comp = CreateCompilation(program); 304var comp = CreateCompilation(program); 324var comp = CreateCompilation(program); 349var comp = CreateCompilation(program); 380var comp = CreateCompilation(program); 431var comp = CreateCompilation(program); 454var comp = CreateCompilation(program); 478var comp = CreateCompilation(program); 495var comp = CreateCompilation(program); 513var comp = CreateCompilation(program); 534var comp = CreateCompilation(program); 551var comp = CreateCompilation(program); 572var comp = CreateCompilation(program); 590var comp = CreateCompilation(program); 635var comp = CreateCompilation(program); 783var comp = CreateCompilation(program); 808var comp = CreateCompilation(program); 836var comp = CreateCompilation(program); 861var comp = CreateCompilation(program); 875var comp = CreateCompilation(program); 903var comp = CreateCompilation(program); 1315var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1343var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1385var comp = CreateCompilation(text, parseOptions: TestOptions.Regular10); 1442var comp = CreateCompilation(text, parseOptions: TestOptions.Regular10); 1520var comp = CreateCompilation(text); 1572var comp = CreateCompilation(text); 1625var comp = CreateCompilation(text); 1667var comp = CreateCompilation(text); 1703var comp = CreateCompilation(text); 1750var comp = CreateCompilation(text, parseOptions: TestOptions.Regular10); 1862var comp = CreateCompilation(@" 1995var c = CreateCompilation(program, new[] { TestReferences.SymbolsTests.CycledStructs }); 2380CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source); 2407CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular10); 2457CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source); 2494CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source); 2516CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source); 2539CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source); 2564CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular10); 2605CSharpCompilation comp = CreateCompilation(source); 2630CSharpCompilation comp = CreateCompilation(source); 2656CSharpCompilation comp = CreateCompilation(source); 2695var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 2725var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10);
FlowAnalysis\FlowTestBase.cs (7)
21internal ImmutableArray<Diagnostic> FlowDiagnostics(CSharpCompilation compilation) 119var comp = CreateCompilation(program, parseOptions: TestOptions.RegularPreview, references: references); 140var comp = CreateCompilation(program, parseOptions: TestOptions.RegularPreview, references: references); 166var comp = CreateCompilation(program, parseOptions: TestOptions.RegularPreview, targetFramework: targetFramework, references: references); 193var comp = CreateCompilation(program); 266var comp = CreateCompilation(program); 277var comp = CreateCompilation(program);
FlowAnalysis\FlowTests.cs (6)
158var comp = CreateCompilation(src); 2921var comp = CreateCompilation(source); 5476var comp = CreateCompilation(source); 5492var comp = CreateCompilation(source); 5510var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 5838var compilation = CreateCompilation(source).VerifyDiagnostics();
FlowAnalysis\IterationJumpYieldStatementTests.cs (1)
912var comp = CreateCompilation(new[] { tree });
FlowAnalysis\LocalFunctions.cs (48)
21var comp = CreateCompilation(@" 50var comp = CreateCompilation(@" 83var comp = CreateCompilation(@" 109var comp = CreateCompilation(@" 133var comp = CreateCompilation(@" 156var comp = CreateCompilation(@" 175var comp = CreateCompilation(@" 195var comp = CreateCompilation(@" 227var comp = CreateCompilation(@" 255var comp = CreateCompilation(@" 277var comp = CreateCompilation(@" 302var comp = CreateCompilation(@" 334var comp = CreateCompilation(@" 365var comp = CreateCompilation(@" 408var comp = CreateCompilationWithMscorlib46(@" 446var comp = CreateCompilationWithMscorlib46(@" 494var comp = CreateCompilation(@" 509var comp = CreateCompilation(@" 526var comp = CreateCompilation(@" 546var comp = CreateCompilation(@" 567var comp = CreateCompilation(@" 589var comp = CreateCompilation(@" 615var comp = CreateCompilation(@" 649var comp = CreateCompilation(@" 670var comp = CreateCompilation(@" 693var comp = CreateCompilation(@" 725var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 751var comp = CreateCompilation(@" 821var comp = CreateCompilation(@" 914var comp = CreateCompilation(@" 939var comp = CreateCompilation(@" 1011var comp = CreateCompilation(@" 1036var comp = CreateCompilation(@" 1074var comp = CreateCompilation(@" 1123var comp = CreateCompilation(@" 1150var comp = CreateCompilation(@" 1180var comp = CreateCompilation(@" 1218var comp = CreateCompilation(@" 1255var comp = CreateCompilation(@" 1291var comp = CreateCompilation(@" 1321var comp = CreateCompilation(@" 1347var comp = CreateCompilation(@" 1371var comp = CreateCompilation(@" 1397var comp = CreateCompilation(@" 1453var comp = CreateCompilation(@" 1502var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 1523var comp = CreateCompilation(@" 1551var comp = CreateCompilation(@"
FlowAnalysis\RegionAnalysisTests.cs (23)
3091var compilation = CreateCompilation(@" 4417var compilation = CreateCompilation(@" 4522var compilation = CreateCompilation(source.Replace("unsafe", keyword)); 5484var comp = CSharpCompilation.Create("FlowAnalysis", syntaxTrees: new[] { tree }); 5525var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5566var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6213var comp = CreateCompilation(source); 6311var compilation = CreateEmptyCompilation(source); 6350var compilation = CreateEmptyCompilation(source); 6377var compilation = CreateEmptyCompilation(source); 6415var compilation = CreateEmptyCompilation(source); 6443var compilation = CreateCompilation(source); 6465var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular10); 7904var compilation = CreateCompilation(source); 8091var compilation = CreateCompilation(source); 8119var compilation = CreateCompilation(source); 9243var comp = CreateCompilation(@" 9374var comp = CreateCompilation(@" 9399var comp = CreateCompilation(@" 9448var comp = CreateCompilation(@" 14103var comp = CreateCompilation(""" 14131var comp = CreateCompilation("""
FlowAnalysis\StructTests.cs (12)
22var comp = CreateCompilationWithMscorlib40(@" 70var comp = CreateCompilation(program); 104var comp = CreateCompilation(text); 176var comp = CreateCompilation(program); 203var comp = CreateCompilation(program); 225var comp1 = CreateCompilation( 288var comp1 = CreateCompilation( 321var comp1 = CreateCompilation( 358var comp1 = CreateCompilation( 416var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 459var comp1 = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugModule)); 492var comp1 = CreateCompilation(source, options: TestOptions.DebugModule);
OverloadResolutionPriorityTests.cs (21)
256var derivedComp = CreateCompilation(derived, references: [baseReference]); 305var derivedComp = CreateCompilation(derived, references: [baseReference]); 439static void verify(CSharpCompilation comp) 663var comp1_1 = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.StandardReferences); 664var comp1_2 = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.StandardReferences); 689var comp3 = CreateCompilation(source3, references: [comp2.ToMetadataReference(), comp1_2.ToMetadataReference()], targetFramework: TargetFramework.Standard); 711var comp1_1 = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.StandardReferences); 712var comp1_2 = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.StandardReferences); 749var comp3 = CreateCompilation(source3, references: [comp2.ToMetadataReference(), comp1_2.ToMetadataReference()], targetFramework: TargetFramework.Standard); 772var comp1_1 = CreateCompilation(new AssemblyIdentity("Base", new Version(1, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.StandardReferences); 773var comp1_2 = CreateCompilation(new AssemblyIdentity("Base", new Version(2, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.StandardReferences); 797var comp3 = CreateCompilation(source3, references: [comp2.ToMetadataReference(), comp1_2.ToMetadataReference()]); 903var c = ((CSharpCompilation)verifier.Compilation).GetTypeByMetadataName("C"); 974var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 985var attr = ((CSharpCompilation)verifier.Compilation).GetTypeByMetadataName("System.Runtime.CompilerServices.OverloadResolutionPriorityAttribute"); 1473var comp = (CSharpCompilation)CompileAndVerify(source, references: [ilRef], expectedOutput: "12").VerifyDiagnostics().Compilation; 1760var attrRef = CreateCompilation(OverloadResolutionPriorityAttributeDefinition); 2215var comp = CreateCompilation(source, references: [ilRef]); 2313var comp = CreateCompilation(source, references: [ilRef]); 2485var comp = CreateCompilation(source, references: [ilRef]);
RefReadonlyParameterTests.cs (56)
439var comp = CreateCompilationWithIL("", ilSource).VerifyDiagnostics(); 480var comp = CreateCompilationWithIL("", ilSource).VerifyDiagnostics(); 527var comp = CreateCompilationWithIL("", ilSource).VerifyDiagnostics(); 969var comp = CreateCompilationWithIL(source, ilSource, options: TestOptions.UnsafeDebugDll); 1051var comp = CreateCompilationWithIL(new[] { source, RequiresLocationAttributeDefinition }, ilSource, options: TestOptions.UnsafeDebugDll); 1115var comp = CreateCompilationWithIL(source, ilSource, options: TestOptions.UnsafeDebugDll); 1169var comp = CreateCompilationWithIL(source, ilSource, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1217var comp = CreateCompilationWithIL(source, ilSource, options: TestOptions.UnsafeDebugDll); 1245var comp = CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugDll); 1269var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1286var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1304var comp1 = CreateCompilation(source1, assemblyName: "Assembly1").VerifyDiagnostics(); 1319var comp2 = CreateCompilation(source2, new[] { comp1Ref }, assemblyName: "Assembly2", options: TestOptions.UnsafeDebugDll); 1329var comp1b = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, assemblyName: "Assembly1").VerifyDiagnostics(); 1331var comp2b = CreateCompilation(source2, new[] { comp1bRef }, assemblyName: "Assembly2", options: TestOptions.UnsafeDebugDll); 1345var comp3 = CreateCompilation(source3, new[] { comp1bRef }, assemblyName: "Assembly3", options: TestOptions.UnsafeDebugDll); 1369var comp1v1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, assemblyName: "Assembly1", options: TestOptions.UnsafeReleaseDll); 1385var comp2 = CreateCompilation(source2, new[] { comp1v1Ref }, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1412var comp4 = CreateCompilation(source4, assemblyName: "Assembly4").VerifyDiagnostics(); 1416var comp1v2 = CreateCompilation(source1, new[] { comp4Ref }, assemblyName: "Assembly1", options: TestOptions.UnsafeReleaseDll); 1430var comp1v3 = CreateCompilation(new[] { source1, source5 }, new[] { comp4Ref }, assemblyName: "Assembly1", options: TestOptions.UnsafeReleaseDll); 1437var comp1v4 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, new[] { comp4Ref }, assemblyName: "Assembly1", options: TestOptions.UnsafeReleaseDll); 1445var f = ((CSharpCompilation)comp).GetMember<MethodSymbol>("C.M").Parameters.Single(); 1466var comp1 = CreateCompilation(source1, assemblyName: "Assembly1").VerifyDiagnostics(); 1476var comp2 = CreateCompilation(new[] { source2, RequiresLocationAttributeDefinition }, new[] { comp1Ref }, 1489var comp3 = CreateCompilation(source2, new[] { comp1Ref }, assemblyName: "Assembly3", options: TestOptions.UnsafeReleaseDll); 1522var comp = CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(); 1542var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1558var comp1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugDll); 1644var comp = CreateCompilation(source).VerifyDiagnostics(); 1659var comp = CreateCompilation(source).VerifyDiagnostics( 1681var comp = CreateCompilation(source).VerifyDiagnostics( 3163var comp1 = CreateCompilation(source1).VerifyDiagnostics( 4891var comp = CreateCompilation(source); 5250var comp1 = CreateCompilation(source1).VerifyDiagnostics(); 5787var comp1 = CreateCompilation(source1, targetFramework: TargetFramework.Mscorlib40).VerifyDiagnostics(); 5813var comp1 = CreateCompilation(source1, targetFramework: TargetFramework.Mscorlib40).VerifyDiagnostics(); 5838var comp1 = CreateCompilation(source1, targetFramework: TargetFramework.Mscorlib40).VerifyDiagnostics(); 6674var comp1v1 = CreateCompilation(source1v1, assemblyName: "Assembly1"); 6683var comp1v2 = CreateCompilation(source1v2, assemblyName: "Assembly1"); 6692var comp2 = CreateCompilation(source2, new[] { comp1v1Ref }, assemblyName: "Assembly2"); 6695var comp3v1 = CreateCompilation("", new[] { comp2Ref, comp1v1Ref }, assemblyName: "Assembly3"); 6702var comp3v2 = CreateCompilation("", new[] { comp2Ref, comp1v2Ref }, assemblyName: "Assembly3"); 7096var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics( 7124var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics( 7153var comp1 = CreateCompilationWithMscorlib40(source1).VerifyDiagnostics(); 7166var comp2 = CreateCompilationWithMscorlib40(source2, new[] { comp1Ref }); 7705var comp1 = CreateCompilation(source1).VerifyDiagnostics(); 7807var comp1 = CreateCompilation(source1).VerifyDiagnostics(); 7971var comp1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugDll); 8046var comp1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugDll); 8212var comp1 = CreateCompilation(new[] { source1, RequiresLocationAttributeDefinition }, options: TestOptions.UnsafeDebugDll); 8230var comp = CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugExe); 8327var comp1 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll); 8539var comp1 = CreateCompilation(source1); 8633var comp1 = CreateCompilation(source1);
RefStructInterfacesTests.cs (355)
36var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 69var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 102var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 125var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 149var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 181var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 213var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 238var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 266var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 304var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 342var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 370var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 396var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 428var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 460var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 485var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 514var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 552var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 590var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 618var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 644var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80); 662var comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80); 686var comp3 = CreateCompilation(src3, references: [comp1Ref], targetFramework: TargetFramework.Net80); 728var comp4 = CreateCompilation(src4, references: [comp1Ref], targetFramework: TargetFramework.Net80); 754var comp5 = CreateCompilation(src5, references: [comp1Ref], targetFramework: TargetFramework.Net80); 775var comp6 = CreateCompilation(src6, references: [comp1Ref], targetFramework: TargetFramework.Net80); 801var comp7 = CreateCompilation(src7, references: [comp1Ref], targetFramework: TargetFramework.Net80); 835var comp8 = CreateCompilation(src8, references: [comp1Ref], targetFramework: TargetFramework.Net80); 864var comp9 = CreateCompilation(src9, references: [comp1Ref], targetFramework: TargetFramework.Net80); 885var comp10 = CreateCompilation(src10, references: [comp1Ref], targetFramework: TargetFramework.Net80); 908var comp11 = CreateCompilation(src11, references: [comp1Ref], targetFramework: TargetFramework.Net80); 930var comp12 = CreateCompilation(src12, references: [comp1Ref], targetFramework: TargetFramework.Net80); 948var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80); 968var comp7 = CreateCompilation(src7, references: [comp1Ref], targetFramework: TargetFramework.Net80); 995var comp8 = CreateCompilation(src8, references: [comp1Ref], targetFramework: TargetFramework.Net80); 1057var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80); 1086var comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80); 1143var comp3 = CreateCompilation(src3, references: [comp1Ref], targetFramework: TargetFramework.Net80); 1216var comp4 = CreateCompilation(src4, references: [comp1Ref], targetFramework: TargetFramework.Net80); 1255var comp5 = CreateCompilation(src5, references: [comp1Ref], targetFramework: TargetFramework.Net80); 1304var comp6 = CreateCompilation(src6, references: [comp1Ref], targetFramework: TargetFramework.Net80); 1341var comp7 = CreateCompilation(src7, references: [comp1Ref], targetFramework: TargetFramework.Net80); 1394var comp8 = CreateCompilation(src8, references: [comp1Ref], targetFramework: TargetFramework.Net80); 1451var comp9 = CreateCompilation(src9, references: [comp1Ref], targetFramework: TargetFramework.Net80); 1471var comp10 = CreateCompilation(src10, references: [comp1Ref], targetFramework: TargetFramework.Net80); 1496var comp11 = CreateCompilation(src11, references: [comp1Ref], targetFramework: TargetFramework.Net80); 1518var comp12 = CreateCompilation(src12, references: [comp1Ref], targetFramework: TargetFramework.Net80); 1543var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80); 1568var comp7 = CreateCompilation(src7, references: [comp1Ref], targetFramework: TargetFramework.Net80); 1602var comp8 = CreateCompilation(src8, references: [comp1Ref], targetFramework: TargetFramework.Net80); 1633var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80); 1662var comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80); 1719var comp3 = CreateCompilation(src3, references: [comp1Ref], targetFramework: TargetFramework.Net80); 1792var comp4 = CreateCompilation(src4, references: [comp1Ref], targetFramework: TargetFramework.Net80); 1831var comp5 = CreateCompilation(src5, references: [comp1Ref], targetFramework: TargetFramework.Net80); 1880var comp6 = CreateCompilation(src6, references: [comp1Ref], targetFramework: TargetFramework.Net80); 1917var comp7 = CreateCompilation(src7, references: [comp1Ref], targetFramework: TargetFramework.Net80); 1970var comp8 = CreateCompilation(src8, references: [comp1Ref], targetFramework: TargetFramework.Net80); 2027var comp9 = CreateCompilation(src9, references: [comp1Ref], targetFramework: TargetFramework.Net80); 2047var comp10 = CreateCompilation(src10, references: [comp1Ref], targetFramework: TargetFramework.Net80); 2072var comp11 = CreateCompilation(src11, references: [comp1Ref], targetFramework: TargetFramework.Net80); 2094var comp12 = CreateCompilation(src12, references: [comp1Ref], targetFramework: TargetFramework.Net80); 2119var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80); 2144var comp7 = CreateCompilation(src7, references: [comp1Ref], targetFramework: TargetFramework.Net80); 2178var comp8 = CreateCompilation(src8, references: [comp1Ref], targetFramework: TargetFramework.Net80); 2216var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 2245var comp = CreateCompilation(source, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 2280var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 2313var comp = CreateCompilation(source, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 2358var comp = CreateCompilation(source, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 2442var comp = CreateCompilation(source, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 2481var comp = CreateCompilation(source, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 2545var comp = CreateCompilation(source, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 2607var comp = CreateCompilation(source, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 2668var comp = CreateCompilation(source, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 2704var comp = CreateCompilation(source, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 2720var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }); 2756var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }); 2795var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }); 2831var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }); 2865var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }); 2902var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }); 3178var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3253var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3340var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3416var comp = CreateCompilation(source, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 3472var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3515var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3563var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3739var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3805var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3882var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3931var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3981var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 4043var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 4085var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 4128var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 4177var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 4231var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 4286var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 4353var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 4366var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4422var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4466var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4507var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4533var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4562var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4584var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4616var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4642var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4677var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4720var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4746var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4775var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4812var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4838var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4867var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4889var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4918var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4942var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 4973var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5000var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5029var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5058var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5083var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5111var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5138var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5159var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5180var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5201var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5226var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5255var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5280var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5309var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5338var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5367var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5408var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5474var comp2 = CreateCompilation(src1, targetFramework: TargetFramework.Net70); 5509var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5545var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5607var comp2 = CreateCompilation(src1, targetFramework: TargetFramework.Net70); 5638var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5674var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5699var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5733var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5756var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5784var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5817var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5853var comp = CreateCompilation(src); 5888var comp = CreateCompilation(src); 5935var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 5984var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 6064var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 6140var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.NetCoreApp); 6149var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 6202var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.NetCoreApp); 6211var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 6260var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.NetCoreApp); 6269var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 6328var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.NetCoreApp); 6337var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 6396var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.NetCoreApp); 6405var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 6462var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.NetCoreApp); 6474var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 6548var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 6595var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 6731var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 6848var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 6969var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 7108var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 7233var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 7257var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 7274var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 7303var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 7320var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 7358var comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 7386var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 7432var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 7622var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 7840var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 8037var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 8230var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 8429var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 8505var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 8673var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 8686var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 8715var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 8728var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 8762var comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 8788var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 8814var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 8827var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 8889var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 9093var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 9303var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 9456var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 9668var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 9892var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 10104var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 10338var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 10433var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 10500var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 10697var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 10936var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 11152var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 11379var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 11596var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 11691var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 11743var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 11756var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 11801var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 11812var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 11841var comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 11876var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 11939var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 11987var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 12023var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 12231var comp2 = CreateCompilation(src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 12290var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 12498var comp2 = CreateCompilation(src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 12536var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 12746var comp2 = CreateCompilation(src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 12795var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 13017var comp2 = CreateCompilation(src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 13065var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 13272var comp2 = CreateCompilation(src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 13324var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 13550var comp2 = CreateCompilation(src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 13599var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 13664var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 13689var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 13706var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 13747var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 13764var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 13814var comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 13853var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 13910var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 13966var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 14307var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 14668var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 15019var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 15367var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 15720var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 15797var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16124var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 16139var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 16168var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 16181var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 16215var comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 16242var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 16270var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 16285var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 16332var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16374var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16426var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16487var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16554var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16628var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16700var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16746var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16811var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16876var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 16960var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 17048var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 17141var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 17238var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 17322var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 17374var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 17391var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 17456var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 17467var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 17510var comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 17550var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 17611var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 17808var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 18030var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 18233var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 18434var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 18640var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 18714var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 18890var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 18903var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 18930var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 18943var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 18974var comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 19000var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 19026var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 19039var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.Regular12); 19096var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 19267var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 19444var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 19592var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 19777var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 19957var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 20000var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 20136var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 20190var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 20228var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 20257var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 20401var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 20448var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 20493var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 20538var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 20573var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 20606var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 20640var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 20685var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 20737var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 20779var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 20816var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 20932var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 20989var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21022var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21046var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21112var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21140var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21193var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21234var comp2 = CreateCompilation(src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21296var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21336var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21382var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21403var comp = CreateCompilation(code, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21429var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21477var comp = CreateCompilation(sourceA, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21501var comp2 = CreateCompilation(src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21547var comp = CreateCompilation(sourceA, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21591var comp = CreateCompilation(sourceA, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21638var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21699var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21745var comp = CreateCompilation(sourceA, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21776var comp = CreateCompilation(sourceA, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21831var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 21881var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21928var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21968var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 21990var comp2 = CreateCompilation(src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 22020var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 22060var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.DebugExe); 22094var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 22136var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 22178var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 22234var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 22305var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 22370var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 22408var comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 22425var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics); 22473var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 22529var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 22584var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 22632var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe); 22676var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.UnsafeReleaseExe); 22725var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe); 22777var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe); 22823var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe);
RefUnsafeInIteratorAndAsyncTests.cs (5)
741var comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 795var comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 1132var comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 1206var comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe); 1305var comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe);
Semantics\CollectionExpressionTests.cs (399)
150var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 187var comp = CreateCompilation(source); 222var comp = CreateCompilation(source); 257var comp = CreateCompilation(source); 285var comp = CreateCompilation(source); 313var comp = CreateCompilation(source); 338var comp = CreateCompilation(source); 357var comp = CreateCompilation(source); 376var comp = CreateCompilation(source); 397var comp = CreateCompilation(source); 445var comp = CreateCompilation(source); 551var comp = CreateCompilation(source); 584var comp = CreateCompilation(source); 692var comp = CreateCompilation(source); 714var comp = CreateCompilation(source); 781var comp = CreateCompilation(source); 806var comp = CreateCompilation(source); 867var comp = CreateCompilation(source); 902var comp = CreateCompilation(source); 956var comp = CreateCompilation(source); 1234var comp = CreateCompilation(source); 1433var comp = CreateCompilation( 1528var comp = CreateCompilation( 1628var comp = CreateCompilation( 1732var comp = CreateCompilation( 1918var comp = CreateCompilation( 2006var comp = CreateCompilation( 2075var comp = CreateCompilation(new[] { source, s_collectionExtensionsWithSpan }, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80); 2107var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 2988var comp = CreateCompilation(source); 3074var comp = CreateCompilation( 3112var comp = CreateCompilation( 3146var comp = CreateCompilation( 3188var comp = CreateCompilation( 3274var comp = CreateCompilation(source); 3312var comp = CreateCompilation(source); 3336var comp = CreateCompilation(source); 3362var comp = CreateCompilation(source); 3406var comp = CreateCompilation(source); 3437var comp = CreateCompilation(new[] { source, s_collectionExtensions }); 3461var comp = CreateCompilation(new[] { source, s_collectionExtensions }); 3502var comp = CreateCompilation(source); 3532var comp = CreateCompilation(source); 3557var comp = CreateCompilation(source); 3680var comp = CreateCompilation(source); 3728var comp = CreateCompilation(source); 3769var comp = CreateCompilation(source); 3808var comp = CreateCompilation(source); 3850var comp = CreateCompilation(source); 3903var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3927var comp = CreateCompilation(source); 3951var comp = CreateCompilation(source); 3976var comp = CreateCompilation(source); 4014var comp = CreateCompilation(source); 4046var comp = CreateCompilation(source); 4065var comp = CreateCompilation(source); 4197var comp = CreateCompilation(source); 4245var comp = CreateCompilation(source); 4344var comp = CreateCompilation(source); 4374var comp = CreateCompilation(new[] { source, s_collectionExtensions }); 4460var comp = CreateCompilation(new[] { source, s_collectionExtensions }); 4482var comp = CreateCompilation(new[] { source, s_collectionExtensions }); 4532var comp = CreateCompilation(source); 4563var comp = CreateCompilation(source); 4727var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 4804var comp = CreateCompilation(new[] { source, s_collectionExtensions }); 4851var comp = CreateCompilation(source); 4873var comp = CreateCompilation(source); 4900var comp = CreateCompilation(source); 4927var comp = CreateCompilation(source); 4954var comp = CreateCompilation(source); 5012var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute()); 5076var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute()); 5124var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute()); 5163var comp = CreateCompilation(source); 5391var comp = CreateCompilation(source); 5413var comp = CreateCompilation(source); 5673var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 5702var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 5721var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 5770var comp = CreateCompilation(source); 5798var comp = CreateCompilation(source); 5859var comp = CreateCompilation(source); 5920var comp = CreateCompilation(source); 5967var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute()); 5996var comp = CreateCompilation(source); 6045var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute()); 6073var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 6100var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 6128var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 6178var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net80); 6548var comp = CreateCompilation(source); 6586var comp = CreateCompilation(new[] { sourceA, sourceB2 }); 6611var comp = CreateCompilation(source); 6642var comp = CreateCompilation(source); 6695var comp = CreateCompilation(new[] { sourceA, sourceB2 }); 6789var comp = CreateCompilation(source); 6920var comp = CreateCompilation(source); 6952var comp = CreateCompilation(source); 6977var comp = CreateCompilation(source); 7048var comp = CreateCompilation(source); 7080var comp = CreateCompilation(source); 7107var comp = CreateCompilation(source); 7136var comp = CreateCompilation(source); 7168var comp = CreateCompilation(source); 7306var comp = CreateCompilation(new[] { sourceA, sourceB1, s_collectionExtensions }); 7366var comp = CreateCompilation(source); 7395var comp = CreateCompilation(source); 7424var comp = CreateCompilation(source); 7457var comp = CreateCompilation(source); 7481var comp = CreateCompilation(source); 7512var comp = CreateCompilation(source); 7549var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 7634var comp = CreateCompilation(source); 7667var comp = CreateCompilation(source); 7692var comp = CreateCompilation(sourceA); 7763var comp = CreateCompilation(source); 7795var comp = CreateCompilation(source); 7859var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 7934var comp = CreateCompilation(source); 7969var comp = CreateCompilation(source); 8073var comp = CreateCompilation(source); 8117var comp = CreateCompilation(source); 8154var comp = CreateCompilation(source); 8183var comp = CreateCompilation(source); 8215var comp = CreateCompilation(source); 8247var comp = CreateCompilation(source); 8284var comp = CreateCompilation(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe); 8347var comp = CreateCompilation(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe); 8432var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 8517var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 8610var comp = CreateCompilation(new[] { sourceA, sourceB2 }); 8661var comp = CreateCompilation(new[] { sourceA, sourceB2 }); 8711var comp = CreateCompilation(new[] { sourceA, sourceB2 }); 8844var comp = CreateCompilation(new[] { sourceA, sourceB1 }); 8916var comp = CreateCompilation(new[] { sourceA, sourceB1 }); 9089var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 9165var comp = CreateCompilation(source); 9192var comp = CreateCompilation(source); 9218var comp = CreateCompilation(source); 9237var comp = CreateCompilation(sourceA, assemblyName: assemblyA); 9389var comp = CreateCompilation(source); 9750var comp = CreateCompilation(source); 9771var comp = CreateCompilation(source); 9793var comp = CreateCompilation(source); 10127var comp = CreateCompilation(source); 10494var comp = CreateCompilation(source); 10513var comp = CreateCompilation(source); 10532var comp = CreateCompilation(source); 10982var comp = CreateCompilation(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe); 11029var comp = CreateCompilation(new[] { source, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe); 11087var comp = CreateCompilation(new[] { sourceA, sourceB, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe); 11170var comp = CreateCompilation(new[] { sourceA, sourceB, s_collectionExtensions }, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe); 11242var comp = CreateCompilation(new[] { sourceA, sourceB, s_collectionExtensions }, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11512var comp = CreateCompilation(source); 12129var comp = CreateCompilation(source); 12151var comp = CreateCompilation(source); 12234var comp = CreateCompilation(source); 12250var comp = CreateCompilation(sourceA, assemblyName: assemblyA); 12313var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 12384var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 12487var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 13403var sourceType = ((CSharpCompilation)verifier.Compilation).GetMember<NamedTypeSymbol>("ReadOnlyArray"); 13455var comp = CreateCompilation(source); 13490var comp = CreateCompilation(source); 13770var comp = CreateEmptyCompilation(source, references: [reference]); 13828var comp = CreateCompilation(source); 13855var comp = CreateCompilation(source); 13880var comp = CreateCompilation(source); 13938var comp = CreateCompilation(source); 13967var comp = CreateCompilation(source); 14078var comp = CreateCompilation(source); 14117var comp = CreateCompilation(source); 14149var comp = CreateCompilation(source); 14176var comp = CreateCompilation(new[] { source, s_collectionExtensions }); 14283var comp = CreateCompilation(new[] { src, s_collectionExtensions }, targetFramework: TargetFramework.Net80); 14353var comp = CreateCompilation(new[] { src, s_collectionExtensions }, targetFramework: TargetFramework.Net80); 14426var comp = CreateCompilation(new[] { src, s_collectionExtensions }, targetFramework: TargetFramework.Net80); 14440var comp = CreateCompilation(new[] { src, s_collectionExtensions }, targetFramework: TargetFramework.Net80); 14494var comp = CreateCompilation(new[] { src, s_collectionExtensions }, targetFramework: TargetFramework.Net80); 14563var comp = CreateCompilation(new[] { src, s_collectionExtensions }, targetFramework: TargetFramework.Net80); 14608var comp = CreateCompilation(new[] { src, s_collectionExtensions }, targetFramework: TargetFramework.Net80); 14666var comp = CreateCompilation(new[] { src, s_collectionExtensions }, targetFramework: TargetFramework.Net80); 14768var comp = CreateCompilation(new[] { src, s_collectionExtensions }, targetFramework: TargetFramework.Net80); 14895var comp = CreateCompilation(source); 14926var comp = CreateCompilation(source); 14956var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 15007var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 15067var comp = CreateCompilation(new[] { source, s_collectionExtensions }, options: TestOptions.ReleaseExe); 15135var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15189var comp = CreateCompilation(source); 15214var comp = CreateCompilation(source); 15246var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 15437var comp = CreateCompilation(sources, targetFramework: targetFramework); 15575var comp = CreateCompilationWithSpanAndMemoryExtensions( 15647var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 15745var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 15833var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 15882var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 15931var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 15980var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 16020var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 16082var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 16147var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 16196var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 16238var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 16292var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 16342var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 16377var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 16411var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 16443var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 16500var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 16563var comp = CreateCompilation(sourceB, references: new[] { refA }); 16599var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 16642var comp = CreateCompilation(sourceB, references: new[] { refA }); 16683var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 16735var comp = CreateCompilation(sourceB, references: new[] { refA }); 16775var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 16816var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 16856var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 16899var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 16951var comp = CreateCompilation(sourceB, references: new[] { refA }); 16981var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 17030var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 17084var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 17151var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 17216var comp = CreateCompilation(new[] { sourceAttribute, sourceA }, targetFramework: TargetFramework.Net80); 17235comp = (CSharpCompilation)verifier.Compilation; 17277var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 17321var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 17369var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 17405var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 17454var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 17503var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 17549var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 17595var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 17638var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 17686var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 17731var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 17777var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 17833var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 17880var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 17932var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 17992var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 18037var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 18082var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 18140var comp = CreateCompilation(new[] { sourceA, sourceAttribute }, targetFramework: TargetFramework.Net80); 18184var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 18264var comp = CreateCompilation( 18335var comp = CreateCompilation( 18386var comp = CreateCompilation( 18434var comp = CreateCompilation( 18569var comp = CreateCompilation( 18616var comp = CreateCompilation( 18664var comp = CreateCompilation( 18712var comp = CreateCompilation( 18755var comp = CreateCompilation( 18798var comp = CreateCompilation( 18841var comp = CreateCompilation( 18884var comp = CreateCompilation( 18917var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 18974var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 19008var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 19054var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 19112var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 19151var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 19214var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 19288var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 19318var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 19389var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 19448var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 19484var comp = CreateCompilation(new[] { sourceA, CollectionBuilderAttributeDefinition }, targetFramework: TargetFramework.Mscorlib40); 19555var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 19586var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 19632var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 19670var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 19735var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 19763var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 19841var comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net80); 19898var comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net80); 19923var comp = CreateCompilation(sourceA, assemblyName: assemblyA, targetFramework: TargetFramework.Net80); 20035var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }); 20260var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 20290var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 20324var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 20360var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 20393var comp = CreateCompilation(new[] { sourceA, sourceB }); 20420var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 20745var comp = CreateCompilation( 20970var comp = CreateCompilation(source); 21036var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute()); 21184var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute()); 21749var comp = CreateCompilation( 22109var comp = CreateCompilation(source); 22140var comp = CreateCompilation(source); 22505var comp = CreateCompilation(source, targetFramework: targetFramework); 22593var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 22624var comp = CreateCompilation( 22763var comp = CreateCompilation(new[] { sourceA, CollectionBuilderAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp10), targetFramework: TargetFramework.Net60); 23461var comp = CreateCompilation(new[] { source, s_collectionExtensionsWithSpan }, targetFramework: TargetFramework.Net80); 23831var comp = CreateCompilation( 24006var comp = CreateCompilation(source, targetFramework: targetFramework); 24194var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 24276var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 24474var comp = CreateCompilation(source, targetFramework: targetFramework); 25076var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 25110var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 25221var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithSpecificDiagnosticOptions(WithSpanAllocWarning)); 25593var comp = CreateCompilation(source, targetFramework: targetFramework); 25720var comp = CreateCompilation( 25957var comp = CreateCompilation(new[] { source, s_collectionExtensionsWithSpan }, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 25999var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 26035var comp = CreateCompilation(source); 26061var comp = CreateCompilation(source); 26181var comp = CreateCompilation(source); 26307var comp = CreateCompilation(source); 26374var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 26433var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(WithSpanAllocWarning)); 26518var comp = CreateCompilation(source); 26587var comp = CreateCompilation(source); 26645var comp = CreateCompilation(source); 26715var comp = CreateCompilation(source); 26793var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 26855var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 26890var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 26962var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80); 27011var comp = CreateCompilation(source); 27072var comp = CreateCompilation(source, references: new[] { CSharpRef }); 27101var comp = CreateCompilation(source); 27124var comp = CreateCompilation(source); 27203var comp = CreateCompilation(source); 27244var comp = CreateCompilation(source); 27277var comp = CreateCompilation(source); 27893var comp = CreateCompilation(source); 27916var comp = CreateCompilation(source); 27948var comp = CreateCompilation(source); 28240var comp = CreateCompilation(new[] { source, s_collectionExtensions }).VerifyEmitDiagnostics(); 28270var comp = CreateCompilation(new[] { source, s_collectionExtensions }).VerifyEmitDiagnostics(); 28293var comp = CreateCompilation(new[] { source, s_collectionExtensions }).VerifyEmitDiagnostics(); 28316var comp = CreateCompilation(new[] { source, s_collectionExtensions }).VerifyEmitDiagnostics(); 28362var comp = CreateCompilation(new[] { source, s_collectionExtensions }).VerifyEmitDiagnostics(); 28386var comp = CreateCompilation(new[] { source, s_collectionExtensions }).VerifyEmitDiagnostics(); 28409var comp = CreateCompilation(new[] { source, s_collectionExtensions }).VerifyEmitDiagnostics(); 28622var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 28656var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net80); 28686var comp = CreateCompilation(source).VerifyEmitDiagnostics( 28730var comp = CreateCompilation(source).VerifyEmitDiagnostics( 28773var comp = CreateCompilation(source).VerifyEmitDiagnostics( 28819var comp = CreateCompilation(source).VerifyEmitDiagnostics( 28862var comp = CreateCompilation(source).VerifyEmitDiagnostics( 28902var comp = CreateCompilation(source).VerifyEmitDiagnostics( 28941var comp = CreateCompilation(source).VerifyEmitDiagnostics( 28980var comp = CreateCompilation(source).VerifyEmitDiagnostics(); 29008var comp = CreateCompilation(source).VerifyEmitDiagnostics( 29061var comp = CreateCompilation(source).VerifyEmitDiagnostics( 29115var comp = CreateCompilation(source).VerifyEmitDiagnostics( 29176var comp = CreateCompilation(source).VerifyEmitDiagnostics( 29268var comp = CreateCompilation(source).VerifyEmitDiagnostics( 29310var comp = CreateCompilation(source).VerifyEmitDiagnostics( 29357var comp = CreateCompilation(source).VerifyEmitDiagnostics( 29408var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 29448var comp = CreateCompilation(new[] { source, s_collectionExtensions }, targetFramework: TargetFramework.Net80); 29507var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29533var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29557var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29581var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29604var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29662var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29721var comp = CreateCompilation(new[] { source, s_collectionExtensions }, targetFramework: TargetFramework.Net70); 30040var comp = CreateCompilation(source).VerifyEmitDiagnostics(); 30103var comp = CreateCompilation(source).VerifyEmitDiagnostics(); 30155var comp = CreateCompilation(new[] { sourceA, s_collectionExtensions }, targetFramework: TargetFramework.Net80, options: ExecutionConditionUtil.IsMonoOrCoreClr ? TestOptions.DebugExe : TestOptions.DebugDll); 30265var comp = (CSharpCompilation)verifier.Compilation; 30481var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net60); 30540var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Mscorlib40); 30594var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Mscorlib40); 30989var comp = CreateCompilation(source); 31017var comp = CreateCompilation(source); 31057var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 31106var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net80); 31560var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(); 31608var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(); 31662var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 31764var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(); 32371var comp = CreateCompilation(src).VerifyEmitDiagnostics( 32414var comp = CreateCompilation(src).VerifyEmitDiagnostics(); 32439var comp = CreateCompilation(src).VerifyEmitDiagnostics( 32470var comp = CreateCompilation(src).VerifyEmitDiagnostics( 32512var comp = CreateCompilation(src).VerifyEmitDiagnostics( 32561var comp = CreateCompilation(src).VerifyEmitDiagnostics(); 32615var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 32711var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 33109var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics( 33512var comp = CreateCompilation(new[] { source, CollectionBuilderAttributeDefinition }, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(WithSpanAllocWarning)); 33543var compilation = CreateCompilation(code); 33580var compilation = CreateCompilation(code); 34284var comp = CreateCompilation(new[] { source, s_collectionExtensionsWithSpan }, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 34820var comp = CreateCompilation(new[] { source, s_collectionExtensionsWithSpan }, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net80);
Semantics\ExperimentalAttributeTests.cs (114)
53var comp = inSource 83var comp = CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }); 103var comp = CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 129var attrComp = CreateCompilation(experimentalAttributeSrc); 144var comp = CreateCompilation(new[] { src, libSrc }, references: new[] { attrRef }); 154var attrComp = CreateCompilation(experimentalAttributeSrc); 169var comp = CreateCompilation(src, references: new[] { CreateCompilation(libSrc, references: new[] { attrRef }).EmitToImageReference(), attrRef }); 194var attrComp = CreateCompilation(experimentalAttributeSrc); 211var comp = CreateCompilation(src, references: new[] { CreateCompilation(libSrc, references: new[] { attrRef }).EmitToImageReference(), attrRef }); 230var attrComp = CreateCompilation(experimentalAttributeSrc); 236var moduleComp = CreateCompilation(libSrc1, options: TestOptions.DebugModule, references: new[] { attrRef }); 249var comp = CreateCompilation(new[] { src, libSrc }, references: new[] { attrRef, moduleRef }); 260var attrComp = CreateCompilation(experimentalAttributeSrc); 266var moduleComp = CreateCompilation(libSrc1, options: TestOptions.DebugModule, references: new[] { attrRef }); 279var comp = CreateCompilation(src, references: new[] { CreateCompilation(libSrc, references: new[] { attrRef, moduleRef }).EmitToImageReference(), attrRef }); 316var comp = CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 346var comp = CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 372var comp = CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 386var attrComp = CreateCompilation(experimentalAttributeSrc); 401var comp = CreateCompilation(new[] { src, libSrc }, references: new[] { attrRef }); 411var attrComp = CreateCompilation(experimentalAttributeSrc); 426var comp = CreateCompilation(src, references: new[] { CreateCompilation(libSrc, references: new[] { attrRef }).EmitToImageReference(), attrRef }); 451var attrComp = CreateCompilation(experimentalAttributeSrc); 468var comp = CreateCompilation(new[] { src, libSrc }, references: new[] { attrRef }); 479var attrComp = CreateCompilation(experimentalAttributeSrc); 496var comp = CreateCompilation(src, references: new[] { CreateCompilation(libSrc, references: new[] { attrRef }).EmitToImageReference(), attrRef }); 521var attrComp = CreateCompilation(experimentalAttributeSrc); 533var moduleComp = CreateCompilation(libSrc, options: TestOptions.ReleaseModule, references: new[] { attrRef }); 546var assemblyComp = CreateCompilation(libSrc2, references: new[] { moduleRef, attrRef }); 557var comp = CreateCompilation(src, references: new[] { assemblyRef, moduleRef, attrRef }); 570var attrComp = CreateCompilation(experimentalAttributeSrc); 588var comp = CreateCompilation(new[] { src, libSrc }, references: new[] { attrRef }); 603var attrComp = CreateCompilation(experimentalAttributeSrc); 621var comp = CreateCompilation(src, references: new[] { CreateCompilation(libSrc, references: new[] { attrRef }).EmitToImageReference(), attrRef }); 643var attrComp = CreateCompilation(experimentalAttributeSrc); 663var comp = CreateCompilation(new[] { src, libSrc }, references: new[] { attrRef }); 671var attrComp = CreateCompilation(experimentalAttributeSrc); 691var comp = CreateCompilation(src, references: new[] { CreateCompilation(libSrc, references: new[] { attrRef }).EmitToImageReference(), attrRef }); 730var comp = inSource 777var comp = inSource 803var comp = CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }); 822var comp = CreateCompilation(src, references: new[] { CreateCompilation(new[] { libSrc, experimentalAttributeSrc }).EmitToImageReference() }); 853var comp = inSource 878var comp = inSource 901var comp = CreateCompilation(src, references: new[] { CreateCompilation(libSrc, references: new[] { missingRef }).EmitToImageReference() }); 924var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 925var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 933var derivedComp = CreateCompilation(derivedSrc, new[] { originalC.ToMetadataReference(), attrRef }, targetFramework: TargetFramework.Standard); 936var comp = CreateCompilation("_ = new Derived();", new[] { derivedComp.ToMetadataReference(), retargetedC.ToMetadataReference() }, targetFramework: TargetFramework.Standard); 961var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 962var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 968var derivedComp = CreateCompilation(derivedSrc, new[] { originalC.ToMetadataReference(), attrRef }, targetFramework: TargetFramework.Standard); 971var comp = CreateCompilation("_ = new Derived();", new[] { derivedComp.ToMetadataReference(), retargetedC.ToMetadataReference() }, targetFramework: TargetFramework.Standard); 989var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 990var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 998var derivedComp = CreateCompilation(@base, new[] { originalC.ToMetadataReference(), attrRef }, targetFramework: TargetFramework.Standard); 1001var comp = CreateCompilation("_ = new Derived();", new[] { derivedComp.ToMetadataReference(), retargetedC.ToMetadataReference() }, targetFramework: TargetFramework.Standard); 1026var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 1027var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 1033var derivedComp = CreateCompilation(@base, new[] { originalC.ToMetadataReference(), attrRef }, targetFramework: TargetFramework.Standard); 1036var comp = CreateCompilation("_ = new Derived();", new[] { derivedComp.ToMetadataReference(), retargetedC.ToMetadataReference() }, targetFramework: TargetFramework.Standard); 1060var comp = inSource 1089var comp = inSource 1120var comp = inSource 1151var comp = inSource 1182var comp = inSource 1213var comp = inSource 1244var comp = inSource 1271var comp = inSource 1295var comp = inSource 1321var comp = inSource 1344var comp = inSource 1364var comp = inSource 1385var comp = CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }); 1408var comp = CreateCompilation(new[] { src, experimentalAttributeSrc }); 1429var comp = CreateCompilation(new[] { src, experimentalAttributeSrc }); 1450var comp = CreateCompilation(new[] { src, experimentalAttributeSrc }); 1473var comp = CreateCompilation(new[] { src, libSrc, experimentalAttributeSrc }); 1499var comp = CreateCompilation(new[] { src, experimentalAttributeSrc }); 1523var comp = CreateCompilation(new[] { src, experimentalAttributeSrc }); 1550var comp = CreateCompilation(new CSharpTestSource[] { (src, "0.cs"), libSrc, experimentalAttributeSrc }); 1576var comp = CreateCompilation(new CSharpTestSource[] { (src, "0.cs"), experimentalAttributeSrc }); 1597var comp = CreateCompilation(new[] { src, experimentalAttributeSrc }); 1620var comp = CreateCompilation(new[] { src, experimentalAttributeSrc }); 1661var comp = CreateCompilationWithIL("C.M();", il); 1708var comp = CreateCompilation(src); 1738var libComp = CreateCompilation(libSrc); 1744var comp = CreateCompilation(src, references: new[] { libComp.EmitToImageReference() }); 1772var comp = CreateCompilation(src); 1798var libComp = CreateCompilation(libSrc); 1804var comp = CreateCompilation(src, references: new[] { libComp.EmitToImageReference() }); 1839var libComp = CreateCompilation(libSrc); 1845var comp = CreateCompilation(src, references: new[] { libComp.EmitToImageReference() }); 1880var libComp = CreateCompilation(libSrc); 1886var comp = CreateCompilation(src, references: new[] { libComp.EmitToImageReference() }); 1912var comp = CreateCompilation(new[] { src, experimentalAttributeSrc }); 1938var comp = CreateCompilation(new[] { src, experimentalAttributeSrc }); 1966var comp = inSource 1995var comp = CreateCompilation(new[] { src, experimentalAttributeSrc }); 2023var comp = CreateCompilation(new[] { src, experimentalAttributeSrc }); 2047var comp = inSource 2077var comp = inSource 2111var comp = inSource 2141var comp = inSource 2174var comp = inSource 2204var comp = inSource 2234var comp = inSource 2261var comp = inSource 2292var comp = inSource 2335var comp = inSource 2405var comp = inSource 2434var comp = inSource 2464var comp = inSource 2494var comp = inSource
Semantics\InlineArrayTests.cs (466)
101var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 135var comp = CreateCompilation(src); 158var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 181var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 227var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 252var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 297void verify(CSharpCompilation comp) 318var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 363void verify(CSharpCompilation comp) 384var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 429void verify(CSharpCompilation comp) 449var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 495void verify(CSharpCompilation comp) 514var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 559void verify(CSharpCompilation comp) 581var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 604var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 651void verify(CSharpCompilation comp) 685var comp = CreateCompilation(src, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 740void verify(CSharpCompilation comp) 775var comp = CreateCompilation(src, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 822void verify(CSharpCompilation comp) 854var comp = CreateCompilation(src, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 925void verify(CSharpCompilation comp) 960var comp = CreateCompilation(src, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 998var comp = CreateCompilation(consumer + src, targetFramework: TargetFramework.Net80); 1055void verify(CSharpCompilation comp) 1085var comp = CreateCompilation(consumer + src, targetFramework: TargetFramework.Net80); 1145void verify(CSharpCompilation comp) 1165var comp1 = CreateCompilation(src1 + InlineArrayAttributeDefinition, targetFramework: TargetFramework.Net50); 1166var comp2 = CreateCompilation("", references: new[] { comp1.ToMetadataReference() }, targetFramework: TargetFramework.Net60); 1186var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1212var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1242var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1279var comp = CreateCompilation(src); 1304var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1330var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1361var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1387var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1412var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1436var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1497var comp = CreateCompilationWithIL(src, ilSource, targetFramework: TargetFramework.Net80); 1533var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 1572var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1607var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1642var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1677var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1712var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1737var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1764var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1787var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1811var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1848var comp = CreateCompilation(src); 1872var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1902var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1917var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 1956var comp = CreateCompilationWithIL(src, ilSource, targetFramework: TargetFramework.Net80); 1986var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 2010var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 2028var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 2095var comp = CreateCompilationWithIL(src, ilSource, targetFramework: TargetFramework.Net80, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 2113var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 2131var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 2153var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options: TestOptions.DebugDll); 2175var comp2 = CreateCompilation(src2, references: new[] { comp1.ToMetadataReference() }, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 2201var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 2228var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 2251var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 2279var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options: TestOptions.DebugDll); 2299var comp2 = CreateCompilation(src2, references: new[] { comp1.ToMetadataReference() }, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe); 2324var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options: TestOptions.DebugDll); 2353var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 2388var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 2422var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 2462var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2553var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2590var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2633var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2671var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2703var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2741var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2782var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2824var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2864var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2889var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2914var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2945var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 2983var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3015var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3041var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3070var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3100var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3134var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3197var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3260var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3336var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3560var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 3792var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4017var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4142var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4271var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4402var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4528var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4678var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4836var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4894var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4950var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4997var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 5027var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 5074var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 5309var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 5527var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 5655var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 5871var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 5988var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6071var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6167var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6247var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6291var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6329var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6362var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6401var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6444var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6487var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6528var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6553var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6584var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6622var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6655var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6681var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6711var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6741var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6757var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 6780var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 6813var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6857var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6907var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6957var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7013var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7063var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7118var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7153var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7187var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7257var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7336var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7472var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7617var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7785var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7947var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8105var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8163var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8205var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8250var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8280var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8313var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8372var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8425var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8480var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8543var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8597var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8659var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8691var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8721var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8753var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8773var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8807var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8885var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8939var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8979var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9016var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9053var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9118var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9159var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9193var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9242var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9289var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9340var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9391var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9430var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9475var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9521var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9558var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9593var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9641var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9693var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9745var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9785var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9825var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9871var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9910var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9950var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 9979var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10013var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10060var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10111var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10150var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10187var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10222var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10261var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10304var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10345var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10390var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10431var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10460var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10492var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10528var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10602var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10654var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10706var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10746var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10792var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10838var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10873var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10908var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10947var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10986var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11026var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11060var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11094var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11130var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11176var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11222var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11272var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11346var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11398var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11437var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11472var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 11514var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11543var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11569var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11596var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11622var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11650var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11674var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11700var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11723var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11746var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11769var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11790var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11811var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11832var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11858var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11884var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11905var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11931var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11959var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12000var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 12056var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12106var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12140var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12170var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12197var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12260var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 12327var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 12376var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 12411var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12439var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12473var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12496var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12523var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12551var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12585var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12608var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12635var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12662var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12700var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12725var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12748var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12790var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 12835var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12867var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12892var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12914var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12968var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13027var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13080var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13154var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13210var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13269var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 13342var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 13382var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 13428var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 13524var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13585var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13653var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13694var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13748var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13806var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13864var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13917var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 13968var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 14019var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 14055var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14086var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14116var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14156var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14185var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14235var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14265var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14294var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14338var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14366var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14420var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14445var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14469var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14501var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14538var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14563var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14596var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14635var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 14684var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 14733var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 14781var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 14828var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 14872var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 14929var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14973var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 15023var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 15081var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 15117var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15163var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15247var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15303var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80); 15345var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80); 15384var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15439var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15500var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15563var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15617var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15645var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15671var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15697var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15727var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80); 15770var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80); 15812var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80); 15854var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80); 15893var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15919var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15948var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15977var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16012var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16047var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16084var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16121var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16144var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16182var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16230var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16282var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16317var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16356var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80); 16391var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80); 16432var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16482var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16533var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16578var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16617var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16670var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16877var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 16906var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80); 16940var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 16970var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17008var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17034var comp = CreateCompilation(src + Buffer10Definition, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17079var comp = CreateCompilation(src + Buffer10Definition, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17128var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17162var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17185var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17212var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17234var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17266var compilation = CreateCompilation(source); 17294var compilation = CreateCompilation(source, targetFramework: TargetFramework.Net80); 17333var compilation = CreateCompilation(source, targetFramework: TargetFramework.Net80); 17387var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 17414var compilation = CreateCompilation(source, targetFramework: TargetFramework.Net80); 17441var compilation = CreateCompilation(source, targetFramework: TargetFramework.Net80); 17468var compilation = CreateCompilation(source, targetFramework: TargetFramework.Net80); 17495var compilation = CreateCompilation(source, targetFramework: TargetFramework.Net80); 17540var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17602var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17658var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17733var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 17775var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 17810var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 17846var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 17904var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 17987var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 18010var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 18046var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 18082var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 18118var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 18167var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 18186var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70); 18217var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70); 18243var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70); 18274var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 18302var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 18331var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 18370var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 18402var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 18433var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 18463var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 18503var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 18540var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 18638var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 18711var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 18773var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 18795var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 18818var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 18865var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 18950var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19000var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 19064var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19086var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19122var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19157var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19199var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 19287var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19334var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19367var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19422var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19488var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 19525var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19566var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19604var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19642var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19680var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19717var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19746var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19781var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19844var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 19882var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 19923var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 19981var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 20168var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 20381var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 20441var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 20627var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 20843var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 20892var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 21388var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 21539var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 21656var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 21799var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 21858var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 21975var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 22121var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 22169var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 22653var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 22772var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 22805var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 22832var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 22856var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 22875var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 22912var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 22935var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 22971var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 22999var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 23021var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 23054var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 23087var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 23109var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 23131var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 23160var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 23186var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 23222var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 23266var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe);
Semantics\OutVarTests.cs (501)
50var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 82var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 155var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 202var compilation = CreateCompilationWithMscorlib40(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 249var compilation = CreateCompilationWithMscorlib40(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 303var compilation = CreateCompilationWithMscorlib40(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 378var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 416var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 454var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 492var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 530var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 568var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 599var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 653var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 690var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 729var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 770var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 809var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 903var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1400var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1458var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1492var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1527var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1561var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1595var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1635var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1673var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1707var compilation = CreateCompilation(text, 1744var compilation = CreateCompilation(text, 1783var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1820var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1852var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1879var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1916var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 1968var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2078var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2189var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2299var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2388var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_1); 2609var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2826var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2944var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2990var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3034var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3081var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3128var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3182var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3284var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3365var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3417var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3456var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3497var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3615var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3806var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3954var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 3995var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4047var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4093var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4142var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4198var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4254var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4336var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4368var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4458var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4578var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4614var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4656var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4741var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4778var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 4884var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5014var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 5057var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5101var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5158var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5253var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular); 5377var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5487var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5566var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5644var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5677var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5701var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5744var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 5875var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 6025var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 6108var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 6142var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 6290var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 6528var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 6763var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 7027var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 7265var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 7509var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 7763var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 7823var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 7885var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 7951var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8014var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8079var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8145var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8200var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8350var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8482var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8622var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8754var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8795var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8858var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 8914var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9033var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9259var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9321var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9414var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9491var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9570var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9634var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9683var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9750var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9811var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9876var compilation = CreateCompilationWithMscorlib461(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, 9971var compilation = CreateCompilationWithMscorlib461(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, 10050var compilation = CreateCompilationWithMscorlib461(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, 10131var compilation = CreateCompilationWithMscorlib461(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, 10201var compilation = CreateCompilationWithMscorlib461(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, 10252var compilation = CreateCompilationWithMscorlib461(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, 10318var compilation = CreateCompilationWithMscorlib461(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, 10381var compilation = CreateCompilationWithMscorlib461(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, 10445var compilation = CreateCompilationWithMscorlib461(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, 10529var compilation = CreateCompilationWithMscorlib461(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, 10686var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10810var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10851var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10902var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 10953var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11013var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11150var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11249var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11325var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11396var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11420var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11463var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11618var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11932var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12074var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12224var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12344var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12404var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12477var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12622var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12749var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12847var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12914var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12954var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13012var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13052var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13160var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13287var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13331var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13382var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13434var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13577var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13689var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13730var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13789var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13841var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14071var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14252var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14299var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14348var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14390var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14432var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14477var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14519var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14562var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14609var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14663var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14722var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 14770var compilation = CreateCompilationWithMscorlib461(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, 14820var compilation = CreateCompilationWithMscorlib461(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, 14916var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 15084var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 15207var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 15251var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 15308var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 15364var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 15496var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 15709var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 15922var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16055var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16145var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16237var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16365var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16488var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16529var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16581var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16635var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16692var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16751var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16812var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 16927var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 17043var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 17088var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 17142var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 17197var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 17312var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 17474var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 17524var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 17575var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17634var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17669var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17702var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17735var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17774var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17806var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17851var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17882var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17915var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17947var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 17987var compilation = CreateCompilation(text, 18017var compilation = CreateCompilation(text, 18061var compilation = CreateCompilation(text, 18092var compilation = CreateCompilation(text, 18131var compilation = CreateCompilation(text, 18172var compilation = CreateCompilation(text, 18215var compilation = CreateCompilation(text, 18258var compilation = CreateCompilation(text, 18297var compilation = CreateCompilation(text, 18342var compilation = CreateCompilation(text, 18373var compilation = CreateCompilation(text, 18425var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18489var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18536var compilation = CreateCompilation(text, 18581var compilation = CreateCompilation(text, 18633var compilation = CreateCompilation(text, 18679var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18721var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18766var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18864var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18908var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18950var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 18995var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 19048var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 19091var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 19137var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 19196var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 19243var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 19280var compilation = CreateCompilation(text, 19322var compilation = CreateCompilation(text, 19356var compilation = CreateCompilation(text, 19415var compilation = CreateCompilation(text, 19458var compilation = CreateCompilation(text, 19496var compilation = CreateCompilation(text, 19535var compilation = CreateCompilation(text, 19576var compilation = CreateCompilation(text, 19621var compilation = CreateCompilation(text, 19682var compilation = CreateCompilation(text, 19725var compilation = CreateCompilation(text, 19764var compilation = CreateCompilation(text, 19805var compilation = CreateCompilation(source, 19834var compilation = CreateCompilation(text, 19867var compilation = CreateCompilation(text, 19900var compilation = CreateCompilation(text, 19935var compilation = CreateCompilation(text, 19970var compilation = CreateCompilation(text, 20001var compilation = CreateCompilation(text, 20039var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 20179var comp = CreateCompilation(text, options: TestOptions.DebugDll, references: new[] { CSharpRef }); 20199var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe); 20219var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 20247var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 20355var compilation = CreateCompilation(source2, references: new[] { reference1 }); 20539var compilation = CreateCompilation(source2, references: new[] { reference1 }, options: TestOptions.DebugExe); 20610var compilation = CreateCompilation(text, 20655var compilation = CreateCompilation(text); 20770var compilation = CreateCompilation(text, 20823var compilation = CreateCompilation(text, 20896var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 21006var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 21106var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 21203var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 21287var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 21339var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 21405var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 21564var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 21729var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 21919var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 22071var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 22166var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 22334var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 22500var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 22598var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 22711var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 22804var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 22886var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 22950var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 22988var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 23029var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 23136var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 23220var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 23340var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 23385var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 23412var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 23471var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 23587var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 23681var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 23807var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 23925var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 24025var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 24153var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 24224var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 24314var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 24441var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 24472var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 24587var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 24839var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 25122var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 25210var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 25305var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 25451var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 25496var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 25543var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 25621var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 25668var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 25737var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 25801var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 25855var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 25958var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 26012var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 26098var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 26146var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 26199var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 26258var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 26341var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 26401var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 26482var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 26532var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 26626var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 26676var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 26766var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 26817var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 26867var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 26947var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 26998var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 27087var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 27141var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 27240var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 27294var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 27379var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 27437var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 27501var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 27614var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 27678var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 27772var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 27827var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 27891var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 28005var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 28069var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 28170var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 28229var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 28283var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 28380var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 28434var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 28517var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 28565var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 28620var compilation = CreateCompilationWithMscorlib461(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, 28690var compilation = CreateCompilationWithMscorlib461(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, 28789var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 28848var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 28940var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 28999var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 29080var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 29144var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 29211var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 29320var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 29387var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 29482var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 29532var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 29594var compilation = CreateCompilationWithMscorlib461(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, 29679var compilation = CreateCompilationWithMscorlib461(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, 29795var compilation = CreateCompilationWithMscorlib461(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, 29880var compilation = CreateCompilationWithMscorlib461(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, 29983var compilation = CreateCompilationWithMscorlib461(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, 30051var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 30118var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 30223var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 30290var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 30377var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 30430var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 30471var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 30515var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 30560var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 30618var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 30675var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 30789var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 30846var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 30945var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 30998var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 31039var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 31083var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 31143var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 31210var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 31316var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 31383var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 31473var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 31526var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 31567var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 31611var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 31656var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 31700var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 31728var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 31787var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 31815var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 31880var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 31905var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 31966var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), 31995var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 32055var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 32099var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 32139var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 32179var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script, skipUsesIsNullable: true); 32219var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script, skipUsesIsNullable: true); 32259var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script, skipUsesIsNullable: true); 32314var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script, skipUsesIsNullable: true); 32368var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 32408var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 32465var compilation = CreateCompilation(new[] { tree }); 32496var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 32524var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 32552var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 32578var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 32610var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 32643var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 32784var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 32808var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 32837var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 32870var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 32896var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular); 33008var comp = CreateCompilation(source, options: TestOptions.DebugExe); 33068var comp = CreateCompilation(source, options: TestOptions.DebugExe); 33122var comp = CreateCompilation(source, options: TestOptions.DebugExe); 33180var comp = CreateCompilation(source, options: TestOptions.DebugExe); 33257var comp = CreateCompilation(source, options: TestOptions.DebugExe); 33280var comp = CreateCompilation(source, options: TestOptions.DebugDll); 33324var comp = CreateCompilation(source, options: TestOptions.DebugExe); 33347var comp = CreateCompilation(source, options: TestOptions.DebugExe); 33374var comp = CreateCompilation(source, options: TestOptions.DebugExe); 33396var comp = CreateCompilation(source, options: TestOptions.DebugDll); 33428var comp = CreateCompilationWithMscorlib40(source, options: TestOptions.DebugDll, references: new[] { Net40.References.SystemCore }); 33454var comp = CreateCompilation(source, options: TestOptions.DebugDll); 33485var comp = CreateCompilationWithMscorlib461(text); 33527var compilation = CreateCompilationWithMscorlib461(text); 33604var compilation = CreateCompilationWithMscorlib461(text); 33712var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 33810var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 33909var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 34007var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 34092var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 34148var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 34189var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 34295var compilation = CreateCompilation(syntaxTree, options: TestOptions.ReleaseExe); 34404var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 34509var compilation = CreateCompilation(syntaxTree, options: TestOptions.DebugExe); 34605var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 34701var compilation = CreateCompilationWithMscorlib461(text); 34738var compilation = CreateCompilationWithMscorlib461(text); 34817var compilation = CreateCompilationWithMscorlib461(text); 34871var compilation = CreateCompilationWithMscorlib461(new[] { text1, text2 }); 34929var compilation = CreateCompilationWithMscorlib461(text); 34979var compilation = CreateCompilationWithMscorlib461(text); 35033var compilation = CreateCompilationWithMscorlib461(text); 35085var compilation = CreateCompilationWithMscorlib461(text); 35126var compilation = CreateCompilation(source); 35165var compilation = CreateCompilation(source); 35209var compilation = CreateCompilation(source); 35240var compilation = CreateCompilation(source); 35279var compilation = CreateCompilation(source); 35311var compilation = CreateCompilation(source); 35347var compilation = CreateCompilation(source); 35386var compilation = CreateCompilation(source); 35416var compilation = CreateCompilation(source); 35453var compilation = CreateCompilation(source); 35488var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe); 35536var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 35564var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 35591var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 35611var comp = CreateCompilation(source); 35644var comp = CreateCompilation(source, options: TestOptions.DebugDll); 35685var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 35712var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 35748var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 35789var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular); 35835var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular); 35901var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 35929var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular); 36069var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular); 36177var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular); 36270var compilation = CreateCompilation(text); 36301var comp = CreateCompilation(source); 36348var comp = CreateCompilation(source); 36387var comp = CreateCompilation(source); 36429var comp = CreateCompilation(source); 36469var comp = CreateCompilation(source).VerifyDiagnostics( 36507var comp = CreateCompilation(source).VerifyDiagnostics(
Semantics\ParamsCollectionTests.cs (273)
97var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 199var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 277var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 315var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 459var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 495var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 590var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 643var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 721var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 779var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 828var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 878var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 937var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 978var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 1010var myCollection_v0 = CreateCompilation(myCollection_v0Source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, assemblyName: "Collection"); 1022var builder = CreateCompilation(builderSource, references: [myCollection_v0.ToMetadataReference()], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 1037var myCollection = CreateCompilation(myCollectionSource, references: [builder.ToMetadataReference()], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, assemblyName: "Collection"); 1064var comp = CreateCompilation(src, references: [myCollectionRef, builder.EmitToImageReference()], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 1130var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 1195var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 1262var comp = CreateCompilation(src, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 1320var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 1387var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 1465var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 1514var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 1563var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 1600var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 1648var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 1696var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 1738var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 1791var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 1845var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 1897var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 1942var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 1986var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 2030var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 2070var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 2111var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 2146var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 2197var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 2246var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 2296var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 2354var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 2414var comp = CreateCompilation(src, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 2461var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 2511var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 2602var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 2647var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 2708var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 2735var comp = CreateCompilation(src, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 2937var comp = CreateCompilation(src, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 3182var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 3307var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 3531var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 3848var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 3976var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4016var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 4023var comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4070var comp = CreateCompilation(src2 + src1, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4083var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 4090var comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4138var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4185var comp = CreateCompilation(src2 + src1, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4198var comp1 = CreateCompilation(src1, options: TestOptions.ReleaseDll); 4205var comp2 = CreateCompilation(src2, references: [comp1Ref], options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4309var comp = CreateCompilation(src2 + src1, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4322var comp1 = CreateCompilation(src1, options: TestOptions.ReleaseDll); 4329var comp2 = CreateCompilation(src2, references: [comp1Ref], options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4398var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 4405var comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview); 4442var comp = CreateCompilation(src1 + src2, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4445var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 4446var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4449var comp3 = CreateCompilation(src1 + ParamCollectionAttributeSource, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 4450var comp4 = CreateCompilation(src2, references: [comp3.ToMetadataReference()], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4453var comp5 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseModule); 4456void verify(CSharpCompilation comp, bool attributeIsEmbedded) 4511var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 4514var comp1 = CreateCompilation(ParamCollectionAttributeSource, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 4515var comp2 = CreateCompilation(src, references: [comp1.ToMetadataReference()], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 4518void verify(CSharpCompilation comp, bool attributeIsEmbedded) 4619var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 4664var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 4667var comp1 = CreateCompilation(ParamCollectionAttributeSource, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 4668var comp2 = CreateCompilation(src, references: [comp1.ToMetadataReference()], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All)); 4671void verify(CSharpCompilation comp, bool attributeIsEmbedded) 4741var comp1 = CreateCompilation(src1, options: TestOptions.ReleaseDll); 4742var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], options: TestOptions.ReleaseExe); 4770var comp1 = CreateCompilation(src1, options: TestOptions.ReleaseDll); 4771var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], options: TestOptions.ReleaseExe); 4808var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 4859var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4897var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 4937var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80); 5068var comp = CreateCompilation( 5178var comp = CreateCompilation( 5283var comp = CreateCompilation( 5451var comp = CreateCompilation( 5494var comp = CreateCompilation( 5669var comp = CreateCompilation( 5700var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 5840var comp = CreateCompilation( 5879var comp = CreateCompilation( 5924var comp = CreateCompilation( 5961var comp = CreateCompilation( 6012var comp = CreateCompilation( 6056var comp = CreateCompilation( 6091var comp = CreateCompilation(source); 6129var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 6156var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6186var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6229var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6262var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 6311var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6361var comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 6429var comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6511var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6540var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6577var comp1 = CreateCompilation(src1, references: [comp0Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6618var comp2 = CreateCompilation(src2, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6655var comp1 = CreateCompilation(src1, references: [comp0Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6696var comp2 = CreateCompilation(src2, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6733var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6770var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6812var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6854var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6875var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseDll); 6900var comp = CreateCompilation(src, references: new[] { comp1Ref, comp2.EmitToImageReference() }, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6936var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 6971var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7002var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7047var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7074var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7103var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7128var comp2 = CreateCompilation(src2, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7155var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7180var comp2 = CreateCompilation(src2, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7228var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7277var comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7342var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7393var comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 7464var comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7546var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7579var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7620var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7661var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7707var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7753var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7774var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseDll); 7802var comp = CreateCompilation(src, references: new[] { comp1Ref, comp2.EmitToImageReference() }, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7846var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7889var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7938var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 7992var comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8068var comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 8152var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 8184var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 8221var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 8249var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 8318var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 8383var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 8466var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 8531var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 8565var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 8604var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 8664CSharpCompilation comp; 9068private static ParameterSymbol GetParamsParameterForRefSafetyScopeTests(CSharpCompilation comp) 9273var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9314var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9366var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9420var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9478var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9535var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9605var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9693var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9760var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9801var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9853var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9914var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9961var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10014var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10068var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10124var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10170var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10212var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10254var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10300var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 10390var comp = CreateCompilationWithIL("", il); 10513var comp = CreateCompilationWithIL("", il); 10637var comp = CreateCompilationWithIL("", il); 10755var comp = CreateCompilationWithIL("", il); 10927var comp = CreateCompilationWithIL("", il); 11075var comp = CreateCompilationWithIL("", il); 11223var comp = CreateCompilationWithIL("", il); 11365var comp = CreateCompilationWithIL("", il); 11513var comp = CreateCompilationWithIL("", il); 11660var comp = CreateCompilationWithIL("", il); 11807var comp = CreateCompilationWithIL("", il); 11948var comp = CreateCompilationWithIL("", il); 12187var comp = CreateCompilationWithIL(src, il, options: TestOptions.ReleaseExe); 12320var comp = CreateCompilationWithIL(src, il, options: TestOptions.ReleaseExe); 12437var comp = CreateCompilationWithIL(src, il, options: TestOptions.ReleaseExe); 12523var comp = CreateCompilation(source, options: TestOptions.DebugExe); 12760var comp = CreateCompilation(src1, references, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 12764var comp1 = CreateCompilation(ParamCollectionAttributeSource, options: TestOptions.ReleaseDll); 12766var comp2 = CreateCompilation(src1, references: references.Concat([comp1Ref]), options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 12770var comp3 = CreateCompilation(src1, references, options: TestOptions.ReleaseModule); 12774var comp4 = CreateCompilation(src1, references: references.Concat([comp1Ref]), options: TestOptions.ReleaseModule.WithMetadataImportOptions(MetadataImportOptions.All)); 12788var comp5 = CreateCompilation(brokenParamCollectionAttributeSource, options: TestOptions.ReleaseDll); 12790var comp6 = CreateCompilation(src1, references: references.Concat([comp5Ref]), options: TestOptions.ReleaseDll); 12797var comp7 = CreateCompilation(src1, references: references.Concat([comp5Ref]), options: TestOptions.ReleaseModule); 12804void verify(CSharpCompilation comp, bool attributeIsEmbedded) 13122var comAssembly = CreateCompilationWithMscorlib40(@" 13157var compilation_CompilationReference = CreateCompilationWithMscorlib40(code, options: options, references: new[] { comAssembly.ToMetadataReference(embedInteropTypes: true) }); 13160var compilation_BinaryReference = CreateCompilationWithMscorlib40(code, options: options, references: new[] { comAssembly.EmitToImageReference(embedInteropTypes: true) }); 13183var comAssembly = CreateCompilationWithMscorlib40(@" 13217var compilation_CompilationReference = CreateCompilationWithMscorlib40(code, options: options, references: new[] { comAssembly.ToMetadataReference(embedInteropTypes: true) }); 13220var compilation_BinaryReference = CreateCompilationWithMscorlib40(code, options: options, references: new[] { comAssembly.EmitToImageReference(embedInteropTypes: true) }); 13243var comp1 = CreateCompilationWithMscorlib40(ParamCollectionAttributeSource, options: TestOptions.ReleaseDll); 13246var comAssembly = CreateCompilationWithMscorlib40(@" 13280var compilation_CompilationReference = CreateCompilationWithMscorlib40(code, options: options, references: new[] { comp1Ref, comAssembly.ToMetadataReference(embedInteropTypes: true) }); 13283var compilation_BinaryReference = CreateCompilationWithMscorlib40(code, options: options, references: new[] { comp1Ref, comAssembly.EmitToImageReference(embedInteropTypes: true) }); 13337var comp1 = CreateCompilation(src1); 13344var comp2 = CreateCompilation(src2, references: [image ? comp1.EmitToImageReference() : comp1.ToMetadataReference()], options: TestOptions.ReleaseExe); 13403var comp1 = CreateCompilation(src1); 13410var comp2 = CreateCompilation(src2, references: [image ? comp1.EmitToImageReference() : comp1.ToMetadataReference()], options: TestOptions.ReleaseExe); 13467var comp1 = CreateCompilation(src1); 13474var comp2 = CreateCompilation(src2, references: [image ? comp1.EmitToImageReference() : comp1.ToMetadataReference()], options: TestOptions.ReleaseExe); 13507var comp1 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll); 13519var comp2 = CreateCompilation(source2, references: [comp1Ref], options: TestOptions.UnsafeDebugDll); 13539var comp3 = CreateCompilation(source3, references: [comp1Ref], options: TestOptions.DebugDll); 13554var comp4 = CreateCompilation(source4, references: [comp1Ref, comp3.ToMetadataReference()], options: TestOptions.ReleaseExe); 13579var comp5 = CreateCompilation(source5, references: [comp1Ref, comp3.ToMetadataReference()], options: TestOptions.UnsafeReleaseExe); 13608var comp1 = CreateCompilation(source1, options: TestOptions.UnsafeDebugDll); 13620var comp2 = CreateCompilation(source2, references: [comp1Ref], options: TestOptions.UnsafeDebugDll); 13640var comp3 = CreateCompilation(source3, references: [comp1Ref], options: TestOptions.DebugDll); 13655var comp4 = CreateCompilation(source4, references: [comp1Ref, comp3.ToMetadataReference()], options: TestOptions.ReleaseExe); 13680var comp5 = CreateCompilation(source5, references: [comp1Ref, comp3.ToMetadataReference()], options: TestOptions.UnsafeReleaseExe); 13724var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 13772var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 13828var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 13870var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 13918var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 13974var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 14016var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 14072var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 14114var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 14186var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 14266var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 14340var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 14390var comp = CreateCompilation(src, options: TestOptions.ReleaseExe); 14438var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 14501var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 14550var comp = CreateCompilation(source).VerifyEmitDiagnostics( 14641var comp = CreateCompilation(source).VerifyEmitDiagnostics( 14761var comp = CreateCompilation(source).VerifyEmitDiagnostics(); 15064var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 15107var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 15179var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15248var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe); 15270var comp = CreateCompilation(src); 15294var comp = CreateCompilation(src); 15346var comp = CreateCompilation(src); 15421var comp = CreateCompilation(src); 15480var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 15530var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe); 15588var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe); 16354var comp = CreateCompilation(source); 16398var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 16435var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 16473var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 16540var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 16567var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll);
Semantics\PatternMatchingTestBase.cs (1)
422protected CSharpCompilation CreatePatternCompilation(string source, CSharpCompilationOptions options = null)
Semantics\PatternMatchingTests.cs (206)
112var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 141var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 175var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 212var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 252var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe); 292var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 327var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 363var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 399var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 437var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 465var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 511var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 564var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 606var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 640var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 681var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 731var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 772var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 824var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 883var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 918var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 947var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 975var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe); 1013var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe); 1042var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1068var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe); 1101var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1145var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe); 1213var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1263var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1309var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1372var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1422var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1476var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1528var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1584var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1641var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1718var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1777var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1822var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1871var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1924var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1979var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2027var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2071var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2121var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2168var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2224var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2284var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2341var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2400var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 2453var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2491var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2536var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2574var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 2607var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2656var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2696var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2740var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 2785var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2835var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2877var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2923var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2964var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3005var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3029var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 3076var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 3112var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3162var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3222var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3254var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3329var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3360var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular6); 3387var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3412var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3438var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3474var compilation = CreateCompilation(text, 3567var compilation = CreateCompilation(source).VerifyDiagnostics( 3714var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 3773var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 3844var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3877var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3910var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3958var compilation = CreateEmptyCompilation(source, options: TestOptions.DebugExe, 3989var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4026var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4064var compilation = CreateCompilation(source, options: TestOptions.DebugExe, 4138var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4169var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4220var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4245var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular); 4284var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe); 4379var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); 4418var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe); 4462var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugDll); 4536var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4563var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4593var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4618var comp = CreateCompilation(source); 4775var compilation = CreateCompilation(program).VerifyDiagnostics( 4819var compilation = CreateCompilation(program).VerifyDiagnostics( 4848var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( 4864var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( 5100var compilation = CreateCompilation(program, options: TestOptions.DebugExe).VerifyDiagnostics( 5143var compilation = CreateCompilation(program).VerifyDiagnostics( 5169var compilation = CreateCompilation(program).VerifyDiagnostics( 5221var compilation = CreateCompilation(program, options: TestOptions.DebugExe); 5297var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5317var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5596var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5647var compilation = CreateEmptyCompilation(source); 5677var compilation = CreateCompilation(source); 5715var compilation = CreateCompilation(source); 5777var compilation = CreateCompilation(source, references: new MetadataReference[] { CSharpRef }, options: TestOptions.ReleaseExe); 5810var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7); 5853var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7); 5896var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7); 5942var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7); 5988var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7); 6025var compilation = CreateCompilation(source); 6072var compilation = CreateCompilation(program, options: TestOptions.DebugExe); 6105var compilation = CreateCompilation(program, options: TestOptions.DebugExe); 6133var compilation = CreateCompilation(program, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_1); 6159var compilation = CreateCompilation(program, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 6224var compilation = CreateCompilation(program, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 6277var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 6298var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 6321var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 6347var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 6368var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 6389var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 6414var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 6438var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 6477var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6521var compilation = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 6547var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6603var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe); 6659var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6711var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7314var comp = CreateCompilation(source); 7366var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7); 7391var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview) 7440var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview) 7505var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview) 7584var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview) 7669var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, 7986var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, 8263var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview) 8343var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview) 8444var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview) 8557var comp = CreateCompilation(sourceA); 8606var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular10); 8648var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular10); 8692var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview); 8711var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview); 8728var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview); 8748var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview); 8782var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview); 8798var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview); 8815var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview); 8873var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview) 8982var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview) 9033var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview) 9099var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview) 9180var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview) 9267var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, 9585var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, 9863var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview) 9944var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview) 10044var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview) 10161var comp = CreateCompilation(sourceA); 10209var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular10); 10250var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular10); 10293var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview); 10312var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview); 10329var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview); 10349var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview); 10383var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview); 10399var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview); 10416var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview); 10476var compilation = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularPreview) 10575var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10606var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10626var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10648var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10676var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10703var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10734var comp = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 10752var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10782var comp = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 10800var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10824var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10854var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10910var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10966var comp = CreateCompilation(sourceA); 11181var comp = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 11324var comp = CreateCompilation(sourceA); 11361var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 11385var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 11406var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 11463var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 11523var comp = CreateCompilation(source); 11589var comp = CreateCompilation(source, options: TestOptions.DebugExe); 11858var comp = CreateCompilation(source, options: TestOptions.DebugExe); 11898var comp = CreateCompilation(source, options: TestOptions.DebugExe); 11941var comp = CreateCompilation(source, options: TestOptions.DebugExe);
Semantics\PatternMatchingTests_Global.cs (124)
53var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 100var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 175var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 222var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 286var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 345var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 399var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 497var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 551var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 632var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 674var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 722var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 781var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 859var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 919var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 995var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 1045var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1127var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 1177var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1255var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 1301var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 1351var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1426var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 1477var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1561var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 1615var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1709var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 1763var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 1843var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 1898var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 1962var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 2069var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 2133var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 2220var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 2272var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 2336var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 2444var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 2508var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 2602var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 2656var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 2710var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 2802var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 2856var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 2934var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 2980var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 3032var compilation = CreateCompilationWithMscorlib461(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, 3100var compilation = CreateCompilationWithMscorlib461(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, 3192var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 3251var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 3338var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 3397var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 3473var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 3532var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 3599var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 3703var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 3770var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 3856var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 3915var compilation = CreateCompilationWithMscorlib461(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, 4000var compilation = CreateCompilationWithMscorlib461(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, 4113var compilation = CreateCompilationWithMscorlib461(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, 4198var compilation = CreateCompilationWithMscorlib461(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, 4294var compilation = CreateCompilationWithMscorlib461(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, 4357var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 4424var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 4524var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 4591var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 4669var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 4713var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 4749var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 4788var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 4824var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 4877var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 4934var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 5043var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 5100var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 5190var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 5234var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 5270var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 5309var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 5364var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 5431var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 5549var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 5616var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 5719var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 5768var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 5804var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 5843var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 5884var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 5923var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 5949var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6008var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 6036var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6095var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 6121var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6177var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), 6207var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6260var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 6289var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 6317var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 6341var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 6370var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 6393var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 6487var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 6571var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6679var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 6719var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 6746var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6796var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 6906var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 7000var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 7120var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 7223var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 7323var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 7445var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 7504var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 7594var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 7703var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 7728var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 7837var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 8089var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 8366var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 8448var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 8543var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 8683var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script);
Semantics\PatternMatchingTests_ListPatterns.cs (186)
63var compilation = CreateCompilationWithIndexAndRangeAndSpan(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 451var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.Regular10); 530var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 718var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 902var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 938var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns); 970var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithListPatterns); 1002var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns); 1032var compilation = CreateCompilationWithIndexAndRange(source); 1075var compilation = CreateCompilationWithIndexAndRange(source); 1124var compilation = CreateCompilationWithIndexAndRange(source); 1155var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns); 1179var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns); 1224var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns); 1324var compilation = CreateCompilationWithIndexAndRange(source); 1480var compilation = CreateCompilationWithIndexAndRange(source); 1567var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns); 1612var compilation = CreateCompilationWithIndexAndRange(source, options: TestOptions.ReleaseExe); 1650var csCompilation = CreateCompilation(csSource, references: new[] { vbCompilation.EmitToImageReference() }); 1760var csCompilation = CreateCompilationWithIL(csSource, ilSource); 1797var csCompilation = CreateCompilation(csSource, references: new[] { vbCompilation.EmitToImageReference() }); 1827var csCompilation = CreateCompilation(csSource, references: new[] { vbCompilation.EmitToImageReference() }); 1853var compilation = CreateCompilationWithIndexAndRange(source); 1879var compilation = CreateCompilationWithIndexAndRange(source); 1905var compilation = CreateCompilationWithIndexAndRange(source); 1931var compilation = CreateCompilationWithIndexAndRange(source); 1957var compilation = CreateCompilationWithIndexAndRange(source); 1983var compilation = CreateCompilationWithIndexAndRange(source); 2009var compilation = CreateCompilationWithIndexAndRange(source); 2037var compilation = CreateCompilationWithIndexAndRange(source); 2065var compilation = CreateCompilationWithIndexAndRange(source); 2093var compilation = CreateCompilationWithIndexAndRange(source); 2121var compilation = CreateCompilationWithIndexAndRange(source); 2149var compilation = CreateCompilationWithIndexAndRange(source); 2177var compilation = CreateCompilationWithIndexAndRange(source); 2205var compilation = CreateCompilationWithIndexAndRange(source); 2233var compilation = CreateCompilationWithIndexAndRange(source); 2275var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 2309var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 2334var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 2398var compilation = CreateCompilationWithIndexAndRangeAndSpan(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 2438var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 2510var compilation = CreateCompilationWithIndexAndRangeAndSpan(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 2569var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 2598var compilation = CreateCompilation(new[] { source, TestSources.Index }, options: TestOptions.ReleaseExe); 2642var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }); 2740var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }); 2787var comp = CreateCompilationWithIndexAndRangeAndSpan(source); 2883var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }); 2918var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns); 2949var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 2999var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }); 3059var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }); 3119var comp = CreateCompilationWithIndexAndRangeAndSpan(source, options: TestOptions.ReleaseExe); 3176var comp = CreateCompilationWithIndexAndRangeAndSpan(source, options: TestOptions.ReleaseExe); 3235var comp = CreateCompilationWithIndexAndRangeAndSpan(source, options: TestOptions.ReleaseExe); 3282var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }, 3378var compilation = CreateCompilation(source, references: new[] { lib2Ref }); 3428var missingComp = CreateCompilation(missing_cs, assemblyName: "missing"); 3431var rangeComp = CreateCompilation(new[] { range_cs, TestSources.Index }, references: new[] { missingComp.EmitToImageReference() }, assemblyName: "range"); 3435var libComp = CreateCompilation(lib_cs, references: new[] { rangeRef }, assemblyName: "lib"); 3450var comp = CreateCompilation(source, references: new[] { libComp.EmitToImageReference(), rangeRef }); 3479var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 3549var missingComp = CreateCompilation(missing_cs, assemblyName: "missing"); 3552var libComp = CreateCompilation(lib_cs, references: new[] { missingComp.EmitToImageReference() }, assemblyName: "lib"); 3555var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }, references: new[] { libComp.EmitToImageReference() }); 3615var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }); 3672var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }); 3708var compilation = CreateCompilation(source); 3774var comp = CreateCompilationWithIndexAndRange(src); 3811var comp = CreateCompilationWithIndexAndRange(src); 3830var compilation = CreateCompilation(new[] { source, TestSources.Index }); 3863var compilation = CreateCompilation(new[] { source, TestSources.Index }); 3893var compilation = CreateCompilation(new[] { source, TestSources.Index }); 3924var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 3960var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 3995var compilation = CreateCompilation(new[] { source, TestSources.Index }); 4052var compilation = CreateCompilation(new[] { source, TestSources.Index }); 4139var compilation = CreateCompilation(new[] { source, TestSources.Index }); 4222var compilation = CreateCompilation(new[] { source, TestSources.Index }); 4284var compilation = CreateCompilation(new[] { source, TestSources.Index }); 4336var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 4400var compilation = CreateCompilationWithIndexAndRange(source); 4466var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 4526var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }); 4592var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 4625var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 4691var compilation = CreateCompilationWithIL(new[] { source, TestSources.Index, TestSources.Range }, il); 4918var compilation = CreateCompilationWithIL(source, il); 5027var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }); 5121var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 5162var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 5257var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 5307var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 5328var compilation = CreateCompilation(new[] { source, TestSources.Index }); 5374var compilation = CreateCompilation(source, references: new[] { lib2Ref }); 5412var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 5451var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 5492var compilation = CreateCompilation(new[] { source, TestSources.Index }); 5536var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 5624var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 5686var compilation = CreateCompilation(new[] { source, TestSources.Index }); 5734var comp = CreateCompilation(new[] { src, TestSources.Index, TestSources.Range }); 5796var comp = CreateCompilation(new[] { src, TestSources.Index }); 5883var comp = CreateCompilation(new[] { src, TestSources.Index }); 5932var comp = CreateCompilation(new[] { src, TestSources.Index }); 5959var comp = CreateCompilation(new[] { src, TestSources.Index }); 5983var comp = CreateCompilation(new[] { src, TestSources.Index }); 6022var comp = CreateCompilation(new[] { src, TestSources.Index }); 6052var comp = CreateCompilation(new[] { src, TestSources.Index }); 6076var comp = CreateCompilation(new[] { src, TestSources.Index }); 6097var comp = CreateCompilation(new[] { src, TestSources.Index, TestSources.Range }); 6120var comp = CreateCompilation(new[] { src, TestSources.Index }); 6144var comp = CreateCompilation(new[] { src, TestSources.Index }); 6174var comp = CreateCompilation(new[] { src, TestSources.Index }); 6204var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6246var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6306var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6333var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6391var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 6444var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 6480var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6511var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6566var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6612var comp = CreateCompilation(new[] { src, TestSources.Index, TestSources.Range, TestSources.GetSubArray }); 6651var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6682var comp = CreateCompilationWithIndexAndRange(src); 6755var comp = CreateCompilationWithIndexAndRange(src); 6808var comp = CreateCompilationWithIndexAndRange(src); 6832var comp = CreateCompilationWithIndexAndRange(src); 6904var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 7081var compilation = CreateCompilation(new[] { source, TestSources.Index, _iTupleSource }, options: TestOptions.DebugExe); 7149var comp = CreateCompilation(new[] { src, TestSources.Index }); 7228var comp = CreateCompilationWithIndexAndRangeAndSpan(new[] { src, TestSources.GetSubArray }, parseOptions: TestOptions.RegularWithListPatterns); 7251var comp = CreateCompilationWithIndexAndRangeAndSpan(src, parseOptions: TestOptions.RegularWithListPatterns); 7286var comp = CreateCompilationWithIndexAndRangeAndSpan(new[] { source, TestSources.GetSubArray }, options: TestOptions.DebugExe); 7317var compilation = CreateCompilationWithIndexAndRange(source, options: TestOptions.ReleaseExe); 7382var comp = CreateCompilationWithIndexAndRangeAndSpan(src, parseOptions: TestOptions.RegularWithListPatterns); 7412var comp = CreateCompilationWithIndexAndRangeAndSpan(src, parseOptions: TestOptions.RegularWithListPatterns); 7451var comp = CreateCompilation(src); 7486var comp = CreateCompilation(new[] { src, TestSources.Index }); 7525var comp = CreateCompilation(new[] { src, TestSources.Index }); 7550var comp = CreateCompilation(new[] { src, TestSources.Index }); 7576var comp = CreateCompilation(new[] { src, TestSources.Index }); 7602var comp = CreateCompilation(new[] { src, TestSources.Index }); 7807var compilation = CreateCompilationWithIndexAndRange(source); 7828var compilation = CreateCompilationWithIndex(source); 7862var compilation = CreateCompilation(source); 7951var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 7977var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 8012var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 8057var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, IsExternalInitTypeDefinition }); 8128var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, IsExternalInitTypeDefinition }); 8172var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 8192var comp = CreateCompilation(source); 8218var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 8232var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 8247var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 8268var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 8289var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 8310var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 8324var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 8345var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }, options: TestOptions.ReleaseExe); 8437var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }); 8459var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }, options: TestOptions.ReleaseDll); 8502var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 8538var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range }); 8560var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.ITuple }); 8598var comp = CreateCompilationWithIndexAndRangeAndSpan(new[] { source, TestSources.GetSubArray }); 8623var comp = CreateCompilationWithIndexAndRangeAndSpan(source); 8648var comp = CreateCompilationWithIndexAndRangeAndSpan(source); 8671var comp = CreateCompilationWithIndexAndRangeAndSpan(source); 8691var comp = CreateCompilationWithIndexAndRangeAndSpan(source); 8711var comp = CreateCompilationWithIndexAndRangeAndSpan(source); 8731var comp = CreateCompilationWithIndexAndRangeAndSpan(source); 8751var comp = CreateCompilationWithIndexAndRangeAndSpan(source); 8771var comp = CreateCompilationWithIndexAndRangeAndSpan(source); 8791var comp = CreateCompilationWithIndexAndRangeAndSpan(source); 8811var comp = CreateCompilationWithIndexAndRangeAndSpan(source); 8841var comp = CreateCompilationWithIndexAndRangeAndSpan(new[] { source, TestSources.GetSubArray }); 8884var comp = CreateCompilationWithIndexAndRangeAndSpan(new[] { source, TestSources.GetSubArray }); 8940var comp = CreateCompilationWithIndexAndRangeAndSpan(new[] { source, TestSources.GetSubArray }); 8961var comp = CreateCompilationWithIndexAndRangeAndSpan(source); 9074var comp = CreateCompilation(source); 9099var comp = CreateCompilation(source); 9167var comp = CreateCompilation(source);
Semantics\PatternMatchingTests_NullableTypes.cs (9)
33var comp = CreateCompilation(source); 102var comp = CreateCompilation(source); 185var comp = CreateCompilation(source); 274var comp = CreateCompilation(source); 350var comp = CreateCompilation(source); 432var comp = CreateCompilation(source); 510var comp = CreateCompilation(source); 576var comp = CreateCompilation(source); 633var comp = CreateCompilationWithIndexAndRange(source);
Semantics\PatternMatchingTests_Scope.cs (126)
66var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 170var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 279var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 325var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 362var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 398var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 441var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 546var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 667var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 703var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 819var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 936var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 972var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1118var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1241var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1276var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1390var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1721var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2029var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2165var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2301var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2409var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2463var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2530var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2669var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2771var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2892var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3057var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3098var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3225var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3335var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3420var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 3504var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3592var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3677var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3768var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3858var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3959var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4055var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4130var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4165var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4207var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe); 4446var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4831var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5168var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5297var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5332var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5465var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5672var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 5879var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6006var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6090var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6173var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6260var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6331var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6404var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6462var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6507var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 6574var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 6662var compilation = CreateCompilation(source, 6735var compilation = CreateCompilation(source, 6810var compilation = CreateCompilation(source, 6874var compilation = CreateCompilation(source, 6919var compilation = CreateCompilation(source, 7050var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7167var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7202var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7348var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7490var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7525var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7684var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7916var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 8145var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 8403var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 8635var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 8873var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 9121var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 9266var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 9478var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 9596var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 9631var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 9764var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 9908var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 10043var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 10155var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 10194var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 10337var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 10516var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 10668var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 10710var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 10943var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11125var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11173var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11223var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11266var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11309var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11355var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11398var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11442var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11489var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11539var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11601var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11654var compilation = CreateCompilation( 11713var compilation = CreateCompilation( 11783var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11874var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 11968var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12059var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12137var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12183var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12243var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12396var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12555var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12739var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12885var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 12974var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13136var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 13296var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 13383var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13461var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 13549var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13626var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 13690var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 13728var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular); 13758var comp = CreateCompilation(source); 13865var compilation = CreateCompilation(source, options: TestOptions.DebugExe);
Semantics\PatternMatchingTests2.cs (65)
33var compilation = CreatePatternCompilation(source); 75var compilation = CreatePatternCompilation(source); 121var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularWithRecursivePatterns); 153var compilation = CreatePatternCompilation(source); 194var compilation = CreatePatternCompilation(source); 236var compilation = CreatePatternCompilation(source); 265var compilation = CreatePatternCompilation(source); 275var compilation = CreatePatternCompilation(source); 327var compilation = CreatePatternCompilation(source); 365var compilation = CreatePatternCompilation(source); 712var compilation = CreatePatternCompilation(source); 748var compilation = CreatePatternCompilation(source); 777var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular8); 818var compilation = CreatePatternCompilation(source); 849var compilation = CreatePatternCompilation(source); 919var compilation = CreatePatternCompilation(source); 967var compilation = CreatePatternCompilation(source); 1015var compilation = CreatePatternCompilation(source); 1033var compilation = CreatePatternCompilation(source); 1064var compilation = CreatePatternCompilation(source); 1127var compilation = CreatePatternCompilation(source); 1152var compilation = CreateCompilationWithMscorlib461(source); // doesn't have ITuple 1192var compilation = CreatePatternCompilation(source); 1231var compilation = CreatePatternCompilation(source); 1255var compilation = CreatePatternCompilation(source); 1271var compilation = CreatePatternCompilation(source); 1296var compilation = CreatePatternCompilation(source); 1316var compilation = CreatePatternCompilation(source); 1340var compilation = CreatePatternCompilation(source); 1360var compilation = CreatePatternCompilation(source); 1380var compilation = CreatePatternCompilation(source); 1401var compilation = CreatePatternCompilation(source); 1423var compilation = CreatePatternCompilation(source); 1445var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularWithRecursivePatterns); 1469var compilation = CreatePatternCompilation(source); 1498var compilation = CreatePatternCompilation(source); 1534var compilation = CreatePatternCompilation(source); 1556var compilation = CreatePatternCompilation(source); 1583var compilation = CreatePatternCompilation(source); 1611var compilation = CreatePatternCompilation(source); 1640var compilation = CreatePatternCompilation(source); 1677var compilation = CreatePatternCompilation(source); 1711var compilation = CreatePatternCompilation(source); 1745var compilation = CreatePatternCompilation(source); 1780var compilation = CreatePatternCompilation(source); 1816var compilation = CreatePatternCompilation(source); 1838var compilation = CreatePatternCompilation(source); 1864var compilation = CreatePatternCompilation(source); 1891var compilation = CreatePatternCompilation(source); 1919var compilation = CreatePatternCompilation(source); 1948var compilation = CreatePatternCompilation(source); 1970var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1991var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2015var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2056var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2093var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2145var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2182var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2204var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2247var compilation = CreateCompilation(source); 2291var compilation = CreateCompilation(source); 2327var compilation = CreateCompilation(source); 2852var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( 3270var comp = CreateCompilation(source); 3613var comp = CreateCompilationWithSpan(source);
Semantics\PatternMatchingTests3.cs (137)
43var compilation = CreatePatternCompilation(source); 97var compilation = CreatePatternCompilation(source); 151var compilation = CreatePatternCompilation(source); 199var compilation = CreatePatternCompilation(source); 244var compilation = CreatePatternCompilation(source); 293var compilation = CreatePatternCompilation(source); 334var compilation = CreatePatternCompilation(source); 385var compilation = CreatePatternCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 420var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 470var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 501var compilation = CreateCompilationWithMscorlibAndSpan(source, options: TestOptions.DebugDll); 522var compilation = CreateCompilationWithMscorlibAndSpan(source, options: TestOptions.DebugDll); 540var compilation = CreateCompilationWithMscorlibAndSpan(source, options: TestOptions.DebugDll); 593var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 636var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 679var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 722var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 746var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 769var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 812var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 854var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 902var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 961var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 989var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 1036var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 1089var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 1142var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 1195var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Disable)); 1608var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 1696var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1726var comp = CreateCompilation(source); 1761var comp = CreateCompilation(source); 1793var comp = CreateCompilation(source); 1825var comp = CreateCompilation(source); 1852var compilation = CreateCompilation(source); 1918var compilation = CreateCompilation(source); 1997var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2093var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2165var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2237var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2286var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2335var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2366var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.ReleaseExe); 2424var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.ReleaseExe); 2470var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2501var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2541var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2579var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2608var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2650var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9), options: TestOptions.DebugExe); 2666var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2692var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2720var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2743var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2814var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2873var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2914var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 2971var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 3000var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 3071var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 3140var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 3278var compilation = CreateCompilation(source + _iTupleSource, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 3366var compilation = CreateCompilation(source + _iTupleSource, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 3441var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3488var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 3579var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3673var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3707var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3760var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3956var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4058var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 4101var compilation = CreatePatternCompilation(source, options: TestOptions.DebugDll); 4328var compilation = CreatePatternCompilation(source, options: TestOptions.DebugDll); 4617var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 4783var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 4875var compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 4969var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 5046var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators); 5093var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularWithPatternCombinators); 5253var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 5322var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 5536var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators); 5563var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5585var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5608var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5629var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5654var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5680var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5704var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators, targetFramework: TargetFramework.NetCoreApp); 5725var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5753var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5791var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5820var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5853var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5874var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5909var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5938var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5967var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 5988var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 6014var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators); 6035var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators); 6076var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators); 6128var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators); 6180var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.RegularWithPatternCombinators); 6489var comp = CreateCompilation(source); 6697var comp = CreateCompilation(source); 6723var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 6761var comp = CreateCompilation(source); 6819var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 6860var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 6901var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 6926var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 6953var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 6986var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7013var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7038var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7067var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7097var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7124var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7158var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7192var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7225var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7249var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7273var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7296var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7315var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7335var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7361var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7389var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7418var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 7450var compilation = CreateCompilation(source); 7485var compilation = CreateCompilation(source); 7519var compilation = CreateCompilation(source); 7555var compilation = CreateCompilation(new[] { sourceA, sourceB }); 7587var compilation = CreateCompilation(new[] { sourceA, sourceB }); 7613var compilation = CreateCompilation(new[] { sourceA, sourceB }); 7641var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe);
Semantics\PatternMatchingTests4.cs (112)
23var comp = CreateCompilation(@" 45var comp = CreateCompilation(@" 90var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 130var comp = CreateCompilation(@" 184var compilation = CreatePatternCompilation(source); 212var compilation = CreatePatternCompilation(source); 240var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 275var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 307var compilation = CreatePatternCompilation(source); 338var compilation = CreatePatternCompilation(source); 369var compilation = CreatePatternCompilation(source); 401var compilation = CreatePatternCompilation(source); 432var compilation = CreatePatternCompilation(source); 464var compilation = CreatePatternCompilation(source); 498var compilation = CreatePatternCompilation(source); 532var compilation = CreatePatternCompilation(source); 566var compilation = CreatePatternCompilation(source); 620var compilation = CreatePatternCompilation(source); 654var compilation = CreatePatternCompilation(source); 685var compilation = CreatePatternCompilation(source); 721var compilation = CreatePatternCompilation(source); 759var compilation = CreatePatternCompilation(source); 794var compilation = CreatePatternCompilation(source); 830var compilation = CreatePatternCompilation(source); 866var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 903var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 940var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 964var compilation = CreatePatternCompilation(source); 1005var compilation = CreatePatternCompilation(source); 1058var compilation = CreatePatternCompilation(source); 1093var compilation = CreatePatternCompilation(source); 1158var compilation = CreatePatternCompilation(source); 1224var compilation = CreatePatternCompilation(source); 1275var compilation = CreatePatternCompilation(source); 1315var compilation = CreatePatternCompilation(source); 1341var compilation = CreatePatternCompilation(source); 1370var compilation = CreatePatternCompilation(source); 1399var compilation = CreatePatternCompilation(source); 1428var compilation = CreatePatternCompilation(source); 1457var compilation = CreatePatternCompilation(source); 1483var compilation = CreatePatternCompilation(source); 1507var compilation = CreatePatternCompilation(source); 1541var compilation = CreatePatternCompilation(source); 1565var compilation = CreatePatternCompilation(source); 1592var compilation = CreatePatternCompilation(source); 1624var compilation = CreatePatternCompilation(source); 1651var compilation = CreatePatternCompilation(source); 1679var compilation = CreatePatternCompilation(source); 1710var compilation = CreatePatternCompilation(source); 1749var compilation = CreatePatternCompilation(source); 1777var compilation = CreatePatternCompilation(source); 1801var compilation = CreatePatternCompilation(source); 1827var compilation = CreatePatternCompilation(source); 1852var compilation = CreatePatternCompilation(source); 1878var compilation = CreatePatternCompilation(source); 1917var compilation = CreatePatternCompilation(source); 1954var compilation = CreatePatternCompilation(source); 1998var compilation = CreatePatternCompilation(source); 2044var compilation = CreatePatternCompilation(source); 2073var compilation = CreatePatternCompilation(source); 2212var compilation = CreatePatternCompilation(source); 2374var compilation = CreatePatternCompilation(source); 2416var compilation = CreatePatternCompilation(source); 2573var compilation = CreatePatternCompilation(source); 2603var compilation = CreatePatternCompilation(source); 2660var compilation = CreatePatternCompilation(source); 2696var compilation = CreatePatternCompilation(source); 2737var compilation = CreatePatternCompilation(source); 2780var compilation = CreatePatternCompilation(source); 2810var compilation = CreatePatternCompilation(source); 2843var compilation = CreatePatternCompilation(source); 2873var compilation = CreatePatternCompilation(source); 2906var compilation = CreatePatternCompilation(source); 2939var compilation = CreatePatternCompilation(source); 2974var compilation = CreatePatternCompilation(source); 3009var compilation = CreatePatternCompilation(source); 3027var compilation = CreatePatternCompilation(source); 3047var compilation = CreatePatternCompilation(source); 3077var compilation2 = CreateCompilation(source2, new[] { reference1 }); 3107var compilation2 = CreateCompilation(source2, new[] { reference1 }); 3142var compilation = CreatePatternCompilation(source); 3175var compilation = CreatePatternCompilation(source); 3194var compilation = CreatePatternCompilation(source); 3213var compilation = CreatePatternCompilation(source, options: TestOptions.ReleaseExe); 3241var compilation = CreatePatternCompilation(source); 3268var compilation = CreatePatternCompilation(source); 3289var compilation = CreatePatternCompilation(source); 3328var compilation = CreatePatternCompilation(source); 3356var compilation = CreatePatternCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 3383var compilation = CreatePatternCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 3409var compilation = CreatePatternCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 3430var compilation = CreatePatternCompilation(source, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 3465var compilation = CreatePatternCompilation(source, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 3567var compilation = CreatePatternCompilation(source); 3632var compilation = CreatePatternCompilation(source); 3662var compilation = CreateCompilationWithMscorlib40(source); 3703var compilation = CreatePatternCompilation(source); 3727var compilation = CreatePatternCompilation(source, options: TestOptions.DebugDll); 3747var compilation = CreatePatternCompilation(source, options: TestOptions.DebugDll); 3774var compilation = CreatePatternCompilation(source, options: TestOptions.DebugDll); 4013var comp = CreateCompilation(source); 4075var comp = CreateCompilation(source); 4155var comp = CreatePatternCompilation(source, TestOptions.DebugDll); 4227var comp = CreateCompilation(source); 4271var comp = CreateCompilation(source); 4317var comp = CreateCompilation(source); 4399var comp = CreateCompilation(source); 4481var comp = CreateCompilation(source); 4563var comp = CreateCompilation(source); 4645var comp = CreateCompilation(source); 4729var comp = CreateCompilation(source); 4822var comp = CreateCompilation(source);
Semantics\PatternMatchingTests5.cs (55)
65var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns, options: TestOptions.ReleaseExe); 172var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns, options: TestOptions.ReleaseExe); 224var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns, options: TestOptions.ReleaseExe); 291var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns, options: TestOptions.ReleaseExe); 339var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 369var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 403var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 422var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 559var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 717var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 745var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 786var comp = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 832var comp = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 886var comp = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 975var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1069var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns, options: TestOptions.UnsafeDebugDll); 1097var compilation = CreatePatternCompilation(source); 1174var compilation = CreatePatternCompilation(source); 1228var compilation = CreatePatternCompilation(source); 1280var compilation = CreatePatternCompilation(source); 1427var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1477var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1558var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1595var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1629var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1660var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1695var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1738var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1768var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1800var compilation = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1873var comp = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1914var comp = CreateCompilation(program, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 1936var comp = CreateCompilation(source); 1982var comp = CreateCompilation(new[] { source, INumberBaseDefinition }); 2026var comp = CreateCompilation(new[] { source, INumberBaseDefinition }); 2076var comp = CreateCompilation(new[] { source }, references: new[] { ref1, ref2 }); 2123var comp = CreateCompilation(new[] { source }, references: new[] { ref1, ref2 }); 2175var comp = CreateCompilation(new[] { source, INumberBaseDefinition }); 2237var comp = CreateCompilation(new[] { source }, references: new[] { ref1, ref2 }); 2301var comp = CreateCompilation(new[] { source }, references: new[] { ref1, ref2 }); 2384var comp = CreateEmptyCompilation(new[] { source, INumberBaseBCL, INumberBaseDefinition }); 2414var comp = CreateEmptyCompilation(new[] { source, INumberBaseBCL, INumberBaseDefinition }); 2432var comp = CreateEmptyCompilation(new[] { source, INumberBaseBCL, INumberBaseDefinition }); 2469var comp = CreateEmptyCompilation(new[] { source, INumberBaseBCL, INumberBaseDefinition }); 2508var comp = CreateCompilation(source); 2551var comp = CreateCompilation(source); 2580var comp = CreateCompilation(source); 2612var comp = CreateCompilation(source); 2645var comp = CreateCompilation(source); 2683var comp = CreateCompilation(source); 2721var comp = CreateCompilation(source); 2761var comp = CreateCompilation(source); 2869var comp = CreateCompilation(source); 3033var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(nullableEnable ? NullableContextOptions.Enable : NullableContextOptions.Disable)); 3130var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(nullableEnable ? NullableContextOptions.Enable : NullableContextOptions.Disable));
Semantics\PatternSwitchTests.cs (83)
39var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 68var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 96var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 125var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 161var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 189var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 218var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe); 245var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe); 273var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 300var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 327var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 348var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 399var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 426var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 452var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 478var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 503var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 531var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 557var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 580var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 603var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 626var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 649var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 669var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 691var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 841var compilation = CreateCompilation(new[] { source, _iTupleSource }, options: TestOptions.DebugExe); 900var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 928var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 954var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1032var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1078var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1125var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1217var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1348var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1420var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1478var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1512var compilation = CreateCompilation(source); 1558var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1588var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1623var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1688var compilation = CreateCompilation(source, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular8); 1862var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1885var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1920var compilation = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular); 1966var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2006var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2049var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2080var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2109var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2156var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2218var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2274var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 2332var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2381var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2445var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe); 2510var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe); 2570var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 2626var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 2663var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 2706var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2748var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2778var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2809var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2837var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2865var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2894var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2925var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2956var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 2987var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 3053var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 3100var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 3138var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 3175var compilation = CreateCompilationWithMscorlib40( 3205var compilation = CreateCompilationWithMscorlib461( 3229var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular6); 3276var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular6); 3318var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3380var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3439var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3464var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3491var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3521var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3533var comp = CreateCompilation(source, options: TestOptions.DebugExe);
Semantics\PrimaryConstructorTests.cs (385)
59var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 85var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 114var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 156var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 181var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 217var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 242var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 279var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 313var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 334var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 351var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 365var comp = CreateCompilation(@" 400var comp = CreateCompilation(keyword + @" C(int x, string y);"); 468var comp = CreateCompilation(@" 504var comp = CreateCompilation(src + src2); 508var comp2 = CreateCompilation(src2, references: new[] { comp.EmitToImageReference() }); 516var comp = CreateCompilation(@" 542var comp = CreateCompilation(@" 565var comp = CreateCompilation(@" 607var comp = CreateCompilation(keyword + @" C();"); 659var comp = CreateCompilation(@" 693var comp = CreateCompilation(@" 749var comp = CreateCompilation(@" 793var comp = CreateCompilation(@" 813var comp = CreateCompilation(@" 854var comp = CreateCompilation(src); 890var comp = CreateCompilation(src); 926var comp = CreateCompilation(src); 956var comp = CreateCompilation(src); 985var comp = CreateCompilation(src, options: TestOptions.DebugExe); 1067var comp = CreateCompilation(src); 1289var comp = CreateCompilation(src); 1355var comp = CreateCompilation(src); 1401var comp = CreateCompilation(src); 1454var comp = CreateCompilation(src); 1516var comp = CreateCompilation(src); 1605var comp = CreateCompilation(src); 1690var comp = CreateCompilation(src); 1717var comp = CreateCompilation(src); 1743var comp = CreateCompilation(src); 1775var comp = CreateCompilation(src); 1801var comp = CreateCompilation(src); 1843var comp = CreateCompilation(src); 1883var comp = CreateCompilation(src); 1962var comp = (CSharpCompilation)verifier.Compilation; 2032var comp = CreateCompilation(src); 2066var comp = CreateCompilation(src); 2100var comp = CreateCompilation(src); 2282var comp = CreateCompilation(src); 2412var comp = CreateCompilation(src); 2451var comp = CreateCompilation(src); 2503var comp = CreateCompilation(src); 2522var comp = CreateCompilation(src); 2544var comp = CreateCompilation(src); 2563var comp = CreateCompilation(src); 2579var comp = CreateCompilation(src); 2606var comp = CreateCompilation(src); 2636var comp = CreateCompilation(src); 2669var comp = CreateCompilation(src); 2703var comp = CreateCompilation(src); 2747var comp = CreateCompilation(src); 2837var comp = CreateCompilation(src, options: TestOptions.DebugExe); 2859var comp = CreateCompilation(src); 2889var comp = CreateCompilation(src, options: TestOptions.DebugExe); 2914var comp = CreateCompilation(src, options: TestOptions.DebugExe); 2940var comp = CreateCompilation(src, options: TestOptions.DebugExe); 2953var comp = CreateCompilation(src); 2982var comp = CreateCompilation(src, options: TestOptions.DebugExe); 3006var comp = CreateCompilation(src, options: TestOptions.DebugExe); 3086var comp = CreateCompilation(source); 3135var comp = CreateCompilation(source); 3189var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3218static void verify(CSharpCompilation comp) 3241var comp = CreateCompilation(source); 3267var comp = CreateCompilation(source); 3300var comp = CreateCompilation(source); 3344var comp = CreateCompilation(source); 3375var comp = CreateCompilation(source); 3396var comp = CreateCompilation(source); 3431var comp = CreateCompilation(source); 3487var comp = CreateCompilation(source); 3532var comp = CreateCompilation(source); 3550var comp = CreateCompilation(source); 3576var comp = CreateCompilation(source); 3599var comp = CreateCompilation(source); 3621var comp = CreateCompilation(source); 3643var comp = CreateCompilation(source); 3680var comp = CreateCompilation(text1); 4051var comp = CreateCompilation(text1); 4129var comp = CreateCompilation(text1); 4264var comp = CreateCompilation(text1); 4351VerifyOperationTree((CSharpCompilation)context.Compilation, context.Operation, 4366VerifyOperationTree((CSharpCompilation)context.Compilation, context.Operation, 4480var comp = CreateCompilation(text1); 4586var comp = CreateCompilation(text1); 4794var comp = CreateCompilation(text1); 4899var comp = CreateCompilation(text1); 5112var comp = CreateCompilation(text1); 5215var comp = CreateCompilation(text1); 5454var comp = CreateCompilation(text1); 5533var comp = CreateCompilation(text1); 5658var comp = CreateCompilation(text1); 5697VerifyOperationTree((CSharpCompilation)context.Compilation, context.Operation, @""); 5761var comp = CreateCompilation(text1); 5817var comp = CreateCompilation(text1); 5889var comp = CreateCompilation(text1); 6047var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6080var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6127var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6164var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6186var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6207var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6230var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6257var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6282var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6320var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6350var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6384var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6418var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6453var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6488var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6528var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6568var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6611var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6652var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6697var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6739var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 6785var compilation1 = CreateCompilation(source1, targetFramework: TargetFramework.Net60); 6805var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 6827var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithFeature("run-nullable-analysis", "never"), targetFramework: TargetFramework.NetCoreApp); 6853var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithFeature("run-nullable-analysis", "never"), targetFramework: TargetFramework.NetCoreApp); 6879var comp = CreateCompilation(source); 6904var comp = CreateCompilation(src); 6932var comp = CreateCompilation(src); 6960var comp = CreateCompilation(src); 6988var comp = CreateCompilation(src); 7107var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 7790var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 8304var comp = CreateCompilation(src); 8348var comp = CreateCompilation(src); 8414var comp = CreateCompilation(src); 8525var comp = CreateCompilation(src); 8612var comp = CreateCompilation(src); 8653var comp = CreateCompilation(src); 8702Assert.Empty(((CSharpCompilation)verifier.Compilation).GetTypeByMetadataName("C1").InstanceConstructors.OfType<SynthesizedPrimaryConstructor>().Single().GetCapturedParameters()); 8752var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 9158var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 9337var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 9360var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 9415var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 9452var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 9474var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 9516var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 9538var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll); 9572var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 9877var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 9907var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 9937var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 9990var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10013var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10035var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10145var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10184var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10219var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10262var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10304var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10335var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10375var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10407var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10443var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10482var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10521var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10557var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10593var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10632var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10671var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10714var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10746var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10782var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10818var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10869var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10913var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 10957var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11000var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11043var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11085var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11130var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11165var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11192var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 11230var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11257var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 11295var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11330var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11362var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 11393var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 11436var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11479var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11511var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 11554var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11597var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11777var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11828var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11905var comp = CreateCompilationWithIL(source, ilSource, options: TestOptions.ReleaseDll); 11941var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseDll); 11988var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 12029var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseExe); 12055var comp2 = CreateCompilation(source2); 12109var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 12149var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 12192var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12242var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 12315var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 12392var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 12448var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12485var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12517var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12540var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12564var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12596var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12619var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12664var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12687var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12716var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12739var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12778var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12829var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12870var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 13937var comp = CreateCompilation(source); 13974var comp = CreateCompilation(source); 14007var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 14048var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 14369var comp = CreateCompilation(source); 14412var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 14449var comp = CreateCompilation(source); 14473var comp = CreateCompilation(source); 14494var comp = CreateCompilation(source); 14520var comp = CreateCompilation(source1 + source2); 14546var comp = CreateCompilation(source); 14560var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 14590var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 14611var comp = CreateCompilation(source); 14658var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, options: TestOptions.ReleaseExe); 14684var comp = CreateCompilation(source); 14713var comp = CreateCompilation(source); 14742var comp = CreateCompilation(source); 14771var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }); 14798var comp = CreateCompilation(source); 14835var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 14852var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 14874var comp = CreateCompilation(source); 14894var comp = CreateCompilation(source); 14936var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }); 14975var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 15008var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }); 15060var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, options: TestOptions.ReleaseExe); 15091var comp = CreateCompilation(source); 15125var comp = CreateCompilation(source); 15159var comp = CreateCompilation(source); 15193var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }); 15225var comp = CreateCompilation(source); 15267var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 15289var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 15316var comp = CreateCompilation(source); 15341var comp = CreateCompilation(source); 15388var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }); 15432var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 15448var comp = CreateCompilation(source); 15474var comp = CreateCompilation(source); 15496var comp = CreateCompilation(source); 15515var comp = CreateCompilation(source); 15542var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 15574var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 15596var comp = CreateCompilation(source); 15615var comp = CreateCompilation(source); 15648var comp = CreateCompilation(source); 15689var comp = CreateCompilation(source); 15710var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 15732var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 15753var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 15774var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 15832var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 16062var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16083var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16108var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16126var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16152var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16178var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16196var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16214var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16240var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.NetCoreApp); 16266var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.NetCoreApp); 16292var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16318var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16339var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16370var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16404var comp1 = CreateCompilation(source, options: TestOptions.ReleaseExe); 16586var comp2 = CreateCompilation(source, options: TestOptions.DebugExe); 16818var comp1 = CreateCompilation(source, options: TestOptions.ReleaseExe); 17075var comp2 = CreateCompilation(source, options: TestOptions.DebugExe); 17363var comp1 = CreateCompilation(source, options: TestOptions.ReleaseExe); 17421var comp2 = CreateCompilation(source, options: TestOptions.DebugExe); 17517var comp1 = CreateCompilation(source, options: TestOptions.ReleaseExe); 17606var comp2 = CreateCompilation(source, options: TestOptions.DebugExe); 17737var comp1 = CreateCompilation(source, options: TestOptions.ReleaseExe); 17946var comp2 = CreateCompilation(source, options: TestOptions.DebugExe); 18208var comp1 = CreateCompilation(source, options: TestOptions.ReleaseExe); 18502var comp2 = CreateCompilation(source, options: TestOptions.DebugExe); 18844var comp1 = CreateCompilation(source, options: TestOptions.ReleaseExe); 19014var comp2 = CreateCompilation(source, options: TestOptions.DebugExe); 19237var comp1 = CreateCompilation(source, options: TestOptions.ReleaseExe); 19311var comp2 = CreateCompilation(source, options: TestOptions.DebugExe); 19464var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 19547var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 19596var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 19669var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 19694var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 19724var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 19749var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 19770var comp = CreateCompilation(new[] { source1, source2 }); 19929var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 19952var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20064var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseDll); 20129var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseDll); 20164var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20207var comp = CreateCompilation(src); 20237var comp = CreateCompilation(source); 20261var comp = CreateCompilation(source); 20303var comp = CreateCompilation(new[] { source1, source2 }); 20350var comp = CreateCompilation(new[] { source1, source2 }); 20383var comp = CreateCompilation(new[] { source1, source2 }); 20444var comp = CreateCompilation(new[] { source1, source2, source3 }); 20467var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20501var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20549var comp = CreateCompilation(src1, targetFramework: TargetFramework.Mscorlib461Extended); 20573var comp = CreateCompilation(src1, targetFramework: TargetFramework.NetCoreApp); 20593var comp = CreateCompilation(src1, parseOptions: TestOptions.RegularPreview); 20626var comp = CreateCompilation(src1, parseOptions: TestOptions.RegularPreview); 20667var comp = CreateCompilation(src1, parseOptions: TestOptions.RegularPreview); 20711var comp = CreateCompilation(src1, parseOptions: TestOptions.RegularPreview); 20758var comp = CreateCompilation(src1, parseOptions: TestOptions.RegularPreview); 20814var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20846var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20878var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20910var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20932var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20954var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20983var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21005var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21039var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21076var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21110var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21147var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21182var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21217var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21252var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21285var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21316var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21345var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21385var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21416var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21453var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21502var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21545var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21584var comp = CreateCompilation(source1 + source2 + source3, options: TestOptions.ReleaseDll); 21626var comp = CreateCompilation(new[] { source1, source2, source3 }, options: TestOptions.ReleaseDll); 21667var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21732var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.NetCoreApp); 21793var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.NetCoreApp); 21854var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.NetCoreApp); 21890var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 21909var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 21928var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21977var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 22006var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 22021var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 22042var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 22068var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 22094var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 22125var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 22147var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 22192var comp = CreateCompilation(new[] { source1, source2 }, options: TestOptions.ReleaseDll); 22258var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 22296var comp = CreateCompilation(source); 22341var comp = CreateCompilation(source);
Semantics\RecordTests.cs (607)
23private static CSharpCompilation CreateCompilation(CSharpTestSource source) 51var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular8, options: TestOptions.ReleaseDll); 144var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular8); 200var comp = CreateCompilation(src, parseOptions: TestOptions.Regular8, options: TestOptions.ReleaseDll); 248var lib_comp = CreateCompilation(lib_src); 259var comp = CreateCompilation(src, references: new[] { AsReference(lib_comp, useCompilationReference) }); 279var comp = CreateCompilation(src); 293var comp = CreateCompilation(src); 310var comp = CreateCompilation(new[] { src, NotNullAttributeDefinition }); 336var comp = CreateCompilation(src); 356var comp = CreateCompilation(new[] { src, NotNullAttributeDefinition }); 392var comp = CreateCompilation(new[] { src, NotNullAttributeDefinition }); 439var comp = CreateCompilation(src); 471var comp = CreateCompilation(src); 493var comp = CreateCompilation(source); 528var comp = CreateCompilation(source); 563var comp = CreateCompilation(source); 585var comp = CreateCompilation(source); 613var comp = CreateCompilation(source); 647var comp = CreateCompilation(source); 683var comp = CreateCompilation(source); 707var comp = CreateCompilation(source); 737var comp = CreateCompilation(source); 756var comp = CreateCompilation(src); 780var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 800var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10); 817var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }); 855var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 931var comp = CreateCompilation(src); 1002var comp = CreateCompilation(src); 1054var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 1110var comp = CreateCompilation(src); 1154var comp = CreateCompilation(@" 1170var comp = CreateCompilation(@" 1190var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1249var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll); 1302var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll); 1352var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll); 1411var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugExe); 1448var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll); 1468var comp = CreateCompilation(@" 1517var comp = CreateCompilation(@" 1566var comp = (CSharpCompilation)verifier.Compilation; 1617var comp = (CSharpCompilation)verifier.Compilation; 1649var comp = CreateCompilation(src); 1714var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe); 1730var comp = CreateCompilation(src); 1744var comp = CreateCompilation(src); 1766var comp = CreateCompilation(src); 1812var comp = CreateCompilation(src); 1879var comp = CreateCompilation(src); 1899var comp = CreateCompilation(src); 1923var comp = CreateCompilation(src); 1950var comp = CreateCompilation(src); 1967var comp = CreateCompilation(src); 1988var comp = CreateCompilation(src); 2131var comp = CreateCompilation(src); 2152var comp = CreateCompilation(src); 2178var comp = CreateCompilation(src); 2204var comp = CreateCompilation(src); 2229var comp = CreateCompilation(src); 2252var comp = CreateCompilation(src); 2276var comp = CreateCompilation(src); 2303var comp = CreateCompilation(src); 2324var comp = CreateCompilation(src); 2347var comp = CreateCompilation(src); 2468var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 2483var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 2510var comp = CreateCompilation(src); 2541var comp = CreateCompilation(src); 2565var comp = CreateCompilation(src); 2618var comp = CreateCompilationWithIL(new[] { src, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 2700var comp = CreateCompilationWithIL(new[] { src, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 2734var comp = CreateCompilation(src); 2746var comp = CreateCompilation(src); 2759var comp = CreateCompilation(src); 2772var comp = CreateCompilation(src); 2789var comp = CreateCompilation(src); 2828var comp = CreateCompilation(src); 2842var comp = CreateCompilation(src); 2856var comp = CreateCompilation(src); 2870var comp = CreateCompilation(src); 2884var comp = CreateCompilation(src); 2894var comp = CreateCompilation(src); 2911var comp = CreateCompilation(src); 2941var comp = CreateCompilation(src); 2980var comp = CreateCompilation(src); 3020var comp = CreateCompilation(src); 3058var comp = CreateCompilation(src); 3073var comp = CreateCompilation(src); 3090var comp = CreateCompilation(src); 3101var comp = CreateCompilation(src); 3116var comp = CreateCompilation(src); 3131var comp = CreateCompilation(src); 3155var comp = CreateCompilation(src, options: TestOptions.DebugExe); 3208var comp = CreateCompilation(src); 3414var comp = CreateCompilationWithIL(src, il, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 3427var comp = CreateCompilation(src); 3458var comp = CreateCompilation(src); 3490var comp = CreateCompilation(src); 3517var comp = CreateCompilation(src); 3633var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 3736var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 3849var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 3962var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 4074var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 4187var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 4256var comp3 = CreateCompilation(new[] { source3, IsExternalInitTypeDefinition }, references: new[] { comp2Ref }, parseOptions: TestOptions.Regular9); 4295var comp4 = CreateCompilation(new[] { source4, IsExternalInitTypeDefinition }, references: new[] { comp1Ref, comp3Ref }, parseOptions: TestOptions.Regular9); 4311var comp5 = CreateCompilation(new[] { source4, IsExternalInitTypeDefinition }, references: new[] { comp3Ref }, parseOptions: TestOptions.Regular9); 4386var comp3 = CreateCompilation(new[] { source3, IsExternalInitTypeDefinition }, references: new[] { comp2Ref }, parseOptions: TestOptions.Regular9); 4452var comp4 = CreateCompilation(new[] { source4, IsExternalInitTypeDefinition }, references: new[] { comp1Ref, comp3Ref }, parseOptions: TestOptions.Regular9); 4477var comp5 = CreateCompilation(new[] { source4, IsExternalInitTypeDefinition }, references: new[] { comp3Ref }, parseOptions: TestOptions.Regular9); 4595var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 4698var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 4898var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 4916var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 4991var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5068var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5139var comp = CreateCompilation(src); 5161var comp = CreateCompilation(src); 5177var comp = CreateCompilation(src); 5193var comp = CreateCompilation(src); 5212var comp = CreateCompilation(src); 5235var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5267var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5302var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe); 5327var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe); 5347var comp = CreateCompilation(src, options: TestOptions.DebugExe); 5374var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe); 5386var comp = CreateCompilation(src); 5401var comp = CreateCompilation(src); 5416var comp = CreateCompilation(src); 5453var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5508var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5547var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5588var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5623var comp = CreateCompilation(src); 5654var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5717var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5766var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5788var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 5843var comp = CreateCompilation(src); 5883var comp = CreateCompilation(src, parseOptions: usePreview ? TestOptions.Regular10 : TestOptions.Regular9, options: TestOptions.DebugExe); 5914var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 5937var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 5963var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 6006var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 6047var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 6088var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 6128var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 6152var comp = CreateCompilation(new[] { src1, src2, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 6176var comp = CreateCompilation(new[] { src1, src2, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 6336var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 6405var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 6477var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 6549var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 6621var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 6699var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 6761var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 6845var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 6994var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 7082var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 7160var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 7187var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 7268var comp = CreateCompilationWithIL( 7300var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 7320var comp = CreateCompilation(src, parseOptions: usePreview ? TestOptions.Regular10 : TestOptions.Regular9); 7345var comp = CreateCompilation(src); 7360var comp = CreateCompilation(src); 7374var comp = CreateCompilation(src); 7392var comp = CreateCompilation(src); 7411var comp = CreateCompilation(src); 7429var comp = CreateCompilation(src); 7448var comp = CreateCompilation(src); 7462var comp = CreateCompilation(src); 7487var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 7502var comp = CreateCompilation(src); 7520var comp = CreateCompilation(src); 7542var comp = CreateCompilation(src); 7569var comp = CreateCompilation(src); 7587var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 7612var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 7914var comp = CreateCompilation(src); 7931var comp = CreateCompilation(src); 7948var comp = CreateCompilation(src); 7965var comp = CreateCompilation(src); 7983var comp = CreateCompilation(src); 8008var comp = CreateCompilation(src); 8032var comp = CreateCompilation(src); 8086var comp = (CSharpCompilation)verifier.Compilation; 8365var comp = CreateCompilation(src); 8457var comp = CreateCompilation(src); 8479var comp = CreateCompilation(src); 8502var comp = CreateCompilation(src); 8533var comp = CreateCompilation(src); 8557var comp = CreateCompilation(src); 8583var comp = CreateCompilation(src); 8599var comp = CreateCompilation(src); 8714var comp = CreateCompilation(src); 8813var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8835var comp = CreateCompilation(src); 8902var comp = CreateCompilation(src); 8918var comp = CreateCompilation(src); 8934var comp = CreateCompilation(src); 8953var comp = CreateCompilation(src); 8969var comp = CreateCompilation(src); 8991var comp = CreateCompilation(src); 9009var comp = CreateCompilation(src); 9029var comp = CreateCompilation(src); 9047var comp = CreateCompilation(src); 9075var comp = CreateCompilation(src); 9107var comp = CreateCompilation(src); 9141var comp = CreateCompilation(src); 9179var comp = CreateCompilation(src); 9205var comp = CreateCompilation(new[] { src, AllowNullAttributeDefinition }); 9236var comp = CreateCompilation(new[] { src, AllowNullAttributeDefinition }); 9266var comp = CreateCompilation(src); 9299var comp = CreateCompilation(src); 9325var comp = CreateCompilation(src); 9356var comp = CreateCompilation(src); 9379var comp = CreateCompilation(src); 9410var comp = CreateCompilation(new[] { src, MaybeNullAttributeDefinition }); 9441var comp = CreateCompilation(new[] { src, NotNullAttributeDefinition }); 9463var comp = CreateCompilation(src); 9524var comp1 = CreateCompilation(@" 9641var comp = CreateCompilation(src); 9658var comp = CreateCompilation(@" 9726var comp = CreateCompilation(source); 9767var comp = CreateCompilation(source); 9799var comp = CreateCompilation(sourceA); 9835var comp = CreateCompilation(source); 9881var comp = CreateCompilation(source); 9925var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9962var comp = CreateCompilation(source); 10003var comp = CreateCompilation(source); 10028var comp = CreateCompilation(source); 10138var comp = CreateCompilation(source); 10163var comp = CreateCompilation(source); 10200var comp = CreateCompilation(source); 10243var comp = CreateCompilation(source); 10276var comp = CreateCompilation(source); 10316var comp = CreateCompilation(source); 10362var comp = CreateCompilation(source); 10405var comp = CreateCompilation(source); 10463var comp = CreateCompilation(source); 10511var comp = CreateCompilation(source); 10570var comp = CreateCompilation(sourceA); 10654var comp = CreateCompilation(source); 10684var comp = CreateCompilation(source); 10716var comp = CreateCompilation(RuntimeUtilities.IsCoreClrRuntime ? source : new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.NetLatest); 10796var comp = CreateCompilation(new[] { sourceA, sourceB, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 10862var comp = CreateCompilation(new[] { sourceA, sourceB }); 10891var comp = CreateCompilation(source); 10922var comp = CreateCompilation(source); 10958var compB = CreateCompilation(new[] { sourceB, IsExternalInitTypeDefinition }, references: new[] { refA }, parseOptions: TestOptions.Regular9); 11029var compB = CreateCompilation(new[] { sourceB, IsExternalInitTypeDefinition }, references: new[] { refA }, parseOptions: TestOptions.Regular9); 11119var compB = CreateCompilation(new[] { sourceB, IsExternalInitTypeDefinition }, references: new[] { refA }, parseOptions: TestOptions.Regular9); 11169var comp = CreateCompilation(source); 11221var comp = CreateCompilation(source); 11278var comp = CreateCompilation(source); 11331var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 11545var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 11781var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 12070var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 12196var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9); 12281var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 12360var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 12465var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 12522var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 12577var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9); 12595var compA = CreateCompilation(RuntimeUtilities.IsCoreClrRuntime ? sourceA : new[] { sourceA, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.NetLatest); 12634var compB = CreateCompilation(RuntimeUtilities.IsCoreClrRuntime ? sourceB : new[] { sourceB, IsExternalInitTypeDefinition }, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.NetLatest); 12686var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 12720var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 12734var comp = CreateCompilation(source); 12775var comp = CreateCompilation(source); 12830var comp = CreateCompilation(source); 12873var comp = CreateCompilation(source); 12903var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 12946var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 12977var comp = CreateCompilation(source); 13004var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 13031var comp = CreateCompilation(source); 13059var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 13091var comp = CreateCompilation(source); 13116var comp = CreateCompilation(source); 13145var comp = CreateCompilation(source); 13181var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 13221var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 13265var comp = CreateCompilation(source); 13296var compA = CreateCompilation(sourceA); 13308var compB = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 13321var compC = CreateCompilation(sourceC, references: new[] { refA }, parseOptions: TestOptions.Regular9); 13340var compA = CreateCompilation(new[] { sourceA, IsExternalInitTypeDefinition }, assemblyName: "AssemblyA", parseOptions: TestOptions.Regular9); 13346var compB = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, assemblyName: "AssemblyB"); 13355var compC = CreateCompilation(sourceC, references: new[] { refA }, parseOptions: TestOptions.Regular9, assemblyName: "AssemblyB"); 13358var compB2 = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9, assemblyName: "AssemblyB2"); 13384var comp = CreateCompilation(source); 13412var comp = CreateCompilation(source); 13443var comp = CreateCompilation(source); 13466var comp = CreateCompilation(source); 13500var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 13587var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 13599var comp2 = CreateCompilationWithIL(new[] { source2, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 13672var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 13850var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, 13929var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, 13952var comp = CreateCompilation(source); 13980var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 14006var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 14039var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 14072var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 14118var deconstruct = ((CSharpCompilation)verifier.Compilation).GetMember<MethodSymbol>("B.Deconstruct"); 14291var comp = CreateCompilation(source); 14329var comp = CreateCompilation(source); 14411var comp = CreateCompilation(source); 14449var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14503var comp = CreateCompilation(source); 14547var comp = CreateCompilation(source); 14619var comp = CreateCompilation(source); 14896var comp = CreateCompilation(source); 14945var comp = CreateCompilation(source); 14991var comp = CreateCompilation(source); 15032var comp = CreateCompilation(source); 15168var comp = CreateCompilation(source); 15204var comp = CreateCompilation(source); 15319var comp = CreateCompilation(source); 15398var comp = CreateCompilation(source); 15497var comp = CreateCompilation(source); 15516var comp = CreateCompilation(source); 15540var comp = CreateCompilation(source); 15558var comp = CreateCompilation(source); 15581var comp = CreateCompilation(source); 15693var comp = CreateCompilation(source); 15722var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: usePreview ? TestOptions.Regular10 : TestOptions.Regular9); 15796var comp = CreateCompilation(RuntimeUtilities.IsCoreClrRuntime ? source : new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.NetLatest); 15934var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16040var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16140var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16240var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16281var comp = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 16359var comp = CreateCompilation(source); 16472var comp = CreateCompilationWithIL(new[] { source1, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16607var comp = CreateCompilationWithIL(new[] { source1, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16718var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 16746var comp = CreateCompilation(source); 16763var comp = CreateCompilation(source); 16782var comp = CreateCompilation(source); 16802var comp = CreateCompilation(source); 16819var comp = CreateCompilation(source); 16836var comp = CreateCompilation(source); 16852var comp = CreateCompilation(source); 16870var comp = CreateCompilation(source); 16966var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 17078var comp = CreateCompilationWithIL(new[] { source2, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 17185var comp = CreateCompilationWithIL(new[] { source2, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 17230var comp = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 17326var comp = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 17422var comp = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 17581var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 17681var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 17787var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 17984var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 18006var comp = CreateCompilation(source); 18038var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18077var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18112var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18147var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18189var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18223var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18259var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18301var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18363var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18390var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18416var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18454var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18483var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18507var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18580var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18613var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18652var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18688var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18717var comp = CreateCompilation(source); 18744var comp = CreateCompilation(source); 18790var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18821var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18861var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18905var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 18949var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18972var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19020var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: modifiers == "abstract " ? TestOptions.ReleaseDll : TestOptions.ReleaseExe); 19093var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: modifiers == "abstract " ? TestOptions.ReleaseDll : TestOptions.ReleaseExe); 19144var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19161var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19191var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19228var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19301var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19458var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 19499var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19626var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 19745var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 19955var comp = CreateCompilationWithIL(new[] { source, IsExternalInitTypeDefinition }, ilSource: ilSource, parseOptions: TestOptions.Regular9); 19984var comp = CreateCompilation(source); 20007var comp = CreateCompilation(source); 20031var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 20062var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 20088var comp = CreateCompilation(source); 20110var comp = CreateCompilation(src); 20131var comp = CreateCompilation(src, options: TestOptions.DebugExe); 20148var comp = CreateCompilation(src); 20246var comp = CreateCompilationWithIL(src, il); 20259var comp2 = CreateCompilationWithIL(src2, il); 20283var comp = CreateCompilation(src, options: TestOptions.DebugExe); 20331var comp = (CSharpCompilation)verifier.Compilation; 20450var comp = (CSharpCompilation)verifier.Compilation; 20521var comp = CreateCompilation(source); 20544var comp = CreateCompilation(source); 20565var comp = CreateCompilation(source); 20586var comp = CreateCompilation(source); 20605var comp = CreateCompilation(source); 20630var comp = CreateCompilation(source); 20654var comp1 = CreateCompilation(source1); 20693var comp = CreateCompilation(src); 20722var comp = CreateCompilation(src); 20766var comp = CreateCompilation(src); 20822var comp = CreateCompilation(src); 20992var comp = CreateCompilation(RuntimeUtilities.IsCoreClrRuntime ? src : new[] { src, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.NetLatest); 21079private static ImmutableArray<Symbol> GetProperties(CSharpCompilation comp, string typeName) 21139var comp = CreateCompilation(src); 21363var comp = CreateCompilation(src); 21429var comp = CreateCompilation(src); 21475var comp = CreateCompilation(src); 21528var comp = CreateCompilation(src); 21590var comp = CreateCompilation(src); 21679var comp = CreateCompilation(src); 21764var comp = CreateCompilation(src); 21791var comp = CreateCompilation(src); 21817var comp = CreateCompilation(src); 21849var comp = CreateCompilation(src); 21875var comp = CreateCompilation(src); 21915var comp = CreateCompilation(src); 21952var comp = CreateCompilation(src); 21990var comp = CreateCompilation(src); 22074var comp = (CSharpCompilation)verifier.Compilation; 22144var comp = CreateCompilation(src); 22178var comp = CreateCompilation(src); 22212var comp = CreateCompilation(src); 22394var comp = CreateCompilation(src); 22524var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 22653var clone = ((CSharpCompilation)verifier.Compilation).GetMember<MethodSymbol>("C." + WellKnownMemberNames.CloneMethodName); 22693var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 22806var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 22912var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23019var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23366var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23533var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23567var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23586var comp = CreateCompilation(source); 23607var comp = CreateCompilation(source, targetFramework: TargetFramework.NetLatest); 23714var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23754var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23797var comp = CreateCompilation(sourceA); 23831var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 23893var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 23909var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 23929var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 23969var comp = CreateCompilation(source); 23998var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 24017var comp = CreateCompilation(source); 24058var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 24116var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 24179var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 24207var comp = CreateCompilation(source); 24236var comp = CreateCompilation(source); 24274var comp = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 24339var comp = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 24409var comp = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 24488var comp = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 24520var comp = CreateCompilation(source); 24545var comp = CreateCompilation(source); 24568var comp = CreateCompilation(source); 24585var comp = CreateCompilation(source); 24615var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 24638var comp = CreateCompilation(src); 24668var comp = CreateCompilation(src); 24699var comp = CreateCompilation(src); 24742var comp = CreateCompilation(src); 24800var comp = CreateCompilation(src); 24818var comp = CreateCompilation(src); 24840var comp = CreateCompilation(src); 24869var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 24889var comp = CreateCompilation(src); 24914var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 24941var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 24961var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 24998var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 25032var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 25563var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition, NotNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 25611var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 25639var comp = CreateCompilation(src); 25653CSharpCompilation c = CreateCompilation(@" 25712var comp = CreateCompilation(source); 25733var comp = CreateCompilation(text); 25782var comp = CreateCompilation(source); 25821var compilation = CreateCompilation(source); 25905var comp = CreateCompilation(source); 25929var comp = CreateCompilation(text); 25979var comp = CreateCompilation(text, targetFramework: TargetFramework.NetLatest); 26026var comp = CreateCompilation(text); 26120var comp = CreateCompilation(text1); 26487var comp = CreateCompilation(text1); 26572var comp = CreateCompilation(text1); 26727var comp = CreateCompilation(text1); 26814VerifyOperationTree((CSharpCompilation)context.Compilation, context.Operation, 26829VerifyOperationTree((CSharpCompilation)context.Compilation, context.Operation, 26943var comp = CreateCompilation(text1); 27049var comp = CreateCompilation(text1); 27257var comp = CreateCompilation(text1); 27362var comp = CreateCompilation(text1); 27575var comp = CreateCompilation(text1); 27691var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9) 27741var comp = CreateCompilation(src); 27795var comp = CreateCompilation(src); 27818var comp = CreateCompilation(src); 27844var comp = CreateCompilation(src); 27870var comp = CreateCompilation(src); 27896var compDebug = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe); 27897var compRelease = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.ReleaseExe); 27919var compDebug = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe); 27920var compRelease = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.ReleaseExe); 28024var comp = CreateCompilation(src); 28109var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe); 28132var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28179var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 28222var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments, assemblyName: "Test"); 28284var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28335var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28370var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28400var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28429var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28460var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28493var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28539var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28577var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28624var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28671var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28719var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28767var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28819var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28872var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28929var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 28979var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 29037var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 29094var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 29134var comp = CreateCompilation(source); 29165var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29190var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29215var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29241var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 29280var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29315var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29340var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29368var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29406var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29444var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29475var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 29527var comp = CreateCompilation(source); 29548var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 29579var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 29600var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 29613var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 29645var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 29677var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 29698var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29725var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29763var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29786var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29823var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29855var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29881var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29910var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 29934var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview); 29958var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview); 29985var comp = CreateCompilation(src); 30015var comp = CreateCompilation(src); 30037var comp = CreateCompilation(src); 30056var comp = CreateCompilation(src); 30078var comp = CreateCompilation(src); 30097var comp = CreateCompilation(src); 30113var comp = CreateCompilation(src); 30140var comp = CreateCompilation(src); 30163var compA = CreateEmptyCompilation(new[] { sourceA, IsExternalInitTypeDefinition }, references: TargetFrameworkUtil.GetReferences(TargetFramework.NetStandard20)); 30193var compB = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions("CS1701", ReportDiagnostic.Suppress), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.NetCoreApp); 30231var comp = CreateCompilation(src); 30258var comp = CreateCompilation(src); 30283var comp = CreateCompilation(src); 30307var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 30366var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "never"), targetFramework: TargetFramework.NetCoreApp); 30390var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "never"), targetFramework: TargetFramework.NetCoreApp); 30441var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.NetCoreApp);
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (9)
EndToEndTests.cs (9)
168var compilation = CreateCompilation(source, options: options); 249var compilation = CreateCompilation(source, options: options); 323var compilation = CreateCompilation(source, options: TestOptions.DebugExe.WithConcurrentBuild(false)); 449var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithConcurrentBuild(false)); 486var comp = CreateCompilation(source); 578var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithConcurrentBuild(false)); 603var comp = CreateCompilation(sb.ToString()); 760var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithConcurrentBuild(false)); 861var comp = CreateCompilation(source, options: TestOptions.DebugExe.WithConcurrentBuild(false));
Microsoft.CodeAnalysis.CSharp.Features (6)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveRedundantNullableDirectiveDiagnosticAnalyzer.cs (2)
36var compilation = (CSharpCompilation)context.Compilation;
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.cs (2)
61var compilation = (CSharpCompilation)context.Compilation;
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.cs (2)
59var compilation = (CSharpCompilation)context.Compilation;
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (423)
IOperation\FunctionPointerOperations.cs (16)
17private CSharpCompilation CreateFunctionPointerCompilation(string source) 25var comp = CreateFunctionPointerCompilation(@" 49var comp = CreateFunctionPointerCompilation(@" 79var comp = CreateFunctionPointerCompilation(@" 109var comp = CreateFunctionPointerCompilation(@" 136var comp = CreateFunctionPointerCompilation(@" 164var comp = CreateFunctionPointerCompilation(@" 194var comp = CreateFunctionPointerCompilation(@" 217var comp = CreateFunctionPointerCompilation(@" 255var comp = CreateFunctionPointerCompilation(@" 284var comp = CreateFunctionPointerCompilation(@" 315var comp = CreateFunctionPointerCompilation(@" 346var comp = CreateFunctionPointerCompilation(@" 377var comp = CreateFunctionPointerCompilation(@" 448var comp = CreateFunctionPointerCompilation(@" 523var comp = CreateFunctionPointerCompilation(@"
IOperation\IOperationTests.cs (16)
24var comp = CreateCompilation(@" 70var comp = CreateCompilation(@" 104var comp = CreateCompilation(@" 166var comp = CreateCompilation(@" 258var comp = CreateCompilation(tree); 350var comp = CreateCompilation(tree); 405var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular); 458var compilation = CreateCompilationWithMscorlib40(text, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 489var compilation = CreateCompilationWithMscorlib40(sourceCode, new[] { SystemRef, SystemCoreRef, ValueTupleRef, SystemRuntimeFacadeRef }, sourceFileName: "file.cs"); 505var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 523var compilation = CreateCompilationWithMscorlib40(sourceCode, new[] { SystemRef, SystemCoreRef, ValueTupleRef, SystemRuntimeFacadeRef }, sourceFileName: "file.cs"); 553var comp = CreateCompilation(text); 573var compilation = CreateCompilation(@" 598var compilation = CreateCompilation(@" 660var compilation = CreateCompilation(source); 709var comp = CreateCompilation(source);
IOperation\IOperationTests_IAnonymousFunctionExpression.cs (4)
405var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 485var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 844var compilation = CreateCompilation(source); 899var compilation = CreateCompilation(source);
IOperation\IOperationTests_IArgument.cs (30)
1466var comp = CreateCompilation(new[] { source1, source0 }); 1470var comp0 = CreateCompilation(source0); 1473var comp1 = CreateCompilation(source1, references: new[] { comp0.ToMetadataReference() }); 1512var comp = CreateCompilation(new[] { source1, source0 }); 1516var comp0 = CreateCompilation(source0); 1519var comp1 = CreateCompilation(source1, references: new[] { comp0.ToMetadataReference() }); 1558var comp = CreateCompilation(new[] { source1, source0 }); 1562var comp0 = CreateCompilation(source0); 1565var comp1 = CreateCompilation(source1, references: new[] { comp0.ToMetadataReference() }); 1603var comp = CreateCompilation(new[] { source1, source0 }); 1607var comp0 = CreateCompilation(source0); 1610var comp1 = CreateCompilation(source1, references: new[] { comp0.ToMetadataReference() }); 1649var comp = CreateCompilation(new[] { source1, source0 }); 1653var comp0 = CreateCompilation(source0); 1656var comp1 = CreateCompilation(source1, references: new[] { comp0.ToMetadataReference() }); 2456var compilation = CreateEmptyCompilation(source, options: Test.Utilities.TestOptions.ReleaseDll); 2520var compilation = CreateEmptyCompilation(source, options: Test.Utilities.TestOptions.ReleaseDll); 2608var compilation = CreateEmptyCompilation(source, options: Test.Utilities.TestOptions.ReleaseDll); 2664var compilation = CreateEmptyCompilation(source, options: Test.Utilities.TestOptions.ReleaseDll); 2722var compilation = CreateEmptyCompilation(source, options: Test.Utilities.TestOptions.ReleaseDll); 2807var compilation = CreateEmptyCompilation(source, options: Test.Utilities.TestOptions.ReleaseDll); 2852var comp = CreateCompilation(source); 2898var comp = CreateCompilation(source); 2947var comp = CreateCompilation(source); 3065var compilation = CreateCompilation(source); 3861var compilation = CreateEmptyCompilation(source, options: Test.Utilities.TestOptions.ReleaseDll); 3956var compilation = CreateEmptyCompilation(source, options: Test.Utilities.TestOptions.ReleaseDll); 4013var comp = CreateCompilation(source); 4051var comp = CreateCompilation(source); 4092var comp = CreateCompilation(source);
IOperation\IOperationTests_IArrayElementReferenceExpression.cs (10)
1708var comp = CreateCompilationWithIndexAndRange(source); 1750var comp = CreateCompilationWithIndexAndRange(source); 1837var comp = CreateCompilationWithIndexAndRange(source); 1930var comp = CreateCompilationWithIndexAndRange(source); 2053var comp = CreateCompilationWithIndexAndRange(source); 2080var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 2122var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 2209var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 2302var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 2425var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray });
IOperation\IOperationTests_IBinaryOperatorExpression.cs (9)
8029var compilation = CreateCompilationWithIndexAndRange(@" 8060var compilation = CreateCompilationWithIndexAndRange(@" 8090var compilation = CreateCompilationWithIndexAndRange(@" 8118var compilation = CreateCompilationWithIndexAndRange(@" 8146var compilation = CreateCompilationWithIndexAndRange(@" 8171var compilation = CreateCompilationWithIndexAndRange(@" 8202var compilation = CreateCompilationWithIndexAndRange(@" 8232var compilation = CreateCompilationWithIndexAndRange(@" 8260var compilation = CreateCompilationWithIndexAndRange(@"
IOperation\IOperationTests_IBlock.cs (13)
35var compilation = CreateCompilation(source); 85var compilation = CreateCompilation(source); 120var compilation = CreateCompilation(source); 193var compilation = CreateCompilation(source); 254var compilation = CreateCompilation(source); 291var compilation = CreateCompilation(source); 364var compilation = CreateCompilation(source); 412var compilation = CreateCompilation(source); 457var compilation = CreateCompilation(source); 538var compilation = CreateCompilation(source); 616var compilation = CreateCompilation(source); 685var compilation = CreateCompilation(source); 804var compilation = CreateCompilation(source);
IOperation\IOperationTests_IBranchOperation.cs (17)
30var compilation = CreateCompilation(source); 65var compilation = CreateCompilation(source); 129var compilation = CreateCompilation(source); 197var compilation = CreateCompilation(source); 265var compilation = CreateCompilation(source); 326var compilation = CreateCompilation(source); 369var compilation = CreateCompilation(source); 420var compilation = CreateCompilation(source); 470var compilation = CreateCompilation(source); 541var compilation = CreateCompilation(source); 594var compilation = CreateCompilation(source); 667var compilation = CreateCompilation(source); 721var compilation = CreateCompilation(source); 1156var compilation = CreateCompilation(source); 1199var compilation = CreateCompilation(source); 1248var compilation = CreateCompilation(source); 1311var compilation = CreateCompilation(source);
IOperation\IOperationTests_IBranchOperation.Extensions.cs (1)
377var compilation = CreateCompilation(source);
IOperation\IOperationTests_ICoalesceAssignmentOperation.cs (2)
223var comp = CreateCompilation(@" 309var comp = CreateCompilation(@"
IOperation\IOperationTests_ICoalesceOperation.cs (14)
31var compilation = CreateCompilation(source); 142var compilation = CreateCompilation(source); 257var compilation = CreateCompilation(source); 372var compilation = CreateCompilation(source); 484var compilation = CreateCompilation(source); 601var compilation = CreateCompilation(source, references: new[] { CSharpRef }, targetFramework: TargetFramework.Mscorlib40AndSystemCore); 716var compilation = CreateCompilation(source, references: new[] { CSharpRef }, targetFramework: TargetFramework.Mscorlib40AndSystemCore); 828var compilation = CreateCompilation(source); 946var compilation = CreateCompilation(source); 1048var compilation = CreateCompilation(source); 1163var compilation = CreateCompilation(source); 1271var compilation = CreateCompilation(source); 1427var compilation = CreateCompilation(source); 1527var compilation = CreateCompilationWithMscorlib461(source);
IOperation\IOperationTests_ICompoundAssignmentOperation.cs (2)
44var compilation = CreateCompilationWithMscorlib461(new[] { syntaxTree }); 80var compilation = CreateCompilationWithMscorlib461(new[] { syntaxTree });
IOperation\IOperationTests_IConditionalAccessExpression.cs (3)
131var comp = CreateCompilation(source); 1191var compilation = CreateCompilationWithMscorlib461(source); 1443var comp = CreateCompilation(@"
IOperation\IOperationTests_IConstructorBodyOperation.cs (19)
26var compilation = CreateCompilation(source); 55var compilation = CreateCompilation(source); 118var compilation = CreateCompilation(source); 184var compilation = CreateCompilation(source); 252var compilation = CreateCompilation(source); 318var compilation = CreateCompilation(source); 387var compilation = CreateCompilation(source); 476var compilation = CreateCompilation(source); 504var compilation = CreateCompilation(source); 578var compilation = CreateCompilation(source); 646var compilation = CreateCompilation(source); 716var compilation = CreateCompilation(source); 785var compilation = CreateCompilation(source); 855var compilation = CreateCompilation(source); 950var compilation = CreateCompilation(source); 1061var compilation = CreateCompilation(source); 1085var compilation = CreateCompilation(source); 1118var compilation = CreateEmptyCompilation(source); 1152var compilation = CreateCompilation(source);
IOperation\IOperationTests_IConversionExpression.cs (4)
3402var comp = CreateCompilation(source + IOperationTests_IInlineArrayAccessOperation.Buffer10Definition, targetFramework: TargetFramework.Net80); 3434var comp = CreateCompilationWithSpan(source); 5288var compilation = CreateCompilation(source); 5319var comp = CreateCompilation(source + IOperationTests_IInlineArrayAccessOperation.Buffer10Definition, targetFramework: TargetFramework.Net80);
IOperation\IOperationTests_IDelegateCreationExpression.cs (1)
2045var comp = CreateCompilation(code, options: TestOptions.UnsafeReleaseExe);
IOperation\IOperationTests_IFieldReferenceExpression.cs (3)
696var compWithoutNullable = CreateCompilation(program); 697var compWithNullable = CreateCompilation(program, options: WithNullableEnable()); 702static void testCore(CSharpCompilation comp)
IOperation\IOperationTests_IFixedStatement.cs (1)
688var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll);
IOperation\IOperationTests_IForEachLoopStatement.cs (31)
1725var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 1780var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 1827var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 1894var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 2779var comp = CreateCompilation(src, targetFramework: TargetFramework.Net60); 2911var comp = CreateCompilation(src, targetFramework: TargetFramework.Net60); 3003var comp = CreateCompilation(src, targetFramework: TargetFramework.Net60); 5196var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 5328var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 5414var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 5585var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, parseOptions: TestOptions.Regular9); 5868var compilation = CreateCompilation(@" 5992var compilation = CreateCompilation(@" 6116var compilation = CreateCompilation(@" 6234var compilation = CreateCompilation(@" 6365var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: TestOptions.DebugExe); 6497var compilation = CreateCompilation(@" 6654var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 6773var comp = CreateCompilation(@" 6915var comp = CreateCompilation(@" 7009var comp = CreateCompilation(@" 7142var comp = CreateCompilationWithIL(@" 7259var comp = CreateCompilationWithIL(@" 7341var comp = CreateCompilation(@" 7591var comp = CreateCompilation(source + IOperationTests_IInlineArrayAccessOperation.Buffer10Definition, targetFramework: TargetFramework.Net80); 7675var comp = CreateCompilation(source + IOperationTests_IInlineArrayAccessOperation.Buffer10Definition, targetFramework: TargetFramework.Net80); 7721var comp = CreateCompilation(source + IOperationTests_IInlineArrayAccessOperation.Buffer10Definition, targetFramework: TargetFramework.Net80); 7808var comp = CreateCompilation(source + IOperationTests_IInlineArrayAccessOperation.Buffer10Definition, targetFramework: TargetFramework.Net80); 7859var comp = CreateCompilation(source + IOperationTests_IInlineArrayAccessOperation.Buffer10Definition, targetFramework: TargetFramework.Net80); 7954var comp = CreateCompilation(source + IOperationTests_IInlineArrayAccessOperation.Buffer10Definition, targetFramework: TargetFramework.Net80); 8003var comp = CreateCompilation(source + IOperationTests_IInlineArrayAccessOperation.Buffer10Definition, targetFramework: TargetFramework.Net80);
IOperation\IOperationTests_IFromEndIndexOperation_IRangeOperation.cs (3)
33var comp = CreateCompilationWithIndexAndRange(src); 140var compilation = CreateCompilationWithIndex(source); 208var compilation = CreateCompilationWithIndexAndRange(source);
IOperation\IOperationTests_IImplicitIndexerReferenceExpression.cs (20)
41var comp = CreateCompilationWithIndexAndRange(source); 85var comp = CreateCompilationWithIndexAndRange(source); 174var comp = CreateCompilationWithIndexAndRange(source); 269var comp = CreateCompilationWithIndexAndRange(source); 394var comp = CreateCompilationWithIndexAndRange(source); 423var comp = CreateCompilationWithIndexAndRange(source); 467var comp = CreateCompilationWithIndexAndRange(source); 556var comp = CreateCompilationWithIndexAndRange(source); 651var comp = CreateCompilationWithIndexAndRange(source); 776var comp = CreateCompilationWithIndexAndRange(source); 814var comp = CreateCompilationWithIndexAndRange(new[] { source, IndexableAndSliceable }); 858var comp = CreateCompilationWithIndexAndRange(new[] { source, IndexableAndSliceable }); 947var comp = CreateCompilationWithIndexAndRange(new[] { source, IndexableAndSliceable }); 1042var comp = CreateCompilationWithIndexAndRange(new[] { source, IndexableAndSliceable }); 1167var comp = CreateCompilationWithIndexAndRange(new[] { source, IndexableAndSliceable }); 1196var comp = CreateCompilationWithIndexAndRange(new[] { source, IndexableAndSliceable }); 1240var comp = CreateCompilationWithIndexAndRange(new[] { source, IndexableAndSliceable }); 1329var comp = CreateCompilationWithIndexAndRange(new[] { source, IndexableAndSliceable }); 1424var comp = CreateCompilationWithIndexAndRange(new[] { source, IndexableAndSliceable }); 1549var comp = CreateCompilationWithIndexAndRange(new[] { source, IndexableAndSliceable });
IOperation\IOperationTests_IInlineArrayAccessOperation.cs (10)
48var comp = CreateCompilation(source + Buffer10Definition, targetFramework: TargetFramework.Net80); 90var comp = CreateCompilation(source + Buffer10Definition, targetFramework: TargetFramework.Net80); 180var comp = CreateCompilation(source + Buffer10Definition, targetFramework: TargetFramework.Net80); 273var comp = CreateCompilation(source + Buffer10Definition, targetFramework: TargetFramework.Net80); 399var comp = CreateCompilation(source + Buffer10Definition, targetFramework: TargetFramework.Net80); 426var comp = CreateCompilation(source + Buffer10Definition, targetFramework: TargetFramework.Net80); 472var comp = CreateCompilation(source + Buffer10Definition, targetFramework: TargetFramework.Net80); 568var comp = CreateCompilation(source + Buffer10Definition, targetFramework: TargetFramework.Net80); 657var comp = CreateCompilation(source + Buffer10Definition, targetFramework: TargetFramework.Net80); 800var comp = CreateCompilation(source + Buffer10Definition, targetFramework: TargetFramework.Net80);
IOperation\IOperationTests_IInterpolatedStringOperation.cs (1)
4851var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: true) });
IOperation\IOperationTests_IIsPatternExpression.cs (20)
712var compilation = CreateCompilation(source); 1317var compilation = CreateCompilation(source, new[] { vbCompilation.EmitToImageReference() }, parseOptions: TestOptions.Regular8); 1390var compilation = CreateCompilation(source, new[] { vbCompilation.EmitToImageReference() }); 1433var compilation = CreateCompilation(source); 1480var compilation = CreateCompilation(source); 1524var compilation = CreateCompilation(source); 1571var compilation = CreateCompilation(source); 1616var compilation = CreateCompilation(source); 1661var compilation = CreateCompilation(source); 2117var comp = CreateCompilationWithIndex(source); 2150var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 2186var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 2228var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 2260var comp = CreateCompilationWithIndexAndRangeAndSpan(source); 2293var comp = CreateCompilationWithIndexAndRangeAndSpan(source); 2330var comp = CreateCompilation(source); 2364var comp = CreateCompilationWithIndex(source); 2404var comp = CreateCompilationWithIndexAndRange(source); 2437var comp = CreateCompilation(source); 2478var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray });
IOperation\IOperationTests_ILocalFunctionStatement.cs (2)
1790var compilation = CreateCompilation(source); 1845var compilation = CreateCompilation(source);
IOperation\IOperationTests_ILockStatement.cs (2)
1012var compilation = CreateCompilationWithMscorlib461(source); 1101var compilation = CreateCompilationWithMscorlib461(source);
IOperation\IOperationTests_IMethodBodyOperation.cs (27)
28var compilation = CreateCompilation(source); 51var compilation = CreateCompilation(source); 104var compilation = CreateCompilation(source); 160var compilation = CreateCompilation(source); 238var compilation = CreateCompilation(source); 280var compilation = CreateCompilation(source); 323var compilation = CreateCompilation(source); 390var compilation = CreateCompilation(source); 439var compilation = CreateCompilation(source); 496var compilation = CreateCompilation(source); 551var compilation = CreateCompilation(source); 576var compilation = CreateCompilation(source); 608var compilation = CreateCompilation(source); 646var compilation = CreateCompilation(source); 693var compilation = CreateCompilation(source); 718var compilation = CreateCompilation(source); 750var compilation = CreateCompilation(source); 788var compilation = CreateCompilation(source); 835var compilation = CreateCompilation(source); 860var compilation = CreateCompilation(source); 892var compilation = CreateCompilation(source); 927var compilation = CreateCompilation(source); 971var compilation = CreateCompilation(source); 995var compilation = CreateCompilation(source); 1030var compilation = CreateCompilation(source); 1069var compilation = CreateCompilation(source); 1113var compilation = CreateCompilation(source);
IOperation\IOperationTests_INoPiaObjectCreationOperation.cs (7)
43var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 102var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 159var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 209var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 301var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 391var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 458var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll);
IOperation\IOperationTests_IObjectCreationExpression.cs (15)
171var comp = CreateCompilation(@" 705var comp = CreateCompilation(@" 1017var comp = CreateCompilation(@" 1249var comp = CreateCompilation(@" 1377var comp = CreateCompilation("_ = new int[/*<bind>*/new(bad)/*</bind>*/];"); 1397var comp = CreateCompilation(@" 1427var comp = CreateCompilation(source); 1455var comp = CreateCompilation(source); 1483var comp = CreateCompilation(source); 1503var comp = CreateCompilation(@" 2234var comp = CreateCompilation(@" 2353var comp = CreateCompilation(@" 15051var comp = CreateCompilation(source); 15146var comp = CreateCompilation(source); 15389var comp = CreateCompilation(source);
IOperation\IOperationTests_IParameterReferenceExpression.cs (2)
982var compilation0 = CreateCompilation(sources0); 985var compilation1 = CreateEmptyCompilation(
IOperation\IOperationTests_IPropertyReferenceExpression.cs (2)
1013var comp = CreateCompilation(@" 1051var comp = CreateCompilation(@"
IOperation\IOperationTests_IReturnStatement.cs (28)
156var compilation = CreateCompilation(source); 184var compilation = CreateCompilation(source); 218var compilation = CreateCompilation(source); 263var compilation = CreateCompilation(source); 312var compilation = CreateCompilation(source); 396var compilation = CreateCompilation(source); 448var compilation = CreateCompilation(source); 504var compilation = CreateCompilation(source); 568var compilation = CreateCompilation(source); 633var compilation = CreateCompilation(source); 676var compilation = CreateCompilation(source); 714var compilation = CreateCompilation(source); 782var compilation = CreateCompilation(source); 858var compilation = CreateCompilation(source); 927var compilation = CreateCompilation(source); 1000var compilation = CreateCompilation(source); 1046var compilation = CreateCompilation(source); 1097var compilation = CreateCompilation(source); 1150var compilation = CreateCompilation(source); 1178var compilation = CreateCompilation(source); 1215var compilation = CreateCompilation(source); 1260var compilation = CreateCompilation(source); 1304var compilation = CreateCompilation(source); 1391var compilation = CreateCompilation(source); 1449var compilation = CreateCompilation(source); 1505var compilation = CreateCompilation(source); 1561var compilation = CreateCompilation(source); 1602var compilation = CreateCompilation(source);
IOperation\IOperationTests_ISymbolInitializer.cs (1)
30var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular);
IOperation\IOperationTests_IThrowOperation.cs (35)
30var compilation = CreateCompilation(source); 68var compilation = CreateCompilation(source); 127var compilation = CreateCompilation(source); 162var compilation = CreateCompilation(source); 228var compilation = CreateCompilation(source); 302var compilation = CreateCompilation(source); 373var compilation = CreateCompilation(source); 448var compilation = CreateCompilation(source); 523var compilation = CreateCompilation(source); 595var compilation = CreateCompilation(source); 685var compilation = CreateCompilation(source); 750var compilation = CreateCompilation(source); 839var compilation = CreateCompilation(source); 966var compilation = CreateCompilation(source); 1021var compilation = CreateCompilation(source); 1085var compilation = CreateCompilation(source); 1134var compilation = CreateCompilation(source); 1197var compilation = CreateCompilation(source); 1261var compilation = CreateCompilation(source); 1341var compilation = CreateCompilation(source); 1422var compilation = CreateCompilation(source); 1498var compilation = CreateCompilation(source); 1549var compilation = CreateCompilation(source); 1615var compilation = CreateCompilation(source); 1693var compilation = CreateCompilation(source); 1772var compilation = CreateCompilation(source); 1845var compilation = CreateCompilation(source); 1911var compilation = CreateCompilation(source); 1967var compilation = CreateCompilation(source); 2043var compilation = CreateCompilation(source); 2107var compilation = CreateCompilation(source); 2171var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular8); 2276var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion())); 2375var compilation = CreateCompilation(source); 2477var compilation = CreateCompilation(source);
IOperation\IOperationTests_IUnaryOperatorExpression.cs (3)
3623var compilation = CreateCompilationWithIndexAndRange(@" 3646var compilation = CreateCompilationWithIndexAndRange(@" 3669var compilation = CreateCompilationWithIndexAndRange(@"
IOperation\IOperationTests_IUsingStatement.cs (11)
1758var compilation = CreateCompilationWithIL(source, ilSource); 1950var compilation = CreateCompilationWithIL(source, ilSource); 2084var compilation = CreateCompilationWithIL(source, ilSource); 2218var compilation = CreateCompilationWithIL(source, ilSource); 2353var compilation = CreateCompilationWithIL(source, ilSource); 4149var compilation = CreateCompilationWithMscorlib461(source); 4398var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }); 6136var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }); 6357var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }); 8544var comp = CreateCompilation(@" 8730var comp = CreateCompilation(@"
IOperation\IOperationTests_IVariableDeclaration.cs (7)
610var compilation = CreateEmptyCompilation(source); 632var compilation = CreateEmptyCompilation(source); 653var compilation = CreateEmptyCompilation(source); 674var compilation = CreateEmptyCompilation(source); 848var compilation = CreateEmptyCompilation(source); 870var compilation = CreateEmptyCompilation(source); 923var comp = CreateCompilation(tree);
IOperation\IOperationTests_TryCatch.cs (31)
976var compilation = CreateCompilation(source); 1026var compilation = CreateCompilation(source); 1091var compilation = CreateCompilation(source); 1331var compilation = CreateCompilation(source); 1424var compilation = CreateCompilation(source); 1482var compilation = CreateCompilation(source); 1562var compilation = CreateCompilation(source); 1677var compilation = CreateCompilation(source); 1743var compilation = CreateCompilation(source); 1840var compilation = CreateCompilation(source); 1929var compilation = CreateCompilation(source); 2020var compilation = CreateCompilation(source); 2103var compilation = CreateCompilation(source); 2194var compilation = CreateCompilation(source); 2275var compilation = CreateCompilation(source); 2340var compilation = CreateCompilation(source); 2399var compilation = CreateCompilation(source); 2490var compilation = CreateCompilation(source); 2568var compilation = CreateCompilation(source); 2630var compilation = CreateCompilation(source); 2690var compilation = CreateCompilation(source); 2744var compilation = CreateCompilation(source); 2801var compilation = CreateCompilation(source); 2876var compilation = CreateCompilation(source); 2953var compilation = CreateCompilation(source); 3145var compilation = CreateCompilation(source); 3225var compilation = CreateCompilation(source); 3301var compilation = CreateCompilation(source); 3373var compilation = CreateCompilation(source); 3421var compilation = CreateCompilation(source); 8057var comp = CreateCompilation(source);
Microsoft.CodeAnalysis.CSharp.Scripting (4)
CSharpScriptCompiler.cs (4)
35CSharpCompilation previousSubmission = null; 38previousSubmission = (CSharpCompilation)script.Previous.GetCompilation(); 52var compilation = CSharpCompilation.CreateScriptCompilation(
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (4)
InteractiveSessionReferencesTests.cs (4)
526var portableLib = CSharpCompilation.Create( 1114var lib = CSharpCompilation.Create(
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (9522)
Semantics\AccessCheckTests.cs (40)
24CSharpCompilation c = CreateCompilation(@" 141CSharpCompilation c = CreateCompilation(@" 230CSharpCompilation c = CreateCompilation(@" 349CSharpCompilation c = CreateCompilation(@" 393CSharpCompilation c = CreateCompilation(@" 414CSharpCompilation c = CreateCompilation(@" 440CSharpCompilation c = CreateCompilation(@" 475CSharpCompilation c = CreateCompilation(@" 557CSharpCompilation c = CreateCompilation(@" 578CSharpCompilation c = CreateCompilation(@" 604CSharpCompilation other = CreateCompilation(@" 619CSharpCompilation c = CreateCompilation(@" 654CSharpCompilation other = CreateCompilation(@" 669CSharpCompilation c = CreateCompilation(@" 739IAssemblySymbol mscorlibAssem = ((CSharpCompilation)c).GetReferencedAssemblySymbol(c.ExternalReferences[0]).GetPublicSymbol(); 900IAssemblySymbol mscorlibAssem = ((CSharpCompilation)c1).GetReferencedAssemblySymbol(c1.ExternalReferences[0]).GetPublicSymbol(); 955var c = CreateCompilation(source, new[] { r1 }); 981CSharpCompilation other = CreateCompilation(@" 987CSharpCompilation c = CreateCompilation(@" 1001CSharpCompilation other = CreateCompilation(@" 1007CSharpCompilation c = CreateCompilation(@" 1030CSharpCompilation c = CreateCompilation(@" 1045var assembly1Compilation = CreateCSharpCompilation("Assembly1", 1054var assembly2Compilation = CreateCSharpCompilation("Assembly2", 1085var compilation1 = CreateCompilation(source1, assemblyName: "A"); 1111var compilation2 = CreateCompilation(source2, assemblyName: "B", references: new[] { reference1 }); 1133var compilation3 = CreateCompilation(source3, assemblyName: "C", references: new[] { reference1, reference2 }); 1158var compilation1 = CreateCompilation(source1, assemblyName: "A"); 1169var compilation2 = CreateCompilation(source2, assemblyName: "B", references: new[] { reference1 }); 1182var compilation3 = CreateCompilation(source3, assemblyName: "C", references: new[] { reference1, reference2 }); 1196var compilationA = CreateCompilation(sourceA, assemblyName: "A"); 1208var compilationB = CreateCompilation(sourceB, assemblyName: "B", references: new[] { referenceA }); 1221var compilationC = CreateCompilation(sourceC, assemblyName: "C", references: new[] { referenceA, referenceB }); 1238var compilationA = CreateCompilation(sourceA, assemblyName: "A"); 1249var compilationB = CreateCompilation(sourceB, assemblyName: "B", references: new[] { referenceA }); 1262var compilationC = CreateCompilation(sourceC, assemblyName: "C", references: new[] { referenceA, referenceB }); 1445var comp = CreateCompilation(sourceA); 1478var comp = CreateCompilation(sourceA); 1511var comp = CreateCompilation(@" 1521var comp2 = CreateCompilation("class B {}");
Semantics\AccessibilityTests.cs (2)
33CSharpCompilation c = CreateEmptyCompilation(new[] { t }); 67Symbol symbol = CSharpCompilation.Create(
Semantics\AmbiguousOverrideTests.cs (16)
130var comp1 = CreateCompilation(text1); 134var comp2 = CreateCompilation(text2, references: ref1, assemblyName: "Test2"); 138var comp = CreateCompilation(text3, ref2, assemblyName: "Test3"); 200var comp = CreateCompilation(source); 262CSharpCompilation comp = CreateCompilation(source); 303CSharpCompilation comp = CreateCompilation(source); 514var compilation = CreateCompilationWithILAndMscorlib40(csharp, il); 568var compilation = CreateCompilationWithILAndMscorlib40(csharp, il); 634var compilation = CreateCompilationWithILAndMscorlib40(csharp, il); 701var compilation = CreateCompilationWithILAndMscorlib40(csharp, il); 768var compilation = CreateCompilationWithILAndMscorlib40(csharp, il); 841var compilation = CreateCompilationWithILAndMscorlib40(csharp, il); 926var compilation = CreateCompilationWithILAndMscorlib40(csharp, il); 1007var compilation = CreateCompilationWithILAndMscorlib40(csharp, il); 1383var comp = CreateCompilation(text).VerifyDiagnostics( 1400var comp = CreateCompilation(text).VerifyDiagnostics(
Semantics\AnonymousFunctionTests.cs (7)
20public static CSharpCompilation VerifyInPreview(string source, params DiagnosticDescription[] expected) 977var compilation = CreateCompilation(source); 1011var compilation = CreateCompilation(source); 1318var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1357var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1377var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 1398var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9);
Semantics\ArglistTests.cs (25)
136var comp = CreateCompilationWithMscorlib40AndSystemCore(text); 224var comp = CreateCompilation(text); 258var comp = CreateCompilation(text); 295var comp = CreateCompilation(text); 377var comp = CreateCompilation(text); 539var comp = CreateCompilation(text); 825var comp = CreateCompilation(text); 957var comp = CreateCompilation(tree); 982var comp = CreateCompilation(text); 1041var comp = CreateCompilationWithILAndMscorlib40(csharp, il); 1068var comp = CreateCompilation(text); 1100var comp = CreateCompilation(text); 1120var comp = CreateCompilation(text); 1140var comp = CreateCompilation(text); 1160var comp = CreateCompilation(text); 1180var comp = CreateCompilation(text); 1198var comp = CreateCompilation(text); 1216var comp = CreateCompilation(text); 1234var comp = CreateCompilation(text); 1252var comp = CreateCompilation(text); 1278var comp = CreateCompilation(text); 1304var comp = CreateCompilation(text); 1330var comp = CreateCompilation(text); 1370var comp = CreateCompilation(text); 1511var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource);
Semantics\AwaitExpressionTests.cs (8)
80var csCompilation = CreateCompilation(text, targetFramework: TargetFramework.NetCoreApp); 152private AwaitExpressionInfo GetAwaitExpressionInfo(string text, out CSharpCompilation compilation, params DiagnosticDescription[] diagnostics) 155var comp = CreateCompilationWithMscorlib461(new SyntaxTree[] { tree }, new MetadataReference[] { SystemRef }); 165CSharpCompilation temp; 214var comp = CreateCompilationWithMscorlib461(text, options: TestOptions.ReleaseDll); 242var comp = CreateCompilationWithMscorlib461(text, options: TestOptions.ReleaseDll); 263CSharpCompilation compilation; 291var comp = CreateCompilation(source);
Semantics\BetterCandidates.cs (29)
26private CSharpCompilation CreateCompilationWithoutBetterCandidates(string source, CSharpCompilationOptions options = null, MetadataReference[] references = null) 30private CSharpCompilation CreateCompilationWithBetterCandidates(string source, CSharpCompilationOptions options = null, MetadataReference[] references = null) 58var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics(); 85var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics(); 116var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics(); 150var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics(); 183var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics(); 230var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics(); 275var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 313var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 362var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 413var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 454var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 482var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 511var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 541var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 692var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 726var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 760var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 791var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 822var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 863var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics(); 892var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 921var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 950var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe.WithAllowUnsafe(true)).VerifyDiagnostics( 1069var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 1158var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 1206var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics( 1259var compilation = CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseExe).VerifyDiagnostics(
Semantics\BindingAsyncTasklikeMoreTests.cs (30)
106var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe); 233var compilation = CreateCompilationWithMscorlib461(source); 322var compilation = CreateCompilationWithMscorlib461(source); 379var compilation = CreateCompilationWithMscorlib461(source); 431var compilation = CreateCompilationWithMscorlib461(source); 512var compilation = CreateCompilationWithMscorlib461(source); 591var compilation = CreateCompilationWithMscorlib461(source); 649var compilation = CreateCompilationWithMscorlib461(source, references: new MetadataReference[] { CSharpRef, SystemCoreRef }); 700var compilation = CreateCompilationWithMscorlib461(source); 740var compilation = CreateCompilationWithMscorlib461(source); 780var compilation = CreateCompilationWithMscorlib461(source); 808var compilation = CreateCompilationWithMscorlib461(source); 838var compilation = CreateCompilationWithMscorlib461(source); 916var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll); 1005var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll); 1090var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll); 1117var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.UnsafeDebugExe); 1167var compilation0 = CreateCompilationWithMscorlib461(source0); 1182var compilation = CreateCompilationWithMscorlib461(source, references: new[] { ref0 }); 1259var compilation0 = CreateEmptyCompilation(source0, references: new[] { MscorlibRef_v20 }); 1275var compilation = CreateEmptyCompilation(source, references: new[] { MscorlibRef_v20, ref0 }); 1330var compilation0 = CreateCompilationWithMscorlib461(source0); 1345var compilation = CreateCompilationWithMscorlib461(source, references: new[] { ref0 }); 1404var compilation0 = CreateCompilationWithMscorlib461(source0); 1419var compilation = CreateCompilationWithMscorlib461(source, references: new[] { ref0 }); 1478var compilation0 = CreateCompilationWithMscorlib461(source0); 1493var compilation = CreateCompilationWithMscorlib461(source, references: new[] { ref0 }); 1549var compilation = CreateCompilation(source); 1588var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 1625var compilation = CreateCompilation(source, parseOptions: useCSharp9 ? TestOptions.Regular9 : TestOptions.Regular10, targetFramework: TargetFramework.Net70);
Semantics\BindingAsyncTasklikeTests.cs (4)
34var compilation = CreateCompilationWithMscorlib461(source).VerifyDiagnostics(); 187var compilation = CreateCompilationWithMscorlib461(source); 309var compilation = CreateCompilationWithMscorlib461(source).VerifyDiagnostics(); 446var comp = CreateCompilationWithMscorlib461(source);
Semantics\BindingAsyncTests.cs (12)
33var compilation = CreateCompilationWithMscorlib461(source).VerifyDiagnostics(); 54var compilation = CreateCompilationWithMscorlib461(new SyntaxTree[] { tree }).VerifyDiagnostics(); 83var compilation = CreateCompilationWithMscorlib461(new SyntaxTree[] { tree }).VerifyDiagnostics(); 1502var c = CreateCompilationWithMscorlib461( 3144var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script); 3161var submission = CSharpCompilation.CreateScriptCompilation( 3534var comp = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)); 3948var compilation = CreateCompilationWithMscorlib461(source, references: new[] { reference }); 4015var comp = CreateCompilation(src); 4117var comp = CreateCompilation(src); 4176var comp = CreateCompilation(src);
Semantics\BindingAwaitTests.cs (3)
1896var compilation = CreateCompilationWithMscorlib461(source).VerifyDiagnostics(); 2762var comp = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, TestOptions.ReleaseExe); 2834var comp = CreateCompilationWithMscorlib461(source, new[] { Net40.References.SystemCore, Net40.References.MicrosoftCSharp }, TestOptions.ReleaseExe);
Semantics\BindingTests.cs (73)
763var baseAssembly = CreateCompilation( 771var derivedAssembly = CreateCompilation( 780var testAssembly = CreateCompilation( 802var baseAssembly = CreateCompilation( 810var derivedAssembly = CreateCompilation( 819var testAssembly = CreateCompilation( 841var baseAssembly = CreateCompilation( 849var derivedAssembly = CreateCompilation( 858var testAssembly = CreateCompilation( 893var testAssembly = CreateCompilation(scenarioCode); 918var testAssembly = CreateCompilation(scenarioCode); 944var testAssembly = CreateCompilation(scenarioCode); 976var testAssembly = CreateCompilation(scenarioCode); 1008var testAssembly = CreateCompilation(scenarioCode); 1038var testAssembly = CreateCompilation(scenarioCode); 1066var testAssembly = CreateCompilation(scenarioCode); 1097var testAssembly = CreateCompilation(scenarioCode); 1125var testAssembly = CreateCompilation(scenarioCode); 1153var testAssembly = CreateCompilation(scenarioCode); 1182var testAssembly = CreateCompilation(scenarioCode); 1220var testAssembly = CreateCompilation(scenarioCode); 1261var testAssembly = CreateCompilation(scenarioCode); 1311var testAssembly = CreateCompilation(scenarioCode); 1356var testAssembly = CreateCompilation(scenarioCode); 1399var testAssembly = CreateCompilation(scenarioCode); 1441var testAssembly = CreateCompilation(scenarioCode); 1455var testAssembly = CreateCompilation( 1487var testAssembly = CreateCompilation( 1513var testAssembly = CreateCompilation( 1546var testAssembly = CreateCompilation( 1587CSharpCompilation comp1 = CreateCompilationWithMscorlib461(source1, assemblyName: "Pia948674_1"); 1595CSharpCompilation comp2 = CreateCompilationWithMscorlib461(source2, new MetadataReference[] { new CSharpCompilationReference(comp1, embedInteropTypes: true) }, assemblyName: "Bar948674_1"); 1606CSharpCompilation comp3 = CreateCompilationWithMscorlib461(source3, new MetadataReference[] { new CSharpCompilationReference(comp2), new CSharpCompilationReference(comp1, embedInteropTypes: true) }); 1640CSharpCompilation comp1 = CreateCompilationWithMscorlib461(source1, assemblyName: "Pia948674_2"); 1648CSharpCompilation comp2 = CreateCompilationWithMscorlib461(source2, new MetadataReference[] { new CSharpCompilationReference(comp1, embedInteropTypes: true) }, assemblyName: "Bar948674_2"); 1659CSharpCompilation comp3 = CreateCompilationWithMscorlib461(source3, new MetadataReference[] { new CSharpCompilationReference(comp2), new CSharpCompilationReference(comp1, embedInteropTypes: true) }); 1696CSharpCompilation comp1 = CreateCompilationWithMscorlib461(source1, assemblyName: "Pia948674_3"); 1704CSharpCompilation comp2 = CreateCompilationWithMscorlib461(source2, new MetadataReference[] { new CSharpCompilationReference(comp1, embedInteropTypes: true) }, assemblyName: "Bar948674_3"); 1713CSharpCompilation comp3 = CreateCompilationWithMscorlib461(source3, new MetadataReference[] { new CSharpCompilationReference(comp2), new CSharpCompilationReference(comp1, embedInteropTypes: true) }); 1744CSharpCompilation comp1 = CreateCompilationWithMscorlib461(source1, assemblyName: "Pia948674_4"); 1752CSharpCompilation comp2 = CreateCompilationWithMscorlib461(source2, new MetadataReference[] { new CSharpCompilationReference(comp1, embedInteropTypes: true) }, assemblyName: "Bar948674_4"); 1761CSharpCompilation comp3 = CreateCompilationWithMscorlib461(source3, new MetadataReference[] { new CSharpCompilationReference(comp2), new CSharpCompilationReference(comp1, embedInteropTypes: true) }); 2064var compilation = CreateCompilation(sourceCode); 2361var comp = CreateCompilation(source); 2380var comp = CreateCompilation(source); 2596var comp = CreateCompilation(source); 2627var comp = CreateCompilation(source); 2656var comp = CreateCompilation(source); 2715var compilation = CreateCompilation(sourceText, options: TestOptions.DebugDll); 2771var compilation = CreateCompilation(sourceText, options: TestOptions.DebugDll); 2826var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceText, options: TestOptions.DebugDll); 2875var compilation = CreateCompilationWithMscorlib40(sourceText, new[] { Net40.References.SystemCore }, options: TestOptions.DebugDll); 2907var comp = CreateCompilation(source); 2952var comp = CreateCompilation(source); 3026var comp = CreateCompilationWithMscorlib40(source, new[] { Net40.References.SystemCore }); 3106var comp = CreateCompilationWithMscorlib40(source, new[] { Net40.References.SystemCore }); 3179var comp = CreateCompilation(source); 3264var comp = CreateCompilationWithMscorlib40(source, new[] { Net40.References.SystemCore }); 3363var comp = CreateCompilationWithMscorlib461(source); 3425var comp = CreateCompilationWithMscorlib461(source); 3457var comp = CreateCompilationWithMscorlib461(source); 3490var comp = CreateCompilationWithMscorlib461(source); 3525var comp = CreateCompilationWithMscorlib461(source); 3557var comp = CreateCompilationWithMscorlib461(source); 3589var comp = CreateCompilationWithMscorlib461(source); 3619var comp = CreateCompilationWithMscorlib461(source); 3715var comp = CreateCompilation(source); 3794var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3904var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 3920var compilation = CreateCompilation(@" 3948var compilation = CreateCompilation(@" 3981var comp = CreateCompilation(source); 4021var comp = CreateCompilation(source);
Semantics\ColorColorTests.cs (31)
165var comp = CreateCompilation(text); 589var comp = CreateCompilation(tree); 629var comp = CreateCompilation(tree); 725var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { tree }); 1059var comp = CreateCompilation(tree); 1105var comp = CreateCompilation(tree); 1151var comp = CreateCompilation(tree); 1196var comp = CreateCompilation(tree); 1237var comp = CreateCompilation(tree); 1274var comp = CreateCompilation(tree); 1521var comp = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.DebugExe); 1580var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, assemblyName: System.Guid.NewGuid().ToString()); 1621var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, assemblyName: System.Guid.NewGuid().ToString()); 1659var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, assemblyName: System.Guid.NewGuid().ToString()); 1700var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, assemblyName: System.Guid.NewGuid().ToString()); 1738var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 1809var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseDll); 1839var comp = CreateCompilationWithMscorlib40(new[] { tree }, new[] { Net40.References.SystemCore }); 1878var compilation = CreateCompilation(source); 1935var compilation = CreateCompilation(source); 1992var compilation = CreateCompilation(source); 2042var compilation = CreateCompilation(source); 2082var refLib = CreateEmptyCompilation( 2100var main = CreateEmptyCompilation( 2127var refLib = CreateEmptyCompilation( 2145var main = CreateEmptyCompilation(sourceMain, assemblyName: "Main", 2179var compilation = CreateCompilation(source, assemblyName: "Main"); 2210var compilation = CreateCompilation(source); 2271var compilation = CreateCompilation(source); 2305var compilation = CreateCompilation(source); 2366var compilation = CreateCompilationWithIL(genericTreeDefinitionSource, implementingTreeWithModoptObjectILSource);
Semantics\ConditionalOperatorTests.cs (7)
1174var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 1285var comp = CreateCompilation(tree); 1336var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1391var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 1438var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 1500var compilation = CreateCompilation(source, options: TestOptions.DebugExe, 1536var comp = CreateCompilation(source);
Semantics\ConstantTests.cs (43)
185var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1582var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 1998var comp = CreateCompilation(source); 2024var comp = CreateCompilation(source); 2065var comp = CreateCompilation(source); 2139var comp = CreateCompilation(source); 2194var comp = CreateCompilation(source); 2781var compilation = CreateCompilation(source); 2814var compilation = CreateCompilation(source); 2844var compilation1 = CreateCompilation(source1); 2845var compilation2 = CreateCompilation(source2, new MetadataReference[] { new CSharpCompilationReference(compilation1) }); 2885var compilation1 = CreateCompilation(source1); 2887var compilation2 = CreateCompilation(source2); 2889var compilation3 = CreateCompilation(source3, new MetadataReference[] { reference1 }); 2891var compilation4 = CreateCompilation(source4, new MetadataReference[] { reference2, reference3 }); 2924var comp = CreateCompilation(tree); 2941var compilation = CreateCompilation(tree); 2972var compilation = CreateCompilation(tree); 2998var compilation = CreateCompilation(source); 3030var compilation = CreateCompilation(source); 3085var compilation = CreateCompilation(source); 3117var compilation = CreateCompilation(source); 3175var compilation = CreateCompilation(source); 3210var compilation = CreateCompilation(source); 3457var comp = CreateCompilationWithMscorlib40(source, references: new[] { LinqAssemblyRef }); 3479var comp = CreateCompilationWithMscorlib40(source, references: new[] { LinqAssemblyRef }); 3516var comp = CreateCompilation(source.ToString(), options: TestOptions.ReleaseExe); 3626var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3667var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3688var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3724var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3806var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3834var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3903var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 4070var comp = CreateCompilation(source); 4091var comp = CreateCompilation(source); 4112var comp = CreateCompilation(source); 4128var comp = CreateCompilation(source); 4138var comp = CreateCompilation(source); 4152var comp = CreateCompilation(source); 4165var comp = CreateCompilation(source); 4189var comp = CreateCompilation(source); 4210var comp = CreateCompilation(source);
Semantics\DeconstructionTests.cs (91)
799var comp = CreateCompilation(source, options: TestOptions.DebugExe); 857var comp = CreateCompilation(source); 1284var comp = CreateCompilation(source, assemblyName: "comp", options: TestOptions.DebugExe); 1486var comp = CreateCompilation(source); 1603var libMissingComp = CreateCompilation(new string[] { libMissingSource }, assemblyName: "libMissingComp").VerifyDiagnostics(); 1606var libComp = CreateCompilation(new string[] { libSource }, references: new[] { libMissingRef }, parseOptions: TestOptions.Regular).VerifyDiagnostics(); 1609var comp = CreateCompilation(new string[] { source }, references: new[] { libRef }); 1917var comp = CreateCompilationWithMscorlib40(source); 1944var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2223var comp = CreateCompilation(source, parseOptions: TestOptions.Regular6); 3155var comp = CreateCompilation(source); 3552var comp = CreateCompilation(source); 3574var comp = CreateCompilation(source); 3597var comp = CreateCompilation(source); 3704var comp = CreateCompilation(source); 3741var comp = CreateCompilation(source); 3762var compilation = sourceModule.DeclaringCompilation; 3791var comp = CreateCompilation(source); 3816var comp = CreateCompilationWithMscorlib40(source); 3844var comp = CreateCompilation(source); 3865var comp = CreateCompilation(source); 3883var comp = CreateCompilation(source); 3905var comp = CreateCompilation(source); 3938var comp = CreateCompilation(source); 4033var comp = CreateCompilation(source); 4087var comp = CreateCompilationWithMscorlib40AndSystemCore(source, 4145var comp = CreateCompilation(source); 4197var comp1 = CreateCompilation(source1); 4228var comp2 = CreateCompilation(source2); 4233private static void StandAlone_01_VerifySemanticModel(CSharpCompilation comp, LocalDeclarationKind localDeclarationKind) 4332var comp1 = CreateCompilation(source1, parseOptions: TestOptions.Script); 4363var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Script); 4368private static void StandAlone_02_VerifySemanticModel(CSharpCompilation comp) 4469var comp1 = CreateCompilation(source1); 4497var comp2 = CreateCompilation(source2); 4502private static void StandAlone_03_VerifySemanticModel(CSharpCompilation comp) 4597var comp1 = CreateCompilation(source1, parseOptions: TestOptions.Script); 4619var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Script); 4639var comp1 = CreateCompilation(source1); 4655var comp2 = CreateCompilation(source2); 4660private static void StandAlone_05_VerifySemanticModel(CSharpCompilation comp) 4718var comp1 = CreateCompilation(source1); 4739var comp1 = CreateCompilation(source1, parseOptions: TestOptions.Script); 4749var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Script); 4754private static void StandAlone_06_VerifySemanticModel(CSharpCompilation comp) 4811var comp1 = CreateCompilation(source1); 4827var comp2 = CreateCompilation(source2); 4832private static void StandAlone_07_VerifySemanticModel(CSharpCompilation comp) 4886var comp1 = CreateCompilation(source1, parseOptions: TestOptions.Script); 4896var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Script); 4916var comp1 = CreateCompilation(source1); 4932var comp2 = CreateCompilation(source2); 4937private static void StandAlone_09_VerifySemanticModel(CSharpCompilation comp) 4968var comp1 = CreateCompilation(source1, parseOptions: TestOptions.Script); 4978var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Script); 4983private static void StandAlone_10_VerifySemanticModel(CSharpCompilation comp) 5020var comp1 = CreateCompilation(source1); 5036var comp2 = CreateCompilation(source2); 5041private static void StandAlone_11_VerifySemanticModel(CSharpCompilation comp) 5075var comp1 = CreateCompilation(source1, parseOptions: TestOptions.Script); 5085var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Script); 5104var comp1 = CreateCompilation(source1); 5146var comp1 = CreateCompilation(source1); 5177var comp2 = CreateCompilation(source2); 5182private static void StandAlone_14_VerifySemanticModel(CSharpCompilation comp, LocalDeclarationKind localDeclarationKind) 5290var comp1 = CreateCompilation(source1, parseOptions: TestOptions.Script); 5321var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Script); 5326private static void StandAlone_15_VerifySemanticModel(CSharpCompilation comp) 5440var comp1 = CreateCompilation(source1); 5468var comp2 = CreateCompilation(source2); 5473private static void StandAlone_16_VerifySemanticModel(CSharpCompilation comp) 5577var comp1 = CreateCompilation(source1, parseOptions: TestOptions.Script); 5599var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Script); 5617var comp1 = CreateCompilation(source1); 5645var comp2 = CreateCompilation(source2); 5650private static void StandAlone_18_VerifySemanticModel(CSharpCompilation comp, LocalDeclarationKind localDeclarationKind) 5727var comp1 = CreateCompilation(source1, parseOptions: TestOptions.Script); 5755var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Script); 5760private static void StandAlone_19_VerifySemanticModel(CSharpCompilation comp) 5843var comp1 = CreateCompilation(source1); 5868var comp2 = CreateCompilation(source2); 5873private static void StandAlone_20_VerifySemanticModel(CSharpCompilation comp) 5943var comp1 = CreateCompilation(source1, parseOptions: TestOptions.Script); 5962var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Script); 5977var comp = CreateCompilation(source); 6017var comp = CreateCompilation(source); 6060var comp = CreateCompilation(source); 6100var comp = CreateCompilation(source); 6142var comp = CreateCompilation(source); 6479var comp = CreateCompilationWithIndex(source); 6549var comp = CreateCompilation(code);
Semantics\DelegateTypeTests.cs (307)
85var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 125var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 175var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 217var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 268var comp = CreateCompilation(source); 308var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 352var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 393var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 426var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 460var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 535var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 585var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 624var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 671var comp = CreateCompilation(source); 737var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 783var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 880var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 923var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 981var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 1021var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 1068var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 1199var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 1241var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 1320var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 1366var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 1409var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 1450var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 1542var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseExe); 1622var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.Regular13, options: TestOptions.ReleaseExe); 1673var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 1723var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 1773var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 1823var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 1873var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 1923var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 1974var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2019var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2068var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2122var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2187var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2250var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2307var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2346var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2389var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2429var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2479var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2527var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2575var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2624var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2677var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2711var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2769var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2798var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 2824var comp = CreateCompilation(source); 2852var comp = CreateCompilation(source); 2880var comp = CreateCompilation(source); 2911var comp = CreateCompilation(source); 2939var comp = CreateCompilation(source); 2971var comp = CreateCompilation(source); 3006var comp = CreateCompilation(source); 3037var comp = CreateCompilation(source); 3072var comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 3211var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3242var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3294var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3340var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3466var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3517var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3550var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 3598var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 3646var comp = CreateCompilation(source, parseOptions: TestOptions.Regular12); 3680var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3706var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3738var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3855var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 3882var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe); 3917var comp = CreateCompilation(new[] { sourceB, s_utils }, new[] { refA }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 3951var comp = CreateCompilation(new[] { sourceB, s_utils }, new[] { refA }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 3983var comp = CreateCompilation(new[] { source, UnmanagedCallersOnlyAttributeDefinition }, parseOptions: TestOptions.RegularPreview); 4017var comp = CreateCompilation(new[] { source, UnmanagedCallersOnlyAttributeDefinition }, parseOptions: TestOptions.RegularPreview); 4077var comp = CreateEmptyCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.RegularPreview); 4178var comp = CreateEmptyCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.RegularPreview); 4252var comp = CreateEmptyCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.RegularPreview); 4343var comp = CreateEmptyCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.RegularPreview); 4428var comp = CreateEmptyCompilation(sourceB, new[] { refA }); 4450var comp = CreateEmptyCompilation(sourceB, new[] { refA }); 4497var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }); 4549var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }); 4587var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 4623var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.UnsafeReleaseExe); 4659var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 4692var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 4860var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4915var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4947var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5071var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5296var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5323var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5355var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5389var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5424var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5693var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5789var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5828var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5864var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5898var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5930var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5965var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6003var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6037var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6066var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6167var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 6279var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6303var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7508var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7541var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7585var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7611var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7642var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7680var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7724var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7762var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7789var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7833var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7916var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7945var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7983var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8023var comp = CreateCompilation(new[] { source, s_utils }, options: TestOptions.ReleaseExe); 8046var comp = CreateCompilation(new[] { source, s_utils }, options: TestOptions.ReleaseExe); 8122var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 8150var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 8178var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 8209var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8316var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8349var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8387var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8429var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8515var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8538var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8616var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8652var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8718var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8754var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8785var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8812var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8858var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8889var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8919var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8948var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 8977var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9007var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9051var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9085var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9113var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9152var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9199var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9234var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9270var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9322var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9365var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9428var comp = CreateCompilation(source); 9463var comp = CreateCompilation(source); 9513var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9584var comp = CreateCompilation(source); 9631var comp = CreateCompilation(source); 9684var comp = CreateCompilation(source); 9727var comp = CreateCompilation(source); 9789var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9892var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 9946var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10128var comp = CreateCompilation(source); 10152var comp = CreateCompilation(source); 10178var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 10251var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9.WithKind(SourceCodeKind.Script)); 10280var comp = CreateCompilation(source); 10315var comp = CreateCompilation(source); 10341var comp = CreateCompilation(source); 10372var comp = CreateCompilation(source); 10414var comp = CreateCompilation(source); 10433var comp = CreateCompilation(source); 10466var comp = CreateCompilation(source); 10489var comp = CreateCompilation(source); 10513var comp = CreateCompilation(source); 10536var comp = CreateCompilation(source); 10577var comp = CreateCompilation(source); 10617var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10638var comp = CreateEmptyCompilation(source, new[] { GetCorlibWithInvalidActionAndFuncOfT() }); 10664var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10699var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10741var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10777var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10816var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10875var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10947var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 10970var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 11008var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11139var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11193var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11267var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11333var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseExe); 11384var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11410var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11475var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11554var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseExe); 11613var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11650var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 11685var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11718var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11757var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 11798var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 11839var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 11895var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11928var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11959var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 11998var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 12029var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseExe); 12070var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseExe); 12106var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 12237var comp = CreateCompilationWithSpan(source, options: TestOptions.ReleaseExe); 12260var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 13563var comp1a = CreateCompilation(source1a, assemblyName: "Lib1").VerifyDiagnostics(); 13572var comp2 = CreateCompilation(source2, [comp1aRef]).VerifyDiagnostics(); 13598var comp1b = CreateCompilation(source1b, assemblyName: "Lib1").VerifyDiagnostics(); 13680var comp1a = CreateCompilation(source1a, assemblyName: "Lib1").VerifyDiagnostics(); 13690var comp2 = CreateCompilation(source2, [comp1aRef]).VerifyDiagnostics(); 13699var comp1b = CreateCompilation(source1b, assemblyName: "Lib1").VerifyDiagnostics(); 13813var comp1a = CreateCompilation(source1a, assemblyName: "Lib1").VerifyDiagnostics(); 13823var comp2 = CreateCompilation(source2, [comp1aRef]).VerifyDiagnostics(); 13832var comp1b = CreateCompilation(source1b, assemblyName: "Lib1").VerifyDiagnostics(); 13929var comp1a = CreateCompilation(source1a, assemblyName: "Lib1").VerifyDiagnostics(); 13938var comp2 = CreateCompilation(source2, [comp1aRef]).VerifyDiagnostics(); 13974var comp1b = CreateCompilation(source1b, assemblyName: "Lib1").VerifyDiagnostics(); 14029var comp = CreateCompilationWithIL(source, ilSource).VerifyDiagnostics(); 14071var comp = CreateCompilationWithIL(source, ilSource).VerifyDiagnostics(); 14226var comp = CreateCompilation(UnscopedRefAttributeDefinition, targetFramework: TargetFramework.Net60, assemblyName: attributeAssemblyName); 14301var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net70); 14339var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 14349var expectedBaseType = ((CSharpCompilation)model.Compilation).GetSpecialType(SpecialType.System_MulticastDelegate); 14436var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 14467var comp = CreateCompilation(source); 14508var comp = CreateCompilation(source); 14577var comp = CreateCompilation(source); 14641var comp = CreateCompilation(source); 14695var comp = CreateCompilation(source); 14740var comp = CreateCompilation(source); 14820var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14868var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14938var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15027var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15087var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15164var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15252var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15317var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15361var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15414var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 15449var comp = CreateCompilation(source); 15479var comp = CreateCompilation(source); 15509var comp = CreateCompilation(source); 15532var comp = CreateCompilation(source); 15556var comp = CreateCompilation(source); 17366var comp1 = CreateCompilation(source1); 17372var comp2 = CreateCompilation(source2, new[] { ref1 }); 17389var comp1 = CreateCompilation(source1); 17395var comp2 = CreateCompilation(source2, new[] { ref1 }); 18482var comp = CreateCompilation(source); 18505var comp = CreateCompilation(source); 18523var comp = CreateCompilation(source); 18541var comp = CreateCompilation(source); 18565var comp = CreateCompilation(source); 18585var comp = CreateCompilation(source); 18602var comp = CreateCompilation(source); 18623var comp = CreateCompilation(source); 18639var comp = CreateCompilation(source); 18659var comp = CreateCompilation(source); 18677var comp = CreateCompilation(source); 18704var comp = CreateCompilation(source); 18730var comp = CreateCompilation(source); 18750var comp = CreateCompilation(source); 18775var comp = CreateCompilation(source); 18791var comp1 = CreateCompilation(source1).VerifyDiagnostics(); 18796var comp2 = CreateCompilation(source2, new[] { comp1.ToMetadataReference() }); 18817var comp1 = CreateCompilation(source1).VerifyDiagnostics(); 18822var comp2 = CreateCompilation(source2, new[] { comp1.ToMetadataReference() }); 18836var comp = CreateCompilation(source); 18854var comp = CreateCompilation(source); 18878var comp = CreateCompilation(source); 18895var comp1 = CreateCompilation(source1).VerifyDiagnostics(); 18908var comp2 = CreateCompilation(source2, new[] { comp1.ToMetadataReference() }); 18938var comp = CreateCompilation(source); 18959var comp = CreateCompilation(source); 18985var comp = CreateCompilation(source); 19008var comp = CreateCompilation(source); 19028var comp1 = CreateCompilation(source1).VerifyDiagnostics(); 19033var comp2 = CreateCompilation(source2, new[] { comp1.ToMetadataReference() }); 19058var comp1 = CreateCompilation(source1).VerifyDiagnostics(); 19063var comp2 = CreateCompilation(source2, new[] { comp1.ToMetadataReference() }); 19084var comp1 = CreateCompilation(source1).VerifyDiagnostics(); 19101var comp2 = CreateCompilation(source2, new[] { comp1.ToMetadataReference() }); 19119var comp = CreateCompilation(source); 19133var comp = CreateCompilation(source); 19151var comp = CreateCompilation(source); 19168var comp1 = CreateCompilation(source1).VerifyDiagnostics(); 19173var comp2 = CreateCompilation(source2, new[] { comp1.ToMetadataReference() }); 19190var comp = CreateCompilation(source); 19207var comp = CreateCompilation(source); 19750var comp = CreateCompilation(source); 19789var comp = CreateCompilation(source);
Semantics\DynamicTests.cs (173)
68var c = CreateCompilation("", new[] { CSharpRef }); 831var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll); 1278var comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 1782var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 1819var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 2152var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeReleaseDll); 2181var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 2842var comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 3452var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 3477var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 3494var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 3511var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 3531var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 3552var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 3570var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 3587var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 3669var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 3688var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 3711var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 3747var comp = CreateCompilation(source); 4044var compilation2 = CreateCompilation(source2, new[] { reference.WithEmbedInteropTypes(true), CSharpRef }, options: TestOptions.ReleaseExe); 4067var compilation = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugDll); 4094var compilation = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugDll); 4153var comp = CreateCompilationWithILAndMscorlib40("", il, references: new[] { SystemCoreRef }, appendDefaultHeader: false); 4271var compilation1 = CreateCompilation(consumer1, options: TestOptions.ReleaseExe, 4294var compilation2 = CreateCompilation(consumer2, options: TestOptions.ReleaseExe, 4395var compilation1 = CreateCompilation(consumer1, options: TestOptions.ReleaseExe, 4411var compilation2 = CreateCompilation(consumer2, options: TestOptions.ReleaseExe, 4437var comp = CreateCompilationWithMscorlib461AndCSharp(source, parseOptions: TestOptions.Regular7_2); 4462var comp = CreateCompilationWithMscorlib461AndCSharp(source, parseOptions: TestOptions.Regular7_2); 4492var comp1 = CreateCompilationWithMscorlib461AndCSharp(source1, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4528var comp2 = CreateCompilationWithMscorlib461AndCSharp(source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4564var comp = CreateCompilationWithMscorlib461AndCSharp(source, parseOptions: TestOptions.Regular7_2); 4593var comp = CreateCompilationWithMscorlib461AndCSharp(source, parseOptions: TestOptions.Regular7_2); 4638var compilation = CreateCompilationWithMscorlib461AndCSharp(source); 4676var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 4973var comp1 = CreateCompilation(source1, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 5025var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: parseOptions); 5055var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 5097var comp1 = CreateCompilation(source1, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 5149var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: parseOptions); 5178var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 5220var comp1 = CreateCompilation(source1, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 5272var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: parseOptions); 5302var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 5338var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 5379var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 5423var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithAllowUnsafe(true), targetFramework: TargetFramework.StandardAndCSharp); 5467var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 5511var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 5550var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp); 5575var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 5613var comp = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), targetFramework: TargetFramework.StandardAndCSharp); 5652var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 5688var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 5729var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 5774var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithAllowUnsafe(true), targetFramework: TargetFramework.StandardAndCSharp); 5819var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 5864var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 5905var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp); 5932var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 5971var comp = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), targetFramework: TargetFramework.StandardAndCSharp); 6019var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 6070var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: parseOptions); 6100var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 6142var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 6193var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: parseOptions); 6223var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 6262var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp); 6313var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 6343var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 6373var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 6416var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithAllowUnsafe(true), targetFramework: TargetFramework.StandardAndCSharp); 6462var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: parseOptions); 6506var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 6549var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 6603var comp = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true), targetFramework: TargetFramework.StandardAndCSharp); 6668var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 6732var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 6777var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 6841var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 6887var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 6952var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 6988var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 7056var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 7114var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 7159var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 7226var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 7272var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 7339var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 7388var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 7456var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 7501var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 7578var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 7638var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 7683var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 7744var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 7789var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 7850var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 7892var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 7964var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8025var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 8070var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8131var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 8175var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8235var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 8280var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8344var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 8389var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8453var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 8498var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8562var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 8608var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8673var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 8721var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8790var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8858var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8921var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 8980var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 9011var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9070var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 9102var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9161var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 9192var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9248var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9309var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9366var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 9398var comp3 = CreateCompilation(source3, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9430var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9487var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 9519var comp3 = CreateCompilation(source3, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9550var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9606var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 9637var comp3 = CreateCompilation(source3, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9664var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9716var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 9748var comp3 = CreateCompilation(source3, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9775var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9827var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 9859var comp3 = CreateCompilation(source3, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9886var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 9937var comp2 = CreateCompilation(source2, options: TestOptions.DebugExe); 9968var comp3 = CreateCompilation(source3, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 10006var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 10086var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 10134var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 10214var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 10262var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 10342var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 10379var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 10416var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 10495var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 10550var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 10637var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 10698var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 10786var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 10847var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 10887var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 10923var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 10968var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 11054var comp3 = CreateCompilation(source3, targetFramework: TargetFramework.StandardAndCSharp); 11097var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 11181var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 11259var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 11314var comp1 = CreateCompilation(source1, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.Regular12); 11367var comp1 = CreateCompilation(source1, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.Regular12); 11414var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.Regular12); 11447var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.Regular12); 11491var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.Regular12); 11532var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.Regular12); 11581var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.Regular12); 11633var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.Regular12); 11676var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.Regular12);
Semantics\ExpressionBodiedMemberTests.cs (28)
27var comp = CreateCompilationWithMscorlib461(@" 65var comp = CreateCompilationWithMscorlib461(@" 120var comp = CreateCompilationWithMscorlib461(new[] { tree }); 217var comp = CreateCompilationWithMscorlib461(@" 250var comp = CreateCompilationWithMscorlib461(@" 273var comp = CreateCompilationWithMscorlib461(@" 305var comp = CreateCompilationWithMscorlib461(@" 416var comp = CreateCompilationWithMscorlib461(@" 438var comp = CreateCompilation(@" 453var comp = CreateCompilation(@" 484var comp = CreateCompilation(@" 515var comp = CreateCompilation(@" 553var comp = CreateCompilation(@" 593var comp = CreateCompilation(@" 622var comp = CreateCompilation(@" 658var comp = CreateCompilation(@" 689var comp = CreateCompilation(@" 720var comp = CreateCompilation(@" 751var comp = CreateCompilation(@" 786var comp = CreateCompilation(@" 817var comp = CreateCompilation(@" 853var comp = CreateCompilation(@" 888var comp = CreateCompilation(@" 927var comp = CreateCompilation(@" 949var comp = CreateCompilation(@" 965var comp = CreateCompilation(@" 981var comp = CreateCompilation(@" 998var comp = CreateCompilation(@"
Semantics\FieldInitializerBindingTests.cs (1)
245var compilation = CreateCompilation(source);
Semantics\ForEachTests.cs (29)
1792var compilation = CreateCompilation(text); 1957var compilation = CreateEmptyCompilation(text); 1977var compilation = CreateEmptyCompilation(text); 1996var compilation = CreateEmptyCompilation(text); 2123var comp = CreateEmptyCompilation(source, [SystemRuntimePP7Ref]); 2173var comp = CreateCompilation(source); 2231var comp = CreateEmptyCompilation(text); 2283var comp = CreateEmptyCompilation(text); 2349var comp = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular7_3, skipUsesIsNullable: true); 2390var comp = CreateEmptyCompilation(text); 2452var comp = CreateEmptyCompilation(text); 2522var comp = CreateEmptyCompilation(text); 2592var comp = CreateEmptyCompilation(text); 2637var comp = CreateEmptyCompilation(text); 2702var comp = CreateEmptyCompilation(text); 2765var comp = CreateEmptyCompilation(text); 2828var comp = CreateEmptyCompilation(text); 2881var comp = CreateEmptyCompilation(source); // Lots of errors, since corlib is missing. 3070var compilation1 = CreateEmptyCompilation(source1, assemblyName: GetUniqueName()); 3084var comp = CreateEmptyCompilation(text, new[] { reference1 }); 3254var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { tree }); 3312var comp = CreateCompilation(""" 3334var comp = CreateCompilation(""" 3418var compilation = CreateCompilation(source); 3442var comp1 = CreateEmptyCompilation(source1, options: TestOptions.DebugDll, assemblyName: "MissingBaseType1"); 3470var comp2 = CreateEmptyCompilation(source2, new[] { comp1.ToMetadataReference() }, options: TestOptions.DebugDll); 3485var comp3 = CreateEmptyCompilation(source3, options: TestOptions.DebugDll, assemblyName: "MissingBaseType2"); 3498var comp4 = CreateEmptyCompilation(source4, new[] { comp2.ToMetadataReference(), comp3.ToMetadataReference() }); 3646var comp = CreateCompilationWithMscorlibAndSpan(source, options: TestOptions.ReleaseDebugExe).VerifyDiagnostics();
Semantics\ForLoopErrorTests.cs (1)
197var comp = CreateCompilation(text);
Semantics\FunctionPointerTests.cs (92)
19private static CSharpCompilation CreateCompilationWithFunctionPointers(string source, CSharpCompilationOptions? options = null, CSharpParseOptions? parseOptions = null, TargetFramework? targetFramework = null) 24private CompilationVerifier CompileAndVerifyFunctionPointers(CSharpCompilation compilation, string? expectedOutput = null) 40var comp = CreateCompilationWithFunctionPointers(src, parseOptions: TestOptions.Regular8); 57var comp = CreateCompilationWithFunctionPointers(src, parseOptions: TestOptions.Regular11); 88var comp = CreateCompilationWithFunctionPointers(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 119var comp = CreateCompilationWithFunctionPointers(src, parseOptions: TestOptions.Regular11); 141var comp = CreateCompilationWithFunctionPointers(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 160var comp = CreateCompilationWithFunctionPointers(@" 226var comp = CreateCompilationWithFunctionPointers(@" 254var comp = CreateCompilationWithFunctionPointers(@" 319var comp = CreateCompilationWithFunctionPointers($@" 374var comp = CreateCompilationWithFunctionPointers($@" 425var comp = CreateCompilationWithFunctionPointers($@" 467var comp = CreateCompilationWithFunctionPointers(@" 518var comp = CreateCompilationWithFunctionPointers(@" 572var comp = CreateCompilationWithFunctionPointers(@" 617var comp = CreateCompilationWithFunctionPointers(@" 664var comp = CreateCompilationWithFunctionPointers(@" 711var comp = CreateCompilationWithFunctionPointers(@" 762var comp = CreateCompilationWithFunctionPointers(@" 803var comp = CreateCompilationWithFunctionPointers(@" 858var comp = CreateCompilationWithFunctionPointers(@" 899private static void VerifyDeclarationConversion(CSharpCompilation comp, SemanticModel model, VariableDeclaratorSyntax decl, ConversionKind expectedConversionKind, bool expectedImplicit, string expectedOriginalType, string expectedConvertedType, string expectedOperationTree) 918var comp = CreateCompilationWithFunctionPointers(@" 962var comp = CreateCompilationWithFunctionPointers(@" 1024var comp = CreateCompilationWithFunctionPointers(@" 1080var comp = CreateCompilationWithFunctionPointers(@" 1245var comp = CreateCompilationWithFunctionPointers(@" 1320var comp = CreateCompilationWithFunctionPointers(@" 1485var comp = CreateCompilationWithFunctionPointers(@" 1542var comp = CreateCompilationWithFunctionPointers(@" 1599var comp = CreateCompilationWithFunctionPointers(@" 1638var comp = CreateCompilationWithFunctionPointers(@" 1671var comp = CreateCompilationWithFunctionPointers(@" 1704var comp = CreateCompilationWithFunctionPointers(@" 1737var comp = CreateCompilationWithFunctionPointers(@" 1759var comp = CreateCompilationWithFunctionPointers(@" 1798var comp = CreateCompilationWithFunctionPointers(@" 1831var comp = CreateCompilationWithFunctionPointers(@" 1864var comp = CreateCompilationWithFunctionPointers(@" 1897var comp = CreateCompilationWithFunctionPointers(@" 1920var comp = CreateCompilationWithFunctionPointers(@" 2003var comp = CreateCompilationWithIL(source, il, options: TestOptions.UnsafeReleaseDll); 2049var comp = CreateCompilationWithIL(source, il, options: TestOptions.UnsafeReleaseExe); 2082var comp = CreateCompilationWithIL(code, il, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.UnsafeReleaseExe); 2107var cComp = CreateCompilation(cDefinition, assemblyName: "cLib"); 2120var comp = CreateCompilationWithIL("", il, references: new[] { cComp.ToMetadataReference() }, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.UnsafeReleaseDll); 2139var comp = CreateCompilationWithFunctionPointers(@" 2152var comp = CreateCompilationWithFunctionPointers(@" 2252var comp = CreateCompilationWithFunctionPointers(@" 2307var comp = CreateCompilationWithFunctionPointers(@" 2382var comp = CreateCompilationWithFunctionPointers(@" 2450var comp = CreateCompilationWithFunctionPointers(@" 2518var comp = CreateCompilationWithFunctionPointers(@" 2544var comp = CreateCompilationWithFunctionPointers(@" 2617var comp = CreateCompilationWithFunctionPointers(@" 2740var comp = CreateCompilationWithFunctionPointers(@" 2768var comp = CreateCompilationWithFunctionPointers(@" 2801var comp = CreateCompilationWithFunctionPointers(@" 2832var comp = CreateCompilationWithFunctionPointers(@" 2866var comp = CreateCompilationWithFunctionPointers(@" 2899var comp = CreateCompilationWithFunctionPointers(@" 2967var verifier = CreateCompilationWithFunctionPointers(@" 2991var verifier = CreateCompilationWithFunctionPointers(@" 3024var verifier = CreateCompilationWithFunctionPointers(@" 3048var verifier = CreateCompilationWithFunctionPointers(@" 3081var comp = CreateCompilationWithFunctionPointers(@" 3101var comp = CreateCompilationWithFunctionPointers(@" 3120var comp = CreateCompilationWithFunctionPointers(@" 3151var comp = CreateCompilationWithFunctionPointers(@" 3247var comp = CreateCompilationWithFunctionPointers(@" 3350var comp = CreateCompilationWithFunctionPointers(source, TestOptions.UnsafeReleaseExe); 3413var comp = CreateCompilationWithFunctionPointers(@" 3457var comp = CreateCompilationWithFunctionPointers(@" 3498var comp = CreateCompilationWithFunctionPointers(@" 3563var comp = CreateCompilationWithFunctionPointers(@" 3610var comp = CreateCompilationWithFunctionPointers(@" 3632var comp = CreateCompilationWithFunctionPointers(@" 3645var comp = CreateCompilationWithFunctionPointers(@" 3708var comp = CreateCompilationWithFunctionPointers(@" 3732var comp = CreateCompilationWithFunctionPointers(@" 3759var comp = CreateCompilationWithFunctionPointers(@" 3780var comp = CreateCompilationWithFunctionPointers(@" 3834var comp = CreateCompilationWithFunctionPointers(@" 3878var comp = CreateCompilationWithFunctionPointers(@" 3903var comp = CreateCompilationWithFunctionPointers(@" 4028var comp = CreateCompilationWithFunctionPointers(@" 4050var comp = CreateCompilationWithFunctionPointers(@" 4073var comp = CreateCompilationWithFunctionPointers(@" 4103var comp = CreateCompilationWithFunctionPointers(@" 4122var comp = CreateCompilationWithFunctionPointers(@" 4141var comp = CreateCompilationWithFunctionPointers(@"
Semantics\FuzzTests.cs (1)
50var compilation = CreateCompilationWithMscorlib461(text);
Semantics\GenericConstraintsTests.cs (28)
614var comp = CreateCompilation(@" 989var compilation = CreateCompilation("public class Test<T> where T : struct, System.Delegate { }") 1129var comp = CreateCompilation(@" 1474var compilation = CreateCompilation("public class Test<T> where T : struct, System.MulticastDelegate { }") 1614var comp = CreateCompilation(@" 1828var c = CreateCompilation("public class Test<T> where T : class, unmanaged {}"); 1846var c = CreateCompilation("public class Test<T> where T : struct, unmanaged {}"); 2864var compilation = CreateCompilation(@" 3125var compilation = CreateCompilation(@" 3152var compilation = CreateCompilation(@" 3182var compilation = CreateCompilation(@" 3208var compilation = CreateCompilation(@" 3558var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3578var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3599var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3623var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3654var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3679var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3707var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3735var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3763var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3794var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3830var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3862var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3890var compilation = CreateCompilation(code, options: TestOptions.UnsafeReleaseDll); 3979var compilation = CreateCompilation(code); 4352var comp = CreateCompilation(@" 4416var comp = CreateCompilation(@"
Semantics\GlobalUsingDirectiveTests.cs (117)
166var comp1 = CreateCompilation(source1); 191var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Regular10, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 234var comp3 = CreateCompilation(source3, parseOptions: TestOptions.Regular10, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 275var comp1 = CreateCompilation(source1); 304var comp2 = CreateCompilation(source2, parseOptions: TestOptions.Regular10, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 353var comp3 = CreateCompilation(source3, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 385var comp1 = CreateCompilation(source1); 404var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 421var comp3 = CreateCompilation(new[] { source3, source2 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 434var extComp = CreateCompilation(ext); 541var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source, source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 580var extComp = CreateCompilation(ext); 680var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source, source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 811var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source, source1, program }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 869var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2, source1 }, parseOptions: TestOptions.RegularPreview); 940var comp = CreateCompilation(new[] { globalUsings1 + usings2, source1 }, parseOptions: TestOptions.RegularPreview); 1020var comp = CreateCompilation(source1, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1061var comp = CreateCompilation(source1, parseOptions: TestOptions.RegularPreview); 1111var comp = CreateCompilation(source1, parseOptions: TestOptions.RegularPreview); 1139var extComp = CreateCompilation(ext); 1235var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source, source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1274var extComp = CreateCompilation(ext); 1363var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source, source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1483var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source, source1, program }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1530var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2, source1 }, parseOptions: TestOptions.RegularPreview); 1590var comp = CreateCompilation(new[] { globalUsings1 + usings2, source1 }, parseOptions: TestOptions.RegularPreview); 1691var comp = CreateCompilation(source1, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1807var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source, source1 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1893var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 1927var comp = CreateCompilation(source1, parseOptions: TestOptions.RegularPreview); 1963var comp = CreateCompilation(source1, parseOptions: TestOptions.RegularPreview); 2026var comp = CreateCompilation(new[] { source2, source1, source3, source6, source4, "", source5 }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 2044var comp1 = CreateCompilation(source1); 2073var comp2 = CreateCompilation(new[] { source2 + source3, source5, source6 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2083var comp3 = CreateCompilation(new[] { source2 + source3 + source4, source5, source6 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2096var comp4 = CreateCompilation(new[] { source2 + source3 + source5, source6 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2109var comp5 = CreateCompilation(new[] { source2 + source3 + source4 + source5, source6 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2129var comp6 = CreateCompilation(new[] { source2, source3, source5, source6 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2139var comp7 = CreateCompilation(new[] { source2, source3, source4, source5, source6 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2152var comp8 = CreateCompilation(new[] { source2 + source3 + source5, source4, source6 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2155var comp9 = CreateCompilation(new[] { source2 + source5, source3, source6 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2168var comp10 = CreateCompilation(new[] { source2 + source5, source3, source4, source6 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2194var comp1 = CreateCompilation(source1); 2207var comp2 = CreateCompilation(new[] { source1, source2, source3 }, parseOptions: TestOptions.RegularPreview, references: new[] { comp1Ref }); 2242var comp2 = CreateCompilation(new[] { source3, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2253var comp3 = CreateCompilation(new[] { source3 + source4, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2267var comp4 = CreateCompilation(new[] { source3 + source5, source6 }, parseOptions: TestOptions.RegularPreview); 2270var comp5 = CreateCompilation(new[] { source3 + source4 + source5, source6 }, parseOptions: TestOptions.RegularPreview); 2273var comp6 = CreateCompilation(new[] { source3, source4, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2276var comp7 = CreateCompilation(new[] { source3 + source5, source4, source6 }, parseOptions: TestOptions.RegularPreview); 2279var comp8 = CreateCompilation(new[] { source5, source3, source6 }, parseOptions: TestOptions.RegularPreview); 2282var comp9 = CreateCompilation(new[] { source5, source3, source4, source6 }, parseOptions: TestOptions.RegularPreview); 2300var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2329var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2384var comp2 = CreateCompilation(new[] { source3, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2398var comp3 = CreateCompilation(new[] { source3 + source4, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2415var comp4 = CreateCompilation(new[] { source3 + source5, source6 }, parseOptions: TestOptions.RegularPreview); 2418var comp5 = CreateCompilation(new[] { source3 + source4 + source5, source6 }, parseOptions: TestOptions.RegularPreview); 2421var comp6 = CreateCompilation(new[] { source3, source4, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2424var comp7 = CreateCompilation(new[] { source3 + source5, source4, source6 }, parseOptions: TestOptions.RegularPreview); 2427var comp8 = CreateCompilation(new[] { source5, source3, source6 }, parseOptions: TestOptions.RegularPreview); 2430var comp9 = CreateCompilation(new[] { source5, source3, source4, source6 }, parseOptions: TestOptions.RegularPreview); 2480var comp2 = CreateCompilation(new[] { source3, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2494var comp3 = CreateCompilation(new[] { source3 + source4, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2511var comp4 = CreateCompilation(new[] { source3 + source5, source6 }, parseOptions: TestOptions.RegularPreview); 2514var comp5 = CreateCompilation(new[] { source3 + source4 + source5, source6 }, parseOptions: TestOptions.RegularPreview); 2517var comp6 = CreateCompilation(new[] { source3, source4, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2520var comp7 = CreateCompilation(new[] { source3 + source5, source4, source6 }, parseOptions: TestOptions.RegularPreview); 2523var comp8 = CreateCompilation(new[] { source5, source3, source6 }, parseOptions: TestOptions.RegularPreview); 2526var comp9 = CreateCompilation(new[] { source5, source3, source4, source6 }, parseOptions: TestOptions.RegularPreview); 2548var comp2 = CreateCompilation(new[] { source3, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2559var comp3 = CreateCompilation(new[] { source3 + source4, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2570var comp4 = CreateCompilation(new[] { source3 + source5, source6 }, parseOptions: TestOptions.RegularPreview); 2577var comp5 = CreateCompilation(new[] { source3 + source4 + source5, source6 }, parseOptions: TestOptions.RegularPreview); 2587var comp6 = CreateCompilation(new[] { source3, source4, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2597var comp7 = CreateCompilation(new[] { source3 + source5, source4, source6 }, parseOptions: TestOptions.RegularPreview); 2607var comp8 = CreateCompilation(new[] { source5, source3, source6 }, parseOptions: TestOptions.RegularPreview); 2610var comp9 = CreateCompilation(new[] { source5, source3, source4, source6 }, parseOptions: TestOptions.RegularPreview); 2634var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2662var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2702var comp2 = CreateCompilation(new[] { source3, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2713var comp3 = CreateCompilation(new[] { source3 + source4, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2724var comp4 = CreateCompilation(new[] { source3 + source5, source6 }, parseOptions: TestOptions.RegularPreview); 2731var comp5 = CreateCompilation(new[] { source3 + source4 + source5, source6 }, parseOptions: TestOptions.RegularPreview); 2741var comp6 = CreateCompilation(new[] { source3, source4, source5, source6 }, parseOptions: TestOptions.RegularPreview); 2751var comp7 = CreateCompilation(new[] { source3 + source5, source4, source6 }, parseOptions: TestOptions.RegularPreview); 2761var comp8 = CreateCompilation(new[] { source5, source3, source6 }, parseOptions: TestOptions.RegularPreview); 2764var comp9 = CreateCompilation(new[] { source5, source3, source4, source6 }, parseOptions: TestOptions.RegularPreview); 2788var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2816var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2871var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 2957var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 3043var comp2 = CreateCompilation(new[] { source2, source3 }, parseOptions: TestOptions.RegularPreview); 3170var comp2 = CreateCompilation(new[] { source2, source3, source4 }, parseOptions: TestOptions.RegularPreview); 3353var origLibComp = CreateCompilation(origLib_cs, assemblyName: "lib"); 3356var newComp = CreateCompilation(origLib_cs, assemblyName: "new"); 3359var compWithReferenceToLib = CreateCompilation(reference_cs, references: new[] { origLibComp.EmitToImageReference() }); 3363var newLibComp = CreateCompilation(alias1 + newLib_cs, 3368var newLibComp2 = CreateCompilation(alias1 + newLib_cs, 3453var extComp = CreateCompilation(ext, assemblyName: "Extern"); 3506var comp = CreateCompilation(externAlias + globalUsings1 + globalUsings2 + usings + source, parseOptions: parseOptions, references: new[] { extCompRef }); 3644var extComp = CreateCompilation(ext, assemblyName: "Extern"); 3702var comp = CreateCompilation(externAlias + globalUsings1 + globalUsings2 + usings + source, parseOptions: parseOptions, references: new[] { extCompRef }); 3839var comp = CreateCompilation(new[] { externAlias + globalUsings1 + globalUsings2 + usings, source }, parseOptions: TestOptions.RegularPreview); 4212var comp = CreateCompilation(new[] { externAlias1 + globalUsings1 + source }, parseOptions: TestOptions.RegularPreview); 4366var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source }, parseOptions: TestOptions.RegularPreview); 4462var comp = CreateCompilation(new[] { globalUsings1 + globalUsings2 + source }, parseOptions: TestOptions.RegularPreview); 4513var comp1 = CreateCompilation(source1); 4562var comp2 = CreateCompilation(externAlias + globalUsing1 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 4580var comp2 = CreateCompilation(externAlias + globalUsing2 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 4598var comp2 = CreateCompilation(externAlias + using1 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 4609var comp2 = CreateCompilation(externAlias + using2 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe, references: new[] { comp1Ref }); 4678var comp2 = CreateCompilation(globalAlias + globalUsing1 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4711var comp2 = CreateCompilation(globalAlias + globalUsing2 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4744var comp2 = CreateCompilation(globalAlias + using1 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4765var comp2 = CreateCompilation(globalAlias + using2 + source2, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 4974var comp = CreateCompilation(new[] { globalUsings1, source }, parseOptions: TestOptions.RegularPreview);
Semantics\HideByNameTests.cs (2)
192var comp = CreateCompilationWithILAndMscorlib40(csharp, il); 524var comp = CreateCompilationWithILAndMscorlib40(csharp, il);
Semantics\ImplicitlyTypeArraysTests.cs (3)
22var compilation = CreateCompilation(@" 64var comp = CreateCompilation(tree); 90var comp = CreateCompilation(tree);
Semantics\ImplicitlyTypedLocalsTests.cs (2)
19var compilation = CreateCompilation(@" 36var compilation = CreateCompilation(@"
Semantics\ImplicitObjectCreationTests.cs (171)
21private static CSharpCompilation CreateCompilation(string source, CSharpCompilationOptions options = null, IEnumerable<MetadataReference> references = null) 49var comp = CreateCompilation(source, options: TestOptions.DebugExe); 93var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular8); 171var comp = CreateCompilation(source, options: TestOptions.DebugExe); 216var comp = CreateCompilation(source); 268var comp = CreateCompilation(source, options: TestOptions.DebugExe); 296var comp = CreateCompilation(source, options: TestOptions.DebugExe); 319var comp = CreateCompilation(source, options: TestOptions.DebugExe); 352var comp = CreateCompilation(source, options: TestOptions.DebugExe, references: new[] { CSharpRef }); 373var comp = CreateCompilation(source, options: TestOptions.DebugExe, references: new[] { CSharpRef }); 404var comp = CreateCompilation(source, options: TestOptions.DebugDll); 438var comp = CreateCompilation(source, options: TestOptions.DebugExe); 456var comp = CreateCompilation(source); 476var comp = CreateCompilation(source); 500var comp = CreateCompilation(source); 521var comp = CreateCompilation(source); 545var comp = CreateCompilation(source); 570var comp = CreateCompilation(source); 598var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics(); 616var comp = CreateCompilation(source); 643var comp = CreateCompilation(source); 663var comp = CreateCompilation(source); 699var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics(); 726var comp = CreateCompilation(source); 756var comp = CreateCompilation(source); 780var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 806var comp = CreateCompilation(source); 837var comp = CreateCompilation(source); 878var comp = CreateCompilation(source); 908var comp = CreateCompilation(source).VerifyDiagnostics( 953var comp = CreateCompilation(source, options: TestOptions.DebugExe); 985var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1010var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1029var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1051var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1074var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1095var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1121var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1141var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1204var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics(); 1229var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics(); 1252var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics(); 1273var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics(); 1298var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics(); 1317var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 1346var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 1370var comp = CreateCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 1405var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics(); 1423var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 1457var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 1491var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 1522var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 1555var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1585var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 1614var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 1646var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 1669var comp = CreateCompilation(source).VerifyDiagnostics( 1695var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 1735var comp = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics( 1762var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1787var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1839var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 1860var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1890var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1920var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1951var comp = CreateCompilation(source, options: TestOptions.DebugExe); 1973var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2003var comp = CreateCompilation(source); 2030var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2065var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 2110var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2163var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2186var comp = CreateCompilation(source); 2212var comp = CreateCompilation(source); 2243var comp = CreateCompilation(source); 2266var comp = CreateCompilation(source); 2290var comp = CreateCompilation(source); 2311var comp = CreateCompilation(source); 2331var comp = CreateCompilation(source); 2358var comp = CreateCompilation(source); 2401var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2425var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2444var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2465var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2486var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2509var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2535var comp = CreateCompilation(source); 2559var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2592var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2620var comp = CreateCompilation(source); 2650var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 2682var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2704var comp = CreateCompilation(source); 2726var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2746var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2766var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2787var comp = CreateCompilation(source, options: TestOptions.DebugDll); 2807var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2845var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2882var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2911var comp = CreateCompilationWithIndexAndRange(source, options: TestOptions.DebugExe, parseOptions: ImplicitObjectCreationTestOptions); 2952var comp = CreateCompilation(source, options: TestOptions.DebugExe); 2981var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3011var comp = CreateCompilation(source, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 3035var comp = CreateCompilation(source); 3058var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3078var comp = CreateCompilation(source); 3095var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3114var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3133var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3155var comp = CreateCompilation(source); 3177var comp = CreateCompilation(source); 3203var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3248var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3265var comp = CreateCompilation(source); 3278var comp = CreateCompilation(source); 3300var comp = CreateCompilation(source); 3318var comp = CreateCompilation(source); 3343var comp = CreateCompilation(source, references: new[] { CSharpRef }, options: TestOptions.DebugExe); 3383var comp = CreateCompilation(source); 3486var comp = CreateCompilation(source); 3583var comp = CreateCompilation(source); 3660var comp = CreateCompilation(text, options: TestOptions.DebugExe); 3682var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 3709var comp = CreateCompilation(text, options: TestOptions.DebugDll); 3740var comp = CreateCompilation(text).VerifyDiagnostics( 3764var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3785var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3820var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 3867var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3912var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3952var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4012var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4055var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4074var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4093var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4112var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4133var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4153var comp = CreateCompilation(source, parseOptions: ImplicitObjectCreationTestOptions); 4180var comp = CreateCompilation(source, parseOptions: ImplicitObjectCreationTestOptions); 4217var comp = CreateCompilation(source); 4232var missingComp = CreateCompilation(missing, assemblyName: "missing"); 4240var libComp = CreateCompilation(lib, references: new[] { missingComp.EmitToImageReference() }); 4253var comp = CreateCompilation(source, references: new[] { libComp.EmitToImageReference() }); 4271var missingComp = CreateCompilation(missing, assemblyName: "missing"); 4281var libComp = CreateCompilation(lib, references: new[] { missingComp.EmitToImageReference() }); 4295var comp = CreateCompilation(source, references: new[] { libComp.EmitToImageReference() }); 4316var missingComp = CreateCompilation(missing, assemblyName: "missing"); 4324var libComp = CreateCompilation(lib, references: new[] { missingComp.EmitToImageReference() }); 4336var comp = CreateCompilation(source, references: new[] { libComp.EmitToImageReference() }); 4348var missingComp = CreateCompilation(missing, assemblyName: "missing"); 4356var libComp = CreateCompilation(lib, references: new[] { missingComp.EmitToImageReference() }); 4369var comp = CreateCompilation(source, references: new[] { libComp.EmitToImageReference() }); 4387var libBv1 = CreateCompilation(string.Format(libBTemplate, "1"), assemblyName: "B", options: signedDll); 4388var libBv2 = CreateCompilation(string.Format(libBTemplate, "2"), assemblyName: "B", options: signedDll); 4400var libAv1 = CreateCompilation( 4418var comp = CreateCompilation(source, new[] { new CSharpCompilationReference(libAv1), new CSharpCompilationReference(libBv2) }, 4467var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4500var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4525var compilation = CreateCompilation(source); 4568var compilation = CreateCompilation(source); 4610var compilation1 = CreateCompilation(source1); 4630var compilation2 = CreateCompilation(source2, references: new[] { compilation1.EmitToImageReference() }); 4659var compilation1 = CreateCompilation(source1); 4683var compilation1 = CreateCompilation(source1); 4704var compilation = CreateCompilation(source); 4734var compilation = CreateCompilation(source); 4758var comp = CreateCompilation(source); 4818var comp = CreateCompilation(source); 4847var comp = CreateCompilation(source); 4889var comp = CreateCompilation(source);
Semantics\ImportsTests.cs (2)
103var comp = CreateCompilation( 146var comp = CreateCompilation(trees, targetFramework: TargetFramework.Mscorlib40, references: new[] { SystemCoreRef.WithAliases(externAliases) });
Semantics\IndexAndRangeTests.cs (57)
39var comp = CreateCompilationWithIndexAndRangeAndSpan(src); 77var comp = CreateCompilationWithIndexAndRange(src); 109var comp = CreateCompilationWithIndexAndRange(src); 142var comp = CreateCompilationWithIndexAndRange(src); 169var comp = CreateCompilationWithIndexAndRange(src); 196var comp = CreateCompilationWithIndexAndRange(src); 223var comp = CreateCompilationWithIndexAndRange(src); 241var comp = CreateCompilationWithIndexAndRangeAndSpan(src, TestOptions.ReleaseExe); 265var comp = CreateCompilationWithIndexAndRange(src); 286var comp = CreateCompilationWithIndexAndRangeAndSpan(src); 311var comp = CreateCompilationWithIndexAndRange(src); 340var comp = CreateCompilationWithIndexAndRange(src); 369var comp = CreateCompilationWithIndexAndRange(src); 398var comp = CreateCompilationWithIndexAndRange(src); 427var comp = CreateCompilationWithIndexAndRange(src); 454var comp = CreateCompilationWithIndexAndRange(src); 491var comp = CreateCompilation(src); 533var comp = CreateCompilation(src); 545var comp = CreateCompilationWithIndexAndRange(@" 569var comp = CreateCompilationWithIndexAndRange(@" 614var comp = CreateEmptyCompilation(@" 668var comp = CreateCompilationWithIndex(@" 683var comp = CreateCompilationWithIndex(@" 713var comp = CreateCompilation(source + @" 742var comp = CreateCompilationWithIndexAndRange(@" 758var comp = CreateCompilationWithIndex(@" 788var comp = CreateCompilationWithIndex(@" 803var compilation = CreateCompilation(@" 822var compilation = CreateCompilation(@" 845var compilation = CreateEmptyCompilation(@" 877var compilation = CreateCompilation(@" 906var compilation = CreateCompilationWithIndex(@" 927var compilation = CreateCompilationWithIndex(@" 948var compilation = CreateCompilationWithIndex(@" 972var compilation = CreateCompilationWithIndex(@" 999var compilation = CreateCompilationWithIndex(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(expected); 1006var compilation = CreateCompilationWithIndex(@" 1034var compilation = CreateCompilationWithIndex(@" 1057var compilation = CreateCompilation(@" 1094var compilation = CreateCompilationWithIndex(@" 1149var compilation = CreateEmptyCompilation(@" 1191var compilation = CreateEmptyCompilation(@" 1226var compilation = CreateCompilationWithIndex(@" 1259var compilation = CreateCompilationWithIndex(@" 1292var compilation = CreateCompilationWithIndex(@" 1325var compilation = CreateCompilationWithIndexAndRange(@" 1368var compilation = CreateCompilationWithIndexAndRange(@" 1411var compilation = CreateCompilationWithIndexAndRange(@" 1439var compilation = CreateCompilationWithIndexAndRange(@" 1629var comp = CreateCompilationWithIndexAndRange(@" 1649var comp = CreateCompilationWithIndexAndRange(@" 1690var comp = CreateCompilationWithIndexAndRange(@" 1710var comp = CreateCompilationWithIndexAndRange(@" 1752var comp = CreateCompilation(@" 1783var comp = CreateCompilation(@" 1907var comp = CreateCompilationWithSpan(src); 2093var comp = CreateCompilationWithSpan(src);
Semantics\InheritanceBindingTests.cs (83)
2995var comp11 = CreateCompilation(new AssemblyIdentity("lib1", new Version("4.2.1.0"), publicKeyOrToken: SigningTestHelpers.PublicKey, hasPublicKey: true), 2998var comp12 = CreateCompilation(new AssemblyIdentity("lib1", new Version("4.1.0.0"), publicKeyOrToken: SigningTestHelpers.PublicKey, hasPublicKey: true), 3007var comp2 = CreateCompilation(new[] { source2 }, references: new[] { comp12.EmitToImageReference() }, assemblyName: "lib2"); 3024var comp3 = CreateCompilation(new[] { source3 }, references: new[] { comp11.EmitToImageReference(), comp2.EmitToImageReference() }, assemblyName: "lib3"); 4988CSharpCompilation comp = CreateCompilation(text, targetFramework: TargetFramework.NetLatest); 5049var compilation = CreateCompilation(text, targetFramework: TargetFramework.NetLatest); 6202var comp1 = CreateCompilation(text1); 6240var compilation1 = CreateCompilation(source1); 6255var comp = CreateCompilation(source2, new[] { new CSharpCompilationReference(compilation1) }); 6621var compilation = CreateCompilation(text); 6703var comp = CreateCompilation(text); 8235private static CSharpCompilation CompileAndVerifyDiagnostics(string text, ErrorDescription[] expectedErrors, params CSharpCompilation[] baseCompilations) 8238var comp = CreateCompilation(text, refs); 8248private static CSharpCompilation CompileAndVerifyDiagnostics(string text1, string text2, ErrorDescription[] expectedErrors1, ErrorDescription[] expectedErrors2) 8250var comp1 = CompileAndVerifyDiagnostics(text1, expectedErrors1); 8251var comp2 = CompileAndVerifyDiagnostics(text2, expectedErrors2, comp1); 8353var comp = CreateCompilation(source); 8380var comp = CreateCompilation(source); 8408var comp = CreateCompilation(source); 8439var comp = CreateCompilation(source).VerifyDiagnostics(); 8466var comp = CreateCompilation(source).VerifyDiagnostics(); 8493var comp = CreateCompilation(source).VerifyDiagnostics(); 8523var comp = CreateCompilation(source).VerifyDiagnostics(); 8550var comp = CreateCompilation(source).VerifyDiagnostics(); 8577var comp = CreateCompilation(source).VerifyDiagnostics(); 8602var comp = CreateCompilation(source).VerifyDiagnostics(); 8624var comp = CreateCompilation(source).VerifyDiagnostics(); 8646var comp = CreateCompilation(source).VerifyDiagnostics(); 8671var comp = CreateCompilation(source).VerifyDiagnostics(); 8693var comp = CreateCompilation(source).VerifyDiagnostics(); 8715var comp = CreateCompilation(source).VerifyDiagnostics(); 8744var comp = CreateCompilation(source).VerifyDiagnostics(); 8773var comp = CreateCompilation(source).VerifyDiagnostics(); 8794var comp = CreateCompilation(source).VerifyDiagnostics(); 8811var comp = CreateCompilation(source).VerifyDiagnostics(); 8836var comp = CreateCompilation(source).VerifyDiagnostics( 8856var comp = CreateCompilation(source).VerifyDiagnostics( 8876var comp = CreateCompilation(source).VerifyDiagnostics( 8896var comp = CreateCompilation(source).VerifyDiagnostics( 8916var comp = CreateCompilation(source).VerifyDiagnostics(); 8933var comp = CreateCompilation(source).VerifyDiagnostics(); 8950var comp = CreateCompilation(source).VerifyDiagnostics( 8970var comp = CreateCompilation(source).VerifyDiagnostics( 8990var comp = CreateCompilation(source).VerifyDiagnostics( 9010var comp = CreateCompilation(source).VerifyDiagnostics( 9030var comp = CreateCompilation(source).VerifyDiagnostics( 9051var comp = CreateCompilation(source).VerifyDiagnostics( 9071var comp = CreateCompilation(source).VerifyDiagnostics( 9093var comp = CreateCompilation(source).VerifyDiagnostics( 9116var comp = CreateCompilation(source).VerifyDiagnostics( 9135var comp = CreateCompilation(source).VerifyDiagnostics( 9157var comp = CreateCompilation(source).VerifyDiagnostics( 9180var comp = CreateCompilation(source).VerifyDiagnostics( 9201var comp = CreateCompilation(source).VerifyDiagnostics( 9222var comp = CreateCompilation(source).VerifyDiagnostics( 9243var comp = CreateCompilation(source).VerifyDiagnostics( 9264var comp = CreateCompilation(source).VerifyDiagnostics( 9285var comp = CreateCompilation(source).VerifyDiagnostics( 9306var comp = CreateCompilation(source).VerifyDiagnostics( 9327var comp = CreateCompilation(source).VerifyDiagnostics( 9348var comp = CreateCompilation(source).VerifyDiagnostics( 9368var comp = CreateCompilation(source).VerifyDiagnostics( 9389var comp = CreateCompilation(source).VerifyDiagnostics( 9411var comp = CreateCompilation(source).VerifyDiagnostics( 9432var comp = CreateCompilation(source).VerifyDiagnostics( 9453var comp = CreateCompilation(source).VerifyDiagnostics( 9475var comp = CreateCompilation(source).VerifyDiagnostics( 9496var comp = CreateCompilation(source).VerifyDiagnostics( 9517var comp = CreateCompilation(source).VerifyDiagnostics( 9539var comp = CreateCompilation(source).VerifyDiagnostics( 9560var comp = CreateCompilation(source).VerifyDiagnostics( 9581var comp = CreateCompilation(source).VerifyDiagnostics( 9603var comp = CreateCompilation(source).VerifyDiagnostics( 9625var comp = CreateCompilation(source).VerifyDiagnostics( 9646var comp = CreateCompilation(source).VerifyDiagnostics( 9667var comp = CreateCompilation(source).VerifyDiagnostics(); 9685var comp = CreateCompilation(source).VerifyDiagnostics(); 9702var comp = CreateCompilation(source).VerifyDiagnostics( 9723var comp = CreateCompilation(source).VerifyDiagnostics( 9744var comp = CreateCompilation(source).VerifyDiagnostics( 9767var comp = CreateCompilation(source).VerifyDiagnostics( 9794var comp = CreateCompilation(source).VerifyDiagnostics();
Semantics\InitOnlyMemberTests.cs (128)
40var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular8); 65var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 77var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, 103var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 114var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, 136var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 148var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, 173var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 186var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, 208var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 216var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, 252var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular8); 279var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular8); 300var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular8, assemblyName: "lib"); 312var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, references: new[] { lib.ToMetadataReference() }, assemblyName: "comp"); 334var lib = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 346var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, 367var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 389var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 453var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 494var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 546var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 575var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 604var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 635var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 688var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 745var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 771var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 870var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 945var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 971var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 1003var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 1045var libComp = CreateCompilation(new[] { parent, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1046var comp = CreateCompilation(new[] { source, main }, references: new[] { emitImage ? libComp.EmitToImageReference() : libComp.ToMetadataReference() }, 1081var libComp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1082var comp = CreateCompilation(new[] { main }, references: new[] { emitImage ? libComp.EmitToImageReference() : libComp.ToMetadataReference() }, 1129var libComp = CreateCompilation(new[] { parent, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1130var comp = CreateCompilation(new[] { source, main }, references: new[] { emitImage ? libComp.EmitToImageReference() : libComp.ToMetadataReference() }, 1149var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1212var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1251var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1281var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1308var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1335var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1362var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1389var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1409var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1441var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, 1523var libComp = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1617var comp = CreateCompilation(source, 1687var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe); 1715var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, options: TestOptions.DebugExe); 1764var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1788var libComp = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1813var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, 1866var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1906var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1949var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 1995var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2034var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2065var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2086var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2104var libComp = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2125var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, 2157var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2192var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2213var libComp = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2230var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, 2282var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, 2375var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, 2418var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2448var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2468var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2490var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2514var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2536var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2611var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2680var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2737var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, 2786var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 2823var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2876var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 2957var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 3009var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe); 3036var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 3058var libComp = CreateCompilation(new[] { lib_cs, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 3084var comp = CreateCompilation(source, 3109var compilation = CreateCompilation(@" 3172var comp = CreateCompilation(new[] { @" 3257var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 3348var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 3466var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9, 3565var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9, 3629var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 3688var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 3738var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 3806var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 3884var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 3972var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 4055var comp = CreateCompilation(source, references: new[] { reference }, parseOptions: TestOptions.Regular9); 4102var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9); 4125var comp = CreateCompilation(new[] { @" 4193var comp1 = CreateCompilation(new[] { source0, source1, IsExternalInitTypeDefinition }, 4200var comp7 = CreateCompilation(source2, references: comp1Ref, 4367var comp = CreateCompilation(new[] { IsExternalInitTypeDefinition, @" 4390var comp = CreateCompilation(new[] { IsExternalInitTypeDefinition, @" 4483var comp = CreateCompilation(new[] { IsExternalInitTypeDefinition, source }, options: TestOptions.DebugExe); 4512var comp = CreateCompilation(new[] { IsExternalInitTypeDefinition, source }); 4536var comp = CreateCompilation(new[] { IsExternalInitTypeDefinition, source }, options: TestOptions.DebugExe); 4562var comp = CreateCompilation(new[] { IsExternalInitTypeDefinition, source }, options: TestOptions.DebugExe); 4594var piaCompilation = CreateCompilationWithMscorlib461(new[] { IsExternalInitTypeDefinition, pia }, options: TestOptions.DebugDll); 4610var compilation = CreateCompilationWithMscorlib461(new[] { source }, 4665var comp = CreateEmptyCompilation(new[] { source, IsExternalInitTypeDefinition }, references: new[] { corlibWithoutIsExternalInitRef }, assemblyName: "source"); 4672var comp = CreateEmptyCompilation(new[] { source }, references: new[] { corlibWithoutIsExternalInitRef, libWithIsExternalInitRef }, assemblyName: "source"); 4679var comp = CreateEmptyCompilation(new[] { source, IsExternalInitTypeDefinition }, references: new[] { corlibWithIsExternalInitRef }, assemblyName: "source"); 4686var comp = CreateEmptyCompilation(new[] { source, IsExternalInitTypeDefinition }, references: new[] { corlibWithIsExternalInitRef, libWithIsExternalInitRef }, assemblyName: "source"); 4693var comp = CreateEmptyCompilation(source, references: new[] { corlibWithIsExternalInitRef, libWithIsExternalInitRef, libWithIsExternalInitRef2 }); 4700var comp = CreateEmptyCompilation(source, references: new[] { libWithIsExternalInitRef, corlibWithIsExternalInitRef, libWithIsExternalInitRef2 }); 4707var comp = CreateEmptyCompilation(source, references: new[] { libWithIsExternalInitRef, libWithIsExternalInitRef2, corlibWithIsExternalInitRef }); 4714var comp = CreateEmptyCompilation(source, references: new[] { corlibWithIsExternalInitRef, libWithIsExternalInitRef, libWithIsExternalInitRef2 }, 4725var comp = CreateEmptyCompilation(source, references: new[] { corlibWithoutIsExternalInitRef, libWithIsExternalInitRef, libWithIsExternalInitRef2 }); 4735var comp = CreateEmptyCompilation(source, references: new[] { corlibWithoutIsExternalInitRef, libWithIsExternalInitRef, libWithIsExternalInitRef2 }, 4746var comp = CreateEmptyCompilation(source, references: new[] { corlibWithIsExternalInitRef, libWithIsExternalInitRef }); 4753var comp = CreateEmptyCompilation(source, references: new[] { libWithIsExternalInitRef, corlibWithIsExternalInitRef }); 4760var comp = CreateEmptyCompilation(source, references: new[] { corlibWithIsExternalInitRef, libWithIsExternalInitRef }, 4767static void verify(CSharpCompilation comp, string expectedAssemblyName) 4820var comp = CreateEmptyCompilation(source, references: new[] { corlibWithIsExternalInitRef }); 4828var comp = CreateEmptyCompilation(source, references: new[] { corlibWithoutIsExternalInitRef });
Semantics\InteractiveSemanticModelTests.cs (2)
25var compilation = CreateCompilation(@" 357var compilation = CreateCompilation(testSrc, parseOptions: TestOptions.Script);
Semantics\InteractiveUsingTests.cs (27)
23var sub = CreateSubmission("using System; typeof(String)"); 32var sub = CreateSubmission("using I = System.Int32; typeof(I)"); 41var sub = CreateSubmission("using static System.Environment; NewLine"); 51var sub1 = CreateSubmission( 57var sub2 = CreateSubmission( 63var sub3 = CreateSubmission( 103var sub1 = CreateSubmission("class A { }"); 104var sub2 = CreateSubmission("class B : A { }", previous: sub1); 105var sub3 = CreateSubmission("class C : B { }", previous: sub2); 110var sub4 = CreateSubmission("using C1 = C; typeof(C1)", previous: sub3); 186var sub1 = CreateSubmission("using A = System.Int32; typeof(A)"); 189var sub2 = CreateSubmission("using A = System.Int16; typeof(A)", previous: sub1); 192var sub3 = CreateSubmission("class A { }", previous: sub2); 195var sub4 = CreateSubmission("using A = System.Int64; typeof(A)", previous: sub3); 222var sub1 = CreateSubmission("class A { public static int AA; }"); 223var sub2 = CreateSubmission("class B { public static int BB; }", previous: sub1); 224var sub3 = CreateSubmission("class C { public static int CC; }", previous: sub2); 229var sub4 = CreateSubmission("using static C;", previous: sub3); 300var sub1 = CreateSubmission("typeof(String)", options: options); 303var sub2 = CreateSubmission("typeof(String)", options: options, previous: sub1); 327var sub1 = CreateSubmission("using A; typeof(A1) == typeof(B1)", new[] { lib1 }, options); 330var sub2 = CreateSubmission("typeof(A1) == typeof(B1) && typeof(A2) == typeof(B2)", new[] { lib1, lib2 }, options: options, previous: sub1); 363var compilation = CreateSubmission( 434var compilation = CreateSubmission( 484var compilation = CreateSubmission( 530CSharpCompilation prev = null; 533var curr = CreateSubmission(submission, refs, previous: prev);
Semantics\InterceptorsTests.cs (16)
67var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }); 113var comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("InterceptorsNamespaces", "NS")); 160var comp = CreateCompilation(source); 7239comp = (CSharpCompilation)verifier.Compilation; 7284comp = (CSharpCompilation)verifier.Compilation; 7366comp = (CSharpCompilation)verifier.Compilation; 7408comp = (CSharpCompilation)verifier.Compilation; 7458comp = (CSharpCompilation)verifier.Compilation; 7511comp = (CSharpCompilation)verifier.Compilation; 7564comp = (CSharpCompilation)verifier.Compilation; 7624comp = (CSharpCompilation)verifier.Compilation; 7680comp = (CSharpCompilation)verifier.Compilation; 7735comp = (CSharpCompilation)verifier.Compilation; 7790comp = (CSharpCompilation)verifier.Compilation; 7840comp = (CSharpCompilation)verifier.Compilation; 7905comp = (CSharpCompilation)verifier.Compilation;
Semantics\InterpolationTests.cs (244)
1113var comp = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: Test.Utilities.TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 1170var comp = CreateCompilation(text, targetFramework: framework, 1273var comp = CreateCompilation(text, targetFramework: framework, 1374var comp = CreateCompilation(text, targetFramework: framework, 1426var comp = CreateCompilation(text, targetFramework: framework, 1844var comp1 = CreateCompilation(interpolatedStringBuilder); 1848var comp2 = CreateCompilation(source, new[] { reference }); 2222var comp = CreateCompilation(new[] { source, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: true, useDefaultParameters: false, useBoolReturns: false) }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.NetCoreApp); 2260var comp1 = CreateCompilation(interpolatedStringBuilder, targetFramework: TargetFramework.Net50); 2264var comp2 = CreateCompilation(source, new[] { reference }, targetFramework: TargetFramework.Net50, parseOptions: TestOptions.Regular10); 3282var comp = CreateCompilation(new[] { code, interpolatedStringBuilder }); 3312var comp = CreateCompilation(new[] { code, interpolatedStringBuilder }); 3342var comp = CreateCompilation(new[] { code, interpolatedStringBuilder }); 3373var comp = CreateCompilation(new[] { code, interpolatedStringBuilder }); 3402var comp = CreateCompilation(new[] { code, interpolatedStringBuilder }); 3430var comp = CreateCompilation(new[] { code, interpolatedStringBuilder }); 3458var comp = CreateCompilation(new[] { code, interpolatedStringBuilder }); 3558var comp = CreateCompilationWithIL(code, ilSource: interpolatedStringBuilder + UnmanagedCallersOnlyIl); 3633var comp = CreateCompilationWithIL(code, ilSource: interpolatedStringBuilder + UnmanagedCallersOnlyIl); 3660var comp = CreateCompilation(new[] { source, interpolatedStringBuilder }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.NetCoreApp); 3742var comp = CreateCompilation(new[] { source, interpolatedStringBuilder }, parseOptions: TestOptions.Regular9); 4053var comp = CreateCompilation(new[] { source, interpolatedStringBuilder }, 4106var comp = CreateCompilation(new[] { source, interpolatedStringBuilder }, targetFramework: TargetFramework.NetCoreApp); 4208var comp = CreateCompilation(source); 4233var comp = CreateCompilation(new[] { code, handler }); 4274var comp = CreateCompilation(new[] { code, handler }); 4316var comp = CreateCompilation(new[] { code, handler }); 4377var comp = CreateCompilation(source); 4403var comp = CreateCompilation(new[] { source, InterpolatedStringHandlerAttribute }); 4428var comp = CreateCompilation(source, references: new[] { handlerRef }); 4454var comp = CreateCompilation(source, references: new[] { handlerRef }); 4486var comp = CreateCompilation(source); 4524var comp = CreateCompilation(source); 4595private static void VerifyInterpolatedStringExpression(CSharpCompilation comp, string handlerType = "CustomHandler") 4624private CompilationVerifier CompileAndVerifyOnCorrectPlatforms(CSharpCompilation compilation, string expectedOutput) 4640var comp = CreateCompilation(new[] { code, builder }); 4778var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 4821var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: false) }); 4889var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }, parseOptions: TestOptions.Regular10); 4979var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 5009var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 5038var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 5062var comp = CreateCompilation(new[] 5093var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 5147var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 5198var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 5221var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }, parseOptions: TestOptions.Regular10); 5247var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 5275var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial class", useBoolReturns: true) }); 5333var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial class", useBoolReturns: true) }); 5380var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 5435var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 5494var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial class", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 5559var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net50); 5617var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 5684var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 5754var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 5817var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 5845var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5871var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 5932var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 6003var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 6029var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 6089var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 6116var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 6173var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 6200var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 6279var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 6343var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 6408var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 6435var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 6491var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 6536var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 6557var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 6600var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 6646var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 6692var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 6739var comp = CreateCompilation(new[] 6816var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute }); 6846var comp = CreateCompilation(@"C.M(1, $"""");", references: new[] { vbComp.EmitToImageReference() }); 6874var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 6906var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 6940var comp = CreateCompilation(@"C.M($"""");", references: new[] { vbComp.EmitToImageReference() }); 6981var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7015var comp = CreateCompilation(@"C.M(1, $"""");", references: new[] { vbComp.EmitToImageReference() }); 7056var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7093var comp = CreateCompilation(@"C.M(1, $"""");", references: new[] { vbComp.EmitToImageReference() }); 7134var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7168var comp = CreateCompilation(@"C.M($"""");", references: new[] { vbComp.EmitToImageReference() }); 7209var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7242var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7276var comp = CreateCompilation(@"C.M(1, $"""");", references: new[] { vbComp.EmitToImageReference() }); 7316var comp = CreateCompilation(@"C.M(1, $"""");", references: new[] { vbComp.EmitToImageReference() }); 7356var comp = CreateCompilation(@"C.M(1, $"""");", references: new[] { vbComp.EmitToImageReference() }); 7396var comp = CreateCompilation(@"C.M(1, $"""");", references: new[] { vbComp.EmitToImageReference() }); 7437var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7473var comp = CreateCompilation(@"C.M($"""");", references: new[] { vbComp.EmitToImageReference() }); 7514var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7550var comp = CreateCompilation(@"_ = new C($"""");", references: new[] { vbComp.EmitToImageReference() }); 7591var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, customHandler }); 7631var comp = CreateCompilation(@"C<CustomHandler>.M($"""");", references: new[] { vbComp.EmitToImageReference() }); 7684var comp = CreateCompilation(new[] { code, goodCode, InterpolatedStringHandlerArgumentAttribute, handler }); 7803var comp = CreateCompilation("", references: new[] { vbComp.EmitToImageReference() }); 7841var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, customHandler }); 7879var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, customHandler }); 7907var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7956var comp = CreateCompilation(new[] { code, executableCode, InterpolatedStringHandlerArgumentAttribute, handler }); 7963var dependency = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 8014var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, parseOptions: parseOptions); 8082var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 8246var comp = CreateCompilation(new[] { code, executableCode, InterpolatedStringHandlerArgumentAttribute, handler }); 8250var dependency = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 8300var comp = CreateCompilation(new[] { code, executableCode, InterpolatedStringHandlerArgumentAttribute, handler }); 8308var dependency = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 8419var comp = CreateCompilation(new[] { code, executableCode, InterpolatedStringHandlerArgumentAttribute, handler }); 8430var dependency = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 8563var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 8727var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 8860var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 8997var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 9098var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }); 9161var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }); 9226var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 9342var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 9459var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 9582var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 9656var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 9700var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 9925var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 10025var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 10128var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.DebugExe); 10274var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 10373var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 10471var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 10525var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 10624var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 10723var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 10821var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 10865var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 10920var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 11005var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 11117var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 11369var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 11554var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 11654var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe); 11709var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 11771var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 11905var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 12002var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 12294var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 12558var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 12815var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 12884var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 12939var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 13168var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 13220var comp = CreateCompilation(code, new[] { vbComp.EmitToImageReference() }); 13254var comp = CreateCompilation(new[] { code, handler }); 13271var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 13330var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 13390var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 13452var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 13514var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 13606var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 13725var comp = CreateCompilation(code); 13747var comp = CreateCompilation(code); 13780var comp = CreateCompilation(new[] { code, customHandler }); 13825var comp = CreateCompilation(new[] { code, customHandler }); 13862var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }); 13891var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }); 13923var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp); 13968var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp); 14013var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp); 14056var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp); 14105var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp); 14161var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp); 14257var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp); 14356var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp); 14628var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 14660var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Net50); 14697var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 14737var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 14777var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 14835var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 14869var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 14903var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 14940var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50); 14978var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 15033var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50); 15081var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50); 15122var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Net50); 15158var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50); 15209var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Net50); 15255var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50); 15295var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Net50); 15323var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15356var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15392var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15440var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15478var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15519var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15562var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15601var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15640var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15680var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15719var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15763var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15811var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15853var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15892var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15914var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 15960var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 16015var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 16077var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 16111var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 16166var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 16193var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 16238var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 16294var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: true) }); 16318var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 16393var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 16909var comp = CreateCompilation(code); 17073var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70); 17087var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 17151var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 17218var comp = CreateCompilationWithCSharp(new[] { code, handler }); 17324var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 17345var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 17409var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 17482var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 17514var comp = CreateCompilation(code, references: new[] { vbComp.EmitToImageReference() }); 17782var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 17816var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }); 17985var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }); 18020var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, parseOptions: TestOptions.Regular11); 18072var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }); 18124var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }); 18179var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }); 18288var comp = CreateCompilation(text).VerifyDiagnostics( 18515var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 18551var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 18604var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 18686var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 18785var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, options: TestOptions.DebugExe); 18898var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, options: TestOptions.DebugExe);
Semantics\IteratorTests.cs (12)
35var comp = CreateCompilation(text); 60var comp = CreateCompilation(text); 78var comp = CreateCompilation(text); 101var comp = CreateCompilation(text); 147var comp = CreateCompilationWithTasksExtensions(source); 270var comp = CreateCompilation(text); 442var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Script); 474var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Script); 511var comp = CreateCompilation(text, options: TestOptions.DebugDll); 570var comp = CreateCompilation(text); 605var comp = CreateCompilationWithMscorlib461(text); 639var comp = CreateCompilationWithMscorlib461(text);
Semantics\LambdaDiscardParametersTests.cs (24)
22var comp = CreateCompilation(@" 77var comp = CreateCompilation(@" 97var comp = CreateCompilation(@" 124var comp = CreateCompilation(@" 147var comp = CreateCompilation(@" 170var comp = CreateCompilation(@" 190var comp = CreateCompilation(@" 212var comp = CreateCompilation(@" 234var comp = CreateCompilation(@" 267var comp = CreateCompilation(src, parseOptions: TestOptions.Regular7_3); 277var comp2 = CreateCompilation(src, parseOptions: TestOptions.Regular8); 284var comp3 = CreateCompilation(src, parseOptions: TestOptions.Regular9); 291var comp = CreateCompilation(@" 314var comp = CreateCompilation(@" 334var comp = CreateCompilation(@" 368var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 382static void verifyAttributes(CSharpCompilation comp) 401var comp = CreateCompilation(@" 429var comp = CreateCompilation(@" 463var comp = CreateCompilation(@" 492var comp = CreateCompilation(@" 528var comp = CreateCompilation(@" 549var comp = CreateCompilation(@" 581var comp = CreateCompilation(@"
Semantics\LambdaTests.cs (226)
29var comp = CreateCompilation(@" 70var comp = CreateCompilationWithMscorlib40AndSystemCore(src); 81var comp = CreateCompilationWithMscorlib40AndSystemCore(@" 261var compilation = CreateCompilation(code); 337var comp = CreateCompilation(Parse(text)); 369var comp1 = CreateCompilationWithMscorlib40( 383var comp2 = CreateCompilationWithMscorlib40( 415var comp1 = CreateCompilation( 431var comp2 = CreateCompilation( 443var comp3 = CreateCompilation( 474var comp = CreateCompilation(Parse(text1)); 528var csProject = CreateCompilation( 575var csProject = CreateCompilation(Parse(csSource), new[] { MetadataReference.CreateFromImage(vbMetadata) }); 596var comp = CreateCompilation(source); 615var comp = CreateCompilation(source); 636var comp = CreateCompilation(source); 660var csProject = CreateCompilation(csSource); 838var comp = CreateCompilation(tree); 937var compilation = CreateCompilation(source); 1017var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 1071var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 1117var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 1170var comp = CreateCompilation(tree); 1203var comp = CreateCompilation(tree); 1235var comp = CreateCompilation(tree); 1428var comp = CreateCompilation(@" 1451var comp = CreateCompilation(@" 1470var comp = CreateCompilation(@" 1502var compilation = CreateCompilation(src); 1537var compilation = CreateCompilation(src); 1574var compilation = CreateCompilation(src); 1606var compilation = CreateCompilation(src); 1639var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 1669var compilation = CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 1695var compilation = CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 1721var compilation = CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 1747var compilation = CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 1774var compilation = CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 1799var compilation = CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics(); 1820var compilation = CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 1845var compilation = CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics( 1885var compilation = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.ReleaseExe); 1923var compilation = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.ReleaseExe); 1974var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe); 2110var compilation = CreateCompilationWithMscorlib40AndSystemCore(source) 2159var compilation = CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 2205var compilation = CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 2251var compilation = CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 2297var compilation = CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics( 2331var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 2358var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 2412var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 2458var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 2504var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 2537var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 2570var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 2607var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 2659var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 2711var comp = CreateCompilation(source); 2788var comp = CreateCompilationWithMscorlib40AndSystemCore(src, options: TestOptions.DebugExe); 2813var comp = CreateCompilation(src, options: TestOptions.DebugDll); 2837var comp = CreateCompilation(src); 2863var comp = CreateCompilation(src); 2892var comp = CreateCompilation(src); 2918var comp = CreateCompilation(src); 2975var comp = CreateCompilationWithMscorlib40AndSystemCore(src, options: TestOptions.DebugExe); 2995var comp = CreateCompilation(tree); 3037var comp = CreateCompilation(tree); 3078var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3122var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3160var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3201var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3239var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3279var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3313var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3355var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3388var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3412var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3436var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3463var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3501var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3540var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3609var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseExe); 3677var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3731var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3761var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.RegularPreview); 3778var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3813var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3873var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3929var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 3972var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 4023var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 4058var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 4088var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 4114var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 4149var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.RegularPreview); 4180var comp = CreateCompilationWithMscorlib40(source, parseOptions: TestOptions.RegularPreview); 4205var comp = CreateCompilation( 4238var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition, NotNullAttributeDefinition }, parseOptions: TestOptions.RegularPreview); 4285var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 4359var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 4406var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 4486var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 4533var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 4582var comp = CreateCompilation(new[] { source, MaybeNullWhenAttributeDefinition, NotNullWhenAttributeDefinition, MaybeNullAttributeDefinition }); 4639var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition, NotNullAttributeDefinition }); 4686var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 4725var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }, parseOptions: TestOptions.RegularPreview); 4753var comp = CreateCompilation(source); 4778var comp = CreateCompilation(new[] { source, DoesNotReturnAttributeDefinition }); 4814var comp = CreateCompilation(new[] { source, DoesNotReturnAttributeDefinition }); 4844var comp = CreateCompilation(new[] { source, UnmanagedCallersOnlyAttributeDefinition }, parseOptions: TestOptions.RegularPreview); 4864var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 4922var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4949var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 4975var comp = CreateCompilation( 5016var comp = CreateCompilation(new[] { source, NotNullWhenAttributeDefinition }, parseOptions: TestOptions.RegularPreview); 5048var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 5081var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5108var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5136var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5162var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5186var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5212var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5246var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5284var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5325var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5361var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5393var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5419var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5438var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5463var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5491var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5515var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5542var comp = CreateCompilation(source); 5573var comp = CreateCompilation(source); 5604var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5637var comp = CreateCompilation(source); 5717var comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.RegularPreview); 5751var comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.RegularPreview); 5773var comp = CreateCompilation(source); 5807var comp = CreateCompilation(source); 5839var comp = CreateCompilation(source); 5872var comp = CreateCompilation(source); 5899var comp = CreateCompilation(source); 5922var comp = CreateCompilation(source); 5944var comp = CreateCompilation(source); 5969var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 5997var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 6041var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6069var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6103var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6176var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview); 6197var comp = CreateCompilation(source); 6220var comp = CreateCompilation(source); 6245var comp = CreateCompilation(source); 6267var comp = CreateCompilation(source); 6288var comp = CreateCompilation(source); 6310var comp = CreateCompilation(source); 6331var comp = CreateCompilation(source); 6352var comp = CreateCompilation(source); 6374var comp = CreateCompilation(source); 6395var comp = CreateCompilation(source); 6416var comp = CreateCompilation(source); 6437var comp = CreateCompilation(source); 6458var comp = CreateCompilation(source); 6478var comp = CreateCompilation(source); 6498var comp = CreateCompilation(source); 6511private void VerifyParameter(CSharpCompilation comp, int index) 6530var comp = CreateCompilation(@" 6566var comp = CreateCompilation(@" 6601var comp = CreateCompilation(@" 6635var comp = CreateCompilation(@" 6671var comp = CreateCompilation(@" 6703var comp = CreateCompilation(@" 6726var comp = CreateCompilation(@" 6759var comp = CreateCompilation(@" 6783var comp = CreateCompilation(@" 6807var comp = CreateCompilation(@" 6836var comp = CreateCompilation(@" 6877var comp = CreateCompilation(source); 7014var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 7040var comp = CreateCompilation(source); 7069var comp = CreateCompilation(source); 7100var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7164var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 7183var comp = CreateCompilation(source); 7205var comp = CreateCompilation(source); 7231var comp = CreateCompilation(source); 7251var comp = CreateCompilation(source); 7273var comp = CreateCompilation(source); 7292var comp = CreateCompilation(source); 7314var comp = CreateCompilation(source); 7333var comp = CreateCompilation(source); 7365var comp = CreateCompilation(source); 7394var comp = CreateCompilation(source); 7418var comp = CreateCompilation(source); 7438var comp = CreateCompilation(source); 7467var comp = CreateCompilation(source); 7490var comp = CreateCompilation(source); 7511var comp = CreateCompilation(source); 7529var comp = CreateCompilation(source); 7549var comp = CreateCompilation(source); 7565var comp = CreateCompilation(source); 7581var comp = CreateCompilation(source); 7597var comp = CreateCompilation(source); 7616var comp = CreateCompilation(source); 7634var comp = CreateCompilation(source); 7672var comp = CreateCompilation(source); 7694var comp = CreateCompilation(source); 7716var comp = CreateCompilation(source); 7735var comp = CreateCompilation(source); 7754var comp = CreateCompilation(source); 7777var comp = CreateCompilation(source); 7794var comp = CreateCompilation(source); 7818var comp = CreateCompilation(source); 7842var comp = CreateCompilation(source); 7866var comp = CreateCompilation(source); 8012var comp = CreateCompilation(source).VerifyDiagnostics(); 8060var comp = CreateCompilation(source).VerifyDiagnostics(); 8085var comp = CreateCompilation(source).VerifyDiagnostics(); 8117var comp = CreateCompilation(source).VerifyDiagnostics( 8157var comp = CreateCompilation(source).VerifyDiagnostics(); 8234var comp = CreateCompilation(tree); 8362var comp = CreateCompilation(source).VerifyDiagnostics(); 8395var comp = CreateCompilation(source);
Semantics\LocalFunctionTests.cs (230)
27var comp = CreateCompilationWithMscorlib461AndCSharp(source, options: TestOptions.ReleaseDll, parseOptions: DefaultParseOptions); 50var comp = CreateCompilation(source); 92var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseExe); 149var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseExe); 181var comp = CreateCompilationWithMscorlib46(source); 242var comp = CreateCompilationWithMscorlib46(source); 297var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseExe); 325var comp = CreateCompilationWithMscorlib46(source); 344var comp = CreateCompilation(tree); 439var comp = CreateCompilation(tree); 484var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 532var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 603var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 656var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 710var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 758var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 796var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 843var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 886var comp = CreateCompilation(text, parseOptions: TestOptions.Regular8); 946var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1016var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1050var comp = CreateCompilation(text); 1081var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1118var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1202var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1283var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1348var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1379var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 1415var comp = CreateCompilation(text); 1444var comp = CreateCompilation(source); 1452var compWithUnsafe = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1489var compWithUnsafe = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1518var compWithUnsafe = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1525var comp = CreateCompilation(@" 1544var comp = CreateCompilation(@" 1570var comp = CreateCompilation(@" 1598var comp = CreateCompilation(@" 1614var comp = CreateCompilation(@" 1634var comp = CreateCompilation(@" 1655var comp = CreateCompilation(@" 1692var comp = CreateCompilation(tree); 1808((CSharpCompilation)comp).DeclarationDiagnostics.Verify(); 1883((CSharpCompilation)comp).DeclarationDiagnostics.Verify(); 1899var comp = CreateCompilation(tree); 1955var comp = CreateCompilation(tree); 2023var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2063var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2156var comp = CreateCompilation(src, parseOptions: TestOptions.Regular7_3); 2211var comp = CreateCompilation(@" 2369var comp = CreateCompilation(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12.WithFeature("run-nullable-analysis", "never")); 2449var comp = CreateCompilation(@" 2534var comp = CreateCompilation(@" 2583var comp = CreateCompilation(source); 2654var comp = CreateCompilationWithMscorlib46(@" 2844var comp = CreateCompilation(src, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe); 3032var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3056var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 3205var comp = CreateCompilation(source, options: TestOptions.ReleaseExe.WithAllowUnsafe(true)); 3654var comp = CreateCompilation(source); 3675var comp = CreateCompilation(source); 3733var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 4090var comp = CreateCompilationWithMscorlib461(source, parseOptions: DefaultParseOptions); 4265var comp = CreateCompilationWithMscorlib46(source, parseOptions: DefaultParseOptions, options: TestOptions.DebugExe); 4476var comp = CreateCompilationWithMscorlib46(@" 4603var compilation = CreateCompilationWithMscorlib461(text); 4720var compilation = m.DeclaringCompilation; 4781var comp = CreateCompilationWithMscorlib46(source, parseOptions: DefaultParseOptions, options: TestOptions.DebugExe); 4813var comp = CreateCompilationWithMscorlib46(source, parseOptions: DefaultParseOptions, options: TestOptions.DebugExe); 4846var comp = CreateCompilationWithMscorlib46(source, parseOptions: DefaultParseOptions, options: TestOptions.DebugExe); 4879var comp = CreateCompilationWithMscorlib46(source, parseOptions: DefaultParseOptions, options: TestOptions.DebugExe); 4916var comp = CreateCompilationWithMscorlib46(source, parseOptions: DefaultParseOptions, options: TestOptions.DebugExe); 4952var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9); 4986var comp = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef, CSharpRef }); 5011var comp = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef, CSharpRef }); 5101var comp = CreateCompilation(src); 5164var previous = CreateSubmission("int previousSubmissionVariable = 42;") 5183var previous = CreateSubmission("int previousSubmissionVariable = 42;") 5202var previous = CreateSubmission("void PreviousSubmissionMethod() { }") 5221var previous = CreateSubmission("void PreviousSubmissionMethod() { }") 5254var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5303var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5347var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5388var comp = CreateCompilation(source); 5410var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5449var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5493var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5541var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5580var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5620var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5663var comp = CreateCompilation(source); 5693var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5727var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5755var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 5781var comp = CreateCompilation(source); 5812var comp = CreateCompilation(source); 5842var comp = CreateCompilation(source); 5867var comp = CreateCompilation(source); 5946var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithPreprocessorSymbols("MyDefine")); 5987var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6027var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6058var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6094var comp = CreateCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6125var comp = CreateCompilation(new[] { MaybeNullWhenAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6163var comp = CreateCompilation(new[] { MaybeNullWhenAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6193var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6222var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6263var comp = CreateCompilation(new[] { MaybeNullWhenAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6290var comp = CreateCompilation(new[] { DoesNotReturnAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6319var comp = CreateCompilation(new[] { DoesNotReturnIfAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6337var comp = CreateCompilation(source); 6356var comp = CreateCompilation(source); 6377var comp = CreateCompilation(source); 6405var comp = CreateCompilation(source); 6438var comp = CreateCompilation(source); 6482var comp = CreateCompilation(source); 6529var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 6600var comp = CreateCompilation(source); 6623var comp = CreateCompilation(source); 6652var comp = CreateCompilation(source); 6678var comp = CreateCompilation(source); 6707var comp = CreateCompilation(source); 6739var comp = CreateCompilation(source); 6794var comp = CreateCompilation(source); 6824var comp = CreateCompilation(source); 6868var comp = CreateCompilation(source); 7027var comp = CreateCompilation(source); 7081var comp = CreateCompilation(source); 7140var comp = CreateCompilation(source); 7189var comp = CreateCompilation(source); 7252var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 7282var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 7310var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 7340var comp = CreateCompilation(source, parseOptions: parseOptions); 7414var comp = CreateCompilation(source, parseOptions: parseOptions); 7485var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 7559var comp = CreateCompilation(source, parseOptions: parseOptions); 7618var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 7635private void VerifyTParameter(CSharpCompilation comp, int index, string expectedContainer, bool findAnyways = false, string lookupFinds = "TParameter", SymbolKind symbolKind = SymbolKind.TypeParameter) 7682var comp = CreateCompilation(@" 7718var comp = CreateCompilation(@" 7753var comp = CreateCompilation(@" 7790var comp = CreateCompilation(@" 7826var comp = CreateCompilation(@" 7862var comp = CreateCompilation(@" 7897var comp = CreateCompilation(@" 7924var comp = CreateCompilation(@" 7958var comp = CreateCompilation(@" 7992var comp = CreateCompilation(@" 8019var comp = CreateCompilation(@" 8048var comp = CreateCompilation(@" 8067var comp = CreateCompilation(@" 8086var comp = CreateCompilation(@" 8113var comp = CreateCompilation(@" 8149var comp = CreateCompilation(@" 8185var comp = CreateCompilation(@" 8212var comp = CreateCompilation(@" 8239var comp = CreateCompilation(@" 8273var comp = CreateCompilation(@" 8300var comp = CreateCompilation(@" 8336var comp = CreateCompilation(@" 8371var comp = CreateCompilation(@" 8398var comp = CreateCompilation(@" 8433var comp = CreateCompilation(@" 8452var comp = CreateCompilation(@" 8481var comp = CreateCompilation(@" 8512var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 8532var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 8558var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 8579var comp = CreateCompilation(source); 8591var comp = CreateCompilation(source); 8612var comp = CreateCompilation(source); 8638var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 8670var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 8680private void VerifyParameter(CSharpCompilation comp, int index, string expectedMethod, string parameterName = "parameter") 8728var comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 8767var comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 8808var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 8850var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 8884var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 8915var comp = CreateCompilation(source, parseOptions: parseOptions); 8983var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9004var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9028var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9052var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9076var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9099var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9122var comp = CreateCompilation(source); 9149var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9166var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9186var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9195var comp = CreateCompilation(@" 9231var comp = CreateCompilation(@" 9266var comp = CreateCompilation(@" 9303var comp = CreateCompilation(@" 9355var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9383var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9419var comp = CreateCompilation(source, parseOptions: parseOptions); 9462var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9482var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9509var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }); 9540var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }); 9574var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9591var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9611var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9631var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9654var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9677var comp = CreateCompilation(source); 9708var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9737var comp = CreateCompilation(source, parseOptions: parseOptions); 9777var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9786var comp = CreateCompilation(@" 9820var comp = CreateCompilation(@" 9846var comp = CreateCompilation(@" 9872var comp = CreateCompilation(@" 9913var comp = CreateCompilation(@" 9953var comp = CreateCompilation(@" 9987var comp = CreateCompilation(@" 10018var comp = CreateCompilation(@" 10042var comp = CreateCompilation(@" 10073var comp = CreateCompilation(@" 10097var comp = CreateCompilation(@" 10130var comp = CreateCompilation(@" 10168var comp = CreateCompilation(text); 10373var compilation = CreateCompilation(""" 10417var comp = CreateCompilation(src); 10453var comp = CreateCompilation(src); 10483var comp = CreateCompilation(src); 10513var comp = CreateCompilation(src); 10546var comp = CreateCompilation(src); 10576var comp = CreateCompilation(src);
Semantics\LockTests.cs (14)
39var compilation = CreateCompilation(source); 474var compilation = CreateCompilation( 498var compilation = CreateCompilation( 517var compilation = CreateCompilation( 536var compilation = CreateCompilation( 558var compilation = CreateCompilationWithMscorlib40AndSystemCore( 584var compilation = CreateCompilation( 612var compilation = CreateCompilation( 636var compilation = CreateCompilation( 655var compilation = CreateCompilation( 674var compilation = CreateCompilation( 694private static void VerifySemanticInfoForLockStatements(CSharpCompilation compilation, Symbol symbol, int index = 1, bool isSymbolNull = false) 774var regularCompilation = CreateCompilation(source); 775var strictCompilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithStrictFeature());
Semantics\LookupPositionTests.cs (3)
2269var compilation = CreateCompilation(source); 2298var compilation = CreateCompilation(source); 3116var compilation = CreateCompilationWithMscorlib40(text, parseOptions: parseOptions);
Semantics\LookupTests.cs (25)
27var compilation = CreateCompilationWithMscorlib461(testSrc, parseOptions: parseOptions); 37var compilation = CreateCompilationWithMscorlib461(new[] { tree }, options: TestOptions.ReleaseDll.WithUsings(globalUsings)); 424var comp = CreateCompilation(testSrc); 580var comp = CreateCompilation(testSrc); 619CSharpCompilation compilation = CSharpCompilation.Create("Test.dll", srcTrees, refs); 676CSharpCompilation compilation = CSharpCompilation.Create("Test.dll", srcTrees, refs); 1367var comp = CreateCompilationWithMscorlib40(new[] { tree }); 1498var compilation = CreateCompilation(source); 1559var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 1591var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 1615var compilation = CreateCompilation(source).VerifyDiagnostics( 1639var compilation = CreateCompilation(source); 1666var compilation = CreateCompilation(source); 1707var comp = CreateCompilation(source); 1753var comp = CreateCompilation(source); 1781var comp = CreateCompilation(source); 1816var comp = CreateCompilation(source); 1977var comp = CreateCompilation(source); 2005var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 2036var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 2066var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 2094var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 2117var comp = CreateCompilation(source);
Semantics\MethodBodyModelTests.cs (33)
55var comp = CreateCompilation(tree); 77var comp = CreateCompilation(tree); 100var comp = CreateCompilation(tree); 123var comp = CreateCompilation(tree); 163var comp = CreateCompilation(tree); 203var comp = CreateCompilation(tree); 243var comp = CreateCompilation(tree); 266var comp = CreateCompilation(tree); 294var comp = CreateCompilation(tree); 370var comp = CreateCompilation(tree); 394var comp = CreateCompilation(tree); 417var comp = CreateCompilation(tree); 441var comp = CreateCompilation(tree); 464var comp = CreateCompilation(tree); 487var comp = CreateCompilation(tree); 510var comp = CreateCompilation(tree); 533var comp = CreateCompilation(tree); 564var comp = CreateCompilation(tree); 616var comp = CreateCompilation(tree); 640var comp = CreateCompilation(tree); 667var comp = CreateCompilation(tree); 699var comp = CreateCompilation(tree); 726var comp = CreateCompilation(tree); 751var comp = CreateCompilation(tree); 771var comp = CreateCompilation(tree); 796var comp = CreateCompilation(tree); 833var comp = CreateCompilation(tree); 860var comp = CreateCompilation(tree); 885var comp = CreateCompilation(tree); 912var comp = CreateCompilation(tree); 933var comp = CreateCompilation(tree); 954var comp = CreateCompilation(tree); 993var comp = CreateCompilation(tree);
Semantics\MethodTypeInferenceTests.cs (9)
696var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 751var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 797var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 828var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1041var comp = CreateCompilation(source); 1071var comp = CreateCompilation(source); 1115var compilation = CreateCSharpCompilation(source); 1156var compilation = CreateCSharpCompilation(source); 1197var compilation = CreateCSharpCompilation(source).VerifyDiagnostics();
Semantics\MultiDimensionalArrayTests.cs (15)
298var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options: TestOptions.ReleaseExe); 333var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options: TestOptions.ReleaseExe); 381var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options: TestOptions.ReleaseExe); 421var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options: TestOptions.ReleaseDll); 441var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options: TestOptions.ReleaseDll); 472var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options: TestOptions.ReleaseExe); 532var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options: TestOptions.ReleaseExe); 601var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options: TestOptions.ReleaseExe); 626var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options: TestOptions.ReleaseExe); 680var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options: TestOptions.ReleaseExe); 712var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options: TestOptions.ReleaseExe); 746var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options: TestOptions.ReleaseDll); 1090var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 1538var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 1678var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, references: new[] { SystemCoreRef }, options: TestOptions.ReleaseExe);
Semantics\NamedAndOptionalTests.cs (12)
38var comp = CreateCompilation(source); 810var comp = CreateCompilation(text); 1012var comp = CreateCompilation(source); 1379var comp = CreateCompilation(source); 1569var csharpCompilation = CreateCSharpCompilation("CS", csharp, 1676var libComp = CreateCompilation(library, options: TestOptions.ReleaseDll, assemblyName: "Library"); 1679var exeComp = CreateCompilation(main, new[] { new CSharpCompilationReference(libComp) }, options: TestOptions.ReleaseExe, assemblyName: "Main"); 1746var comp = CreateCompilation(source); 2439var comp = CreateCompilationWithIL(csharp, il, options: TestOptions.DebugExe); 2455var comp = CreateCompilation(csharp); 2481var comp = CreateCompilation(csharp); 2521var comp = CreateCompilation(source);
Semantics\NameLengthTests.cs (14)
70var comp = CreateCompilation(source); 188var comp = CreateCompilation(source); 221var comp = CreateCompilation(source); 270var comp = CreateCompilation(source); 313var comp = CreateCompilation(source); 340var comp = CreateCompilation(source); 374var comp = CreateCompilation(source); 404var comp = CreateCompilation(source, options: TestOptions.DebugDll); 429var comp = CreateCompilation(source, options: TestOptions.DebugDll); 460var comp = CreateCompilation(source); 483var comp = CreateCompilation(source); 531var comp = CreateCompilationWithMscorlib461(source); 555var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 567var comp = CreateCompilation(source);
Semantics\NameOfTests.cs (30)
521var comp = CreateCompilation(@" 598var compilation = CreateCompilation( 622var compilation = CreateCompilation( 641var compilation = CreateCompilation( 663var compilation = CreateCompilation( 689var compilation = CreateCompilation(source); 715var compilation = CreateCompilation(source); 745var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 792var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 829var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 862var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 911var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 944var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 975var comp = CreateCompilation(source).VerifyDiagnostics(); 1046var comp = CreateCompilation(source).VerifyDiagnostics(); 1129var comp = CreateCompilation(source).VerifyDiagnostics(); 1209var comp = CreateCompilation(source).VerifyDiagnostics(); 1292var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 1322var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 1354var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 1371var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 1397var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 1425var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 1449var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe); 1463var compilation = CreateCompilationWithMscorlib461(source).VerifyDiagnostics(); 1505var compilation = CreateCompilationWithMscorlib461(source, null, TestOptions.UnsafeDebugExe); 1543var compilation = CreateCompilationWithMscorlib461(source, null, 1587var compilation = CreateCompilationWithMscorlib461(source, null, TestOptions.UnsafeDebugExe); 1619var compilation = CreateCompilationWithMscorlib461(source, null, TestOptions.UnsafeDebugExe); 1699var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe);
Semantics\NativeIntegerTests.cs (181)
70var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 103var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 175var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute()); 200static void verify(CSharpCompilation comp) 695var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9.WithNoRefSafetyRulesAttribute()); 712static void verify(CSharpCompilation comp) 776var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Mscorlib40); 845var comp = CreateCompilation(new AssemblyIdentity(assemblyName, new Version(1, 0, 0, 0)), new[] { source1 }, references: null); 956var comp = CreateCompilation(new AssemblyIdentity(assemblyName, new Version(1, 0, 0, 0)), new[] { source1 }, references: null); 1049var comp = CreateCompilation(new AssemblyIdentity(assemblyName, new Version(1, 0, 0, 0)), new[] { sourceA }, references: references); 1137var comp = CreateCompilation(new AssemblyIdentity("9ef8b1e0-1ae0-4af6-b9a1-00f2078f299e", new Version(1, 0, 0, 0)), new[] { source1 }, references: null); 1178static TypeSymbol getConstraintType(CSharpCompilation comp) => 1217var comp = CreateCompilation(new AssemblyIdentity("c804cc09-8f73-44a1-9cfe-9567bed1def6", new Version(1, 0, 0, 0)), new[] { source1 }, references: null); 1293var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 1447var comp = CreateEmptyCompilation( 1506var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: parseOptions); 1532var comp = CreateEmptyCompilation(sourceB, references: new[] { reference }, parseOptions: parseOptions); 1537static void verifyCompilation(CSharpCompilation comp, bool includesIEquatable) 1543static void verifyInterfaces(CSharpCompilation comp, NamedTypeSymbol type, SpecialType specialType, bool includesIEquatable) 1570var comp = CreateCompilation(""); 1590var comp = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular9); 1606private static void VerifyCreateNativeIntegerTypeSymbol(CSharpCompilation comp) 1613static void verifyInternalType(CSharpCompilation comp, bool signed) 1643var comp = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular9); 1658static void verifyCreateNativeIntegerTypeSymbol(CSharpCompilation comp) 1725var comp = CreateEmptyCompilation(sourceA); 1893var comp = CreateEmptyCompilation(sourceA, options: TestOptions.UnsafeReleaseDll); 2056var comp = CreateEmptyCompilation(sourceA, options: TestOptions.UnsafeReleaseDll); 2206var comp = CreateEmptyCompilation(sourceA); 2298var comp = CreateEmptyCompilation(sourceA); 2461var compB = CreateEmptyCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular9); 2545var comp = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular9); 2597var comp = CreateEmptyCompilation(sourceA); 2701var comp = CreateEmptyCompilation(sourceA); 2871var comp = CreateEmptyCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9); 2925var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular8); 2972var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular8); 3014var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 3112var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 3159var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular8); 3194var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 3253var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 3299var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular8); 3358var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 3402var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3426var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 3450var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 3489var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.Regular9); 3527var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 3563var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular8); 3596var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 3620var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 3631static void verify(CSharpCompilation comp) 3670var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.ReleaseExe); 3676void verify(CSharpCompilation comp) 3702var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 3713static void verify(CSharpCompilation comp) 3736var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 3747static void verify(CSharpCompilation comp) 3772var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics( 3815var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular8); 3833var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular8); 3879var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular8); 3933var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 3965var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular8); 4001var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4023var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular8); 4051var comp = CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular8); 4071var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4106var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4114static void verify(CSharpCompilation comp) 4143var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4170var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular8); 4202var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4231var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4263var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4282var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4309var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 4340var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9); 4416var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9); 4452var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 4488var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.StandardAndCSharp); 4544var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 4596var comp = CreateEmptyCompilation(sourceA); 4687var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 4758var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4766static void verifyOperators(CSharpCompilation comp) 4812static void verifyUnaryOperators(CSharpCompilation comp, UnaryOperatorKind operatorKind, bool skipNativeIntegerOperators) 4823static void verifyBinaryOperators(CSharpCompilation comp, BinaryOperatorKind operatorKind, bool skipNativeIntegerOperators) 4884var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 4996var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5144var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 5203var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 5226var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5338var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5487var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5535var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5579var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5671var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5713var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5782var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5844var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 5889var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 6019var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 6057var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6105var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6186var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6286var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6360var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6410var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6545var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6592var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6731var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 6840var comp = CreateCompilation(source); 6895var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6916var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 6941var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9); 6970var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9); 7003var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9); 7042var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7082var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9); 7116var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9); 7146var comp = CreateCompilation(source); 7214var comp = CreateCompilation(new[] { sourceA, sourceB }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 7287var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 7454var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 9490var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithAllowUnsafe(useUnsafeContext), parseOptions: TestOptions.Regular9); 9725var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 10099var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 10326var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 10376var comp = CreateEmptyCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 10493var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 12376var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithAllowUnsafe(useUnsafeContext), parseOptions: TestOptions.Regular9); 12437var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 12662var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 12865var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 12940var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 13264var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 13308var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 13336var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 13401var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 13487var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 13516var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 13540var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9); 13569var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 13605var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 13664var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9); 13727var comp = CreateCompilation(sourceB, new[] { refA }, parseOptions: TestOptions.Regular9); 13872var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9); 14010var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9); 14218var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14246var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14301var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14370var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll); 14419var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14441var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14474var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14510var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14598var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14627var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14650var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14675var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14704var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14729var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 14742static TypeSymbol getInterface(CSharpCompilation comp, string typeName) => 14764var comp = CreateCompilation(source); 14815var comp = CreateCompilation(source); 15064var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 15120var comp = CreateCompilation(source); 15162var comp = CreateCompilation(source); 15229var comp = CreateCompilation(source); 15297var comp = CreateCompilation(source); 15312var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 15333var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 15356var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 15384var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 15407var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 15433var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 15832var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 15856var comp = CreateCompilation(source); 15877var comp = CreateCompilation(source);
Semantics\NonTrailingNamedArgumentsTests.cs (33)
89var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 164var comp = CreateCompilationWithMscorlib40(source, parseOptions: TestOptions.Regular7_1, references: new[] { Net40.References.SystemCore }); 197var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 228var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 264var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 300var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_2); 334var lib = CreateCompilation(lib_cs, parseOptions: TestOptions.Regular7); 358var comp = CreateCompilation(source); 414var comp = CreateCompilation(source); 446var comp = CreateCompilation(source); 475var comp = CreateCompilation(source); 525var comp = CreateCompilation(source); 558var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 589var comp = CreateCompilation(source); 618var comp = CreateCompilation(source); 640var comp = CreateCompilation(source); 673var comp = CreateCompilation(source, options: TestOptions.DebugExe); 701var comp = CreateCompilation(source); 815var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_2); 822var comp2 = CreateCompilation(source, parseOptions: TestOptions.Regular7); 843var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_2); 874var comp = CreateCompilation(source); 906var comp = CreateCompilation(source); 925var comp = CreateCompilation(source); 971var comp = CreateCompilation(source); 1009var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 1044var comp = CreateCompilation(source); 1072var comp = CreateCompilation(source); 1090var comp = CreateCompilation(source); 1143var comp = CreateCompilation(source); 1159var comp = CreateCompilation(source); 1177var comp = CreateCompilation(source); 1197var comp = CreateCompilation(source);
Semantics\NullableContextTests.cs (29)
63var comp = CreateCompilation(source, options: WithNullable(globalContext)); 95var comp = CreateCompilation(new[] { source1, source2 }, options: WithNullableEnable()); 196var comp = CreateCompilation(source, parseOptions: parseOptions); 245var comp = CreateCompilation(source, parseOptions: parseOptions); 304var comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: parseOptions); 346var comp = CreateCompilation(source, parseOptions: parseOptions); 385var comp = CreateCompilation(source, parseOptions: parseOptions); 420var comp = CreateCompilation(source, parseOptions: parseOptions); 560var comp = CreateCompilation(sourceB, options: options, references: new[] { refA }); 723var comp = CreateCompilation(source); 983var comp = CreateCompilation(source); 1064var comp = CreateCompilation(source, options: options); 1148var comp = CreateCompilation(source); 1207var comp = CreateCompilation(source); 1298var comp = CreateCompilation(source); 1355var comp = CreateCompilation(source); 1450var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }); 1484var comp = CreateCompilation(new[] { source1, source2 }); 1514var comp = CreateCompilation(source); 1585var comp = CreateCompilation(source); 1737var comp = CreateCompilation(source, options: options); 1767var comp = CreateCompilation(source); 1836var comp = CreateCompilation(source); 1874var comp = CreateCompilation(source); 1923var comp = CreateCompilation(source); 1965var comp = CreateCompilation(source); 2005var comp = CreateCompilation(source); 2044var comp = CreateCompilation(source); 2225var comp = CreateCompilation(source, options: options);
Semantics\NullableConversionTests.cs (2)
653var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithWarningLevel(0)); 747var compilation = CreateCompilation(source);
Semantics\NullableReferenceTypesTests.cs (3786)
97private CSharpCompilation CreateNullableCompilation(CSharpTestSource source, 104private static bool IsNullableAnalysisEnabled(CSharpCompilation compilation, string methodName) 123var comp = CreateNullableCompilation(@" 143var comp = CreateNullableCompilation(@" 177var comp = CreateCompilation(@" 231var comp = CreateCompilation(@" 273var comp = CreateCompilation(@" 315var comp = CreateCompilation(@" 357var comp = CreateCompilation(@" 381var comp = CreateCompilation(@" 424var comp = CreateCompilation(@" 441var comp = CreateCompilation(@" 468var comp = CreateCompilation(@" 513var comp = CreateCompilation(@" 533var comp = CreateCompilation(@" 557var comp = CreateCompilation(@" 579var comp = CreateCompilation(@" 602var comp = CreateCompilation(@" 629var comp = CreateCompilation(@" 652var comp = CreateCompilation(@" 677var comp = CreateCompilation(@" 707var comp = CreateCompilation(@" 740var comp = CreateCompilation(@" 770var comp = CreateCompilation(@" 800var comp = CreateCompilation(@" 834var comp = CreateCompilation(@" 863var comp = CreateCompilation(@" 895var comp = CreateCompilation(@" 923var comp = CreateNullableCompilation(@" 934var comp = CreateCompilation(@" 967var comp = CreateCompilation(@" 998var comp = CreateCompilation(@" 1031var comp = CreateCompilation(@" 1061var comp = CreateCompilation(@" 1101var comp = CreateCompilation(@" 1125var comp = CreateCompilation(source, options: WithNullableEnable()); 1150var comp = CreateCompilation(source, options: WithNullableEnable()); 1189var compilation = CreateCompilation(source); 1212var compilation = CreateNullableCompilation(source); 1243var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 1285var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseDll); 1302var comp = CreateCompilation(@" 1332var comp = CreateCompilation(@" 1346var comp = CreateCompilation(@" 1368var comp = CreateCompilationWithMscorlibAndSpan(@" 1396var comp = CreateCompilation(@" 1433var comp = CreateCompilation(@" 1473var comp = CreateCompilation(source); 1509var comp = CreateCompilation(source); 1516var comp = CreateCompilation(@" 1641var comp = CreateCompilation(@" 1721var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 1747var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 1781var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 1834var comp = CreateCompilation(source, options: WithNullableEnable()); 1862var comp = CreateCompilation(source, options: WithNullableEnable()); 1887var comp = CreateCompilation(source, options: WithNullableEnable()); 1918CSharpCompilation c = CreateCompilation(new[] { @" 1952var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 2087var compilation2 = CreateCompilation(source2, new[] { reference.WithEmbedInteropTypes(true), CSharpRef }, options: TestOptions.ReleaseExe); 2104var comp = CreateCompilation(source, options: WithNullableEnable()); 2134var comp = CreateCompilation(source, options: WithNullableEnable()); 2157var comp = CreateCompilationWithCSharp(source, options: WithNullableEnable()); 2191var comp = CreateCompilationWithCSharp(source, options: WithNullableEnable()); 2211var comp = CreateCompilationWithMscorlibAndSpan(@" 2237var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 2259var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 2298var comp = CreateCompilation(source, options: WithNullableEnable()); 2337var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 2370var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 2413var comp = CreateCompilation(source, options: WithNullableEnable()); 2455var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 2516var comp = CreateCompilation(source, options: WithNullableEnable()); 2564var comp = CreateCompilation(source, options: WithNullableEnable()); 2667var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 2693var comp = CreateCompilation(source, options: WithNullable(TestOptions.UnsafeReleaseDll, NullableContextOptions.Enable)); 2734var comp = CreateCompilation(source, options: WithNullableEnable()); 2763var comp = CreateCompilation(@" 2782var comp = CreateCompilation(@" 2815var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 2859var comp = CreateCompilation(source, options: WithNullableEnable()); 2897var comp = CreateCompilation(source, options: WithNullableEnable()); 2914var comp = CreateCompilation(@" 2998var comp = CreateCompilation(source, options: WithNullableEnable()); 3040var comp = CreateCompilation(source, options: WithNullableEnable()); 3099var comp = CreateCompilation(source, options: WithNullableEnable()); 3122var comp = CreateCompilation(source, options: WithNullableEnable()); 3212var comp = CreateCompilation(source, options: WithNullableEnable()); 3254var comp = CreateCompilation(source.Replace("FIELDTYPE", fieldType), options: WithNullableEnable()); 3289var comp = CreateCompilation(source, options: WithNullableEnable()); 3331var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3357var comp = CreateCompilation(source); 3377var comp = CreateCompilation(source); 3401var comp = CreateCompilationWithMscorlib40AndSystemCore(src); 3434var comp = CreateCompilation(src); 3474var comp = CreateCompilation(src); 3632var comp = CreateCompilation(source); 3678var comp = CreateCompilation(source); 3726var comp = CreateCompilation(source, options: WithNullableEnable()); 3741var comp = CreateCompilation(source, options: WithNullableEnable()); 3756var comp = CreateCompilation(source, options: WithNullableEnable()); 3778var comp = CreateCompilation(source, options: WithNullableEnable()); 3816var comp = CreateCompilation(source, options: WithNullableEnable()); 3880var comp = CreateCompilation(source, options: WithNullableEnable()); 4138var c = CreateCompilation(source, parseOptions: TestOptions.Regular7); 4148var c2 = CreateCompilation(source, parseOptions: TestOptions.Regular8); 4174var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4205var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4237var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4262var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4296var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4321var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4347var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4378var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4521var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments, options: WithNullableEnable()); 4554var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments, options: WithNullableEnable()); 4586var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments, options: WithNullableEnable()); 4710var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4743var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 4788var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4827var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4857var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4885var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4929var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 4973var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 5018var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 5068var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 5104var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 5145var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 5166var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 5189var comp = CreateCompilation(source, options: TestOptions.DebugDll); 5239var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: TestOptions.DebugDll); 5285var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Disable)); 5331var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 5393var comp = CreateCompilation(new[] { source0, source1, source2 }, options: TestOptions.DebugDll); 5460var comp = CreateCompilation(source); 5486var comp = CreateCompilation(source); 5511var comp = CreateCompilation(source, options: WithNullableEnable()); 5536var comp = CreateCompilation(source, options: WithNullableDisable()); 5556var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 5576var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 5598var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 5616var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 5638var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 5667var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 5701var comp = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 5736var comp = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 5813var comp = CreateCompilation(new[] { source1, source2, source3, source4 }, 5856var comp = CreateCompilation(source); 5882var comp = CreateCompilation(source, options: WithNullableEnable()); 5902var comp = CreateCompilation(source); 5920var comp = CreateCompilation(source); 5938var comp = CreateCompilation(source); 5954var comp = CreateCompilation(source, options: WithNullable(NullableContextOptions.Annotations)); 5972var comp = CreateCompilation(source, options: WithNullableDisable()); 5990var comp = CreateCompilation(source, options: WithNullableEnable()); 6015var comp = CreateCompilation(source); 6035var comp = CreateCompilation(source); 6055var comp = CreateCompilation(source); 6074var comp = CreateCompilation(source); 6093var comp = CreateCompilation(source); 6112var comp = CreateCompilation(source); 6135var comp = CreateCompilation(source); 6159var comp = CreateCompilation(source); 6178var comp = CreateCompilation(source); 6201var comp = CreateCompilation(source); 6222var comp = CreateCompilation(source); 6246var comp = CreateCompilation(source); 6270var comp = CreateCompilation(source); 6292var comp = CreateCompilation(source, options: WithNullable(NullableContextOptions.Warnings)); 6316var comp = CreateCompilation(source, options: WithNullableDisable()); 6340var comp = CreateCompilation(source, options: WithNullableEnable()); 6357var comp1 = CreateCompilation(source); 6364var comp2 = CreateCompilation(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(id, ReportDiagnostic.Suppress)); 6381var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6398var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6418var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6442var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6465var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6487var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6509var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6532var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6554var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6576var comp = CreateCompilation(source, options: TestOptions.DebugDll); 6601var comp = CreateCompilation(source); 6623var comp = CreateCompilation(source); 6643var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 6667var comp = CreateCompilation(source); 6704var comp = CreateCompilation(source); 6735var comp = CreateCompilation(source); 6789var comp = CreateCompilation(source); 6851var comp = CreateCompilation(source); 6882var comp = CreateCompilation(source); 6904var comp = CreateCompilation(source); 6922var comp = CreateCompilation(source); 6947var comp = CreateCompilation(source); 6965var comp = CreateCompilation(source); 6987var comp = CreateCompilation(source); 7014var comp = CreateCompilation(source); 7045var comp = CreateCompilation(source); 7067var comp = CreateCompilation(source); 7094var comp = CreateCompilation(source); 7124var comp = CreateCompilation(source); 7153var comp = CreateCompilation(source); 7180var comp = CreateCompilation(source); 7209var comp = CreateCompilation(source); 7238var comp = CreateCompilation(source); 7259var comp = CreateCompilation(source); 7280var comp = CreateCompilation(source); 7311var comp = CreateCompilation(source); 7352var comp = CreateCompilation(source); 7424var comp = CreateCompilation(source); 7492var comp = CreateNullableCompilation(source); 7528var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 7620var c = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 7644var c = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 7672var c = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 7702var c = CreateCompilation(new[] { source }, options: WithNullableEnable()); 7724var c = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8, options: WithNullableEnable()); 7748var c = CreateCompilation(new[] { source }, options: WithNullableEnable()); 7796var c = CreateCompilation(source, parseOptions: TestOptions.Regular8); 7811var c = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 7853var c = CreateCompilation(new[] { source }); 7866var c2 = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7_3, skipUsesIsNullable: true); 7887var c = CreateCompilation(new[] { source }); 7906var c = CreateCompilation(new[] { source }, options: WithNullableEnable()); 7940var c = CreateCompilation(new[] { source }); 7961var c = CreateCompilation(new[] { source }); 7985var c = CreateCompilation(new[] { source }, options: WithNullableEnable()); 8007var c = CreateCompilation(new[] { source }, options: WithNullableEnable()); 8048var c = CreateCompilation(new[] { source }, options: WithNullableEnable()); 8082var c = CreateNullableCompilation(source); 8107var c = CreateCompilation(new[] { source }, options: WithNullableEnable()); 8129var c = CreateCompilation(source); 8143CSharpCompilation c = CreateCompilation(new[] { @" 8166CSharpCompilation c = CreateCompilation(new[] { @" 8183CSharpCompilation c = CreateCompilation(new[] { @" 8205CSharpCompilation c = CreateCompilation(new[] { @" 8227CSharpCompilation c = CreateCompilation(new[] { @" 8252CSharpCompilation c = CreateCompilation(new[] { @" 8424var c = CreateCompilation(source, parseOptions: TestOptions.Regular8); 8427var c2 = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 8461var c3 = CreateCompilation(new[] { source }, options: WithNullableDisable(), parseOptions: TestOptions.Regular8); 8486CSharpCompilation c = CreateCompilation(source, parseOptions: TestOptions.Regular8); 8517var comp2 = CreateCompilation(new[] { client }, options: WithNullableEnable(), references: new[] { c.ToMetadataReference() }); 8560var comp = CreateCompilation(source); 8582var comp = CreateCompilation("", options: WithNullableDisable(), parseOptions: TestOptions.Regular7); 8589var comp = CreateCompilation("", options: WithNullable(NullableContextOptions.Enable), parseOptions: TestOptions.Regular7_3); 8644var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular7); 8669var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular7); 8679CSharpCompilation c = CreateCompilation(new[] { @" 8705var comp0 = CreateEmptyCompilation(source0, parseOptions: TestOptions.Regular7); 8715var comp = CreateEmptyCompilation( 8754var comp = CreateEmptyCompilation(new[] { source, source2 }); 8767var comp2 = CreateEmptyCompilation(new[] { source, source3 }); 8780var comp3 = CreateEmptyCompilation(new[] { source, source4 }); 8808TypeWithAnnotations getParameterType(CSharpCompilation c) => c.GetMember<MethodSymbol>("A.F").Parameters[0].TypeWithAnnotations; 8811var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 8818var comp1 = CreateCompilation(source1, references: compRefs0, parseOptions: TestOptions.Regular7); 8928var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 8931void verify(CSharpCompilation c) 8945var comp1A = CreateCompilation(source1, references: new MetadataReference[] { new CSharpCompilationReference(comp0) }); 8948var comp1B = CreateCompilation(source1, references: new[] { comp0.EmitToImageReference() }); 8975var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 8985void verify(CSharpCompilation c) 8995var comp1A = CreateCompilation(source1, references: new[] { new CSharpCompilationReference(comp0) }); 8998var comp1B = CreateCompilation(source1, references: new[] { comp0.EmitToImageReference() }); 9017var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7); 9043var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7); 9081var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 9083var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable(), 9155var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 9158var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable(), 9242var comp0 = CreateCompilation(new[] { source0 }, options: WithNullableEnable()); 9246var comp1 = CreateCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular7); 9250var comp2A = CreateCompilation(source2, references: new[] { ref0, ref1 }, parseOptions: TestOptions.Regular7); 9253var comp2B = CreateCompilation(source2, references: new[] { ref0, ref1 }); 9256var comp2C = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), references: new[] { ref0, ref1 }); 9277var comp2D = CreateCompilation(new[] { source2 }, options: WithNullableDisable(), references: new[] { ref0, ref1 }); 9325var comp0 = CreateCompilation(source0); 9336var comp1 = CreateCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular7); 9340var comp2 = CreateCompilation(source2, references: new[] { ref0, ref1 }); 9424var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 9427var comp1 = CreateCompilation(source1, references: new MetadataReference[] { new CSharpCompilationReference(comp0) }); 9448var comp = CreateCompilation(new[] { source }); 9467var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 9478var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 9492var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 9500var lib = CreateCompilation(lib_cs, assemblyName: "lib"); 9503var lib2 = CreateCompilation(lib2_cs, references: new[] { lib.EmitToImageReference() }, assemblyName: "lib2"); 9509var comp = CreateCompilation(source_cs, references: new[] { lib2.EmitToImageReference() }); 9534var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 9548var obliviousComp = CreateCompilation(obliviousLib, parseOptions: TestOptions.Regular7); 9566var libComp = CreateCompilation(new[] { lib }, options: WithNullableEnable()); 9653var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), 9698var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 9717var obliviousComp = CreateCompilation(obliviousLib, parseOptions: TestOptions.Regular7); 9735var libComp = CreateCompilation(new[] { lib }, options: WithNullableEnable()); 9804var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), 9854var obliviousComp = CreateCompilation(obliviousLib, parseOptions: TestOptions.Regular7); 9863var libComp = CreateCompilation(new[] { lib }, options: WithNullableEnable()); 9923var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), 9956var obliviousComp = CreateCompilation(obliviousLib, parseOptions: TestOptions.Regular7); 9967var libComp = CreateCompilation(new[] { lib }, options: WithNullableEnable()); 10032var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), 10083var obliviousComp = CreateCompilation(obliviousLib, parseOptions: TestOptions.Regular7); 10095var libComp = CreateCompilation(new[] { lib }, options: WithNullableEnable()); 10161var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), 10203var obliviousComp = CreateCompilation(obliviousLib, parseOptions: TestOptions.Regular7); 10213var libComp = CreateCompilation(new[] { lib }, options: WithNullableEnable()); 10278var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), 10312var obliviousComp = CreateCompilation(new[] { obliviousLib }); 10315var compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 10330var comp = CreateCompilation(new[] { source }); 10349var comp = CreateCompilation(new[] { source }); 10379var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7); 10404var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7); 10427var obliviousComp = CreateCompilation(obliviousLib, parseOptions: TestOptions.Regular7); 10441var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), 10511var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 10611var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: WithNullableEnable()); 10684var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 10770var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: WithNullableEnable()); 10845var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 10933var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: WithNullableEnable()); 10976var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 11027var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 11078var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 11123var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: WithNullableEnable()); 11170var comp = CreateCompilation(new[] { source }); 11245var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 11330var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 11361var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 11450var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 11488var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 11563var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 11622var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 11689var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 11728var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 11756var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 11816var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 11881var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 11919var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 11995var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 12077var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 12172var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 12243var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 12304var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 12394var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 12450var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 12484var comp = CreateCompilation(new[] { source }); 12511var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 12537var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 12559var comp = CreateCompilation(new[] { source }); 12603var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 12661var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 12760var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 12866var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 12948var compilation = CreateCompilation(new[] { source }); 13014var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 13105var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 13184var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 13246var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 13308var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 13376var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 13449var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 13507var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 13554var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 13587var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 13625var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 13662var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 13724var compilation = CreateCompilation(new[] { source }); 13849var compilation = CreateCompilation(new[] { source }, new[] { CompileIL(ilSource, prependDefaultHeader: false) }, 13892var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 13962var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 14013var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 14070var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 14126var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 14170var compilation = CreateCompilation(new[] { source }); 14223var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 14279var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 14333var compilation1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable()); 14338var compilation2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), 14385var compilation1 = CreateCompilation(new[] { source1 }, options: options1); 14392var compilation2 = CreateCompilation(new[] { source2 }, options: options2, 14399var compilation3 = CreateCompilation(new[] { source1, source2 }, options: options1); 14403var compilation4 = CreateCompilation(new[] { source2, source1 }, options: options1); 14435var comp = CreateCompilation(source, options: TestOptions.DebugDll); 14485var comp = CreateCompilation(source, options: TestOptions.DebugDll); 14561var comp = CreateCompilation(src, options: WithNullableEnable()); 14663var comp = CreateCompilation(src, options: WithNullableEnable()); 14690var comp = CreateCompilation(src, options: WithNullableEnable()); 14763var comp = CreateCompilation(src, options: WithNullableEnable()); 14869var comp = CreateCompilation(src, options: WithNullableEnable()); 14900var comp = CreateCompilation(src, options: WithNullableEnable()); 14930var comp = CreateCompilation(src, options: WithNullableEnable()); 14946var comp = CreateCompilation(@" 14990var comp = CreateCompilation(@" 15052var comp = CreateCompilation(src, options: WithNullableEnable()); 15106var comp = CreateCompilation(src, options: WithNullableEnable()); 15171var comp = CreateCompilation(src, options: WithNullableEnable()); 15213var comp = CreateCompilation(src, options: WithNullableEnable()); 15246var comp = CreateCompilation(src, options: WithNullableEnable()); 15271var comp = CreateCompilation(src, options: WithNullableEnable()); 15319var comp = CreateCompilation(src, options: WithNullableEnable()); 15340var comp = CreateCompilation(src, targetFramework: TargetFramework.NetCoreApp, options: WithNullableEnable()); 15361var comp = CreateCompilation(src, targetFramework: TargetFramework.NetCoreApp, options: WithNullableEnable()); 15382var comp = CreateCompilation(src, options: WithNullableEnable()); 15403var comp = CreateCompilation(src, options: WithNullableEnable()); 15436var comp = CreateCompilation(src, options: WithNullableEnable()); 15469var comp = CreateCompilation(src, options: WithNullableEnable()); 15495var comp = CreateCompilation(src, options: WithNullableEnable()); 15537var comp = CreateCompilation(src, options: WithNullableEnable()); 15558var comp = CreateCompilation(src, targetFramework: TargetFramework.NetCoreApp, options: WithNullableEnable()); 15579var comp = CreateCompilation(src, targetFramework: TargetFramework.NetCoreApp, options: WithNullableEnable()); 15600var comp = CreateCompilation(src, options: WithNullableEnable()); 15621var comp = CreateCompilation(src, options: WithNullableEnable()); 15669var comp = CreateCompilation(src, options: WithNullableEnable()); 15726var comp = CreateCompilation(src, options: WithNullableEnable()); 15794var comp = CreateCompilation(src, targetFramework: TargetFramework.NetCoreApp, options: WithNullableEnable()); 15853var comp = CreateCompilation(src, targetFramework: TargetFramework.NetCoreApp, options: WithNullableEnable()); 15899var comp = CreateCompilation(src, targetFramework: TargetFramework.NetCoreApp, options: WithNullableEnable()); 15927var comp = CreateCompilation(src, targetFramework: TargetFramework.NetCoreApp, options: WithNullableEnable()); 15948var comp = CreateCompilation(src, options: WithNullableEnable()); 15982var comp = CreateCompilation(src, options: WithNullableEnable()); 16010var comp = CreateCompilation(src, targetFramework: TargetFramework.NetCoreApp, options: WithNullableEnable()); 16038var comp = CreateCompilation(src, targetFramework: TargetFramework.NetCoreApp, options: WithNullableEnable()); 16059var comp = CreateCompilation(src, options: WithNullableEnable()); 16087var comp = CreateCompilation(src, options: WithNullableEnable()); 16134var comp = CreateCompilation(src, options: WithNullableEnable()); 16178var comp = CreateCompilation(src, options: WithNullableEnable()); 16232var comp = CreateCompilation(src, options: WithNullableEnable()); 16260var comp = CreateCompilation(src, options: WithNullableEnable()); 16298var comp = CreateCompilation(src, options: WithNullableEnable()); 16342var comp = CreateCompilation(src, options: WithNullableEnable()); 16399var comp = CreateCompilation(src, options: WithNullableEnable()); 16441var comp = CreateCompilation(src, options: WithNullableEnable()); 16492var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 16548var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 16620var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 16705var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 16790var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 16863var comp = CreateCompilation(source, options: WithNullableEnable()); 16996var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 17071var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 17143var comp = CreateCompilation(source, options: WithNullableEnable()); 17169var comp1 = CreateCompilation(source1, options: WithNullableEnable()); 17185var comp2 = CreateCompilation(source2, references: new[] { comp1.ToMetadataReference() }, options: WithNullableEnable()); 17229var comp = CreateCompilation(source, options: WithNullableEnable()); 17345var comp = CreateCompilation(source, options: WithNullableEnable()); 17405var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 17473var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 17554var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 17638var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.DebugExe)); 17722var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 17783var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 17833var compilation = CreateCompilation(source).VerifyDiagnostics(); 17864var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 17909var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 17982var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 18034var compilation = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 18129var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 18136CSharpCompilation c = CreateCompilation( 18635CSharpCompilation c = CreateCompilation(new[] { @" 18783CSharpCompilation c = CreateCompilation(new[] { @" 18815CSharpCompilation c = CreateCompilation(new[] { @" 18877var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 18941var c = CreateCompilation(new[] { source }, options: WithNullableEnable()); 18963var c2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable()); 18974CSharpCompilation c = CreateCompilation(new[] { @" 19019CSharpCompilation c = CreateCompilation(new[] { @" 19064CSharpCompilation c = CreateCompilation(new[] { @" 19096CSharpCompilation c = CreateCompilation(new[] { @" 19131CSharpCompilation c = CreateCompilation(new[] { @" 19194var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 19248var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 19272var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 19308var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 19342var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 19352CSharpCompilation c = CreateCompilation(new[] { @" 19417CSharpCompilation c = CreateCompilation(new[] { @" 19494CSharpCompilation c = CreateCompilation(new[] { @" 19537CSharpCompilation c = CreateCompilation(new[] { @" 19601var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 19630var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 19649CSharpCompilation c0 = CreateCompilation(@" 19671CSharpCompilation c = CreateCompilation(new[] { @" 19800CSharpCompilation c0 = CreateCompilation(@" 19807CSharpCompilation c = CreateCompilation(new[] { @" 19868CSharpCompilation c0 = CreateCompilation(@" 19875CSharpCompilation c = CreateCompilation(new[] { @" 19913CSharpCompilation c0 = CreateCompilation(@" 19920CSharpCompilation c = CreateCompilation(new[] { @" 19984CSharpCompilation c0 = CreateCompilation(@" 19991CSharpCompilation c = CreateCompilation(new[] { @" 20034CSharpCompilation c0 = CreateCompilation(@" 20041CSharpCompilation c = CreateCompilation(new[] { @" 20114CSharpCompilation c0 = CreateCompilation(@" 20121CSharpCompilation c = CreateCompilation(new[] { @" 20169CSharpCompilation c0 = CreateCompilation(@" 20189CSharpCompilation c = CreateCompilation(new[] { @" 20296CSharpCompilation c = CreateCompilation(new[] { @" 20334CSharpCompilation c = CreateCompilation(new[] { @" 20370CSharpCompilation c = CreateCompilation(new[] { @" 20403var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 20437var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 20457CSharpCompilation c = CreateCompilation(new[] { @" 20479var c = CreateNullableCompilation(new[] { @" 20515CSharpCompilation c = CreateCompilation(new[] { @" 20559CSharpCompilation c = CreateCompilation(new[] { @" 20603CSharpCompilation c = CreateCompilation(new[] { @" 20638CSharpCompilation c = CreateCompilation(new[] { @" 20684CSharpCompilation c = CreateCompilation(new[] { @" 20730CSharpCompilation c = CreateCompilation(new[] { @" 20771CSharpCompilation c = CreateCompilation(new[] { @" 20813CSharpCompilation c = CreateCompilation(new[] { @" 20855var c = CreateNullableCompilation(new[] { @" 20877var c = CreateNullableCompilation(new[] { @" 20899var c = CreateNullableCompilation(new[] { @" 22756var c = CreateNullableCompilation(new[] { @" 22807var c = CreateNullableCompilation(new[] { @" 22892var c = CreateNullableCompilation(new[] { @" 22948var c = CreateNullableCompilation(new[] { @" 23004var c = CreateNullableCompilation(new[] { @" 23054var libComp = CreateNullableCompilation(new[] { @" 23072var c = CreateNullableCompilation(@" 23150var c = CreateNullableCompilation(new[] { @" 23286var libComp = CreateNullableCompilation(new[] { @" 23300var c = CreateNullableCompilation(@" 23399var c = CreateNullableCompilation(new[] { @" 23460var c = CreateNullableCompilation(new[] { @" 23499var c = CreateNullableCompilation(new[] { @" 23524var c = CreateNullableCompilation(new[] { @" 23551var libComp = CreateNullableCompilation(new[] { @" 23563var c = CreateNullableCompilation(new[] { @" 23587var c = CreateNullableCompilation(new[] { @" 23625var c = CreateNullableCompilation(new[] { @" 23701var c = CreateCompilation(new[] { source, MemberNotNullAttributeDefinition, MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular8); 23720var c2 = CreateCompilation(new[] { source, MemberNotNullAttributeDefinition, MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 23731var c = CreateNullableCompilation(new[] { @" 23788var c = CreateNullableCompilation(new[] { @" 23830var c = CreateNullableCompilation(new[] { @" 23883var c = CreateNullableCompilation(new[] { @" 23944var c = CreateNullableCompilation(new[] { @" 24015var c = CreateNullableCompilation(new[] { @" 24055var c = CreateNullableCompilation(new[] { @" 24101var c = CreateNullableCompilation(new[] { @" 24148var c = CreateNullableCompilation(new[] { @" 24189var c = CreateNullableCompilation(new[] { @" 24231var c = CreateNullableCompilation(new[] { @" 24273var c = CreateNullableCompilation(new[] { @" 24303var c = CreateNullableCompilation(new[] { @" 24348var c = CreateNullableCompilation(new[] { @" 24399var c = CreateNullableCompilation(new[] { @" 24423var c = CreateNullableCompilation(new[] { @" 24452var c = CreateNullableCompilation(new[] { @" 24471var c = CreateNullableCompilation(new[] { @" 24506var c = CreateNullableCompilation(new[] { @" 24544var c = CreateNullableCompilation(new[] { @" 24583var c = CreateNullableCompilation(new[] { @" 24610var c = CreateNullableCompilation(new[] { @" 24654var c = CreateNullableCompilation(new[] { @" 24699var c = CreateNullableCompilation(new[] { @" 24752var c = CreateNullableCompilation(new[] { @" 24794var c = CreateNullableCompilation(new[] { @" 24836var c = CreateNullableCompilation(new[] { @" 24883var c = CreateNullableCompilation(new[] { @" 24914var c = CreateNullableCompilation(new[] { @" 24945var c = CreateNullableCompilation(new[] { @" 25015var c = CreateNullableCompilation(new[] { @" 25085var c = CreateNullableCompilation(new[] { @" 25110var c = CreateNullableCompilation(new[] { @" 25160var c = CreateNullableCompilation(new[] { @" 25207var c = CreateNullableCompilation(new[] { @" 25238var c = CreateNullableCompilation(new[] { @" 25269var c = CreateNullableCompilation(new[] { @" 25323var c = CreateNullableCompilation(new[] { @" 25370var c = CreateNullableCompilation(new[] { @" 25440var libComp = CreateNullableCompilation(new[] { @" 25461var c = CreateNullableCompilation(@" 25513var libComp = CreateNullableCompilation(new[] { @" 25532var c = CreateNullableCompilation(@" 25583var c = CreateNullableCompilation(new[] { @" 25653var libComp = CreateNullableCompilation(new[] { @" 25672var c = CreateNullableCompilation(@" 25723var c = CreateNullableCompilation(new[] { @" 25791var c = CreateNullableCompilation(new[] { @" 25842var c = CreateNullableCompilation(new[] { @" 25896var c = CreateNullableCompilation(new[] { @" 25975var c = CreateNullableCompilation(new[] { @" 26036var c = CreateNullableCompilation(new[] { @" 26094var c = CreateNullableCompilation(new[] { @" 26156var c = CreateNullableCompilation(new[] { @" 26198var c = CreateNullableCompilation(new[] { @" 26250var c = CreateNullableCompilation(new[] { @" 26303var c = CreateNullableCompilation(new[] { @" 26345var c = CreateNullableCompilation(new[] { @" 26389var c = CreateNullableCompilation(new[] { @" 26432var c = CreateNullableCompilation(new[] { @" 26481var c = CreateNullableCompilation(new[] { @" 26532var c = CreateNullableCompilation(new[] { @" 26596var c = CreateNullableCompilation(new[] { @" 26631var c = CreateNullableCompilation(new[] { @" 26666var c = CreateNullableCompilation(new[] { @" 26694var c = CreateNullableCompilation(new[] { @" 26741var c = CreateNullableCompilation(new[] { @" 26777var c = CreateNullableCompilation(new[] { @" 26818var c = CreateNullableCompilation(new[] { @" 26865var c = CreateNullableCompilation(new[] { @" 26901var c = CreateCompilation(@" 26932var c = CreateCompilation(new[] { @" 26965var c = CreateCompilation(new[] { @" 27004var c = CreateCompilation(new[] { @" 27043var c = CreateCompilation(new[] { @" 27079var c = CreateCompilation(new[] { @" 27113var c = CreateCompilation(new[] { @" 27145var c = CreateCompilation(new[] { @" 27176var c = CreateCompilation(new[] { @" 27205var c = CreateCompilation(new[] { @" 27286var comp = CreateCompilation(src); 27319var comp = CreateCompilation(src); 27346var comp = CreateCompilation(src); 27369var comp = CreateCompilation(src); 27401var comp = CreateCompilation(src); 27426var comp = CreateCompilation(src); 27468var comp = CreateCompilation(src); 27506var comp = CreateCompilation(src); 27568var comp = CreateCompilation(src); 27591var c = CreateCompilation(new[] { @" 27622var c = CreateCompilation(new[] { @" 27653var c = CreateCompilation(new[] { @" 27689var c = CreateCompilation(new[] { @" 27728var c = CreateCompilation(new[] { @" 27765var c = CreateCompilation(new[] { @" 27798var c = CreateCompilation(new[] { @" 27831var c = CreateCompilation(new[] { @" 27864var c = CreateCompilation(new[] { @" 27902var c = CreateCompilation(new[] { @" 27933var c = CreateCompilation(new[] { @" 27968var c = CreateCompilation(new[] { @" 28006var c = CreateCompilation(new[] { @" 28035var c = CreateCompilation(new[] { @" 28070var c = CreateCompilation(new[] { @" 28111var c = CreateCompilation(new[] { @" 28141var c = CreateCompilation(new[] { @" 28175var c = CreateCompilation(new[] { @" 28209var c = CreateCompilation(new[] { @" 28243var c = CreateCompilation(new[] { @" 28277var c = CreateCompilation(new[] { @" 28311var c = CreateCompilation(new[] { @" 28344var c = CreateCompilation(new[] { @" 28371var c = CreateCompilation(new[] { @" 28398var c = CreateCompilation(new[] { @" 28425var c = CreateCompilation(new[] { @" 28448var c = CreateCompilation(new[] { @" 28475var c = CreateCompilation(new[] { @" 28521var comp = CreateNullableCompilation(new[] { source }); 28539var comp = CreateNullableCompilation(new[] { source }); 28559var comp = CreateNullableCompilation(new[] { source }); 28582var comp = CreateNullableCompilation(new[] { source }); 28592var c = CreateCompilation(new[] { @" 28623var c = CreateCompilation(new[] { @" 28747var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, source }); 28895var lib = CreateNullableCompilation(new[] { @" 28903var c = CreateNullableCompilation(@" 28927var lib = CreateNullableCompilation(new[] { @" 28935var c = CreateNullableCompilation(@" 28957var c = CreateNullableCompilation(new[] { @" 28982var c = CreateNullableCompilation(new[] { @" 29010var c = CreateNullableCompilation(new[] { @" 29030var c = CreateNullableCompilation(new[] { @" 29055var c = CreateNullableCompilation(new[] { @" 29078var c = CreateNullableCompilation(new[] { @" 29097var lib = CreateNullableCompilation(new[] { @" 29105var c = CreateNullableCompilation(@" 29127var lib = CreateNullableCompilation(new[] { @" 29135var c = CreateNullableCompilation(@" 29177var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition }); 29194var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition }); 29214var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition, NotNullWhenAttributeDefinition }); 29241var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition }); 29279var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition }); 29310var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition }); 29342var comp = CreateNullableCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 29376var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition }); 29406var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition }); 29429var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition }); 29448var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition }); 29477var comp = CreateNullableCompilation(new[] { source, NotNullAttributeDefinition }); 29507var comp = CreateNullableCompilation(new[] { source, NotNullAttributeDefinition }); 29536var comp = CreateNullableCompilation(new[] { source, NotNullAttributeDefinition }); 29588var comp = CreateNullableCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 29630var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 29641var c = CreateCompilation(new[] { @" 29669var c = CreateNullableCompilation(new[] { @" 29707var c = CreateNullableCompilation(new[] { @" 29745var c = CreateNullableCompilation(new[] { @" 29804var c = CreateCompilation(new[] { @" 29836var c = CreateNullableCompilation(new[] { @" 29861var c = CreateNullableCompilation(new[] { @" 29899var c = CreateCompilation(new[] { @" 29930var c = CreateCompilation(new[] { @" 29958var c = CreateCompilation(new[] { @" 29988var c = CreateCompilation(new[] { @" 30024var c = CreateCompilation(new[] { @" 30053var c = CreateCompilation(new[] { @" 30106var lib = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, lib_cs }); 30166var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 30169var comp2 = CreateNullableCompilation(new[] { source, lib_cs, MaybeNullAttributeDefinition }); 30254var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30272var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, NotNullAttributeDefinition, source }); 30348var lib = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, lib_cs }); 30394var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 30397var comp2 = CreateNullableCompilation(new[] { source, lib_cs, MaybeNullAttributeDefinition }); 30425var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30463var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30498var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30531var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30568var lib = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, lib_cs }); 30613var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 30616var comp2 = CreateNullableCompilation(new[] { source, lib_cs, MaybeNullAttributeDefinition }); 30644var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30679var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30702var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }); 30728var lib = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, lib_cs }); 30791var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 30794var comp2 = CreateNullableCompilation(new[] { source, lib_cs, MaybeNullAttributeDefinition }); 30833var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30857var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30883var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30909var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30931var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30945var c = CreateCompilation(new[] { @" 30973var c = CreateCompilation(new[] { @" 31004var c = CreateNullableCompilation(@" 31038var c = CreateNullableCompilation(@" 31071var c = CreateNullableCompilation(@" 31105var c = CreateNullableCompilation(@" 31139var c = CreateNullableCompilation(@" 31173var c = CreateNullableCompilation(@" 31191var c = CreateNullableCompilation(new[] { @" 31236var c = CreateNullableCompilation(new[] { @" 31289var c = CreateNullableCompilation(new[] { @" 31338var c = CreateNullableCompilation(new[] { @" 31370var c = CreateCompilation(new[] { @" 31402var c = CreateCompilation(new[] { @" 31434var c = CreateNullableCompilation(new[] { @" 31462var c = CreateNullableCompilation(new[] { @" 31493var c = CreateNullableCompilation(new[] { @" 31524var c = CreateNullableCompilation(new[] { @" 31555var c = CreateNullableCompilation(new[] { @" 31680var comp = CreateNullableCompilation(new[] { NotNullWhenAttributeDefinition, source }); 31742var c = CreateNullableCompilation(new[] { @" 31768CSharpCompilation c = CreateCompilation(new[] { @" 31799CSharpCompilation c = CreateCompilation(new[] { @" 31828CSharpCompilation c = CreateCompilation(new[] { @" 31856CSharpCompilation c = CreateCompilation(new[] { @" 31894CSharpCompilation c = CreateCompilation(new[] { @" 31926CSharpCompilation c = CreateCompilation(new[] { @" 31957CSharpCompilation c = CreateCompilation(new[] { @" 31973CSharpCompilation c = CreateCompilation(new[] { @" 32026var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, lib_cs }); 32027var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 32030var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition }); 32075var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }, 32116var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 32161var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 32226var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 32265var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 32330var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 32379var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 32430var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 32504var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 32564var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 32621var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 32678var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 32723var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 32748var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 32767var comp = CreateNullableCompilation(new[] { source, NotNullAttributeDefinition }); 32799var comp = CreateNullableCompilation(new[] { source, NotNullAttributeDefinition, MemberNotNullAttributeDefinition, DisallowNullAttributeDefinition }); 32840var comp = CreateNullableCompilation(new[] { source, NotNullAttributeDefinition, MemberNotNullAttributeDefinition, DisallowNullAttributeDefinition }); 32912var comp = CreateNullableCompilation(new[] { source, NotNullAttributeDefinition, DisallowNullAttributeDefinition }); 32983var comp = CreateNullableCompilation(new[] { source, NotNullAttributeDefinition, DisallowNullAttributeDefinition }); 33032var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition }); 33075var comp = CreateNullableCompilation(new[] { source, NotNullAttributeDefinition }); 33117var comp = CreateNullableCompilation(new[] { source, NotNullAttributeDefinition, MaybeNullAttributeDefinition }); 33147var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, lib_cs }); 33148var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 33151var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition }); 33182var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, lib_cs }); 33183var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 33186var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition }); 33217var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, lib_cs }); 33218var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 33221var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition }); 33254var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, lib_cs }); 33255var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 33258var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition }); 33296var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, lib_cs }); 33297var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 33300var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition }); 33323var comp2 = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 33351var comp2 = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 33378var comp2 = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 33426var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, lib_cs }); 33427var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 33430var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition }); 33461var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, lib_cs }); 33462var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 33465var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition }); 33500var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, lib_cs }); 33501var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 33504var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition }); 33518var comp = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }); 33555var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, lib_cs }); 33556var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 33559var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition }); 33595var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, MaybeNullWhenAttributeDefinition, lib_cs }); 33596var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 33599var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition, MaybeNullWhenAttributeDefinition }); 33642var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, lib_cs }); 33643var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 33646var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition }); 33689var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, lib_cs }); 33690var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 33693var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition }); 33767var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, lib_cs }); 33768var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 33771var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition }); 33817var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, lib_cs }); 33818var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 33821var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition }); 33929var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, lib_cs }); 33930var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 33933var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition }); 33941CSharpCompilation c = CreateCompilation(new[] { @" 34004var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, MaybeNullAttributeDefinition, lib_cs }); 34005var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 34008var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition, MaybeNullAttributeDefinition }); 34032var comp = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }); 34055var comp = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }); 34081var comp = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }); 34107var comp = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }); 34136var comp = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }); 34163var comp = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }); 34194var comp = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }); 34231var comp = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }); 34267var comp = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }); 34304var comp1 = CreateNullableCompilation(new[] { source1, source2, NotNullIfNotNullAttributeDefinition }); 34316var comp2 = CreateNullableCompilation(source2, references: new[] { reference }); 34347var comp = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }); 34380var comp = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }); 34408var comp = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }); 34436var comp = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }); 34483var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, DisallowNullAttributeDefinition, source }); 34629var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, DisallowNullAttributeDefinition, NotNullAttributeDefinition, NotNullIfNotNullAttributeDefinition, source }); 34709var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, MaybeNullAttributeDefinition, DisallowNullAttributeDefinition, source }); 34722CSharpCompilation c = CreateCompilation(new[] { @" 34759CSharpCompilation c = CreateCompilation(new[] { @" 34799CSharpCompilation c = CreateCompilation(new[] { @" 34817CSharpCompilation c = CreateCompilation(new[] { @" 34835CSharpCompilation c = CreateCompilation(new[] { @" 34854CSharpCompilation c = CreateCompilation(new[] { @" 34876CSharpCompilation c = CreateCompilation(new[] { @" 34895CSharpCompilation c = CreateCompilation(new[] { @" 34920CSharpCompilation c = CreateCompilation(new[] { @" 34946CSharpCompilation c = CreateCompilation(new[] { @" 34981private static void VerifyOutVar(CSharpCompilation compilation, string expectedType) 34998private static void VerifyVarLocal(CSharpCompilation compilation, string expectedType) 35026CSharpCompilation c = CreateCompilation(new[] { @" 35050CSharpCompilation c = CreateCompilation(new[] { @" 35070CSharpCompilation c = CreateCompilation(new[] { @" 35105var comp = CreateCompilation(source); 35112CSharpCompilation c = CreateCompilation(new[] { @" 35137CSharpCompilation c = CreateCompilation(new[] { @" 35159CSharpCompilation c = CreateCompilation(new[] { @" 35183CSharpCompilation c = CreateCompilation(new[] { @" 35210CSharpCompilation c = CreateCompilation(new[] { @" 35235CSharpCompilation c = CreateCompilation(new[] { @" 35259CSharpCompilation c = CreateCompilation(new[] { @" 35286CSharpCompilation c = CreateCompilation(new[] { @" 35307var c = CreateCompilation(@" 35331var c = CreateCompilation(@" 35356var c = CreateCompilation(@" 35384var c = CreateCompilation(@" 35413var c = CreateCompilation(@" 35457var c = CreateCompilation(@" 35492var c = CreateCompilation(@" 35516var c = CreateCompilation(@" 35540var c = CreateCompilation(@" 35586var c = CreateCompilation(@" 35623var c = CreateCompilation(@" 35647var c = CreateNullableCompilation(@" 35668var c = CreateNullableCompilation(@" 35739var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 35771var comp = CreateCompilation(source); 35795var comp = CreateCompilation(source); 35830var comp = CreateCompilation(source); 35865var comp = CreateCompilation(source); 35874var c = CreateNullableCompilation(@" 35913var c = CreateNullableCompilation(@" 35941var c = CreateNullableCompilation(@" 35960var c = CreateCompilation(@" 35980var c = CreateCompilation(@" 36005var c = CreateCompilation(@" 36053var c = CreateCompilation(@" 36080var c = CreateCompilation(@" 36105var c = CreateCompilation(@" 36139var c = CreateCompilation(@" 36171var c = CreateCompilation(@" 36195var c = CreateCompilation(@" 36219var c = CreateCompilation(@" 36239var c = CreateCompilation(@" 36265var c = CreateCompilation(@" 36309CSharpCompilation c = CreateCompilation(new[] { @" 36330CSharpCompilation c = CreateCompilation(new[] { @" 36351CSharpCompilation c = CreateCompilation(new[] { @" 36376CSharpCompilation c = CreateCompilation(new[] { @" 36403CSharpCompilation c = CreateCompilation(new[] { @" 36424CSharpCompilation c = CreateCompilation(new[] { @" 36451CSharpCompilation c = CreateCompilation(new[] { @" 36475CSharpCompilation c = CreateCompilation(new[] { @" 36499CSharpCompilation c = CreateCompilation(new[] { @" 36519CSharpCompilation c = CreateCompilation(new[] { @" 36543CSharpCompilation c = CreateCompilation(new[] { @" 36564CSharpCompilation c = CreateCompilation(new[] { @" 36591CSharpCompilation c = CreateCompilation(new[] { @" 36617CSharpCompilation c = CreateCompilation(@" 36637CSharpCompilation c = CreateCompilation(new[] { @" 36659CSharpCompilation c = CreateCompilation(new[] { @" 36679var libComp = CreateCompilation(@" 36686var comp = CreateCompilation(new[] { @" 36708var comp = CreateCompilation(new[] { @" 36735var obliviousComp = CreateCompilation(@" 36742var comp = CreateCompilation(new[] { @" 36800CSharpCompilation c = CreateCompilation(new[] { @" 36824CSharpCompilation c = CreateCompilation(new[] { @" 36848CSharpCompilation c = CreateCompilation(new[] { @" 36882CSharpCompilation c = CreateCompilation(new[] { @" 36912CSharpCompilation c = CreateCompilation(new[] { @" 36941CSharpCompilation c = CreateCompilation(new[] { @" 36996var lib = CreateNullableCompilation(new[] { lib_cs, DoesNotReturnAttributeDefinition }); 36997var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 37000var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DoesNotReturnAttributeDefinition }); 37022var comp = CreateCompilation(new[] { source, DoesNotReturnAttributeDefinition }); 37047var comp = CreateNullableCompilation(new[] { source, DoesNotReturnAttributeDefinition }, parseOptions: TestOptions.Regular9); 37073var comp = CreateNullableCompilation(new[] { source, DoesNotReturnAttributeDefinition }, parseOptions: TestOptions.Regular9); 37104var comp = CreateNullableCompilation(new[] { source, DoesNotReturnIfAttributeDefinition }); 37127var comp = CreateNullableCompilation(new[] { source, DoesNotReturnAttributeDefinition }); 37156var lib = CreateNullableCompilation(new[] { lib_cs, DoesNotReturnAttributeDefinition }); 37157var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 37164var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DoesNotReturnAttributeDefinition }); 37193var lib = CreateNullableCompilation(new[] { lib_cs, DoesNotReturnAttributeDefinition, DoesNotReturnIfAttributeDefinition }); 37194var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 37197var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DoesNotReturnAttributeDefinition, DoesNotReturnIfAttributeDefinition }); 37240var lib = CreateNullableCompilation(new[] { lib_cs, DoesNotReturnAttributeDefinition, DoesNotReturnIfAttributeDefinition }); 37241var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 37244var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DoesNotReturnAttributeDefinition, DoesNotReturnIfAttributeDefinition }); 37280var comp = CreateNullableCompilation(new[] { source, DoesNotReturnAttributeDefinition }); 37294CSharpCompilation c = CreateCompilation(new[] { @" 37329var comp = CreateNullableCompilation(new[] { source, DoesNotReturnIfAttributeDefinition }); 37340CSharpCompilation c = CreateCompilation(new[] { @" 37361CSharpCompilation c = CreateCompilation(new[] { @" 37385CSharpCompilation c = CreateCompilation(new[] { @" 37407CSharpCompilation c = CreateCompilation(new[] { @" 37432CSharpCompilation c = CreateCompilation(new[] { @" 37459CSharpCompilation c = CreateCompilation(new[] { @" 37478CSharpCompilation c = CreateNullableCompilation(new[] { @" 37500CSharpCompilation c = CreateCompilation(new[] { @" 37526CSharpCompilation c = CreateCompilation(new[] { @" 37545CSharpCompilation c = CreateCompilation(new[] { @" 37568CSharpCompilation c = CreateCompilation(new[] { @" 37591CSharpCompilation c = CreateCompilation(new[] { @" 37618CSharpCompilation c = CreateCompilation(new[] { @" 37646CSharpCompilation c = CreateCompilation(new[] { @" 37666CSharpCompilation c = CreateCompilation(new[] { @" 37692CSharpCompilation c = CreateCompilation(new[] { $@" 37762var comp = CreateNullableCompilation(source); 37789var comp = CreateCompilation(source); 37805var comp = CreateNullableCompilation(source); 37815CSharpCompilation c = CreateCompilation(new[] { @" 37849CSharpCompilation c = CreateCompilation(new[] { @" 37865CSharpCompilation c = CreateCompilation(new[] { @" 37904CSharpCompilation c = CreateCompilation(new[] { @" 37943CSharpCompilation c = CreateCompilation(new[] { @" 37974CSharpCompilation c = CreateCompilation(new[] { @" 38003CSharpCompilation c = CreateCompilation(new[] { @" 38032CSharpCompilation c = CreateCompilation(new[] { @" 38070private static void VerifyAnnotations(CSharpCompilation compilation, string memberName, params FlowAnalysisAnnotations[] expected) 38078private void VerifyAnnotationsAndMetadata(CSharpCompilation compilation, string memberName, params FlowAnalysisAnnotations[] expected) 38083var compilation2 = CreateCompilation("", references: new[] { compilation.EmitToImageReference() }); 38090CSharpCompilation c = CreateCompilation(new[] { @" 38133CSharpCompilation c = CreateCompilation(new[] { @" 38164CSharpCompilation c = CreateCompilation(new[] { @" 38182CSharpCompilation c = CreateCompilation(new[] { @" 38213CSharpCompilation c = CreateCompilation(new[] { @" 38247CSharpCompilation c = CreateCompilation(new[] { @" 38270CSharpCompilation c = CreateCompilation(new[] { @" 38296CSharpCompilation c = CreateCompilation(new[] { @" 38325CSharpCompilation c = CreateCompilation(new[] { @" 38359CSharpCompilation c = CreateCompilation(new[] { @" 38461var compilation = CreateCompilationWithIL(new[] { source }, il, options: WithNullableEnable()); 38477CSharpCompilation c = CreateCompilation(new[] { @" 38509CSharpCompilation c = CreateCompilation(new[] { @" 38541CSharpCompilation c = CreateCompilation(new[] { @" 38566CSharpCompilation c = CreateCompilation(new[] { @" 38591CSharpCompilation c = CreateCompilation(new[] { @" 38620CSharpCompilation c = CreateCompilation(new[] { @" 38649CSharpCompilation c = CreateCompilation(new[] { @" 38670CSharpCompilation c = CreateCompilation(new[] { @" 38689CSharpCompilation c = CreateCompilation(new[] { @" 38710var c = CreateNullableCompilation(@" 38736var c = CreateNullableCompilation(@" 38762CSharpCompilation c = CreateCompilation(new[] { @" 38786CSharpCompilation c = CreateCompilation(new[] { @" 38810CSharpCompilation c = CreateCompilation(new[] { @" 38833CSharpCompilation c = CreateCompilation(new[] { @" 38852CSharpCompilation c = CreateCompilation(@" 38871CSharpCompilation c = CreateCompilation(new[] { @" 38890CSharpCompilation c = CreateCompilation(new[] { @" 38914CSharpCompilation c = CreateCompilation(new[] { @" 38953CSharpCompilation c = CreateCompilation(new[] { @" 38985CSharpCompilation c = CreateCompilation(new[] { @" 39004CSharpCompilation c = CreateCompilation(new[] { @" 39043CSharpCompilation c = CreateNullableCompilation(new[] { @" 39081CSharpCompilation c = CreateCompilationWithIL(new[] { @" 39185CSharpCompilation c = CreateCompilation(new[] { @" 39212CSharpCompilation c = CreateCompilation(@" 39230CSharpCompilation c = CreateCompilation(new[] { @" 39257CSharpCompilation c = CreateCompilation(new[] { @" 39281CSharpCompilation c = CreateCompilation(new[] { @" 39306CSharpCompilation c = CreateCompilation(new[] { @" 39332CSharpCompilation c = CreateCompilation(new[] { @" 39356CSharpCompilation c = CreateCompilation(new[] { @" 39375CSharpCompilation c = CreateCompilation(new[] { @" 39398CSharpCompilation c = CreateCompilation(new[] { @" 39437CSharpCompilation c = CreateCompilation(new[] { @" 39462CSharpCompilation c = CreateCompilation(new[] { @" 39482CSharpCompilation c = CreateCompilation(new[] { @" 39507CSharpCompilation c = CreateCompilation(new[] { @" 39526CSharpCompilation c = CreateCompilation(new[] { @" 39590var comp = CreateCompilation( 39661var comp = CreateCompilation( 39719var comp = CreateCompilation( 39786var comp = CreateCompilation(new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }); 39863var comp = CreateCompilation( 39901var comp = CreateCompilation( 39947var comp = CreateCompilation( 39999var comp = CreateCompilation( 40075var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, source }, options: WithNullableEnable()); 40122var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullAttributeDefinition, source }); 40193var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, source }, options: WithNullableEnable()); 40227var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, source }, options: WithNullableEnable()); 40262var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, source }); 40297var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, source }, options: WithNullableEnable()); 40311var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, source0 }, options: WithNullableEnable()); 40362var lib = CreateNullableCompilation(new[] { lib_cs, AllowNullAttributeDefinition }); 40426var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 40429var comp2 = CreateNullableCompilation(new[] { source, lib_cs, AllowNullAttributeDefinition }); 40482var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }); 40503var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }); 40517var lib = CreateNullableCompilation(new[] { lib_cs, AllowNullAttributeDefinition }); 40531var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 40558var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition }); 40585var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition }); 40612var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }); 40645var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }); 40682var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition }); 40708var lib = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, lib_cs }); 40778var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }, references: new[] { lib.EmitToImageReference() }); 40781var comp2 = CreateNullableCompilation(new[] { source, lib_cs, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 40817var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, source }); 40860var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition }); 40903var lib = CreateNullableCompilation(new[] { lib_cs, AllowNullAttributeDefinition }); 40954var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 40957var comp2 = CreateNullableCompilation(new[] { source, lib_cs, AllowNullAttributeDefinition }); 41018var comp = CreateNullableCompilation(new[] { lib_cs, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 41078var lib = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, lib_cs }); 41089var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 41092var comp2 = CreateNullableCompilation(new[] { source, lib_cs, AllowNullAttributeDefinition }); 41111var lib = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, lib_cs }); 41129var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 41132var comp2 = CreateNullableCompilation(new[] { source, lib_cs, AllowNullAttributeDefinition }); 41165var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition }); 41219var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, source }); 41262var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, source }); 41307var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, source }); 41335var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, source }); 41354var comp = CreateNullableCompilation(source); 41377var comp = CreateNullableCompilation(source); 41400var comp = CreateNullableCompilation(source); 41423var comp = CreateNullableCompilation(source); 41446var comp = CreateNullableCompilation(source); 41469var comp = CreateNullableCompilation(source); 41492var comp = CreateNullableCompilation(source); 41516var comp = CreateNullableCompilation(source); 41541var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 41573var comp = CreateNullableCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 41601var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }); 41626var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 41651var comp = CreateNullableCompilation(source, parseOptions: TestOptions.Regular8); 41693var comp = CreateNullableCompilation(source); 41731var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 41779var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition }); 41830var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition, NotNullAttributeDefinition }); 41861var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }); 41887var comp = CreateNullableCompilation(source, parseOptions: TestOptions.Regular8); 41910var comp = CreateNullableCompilation(source); 41936var comp = CreateNullableCompilation(source); 41959var comp = CreateNullableCompilation(source); 41985var comp = CreateNullableCompilation(source); 42015var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, source }); 42090var comp = CreateNullableCompilation(new[] { NotNullWhenAttributeDefinition, source }); 42116var c = CreateNullableCompilation(new[] { @" 42136var c = CreateNullableCompilation(new[] { @" 42175var comp = CreateCompilation(new[] { NotNullAttributeDefinition, source }); 42227var comp = CreateCompilation(new[] { NotNullAttributeDefinition, source }); 42267var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 42311var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 42354var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, source.Replace("TYPE", type) }); 42411var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source.Replace("TYPE", type) }); 42454var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source.Replace("TYPE", type) }); 42484var comp = CreateNullableCompilation(new[] { NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 42517var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 42581var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, NotNullWhenAttributeDefinition, source.Replace("TYPE", type) }); 42667var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, NotNullWhenAttributeDefinition, source.Replace("CONSTRAINT", constraint) }); 42726var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, source }); 42755var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, source }); 42796var comp = CreateNullableCompilation(new[] { source, NotNullAttributeDefinition, DoesNotReturnIfAttributeDefinition }); 42846var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, NotNullAttributeDefinition, NotNullWhenAttributeDefinition, source.Replace("TYPE", type) }); 42879var comp = CreateNullableCompilation(new[] { NotNullWhenAttributeDefinition, source }); 42908var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 42983var comp = CreateNullableCompilation(new[] { DoesNotReturnAttributeDefinition, source }); 43065var comp = CreateCompilation(new[] { DoesNotReturnAttributeDefinition, source }); 43149var comp = CreateCompilation(new[] { DoesNotReturnAttributeDefinition, source }); 43211var comp = CreateNullableCompilation(new[] { DoesNotReturnAttributeDefinition, DoesNotReturnIfAttributeDefinition, source }); 43244var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, source }); 43270var comp = CreateNullableCompilation(new[] { NotNullWhenAttributeDefinition, source }); 43296var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, NotNullWhenAttributeDefinition, source }); 43322var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, NotNullWhenAttributeDefinition, source }); 43348var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 43377var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }); 43442var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, source }); 43465var comp = CreateCompilation(new[] { MaybeNullWhenAttributeDefinition, source }); 43494var comp = CreateCompilation(new[] { MaybeNullWhenAttributeDefinition, source }); 43520var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }); 43562var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, source }); 43603var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, source }); 43640var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, source }); 43673var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, MaybeNullAttributeDefinition, source }); 43720var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, MaybeNullAttributeDefinition, source }); 43783var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 43809var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 43893var comp = CreateCompilation(new[] { DisallowNullAttributeDefinition, source }, options: WithNullableEnable()); 43949var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 43972var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 43995var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 44023var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 44082var comp = CreateCompilation(new[] { DisallowNullAttributeDefinition, AllowNullAttributeDefinition, source }, options: WithNullableEnable()); 44174var comp = CreateCompilation(new[] { DisallowNullAttributeDefinition, source }, options: WithNullableEnable()); 44234var comp = CreateCompilation(new[] { DisallowNullAttributeDefinition, source }, options: WithNullableEnable()); 44274var comp = CreateCompilation(new[] { DisallowNullAttributeDefinition, source }, options: WithNullableEnable()); 44293var comp = CreateCompilation(new[] { DisallowNullAttributeDefinition, source0 }, options: WithNullableEnable()); 44336var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, lib_cs }); 44357var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 44360var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition }); 44374var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source0 }); 44401var comp2 = CreateNullableCompilation(source1); 44424var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 44451var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, source }); 44487var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 44529var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, lib_cs }); 44572var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 44605var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition }); 44703var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 44734var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 44782var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, lib_cs }); 44881var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }, 44885var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 44922var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, AllowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition, lib_cs }); 44945var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 44948var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 44968var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 44989var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, source }); 45017var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }); 45052var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }); 45094var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }); 45139var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }); 45184var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }); 45219var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }); 45248var comp = CreateNullableCompilation(source); 45312var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 45357var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 45378var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 45400var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 45432var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, lib_cs }); 45509var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 45512var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition }); 45527var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, lib_cs }); 45545var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 45548var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition }); 45563var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, lib_cs }); 45581var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 45584var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition }); 45603var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, lib_cs }); 45615var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 45618var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition }); 45637var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, lib_cs }); 45650var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 45653var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition }); 45672var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, lib_cs }); 45684var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 45687var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition }); 45708var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, NotNullWhenAttributeDefinition, source }); 45740var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, NotNullAttributeDefinition, source }); 45768var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, NotNullWhenAttributeDefinition, source }); 45793var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, NotNullWhenAttributeDefinition, source }); 45853var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, options: WithNullableEnable()); 45973var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, options: WithNullableEnable()); 46099var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, NotNullAttributeDefinition, source }, options: WithNullableEnable()); 46197var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, options: WithNullableEnable()); 46223var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, options: WithNullableEnable()); 46241var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source0 }, options: WithNullableEnable()); 46291var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source0 }, options: WithNullableEnable()); 46351var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, options: WithNullableEnable()); 46379var c = CreateCompilation(new[] { @" 46499var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }); 46653var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }); 46749var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }); 46779var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }); 46798var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source0 }); 46854var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source0 }); 46930var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }); 47062var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }, parseOptions: TestOptions.Regular8); 47181var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }); 47220var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }); 47249var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 47304var comp = CreateCompilation(new[] { NotNullAttributeDefinition, source }, options: WithNullableEnable()); 47380var comp = CreateCompilation(new[] { NotNullAttributeDefinition, source }, options: WithNullableEnable()); 47426var comp = CreateCompilation(new[] { NotNullAttributeDefinition, source }, options: WithNullableEnable()); 47445var comp = CreateCompilation(new[] { NotNullAttributeDefinition, source }, options: WithNullableEnable()); 47459var comp = CreateCompilation(new[] { NotNullAttributeDefinition, source0 }, options: WithNullableEnable()); 47503var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, source0 }); 47544var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, MaybeNullAttributeDefinition, source0 }); 47596var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, MaybeNullAttributeDefinition, source }); 47639var comp = CreateCompilation(new[] { NotNullAttributeDefinition, source }, options: WithNullableEnable()); 47663var lib = CreateNullableCompilation(new[] { lib_cs, NotNullAttributeDefinition }); 47689var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 47692var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullAttributeDefinition }); 47729var comp = CreateNullableCompilation(new[] { lib_cs, NotNullAttributeDefinition }); 47779var comp = CreateNullableCompilation(new[] { lib_cs, NotNullAttributeDefinition }); 47802var comp = CreateNullableCompilation(new[] { lib_cs, NotNullAttributeDefinition }); 47822var comp = CreateNullableCompilation(new[] { source, NotNullAttributeDefinition }); 47850var comp = CreateNullableCompilation(new[] { source, NotNullAttributeDefinition }); 47888var comp = CreateNullableCompilation(new[] { source, NotNullAttributeDefinition }); 47918var comp = CreateNullableCompilation(new[] { source, NotNullAttributeDefinition }); 47948var lib = CreateNullableCompilation(new[] { lib_cs, NotNullAttributeDefinition }); 47972var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 47975var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullAttributeDefinition }); 48029var comp = CreateNullableCompilation(new[] { source, NotNullAttributeDefinition }); 48059var lib = CreateNullableCompilation(new[] { NotNullAttributeDefinition, lib_cs }); 48082var comp = CreateNullableCompilation(source, references: new[] { lib.EmitToImageReference() }); 48085var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullAttributeDefinition }); 48124var comp = CreateNullableCompilation(new[] { source, NotNullAttributeDefinition }); 48150var comp = CreateNullableCompilation(new[] { source, NotNullAttributeDefinition }); 48238var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, source }); 48288var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, source }); 48333var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, source }); 48373var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, MaybeNullAttributeDefinition, source }); 48410var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, MaybeNullAttributeDefinition, source }); 48425var comp2 = CreateNullableCompilation(source2, references: new[] { comp.EmitToImageReference() }); 48475var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, MaybeNullAttributeDefinition, source }); 48525var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 48557var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 48599var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, source }); 48632var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, source }); 48670var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, source }); 48708var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, source }); 48733var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 48758var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 48806var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, NotNullAttributeDefinition, source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 48849var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, DisallowNullAttributeDefinition, source }, options: WithNullableEnable()); 48868CSharpCompilation c = CreateCompilation(new[] { @" 48971CSharpCompilation c = CreateCompilation(new[] { @" 49074CSharpCompilation c = CreateCompilation(new[] { @" 49149CSharpCompilation c = CreateCompilation(new[] { @" 49212CSharpCompilation c = CreateCompilation(new[] { @" 49266CSharpCompilation c = CreateCompilation(new[] { @" 49339CSharpCompilation c = CreateCompilation(new[] { @" 49413CSharpCompilation c = CreateCompilation(@" 49443CSharpCompilation c = CreateCompilation(new[] { @" 49469CSharpCompilation c = CreateCompilation(new[] { @" 49496CSharpCompilation c = CreateCompilation(new[] { @" 49519CSharpCompilation c = CreateCompilation(new[] { @" 49555CSharpCompilation c = CreateCompilation(new[] { @" 49591var compilation = CreateCompilation(new[] { @" 49732var compilation = CreateCompilation(new[] { @" 49765var compilation = CreateCompilation(new[] { @" 49791var compilation = CreateCompilation(new[] { @" 49818var compilation = CreateCompilation(new[] { @" 49843CSharpCompilation c = CreateCompilation(@" 49876CSharpCompilation c = CreateCompilation(@" 50193var comp = CreateNullableCompilation(source); 50254var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 50333var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 50412var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 50476var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 50548var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 50644var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 52366var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 52453var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 52548var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 52662var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 52707var comp = CreateNullableCompilation(source); 52748var comp = CreateNullableCompilation(source); 52854var comp = CreateNullableCompilation(source); 52896var comp = CreateNullableCompilation(source); 52930var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 52978var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 53039var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 53098var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 53139var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 53191var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 53256var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition }); 53288var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition }); 54313CSharpCompilation c = CreateCompilation(new[] { @" 54340CSharpCompilation c = CreateCompilation(new[] { @" 54368CSharpCompilation c = CreateCompilation(new[] { @" 54395CSharpCompilation c = CreateCompilation(new[] { @" 54422CSharpCompilation c = CreateCompilation(new[] { @" 54449CSharpCompilation c = CreateCompilation(new[] { @" 54467CSharpCompilation c = CreateCompilation(new[] { @" 54500var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 54527var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 54551var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 54578var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 54617var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 54654var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 54703var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 54736var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 54789var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 54827var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 54849var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 54865var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 54946var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 55037var comp = CreateCompilation(source, options: WithNullableEnable()); 55193var comp = CreateCompilation(source, options: WithNullableEnable()); 55232var comp = CreateCompilation(source, options: WithNullableEnable()); 55253var comp = CreateCompilation(source, options: WithNullableEnable()); 55272var comp = CreateCompilation(source, options: WithNullableEnable()); 55319var comp = CreateCompilation(source, options: WithNullableEnable()); 55372var comp = CreateCompilation(source, options: WithNullableEnable()); 55416var comp = CreateCompilation(source, options: WithNullableEnable()); 55441var comp = CreateCompilation(source, options: WithNullableEnable()); 55465var comp = CreateCompilation(source, options: WithNullableEnable()); 55485var comp = CreateCompilation(source, options: WithNullableEnable()); 55518var comp = CreateCompilation(source, options: WithNullableEnable()); 55543var comp = CreateCompilation(source, options: WithNullableEnable()); 55600var comp = CreateCompilation(source, options: WithNullableEnable()); 55656var comp = CreateCompilation(source, options: WithNullableEnable()); 55712var comp = CreateCompilation(source, options: WithNullableEnable()); 55747var comp = CreateCompilation(source, options: WithNullableEnable()); 55777var comp = CreateCompilation(source, options: WithNullableEnable()); 55787var comp = CreateCompilation(@" 55808var comp = CreateCompilation(@" 55833var comp = CreateCompilation(@" 55858var comp = CreateCompilation(@" 55877var comp = CreateCompilation(@" 55895var comp = CreateCompilation(@" 55916var comp = CreateCompilation(@" 55944var comp = CreateCompilation(@" 55969var comp = CreateCompilation(@" 55988var comp = CreateCompilation(@" 56003var comp = CreateCompilation(@" 56018var comp = CreateCompilation(@" 56079var comp = CreateCompilation(source, options: WithNullableEnable()); 56109var comp = CreateCompilation(source, options: WithNullableEnable()); 56142var comp = CreateCompilation(source, options: WithNullableEnable()); 56179var comp = CreateCompilation(source, options: WithNullableEnable()); 56214var comp = CreateCompilation(source, options: WithNullableEnable()); 56248var comp = CreateCompilation(source, options: WithNullableEnable()); 56279var comp = CreateCompilation(source, options: WithNullableEnable()); 56307var comp = CreateCompilation(source, options: WithNullableEnable()); 56346var comp = CreateCompilation(source, options: WithNullableEnable()); 56380var comp = CreateCompilation(source, options: WithNullableEnable()); 56411var comp = CreateCompilation(source, options: WithNullableEnable()); 56440var comp = CreateCompilation(source, options: WithNullableEnable()); 56475var comp = CreateCompilation(source, options: WithNullableEnable()); 56511var comp = CreateCompilation(source, options: WithNullableEnable()); 56552var comp = CreateCompilation(source); 56590var comp = CreateCompilation(source); 56622var comp = CreateCompilation(source, options: WithNullableEnable()); 56651var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 56668var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 56690var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 56717var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 56767var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 56792var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 56828var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 56856var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 56882var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 56903var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 56923var comp = CreateCompilation(source, options: WithNullableEnable(), references: new[] { ref0 }); 56949var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 56996var comp = CreateCompilation(source, options: WithNullableEnable(), references: new[] { ref0 }); 57310var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 57314var comp = CreateCompilation(@" 57402var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 57462var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 57494var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 57518var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 57540var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 57556var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 57571var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable(), references: new[] { ref0 }); 57615var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0, ref1 }); 57691var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 57731var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 57760var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 57787var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 57815var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 57843var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 57871var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 57899var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 57916var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 57933var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 57950var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 57967var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 58000var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }, options: WithNullableEnable(TestOptions.ReleaseExe)); 58053var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 58143var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 58193var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 58245var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 58342var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 58414var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { source }, options: WithNullableEnable()); 58439var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 58454var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable()); 58534var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0, ref1 }); 58580var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 58641var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 58691var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 58717CSharpCompilation c = CreateCompilation(new[] { @" 58783CSharpCompilation c = CreateCompilation(new[] { @" 58832var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 58867var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable(), references: new[] { comp0.EmitToImageReference() }); 58891var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 58925var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable(), references: new[] { comp0.EmitToImageReference() }); 58966CSharpCompilation c = CreateCompilation(new[] { @" 59013var comp = CreateCompilation( 59050var comp = CreateCompilation( 59077var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 59105var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 59141var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 59171var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 59203var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 59236var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 59270var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 59298var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 59323var comp = CreateCompilation( 59355var comp = CreateCompilation( 59395var comp = CreateCompilation( 59422var comp = CreateCompilation( 59434CSharpCompilation c = CreateCompilation(new[] { @" 59506CSharpCompilation c = CreateCompilation(new[] { @" 59565CSharpCompilation c = CreateCompilation(new[] { @" 59598CSharpCompilation c = CreateCompilation(new[] { @" 59698CSharpCompilation c = CreateCompilation(new[] { @" 59770var c = CreateCompilation(source, parseOptions: TestOptions.Regular7); 59777CSharpCompilation c = CreateCompilation(new[] { @" 59919CSharpCompilation c = CreateCompilation(new[] { @" 60024CSharpCompilation c = CreateCompilation(new[] { @" 60087var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 60126var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 60161var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 60203var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 60228var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 60250var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 60273var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 60305var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 60347var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 60371var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 60410var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 60454var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 60472var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 60496var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 60518var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 60534var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 60555var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 60589var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 60639var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 60667var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 60721var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 60756var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 60821var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 60861var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 60894var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 60920var comp = CreateCompilation(source); 60953var comp = CreateNullableCompilation(source); 60981var comp = CreateNullableCompilation(source); 61006var comp = CreateNullableCompilation(source); 61027var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 61074var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 61148var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 61181var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 61251var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 61299var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 61328var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 61357var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 61386var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 61415var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 61422CSharpCompilation c = CreateCompilation( 61479var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 61506var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 61536var piaCompilation = CreateCompilationWithMscorlib461(pia, options: WithNullableEnable(TestOptions.DebugDll)); 61538CSharpCompilation c = CreateCompilationWithMscorlib461( 61594var piaCompilation = CreateCompilationWithMscorlib461(pia, options: WithNullableEnable(TestOptions.DebugDll)); 61596CSharpCompilation c = CreateCompilationWithMscorlib461( 61652var comp = CreateCompilation(src); 61692var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 61720var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 61733CSharpCompilation c = CreateCompilation(new[] { @" 61814CSharpCompilation c = CreateCompilation(new[] { @" 61991CSharpCompilation c = CreateCompilation(new[] { @" 62053CSharpCompilation c = CreateCompilation(new[] { @" 62089CSharpCompilation c = CreateCompilation(new[] { @" 62262CSharpCompilation c = CreateCompilation(new[] { @" 62311CSharpCompilation c = CreateCompilation(new[] { @" 62340CSharpCompilation c = CreateCompilation(new[] { @" 62411var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 62453var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 62472var comp = CreateCompilation(source, options: WithNullableEnable()); 62495var comp = CreateCompilation(source, options: WithNullableEnable()); 62531var comp = CreateCompilation(source, options: WithNullableEnable()); 62564var comp = CreateCompilation(source, options: WithNullableEnable()); 62600var comp = CreateCompilation(source, options: WithNullableEnable()); 62631var comp = CreateCompilation(source, options: WithNullableEnable()); 62668var comp = CreateCompilation(source, options: WithNullableEnable()); 62700var comp = CreateCompilation(source, options: WithNullableEnable()); 62727var comp = CreateCompilation(source, options: WithNullableEnable()); 62748var comp = CreateCompilation(source, options: WithNullableEnable()); 62771var comp = CreateCompilation(source, options: WithNullableEnable()); 62792var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 62813var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 62836var comp = CreateCompilation(source).VerifyDiagnostics( 62860CSharpCompilation c = CreateCompilation(new[] { @" 62885CSharpCompilation c = CreateCompilation(new[] { @" 62971CSharpCompilation c = CreateCompilation(new[] { @" 63058CSharpCompilation c = CreateCompilation(new[] { @" 63113CSharpCompilation c = CreateCompilation(new[] { @" 63156CSharpCompilation c = CreateCompilation(new[] { @" 63189CSharpCompilation c = CreateCompilation(new[] { @" 63244CSharpCompilation c = CreateCompilation(new[] { @" 63283CSharpCompilation c = CreateCompilation(new[] { @" 63344CSharpCompilation c = CreateCompilation(new[] { @" 63393CSharpCompilation c = CreateCompilation(new[] { @" 63453CSharpCompilation c = CreateCompilation(new[] { @" 63501CSharpCompilation c = CreateCompilation(new[] { @" 63559CSharpCompilation c = CreateCompilation(new[] { @" 63611CSharpCompilation c = CreateCompilation(new[] { @" 63666CSharpCompilation c = CreateCompilation(new[] { @" 63733CSharpCompilation c = CreateCompilation(new[] { @" 63788CSharpCompilation c = CreateCompilation(new[] { @" 63831CSharpCompilation notAnnotated = CreateCompilation(@" 63848CSharpCompilation c = CreateCompilation(new[] { @" 63891CSharpCompilation c = CreateCompilation(new[] { @" 63926CSharpCompilation c = CreateCompilation(new[] { @" 63977var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 64051var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 64080var comp = CreateCompilation(source); 64113var comp = CreateNullableCompilation(source); 64120var comp = CreateCompilation(@" 64144var comp = CreateCompilation(@" 64168var comp = CreateCompilation(""" 64219var comp = CreateCompilation(source, options: WithNullableEnable()); 64366var comp = CreateNullableCompilation(source); 64391var comp = CreateNullableCompilation(source); 64424var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 64452var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 64488var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 64517var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 64544var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 64569var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 64589var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 64609var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 64634var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 64667var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 64716var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 64740var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 64778var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 64825var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 64868var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 64907var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 64932var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 64967var comp = CreateNullableCompilation(source); 64996var comp = CreateNullableCompilation(source); 65024var comp = CreateNullableCompilation(source); 65058var comp = CreateNullableCompilation(source); 65089var comp = CreateNullableCompilation(source); 65124var comp = CreateNullableCompilation(source); 65157var comp = CreateNullableCompilation(source); 65188var comp = CreateNullableCompilation(source); 65226var comp = CreateNullableCompilation(source); 65249var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 65279var comp = CreateNullableCompilation(source); 65305var comp = CreateNullableCompilation(source); 65334var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 65363var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 65441var comp = CreateNullableCompilation(source); 65466var comp = CreateCompilation( 65500var comp = CreateCompilation(source, options: WithNullableEnable()); 65522var comp = CreateCompilation( 65550var comp = CreateCompilationWithMscorlib461( 65567var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 65587var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 65652var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 65698var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 65733var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 65764var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 65794var comp = CreateNullableCompilation(source); 65820var comp = CreateNullableCompilation(source); 65871var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 65892var comp1 = CreateCompilation(source1).VerifyDiagnostics(); 66881var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 66958CSharpCompilation c = CreateCompilation(new[] { @" 66999var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 67028var comp = CreateCompilation(source, options: WithNullableEnable()); 67075var comp = CreateCompilation(source, options: WithNullableEnable()); 67122var comp = CreateCompilation(source, options: WithNullableEnable()); 67169var comp = CreateCompilation(source, options: WithNullableEnable()); 67194CSharpCompilation c = CreateCompilation(new[] { @" 67240var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { source }, options: WithNullableEnable()); 67265var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { source }, options: WithNullableEnable()); 67272CSharpCompilation c = CreateCompilation(new[] { @" 67311CSharpCompilation c = CreateCompilation(new[] { @" 67350CSharpCompilation c = CreateCompilation(new[] { @" 67389CSharpCompilation c = CreateCompilation(new[] { @" 67428CSharpCompilation c = CreateCompilation(new[] { @" 67468CSharpCompilation c = CreateCompilation(new[] { @" 67508CSharpCompilation c = CreateCompilation(new[] { @" 67533CSharpCompilation c = CreateCompilation(new[] { @" 67575CSharpCompilation c = CreateCompilation(new[] { @" 67628CSharpCompilation c = CreateCompilation(new[] { @" 67674CSharpCompilation c = CreateCompilation(new[] { @" 67712CSharpCompilation c = CreateCompilation(new[] { @" 67749CSharpCompilation c = CreateCompilation(new[] { @" 67786CSharpCompilation c = CreateCompilation(new[] { @" 67823CSharpCompilation c = CreateCompilation(new[] { @" 67861CSharpCompilation c = CreateCompilation(new[] { @" 67899CSharpCompilation c = CreateCompilation(new[] { @" 67924CSharpCompilation c = CreateCompilation(new[] { @" 67963CSharpCompilation c = CreateCompilation(new[] { @" 68007CSharpCompilation c = CreateCompilation(new[] { @" 68051var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { source }, options: WithNullableEnable()); 68059CSharpCompilation c = CreateCompilation(new[] { @" 68109var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { source }, options: WithNullableEnable()); 68134var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { source }, options: WithNullableEnable()); 68144CSharpCompilation c = CreateCompilation(new[] { @" 68171CSharpCompilation c = CreateCompilation(new[] { @" 68196CSharpCompilation c = CreateCompilation(new[] { @" 68222CSharpCompilation c = CreateCompilation(new[] { @" 68249CSharpCompilation c = CreateCompilation(new[] { @" 68285CSharpCompilation c = CreateCompilation(new[] { @" 68315CSharpCompilation c = CreateCompilation(new[] { @" 68351CSharpCompilation c = CreateCompilation(new[] { @" 68398CSharpCompilation c = CreateCompilation(new[] { @" 68472var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }); 68505var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }); 68539var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }); 68569var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }); 68595var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }); 68632var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, MaybeNullAttributeDefinition }); 68659var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, NotNullAttributeDefinition }); 68693var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }); 68729var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }); 68762var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }); 68796var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }); 68830var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, MaybeNullAttributeDefinition }); 68861var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, NotNullAttributeDefinition }); 68895var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, NotNullAttributeDefinition }); 68926var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, NotNullAttributeDefinition }); 68954var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, NotNullAttributeDefinition }); 68982var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, MaybeNullAttributeDefinition }); 69010var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, MaybeNullAttributeDefinition }); 69038var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, MaybeNullAttributeDefinition }); 69061var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }); 69096var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }); 69107CSharpCompilation c = CreateCompilation(new[] { @" 69133CSharpCompilation c = CreateCompilation(new[] { @" 69201var comp = CreateCompilation(source, options: WithNullableEnable()); 69235var comp = CreateCompilation(source, options: WithNullableEnable()); 69260var comp = CreateCompilation(source, options: WithNullableEnable()); 69284var comp = CreateCompilation(source, options: WithNullableEnable()); 69305var comp = CreateCompilation(source, options: WithNullableEnable()); 69323var comp = CreateCompilation(source, options: WithNullableEnable()); 69344var comp = CreateCompilation(source, options: WithNullableEnable()); 69378var comp = CreateCompilation(source, options: WithNullableEnable()); 69421var comp = CreateCompilation(source, options: WithNullableEnable()); 69464var comp = CreateCompilation(source, options: WithNullableEnable()); 69517var comp = CreateCompilation(source, options: WithNullableEnable()); 69560var comp = CreateCompilation(source, options: WithNullableEnable()); 69613var comp = CreateCompilation(source, options: WithNullableEnable()); 69656var comp = CreateCompilation(source, options: WithNullableEnable()); 69709var comp = CreateCompilation(source, options: WithNullableEnable()); 69751var comp = CreateCompilation(source, options: WithNullableEnable()); 69803var comp = CreateCompilation(source, options: WithNullableEnable()); 69853var comp = CreateNullableCompilation(source); 69903var comp = CreateNullableCompilation(source); 69939var comp = CreateNullableCompilation(source); 69968var comp = CreateNullableCompilation(source); 69999var comp = CreateNullableCompilation(source); 70034var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition, DisallowNullAttributeDefinition }); 70081var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition }); 70125var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition, NotNullAttributeDefinition }); 70189var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition, DisallowNullAttributeDefinition }); 70229var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition, DisallowNullAttributeDefinition }); 70260var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 70301var comp = CreateNullableCompilation(source); 70344var comp = CreateNullableCompilation(source); 70401var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 70489var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 70554var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 70611var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 70662var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 70714var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 70761var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 70814var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 70845var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 70887var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 70932var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 70963var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 71007var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 71050var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 71081CSharpCompilation c = CreateCompilation(new[] { @" 71114var comp0 = CreateCompilation(source0, options: WithNullableEnable()); 71135var comp0 = CreateCompilation(source0, options: WithNullableEnable()); 71149CSharpCompilation c = CreateCompilation(new[] { @" 71176CSharpCompilation c = CreateCompilation(new[] { @" 71212CSharpCompilation c = CreateCompilation(new[] { @" 71248var comp = CreateCompilation( 71285var comp = CreateCompilation(source, options: WithNullableEnable()); 71318var comp = CreateCompilation( 71359var comp = CreateCompilation( 71396var comp = CreateCompilation( 71433var comp = CreateCompilation( 71466var comp = CreateCompilation( 71498var comp = CreateCompilation( 71549var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 71584var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 71611var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 71637var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 71666var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 71692var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 71724var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 71752var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 71781var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "always"), options: WithNullableEnable()); 71830var comp = CreateNullableCompilation(source); 71855var comp = CreateNullableCompilation(source); 71876var comp = CreateNullableCompilation(source); 71916var comp = CreateNullableCompilation(source); 71962var comp = CreateNullableCompilation(source); 72005var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 72036var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 72044CSharpCompilation c = CreateCompilation(new[] { @" 72070CSharpCompilation c = CreateCompilation(new[] { @" 72096CSharpCompilation c = CreateCompilation(new[] { @" 72180CSharpCompilation c = CreateNullableCompilation(new[] { @" 72234CSharpCompilation c = CreateNullableCompilation(new[] { @" 72290CSharpCompilation c = CreateCompilation(new[] { @" 72342CSharpCompilation c = CreateCompilation(new[] { @" 72387CSharpCompilation c = CreateCompilation(new[] { @" 72426CSharpCompilation c = CreateCompilation(new[] { @" 72468CSharpCompilation c = CreateCompilation(new[] { @" 72507CSharpCompilation c = CreateCompilation(new[] { @" 72557CSharpCompilation c = CreateCompilation(new[] { @" 72606CSharpCompilation c = CreateCompilation(new[] { @" 72668CSharpCompilation c = CreateCompilation(new[] { @" 72720CSharpCompilation c = CreateCompilation(new[] { @" 72784var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 72804var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 72836var comp = CreateCompilation(new[] { source, DisallowNullAttributeDefinition }, options: WithNullableEnable()); 72876var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 72883CSharpCompilation c = CreateCompilation(new[] { @" 72917CSharpCompilation c = CreateCompilation(new[] { @" 72968CSharpCompilation c = CreateCompilation(new[] { @" 73003CSharpCompilation c = CreateCompilation(new[] { @" 73054CSharpCompilation c = CreateCompilation(new[] { @" 73120var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 73136CSharpCompilation c = CreateCompilation(new[] { @" 73218var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 73225CSharpCompilation c = CreateCompilation(new[] { @" 73378CSharpCompilation c = CreateCompilation(new[] { @" 73434var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 73490var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 73534var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 73557var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 73581var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 73613var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 73659var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 73693var comp = CreateCompilation(source, options: WithNullableEnable()); 73721var comp = CreateCompilation(source, options: WithNullableEnable()); 73747var comp = CreateCompilation(source, options: WithNullableEnable()); 73764var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 73798var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 73853var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 73893var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 73927var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 73962var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 74002var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 74064var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 74117var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 74154var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 74167CSharpCompilation c = CreateCompilation(new[] { @" 74269CSharpCompilation c = CreateCompilation( 74356CSharpCompilation c = CreateCompilation(new[] { @" 74463CSharpCompilation c = CreateCompilation(new[] { @" 74512CSharpCompilation c = CreateCompilation(new[] { @" 74560CSharpCompilation c = CreateCompilation(new[] { @" 74607CSharpCompilation c = CreateCompilation(new[] { @" 74655CSharpCompilation c = CreateCompilation(new[] { @" 74697CSharpCompilation c = CreateCompilation(new[] { @" 74739CSharpCompilation c = CreateCompilation(new[] { @" 74819CSharpCompilation c = CreateCompilation(new[] { @" 74920CSharpCompilation c = CreateCompilation(new[] { @" 74958CSharpCompilation c = CreateCompilation( 75011CSharpCompilation c = CreateCompilation(new[] { @" 75104var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 75145var comp = CreateCompilation(source); 75178var comp = CreateCompilation(source); 75212var comp = CreateCompilation(source); 75252var comp = CreateCompilation(source); 75293var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 75324var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 75354var comp = CreateCompilation(new[] { source, NotNullWhenAttributeDefinition }); 75361CSharpCompilation c = CreateCompilation(new[] { @" 75446CSharpCompilation c = CreateCompilation(new[] { @" 75491CSharpCompilation c = CreateCompilation(new[] { @" 75523CSharpCompilation c = CreateCompilation(new[] { @" 75572CSharpCompilation c = CreateCompilation(new[] { @" 75651var comp = CreateCompilation(source, options: WithNullableEnable()); 75715var comp = CreateCompilation(source, options: WithNullableEnable()); 75753var comp = CreateNullableCompilation(source); 75787var comp = CreateNullableCompilation(source); 75819var comp = CreateNullableCompilation(source); 75867var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 75893CSharpCompilation c = CreateCompilation(new[] { @" 75976var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 75995var comp2 = CreateCompilation(source2, references: new[] { comp.EmitToImageReference() }, options: WithNullableEnable()); 76017var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 76037var comp2 = CreateCompilation(source2, references: new[] { comp.EmitToImageReference() }, options: WithNullableEnable()); 76065var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 76351var comp = CreateCompilationWithTasksExtensions(new[] { source, AsyncStreamsTypes }, options: WithNullableEnable()); 76448var comp = CreateCompilation(source, options: WithNullableEnable()); 76468var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 76488var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 76513var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 76529var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 76550var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 76576var comp = CreateNullableCompilation(source); 76603var comp = CreateNullableCompilation(source); 76623var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 76649var comp = CreateNullableCompilation(new[] { source }); 76674var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 76703var comp = CreateNullableCompilation(source); 76727var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 76749var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 76781var comp = CreateCompilation(source.Replace("OPERATOR", op), options: WithNullableEnable()); 76818var comp = CreateCompilation(source, options: WithNullableEnable()); 76854var comp = CreateCompilation(source, options: WithNullableEnable()); 76879var comp = CreateCompilation(source, options: WithNullableEnable()); 76911var piaCompilation = CreateCompilationWithMscorlib461(pia, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular7); 76933var compilation = CreateCompilationWithMscorlib461(new[] { source }, 76970var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 77034var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 77071CSharpCompilation c0 = CreateCompilation(new[] { @" 77108CSharpCompilation c = CreateCompilation(new[] { source }, options: WithNullableEnable(), 77122CSharpCompilation c0 = CreateCompilation(new[] { @" 77149CSharpCompilation c = CreateCompilation(new[] { source }, options: WithNullableEnable(), 77183var compilation = CreateCompilation(new[] { source, NullableAttributeDefinition }, options: WithNullableEnable()); 77319CSharpCompilation c = CreateCompilation(new[] { lib, source1, source2 }, 77350CSharpCompilation c1 = CreateCompilation(new[] { lib }, 77484CSharpCompilation c = CreateCompilation(new[] { lib, source1, source2 }, 77500CSharpCompilation c1 = CreateCompilation(new[] { lib }, 77652CSharpCompilation c = CreateCompilation(new[] { lib, source1, source2 }, 77671CSharpCompilation c1 = CreateCompilation(new[] { lib }, 77793CSharpCompilation c = CreateCompilation(new[] { lib, source1, source2 }, 77812CSharpCompilation c1 = CreateCompilation(new[] { lib }, 77939CSharpCompilation c = CreateCompilation(new[] { lib, source1, source2 }, 77970CSharpCompilation c1 = CreateCompilation(new[] { lib }, 78031var comp = CreateCompilation( 78055var comp = CreateCompilation( 78091var comp = CreateCompilation( 78127var comp = CreateCompilation( 78186CSharpCompilation c = CreateCompilation(new[] { source }, 78232var comp = CreateCompilation(source); 78280var comp = CreateCompilation(source); 78306var comp = CreateCompilation(source); 78327var comp = CreateCompilation(source); 78359var comp = CreateCompilation(source); 78397var comp = CreateNullableCompilation(source); 78435var comp = CreateNullableCompilation(source); 78470var comp = CreateNullableCompilation(source); 78499var comp = CreateNullableCompilation(source); 78528var comp = CreateNullableCompilation(source); 78565var comp = CreateNullableCompilation(source); 78600var comp = CreateNullableCompilation(source); 78629var comp = CreateNullableCompilation(source); 78653var comp = CreateNullableCompilation(source); 78695var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 78725var comp = CreateNullableCompilation(source); 78746var comp = CreateNullableCompilation(source); 78777var comp = CreateNullableCompilation(source); 78811var comp = CreateNullableCompilation(source); 78827var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()).VerifyDiagnostics( 78854var compilation = CreateCompilation(new[] { source }, options: WithNullableEnable()); 78875var compA = CreateCompilation(sourceA, parseOptions: TestOptions.Regular7); 78886var compB = CreateCompilation( 78914var comp = CreateCompilation( 78950var comp = CreateCompilation( 79018var comp = CreateCompilationWithMscorlib461(source, options: WithNullableEnable()); 79080var comp = CreateCompilation( 79144var comp = CreateCompilation( 79200var comp = CreateCompilation( 79250var comp = CreateCompilation( 79277var comp = CreateCompilationWithMscorlib461( 79304var comp = CreateCompilation( 79330var comp = CreateCompilation( 79419var comp = CreateCompilation(source, options: TestOptions.DebugExe); 79443var comp = CreateCompilation(source, options: TestOptions.DebugExe); 79485var comp = CreateCompilation(source, options: TestOptions.DebugExe); 79511var comp = CreateCompilation(source); 79539var comp = CreateCompilation( 79573var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 79639var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 79676var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 79702var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 79731var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 79760var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 79800var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 79837var comp = CreateCompilation( 79868var comp = CreateCompilation( 79902var comp = CreateCompilationWithMscorlib461( 79936var comp = CreateCompilation( 79967var comp = CreateCompilation( 79997var comp = CreateCompilation( 80030var comp = CreateCompilation( 80083var comp = CreateCompilation(source, options: WithNullableEnable()); 80150var comp = CreateCompilation( 80194var comp = CreateCompilation( 80258var comp = CreateCompilation(src, options: WithNullableEnable(TestOptions.DebugDll)); 80285var comp = CreateCompilation( 80330var comp = CreateCompilation( 80356var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 80396var comp = CreateCompilation(source, options: WithNullableEnable()); 80523var comp = CreateCompilation(source, options: WithNullableEnable()); 80594var comp = CreateCompilation(source, options: WithNullableEnable()); 80624var comp = CreateCompilation( 80662var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 80682var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 80701var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 80721var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 80770var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 80842var comp = CreateCompilation( 80865var comp = CreateCompilation( 80888var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular9, options: WithNullableEnable()); 80919var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular9, options: WithNullableEnable()); 80967var comp = CreateCompilation( 81002var comp = CreateCompilation( 81027var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 81050var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 81079var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 81106var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), 81131var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular9, options: WithNullableEnable()); 81157var comp = CreateCompilation( 81213var comp = CreateCompilation( 81249var comp = CreateCompilation( 81287var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 81305var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), 81331var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 81357var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 81377var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { source }, parseOptions: TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp8)); 81400var comp0 = CreateCompilation( 81419var comp1 = CreateCompilation( 81439var comp = CreateCompilation(new[] { source0 }, options: WithNullableEnable()); 81475var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 81542var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 81678var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 81813var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7, skipUsesIsNullable: true); 81860var libComp = CreateCompilation(new[] { libSource }); 81880var comp = CreateCompilation(source, references: new[] { libComp.EmitToImageReference() }, parseOptions: TestOptions.Regular7_3); 81887var comp2 = CreateCompilation(source, references: new[] { libComp.EmitToImageReference() }); 81912var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 81957var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 82023var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }, options: WithNullableEnable()); 82067var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, options: WithNullableEnable()); 82115var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }, options: WithNullableEnable()); 82160var comp = CreateCompilation(source, options: WithNullableEnable()); 82202var comp = CreateCompilation(source, options: WithNullableEnable()); 82235var comp = CreateCompilation(source, options: WithNullableEnable()); 82270var comp = CreateCompilation(source, options: WithNullableEnable()); 82329var comp = CreateCompilation( 82347var comp = CreateCompilation( 82380var comp = CreateNullableCompilation(source); 82402var comp = CreateCompilation(source, options: WithNullableEnable()); 82424var comp = CreateCompilation(source, options: WithNullableEnable()); 82449var comp = CreateCompilation(source, options: WithNullableEnable()); 82477var comp = CreateCompilation(source, options: WithNullableEnable()); 82502var comp = CreateCompilation(source, options: WithNullableEnable()); 82524var comp = CreateCompilation(source, options: WithNullableEnable()); 82549var comp = CreateCompilation(source, options: WithNullableEnable()); 82567var comp = CreateCompilation( 82598var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 82620var comp = CreateCompilation( 82641var comp = CreateCompilation( 82656var comp = CreateCompilation( 82687var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 82714var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 82744var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 82779var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 82823var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 82858var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 82881var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 82904var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 82927var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 82952var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 82977var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 82998var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83018var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83066var comp = CreateEmptyCompilation(new[] { source }, options: WithNullableEnable()); 83085var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(TestOptions.UnsafeReleaseDll)); 83108var comp = CreateCompilationWithMscorlib46(new[] { source }, options: WithNullableEnable()); 83156var comp = CreateCompilationWithMscorlib46(new[] { source }, options: WithNullableEnable()); 83196var comp = CreateCompilationWithMscorlib46(source); 83219var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83266var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 83305var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83331var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83348var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { source }, options: WithNullableEnable()); 83371var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83395var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83420var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83439var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83455var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83488var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83546var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83611var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83649var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83698var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83729var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83812var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 83927var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 84005var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 84080var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 84167var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 84257var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 84330var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 84390var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 84447var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 84479var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 84501var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 84529var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 84560var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 84595var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 84623var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 84670var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 84723var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 84752var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 84781var comp = CreateCompilation(source, options: WithNullableEnable()); 84811var comp = CreateCompilation(source, options: WithNullableEnable()); 84834var comp = CreateCompilation(source, options: WithNullableEnable()); 84878var comp = CreateCompilation(source, options: WithNullableEnable()); 84929var comp = CreateCompilation(source, options: WithNullableEnable()); 84963var comp = CreateCompilation(source, options: WithNullableEnable()); 85003var comp = CreateCompilation(source, options: WithNullableEnable()); 85040var comp = CreateCompilation(source, options: WithNullableEnable()); 85081var comp = CreateCompilation(source, options: WithNullableEnable()); 85125var comp = CreateCompilation(source, options: WithNullableEnable()); 85187var comp = CreateCompilation(source, options: WithNullableEnable()); 85238var comp = CreateCompilation(source, options: WithNullableEnable()); 85290var comp = CreateCompilation(source, options: WithNullableEnable()); 85366var comp = CreateCompilation(source, options: WithNullableEnable()); 85445var comp = CreateCompilation(source, options: WithNullableEnable()); 85521var comp = CreateCompilation(source, options: WithNullableEnable()); 85577var comp = CreateCompilation(source, options: WithNullableEnable()); 85622var comp = CreateCompilation(source, options: WithNullableEnable()); 85653var comp = CreateCompilation(source, options: WithNullableEnable()); 85690var comp = CreateCompilation(source, options: WithNullableEnable()); 85716var comp = CreateCompilation(source, options: WithNullableEnable()); 85742var comp = CreateCompilation(source, options: WithNullableEnable()); 85771var comp = CreateCompilation(source, options: WithNullableEnable()); 85805var comp = CreateCompilation(source, options: WithNullableEnable()); 85829var comp = CreateCompilation(source, options: WithNullableEnable()); 85873var comp = CreateCompilation(source, options: WithNullableEnable()); 85908var comp = CreateCompilation(source, options: WithNullableEnable()); 85956var comp = CreateCompilation(source, options: WithNullableEnable()); 86019var comp = CreateCompilation(source, options: WithNullableEnable()); 86047var comp = CreateCompilation(source, options: WithNullableEnable()); 86073var comp = CreateCompilation(source, options: WithNullableEnable()); 86096var comp = CreateCompilation(source, options: WithNullableEnable()); 86129var comp = CreateCompilation(source, options: WithNullableEnable()); 86163var comp = CreateCompilation(source, options: WithNullableEnable()); 86199var comp = CreateCompilation(source, options: WithNullableEnable()); 86241var comp = CreateCompilation(source, options: WithNullableEnable()); 86279var comp = CreateCompilation(source, options: WithNullableEnable()); 86305var comp = CreateCompilation(source, options: WithNullableEnable()); 86330var comp = CreateCompilation(source, options: WithNullableEnable()); 86360var comp = CreateCompilation(source, options: WithNullableEnable()); 86389var comp = CreateCompilation(source, options: WithNullableEnable()); 86407var comp = CreateCompilation(source, options: WithNullableEnable()); 86429var comp = CreateCompilation(source, options: WithNullableEnable()); 86462var comp = CreateCompilation(source, options: WithNullableEnable()); 86488var comp = CreateCompilation(source, options: WithNullableEnable()); 86518var comp = CreateCompilation(source, options: WithNullableEnable()); 86543var comp = CreateCompilation(source, options: WithNullableEnable()); 86598var comp = CreateCompilation(source); 86645var comp = CreateCompilation(source); 86713var comp = CreateCompilation(source); 86781var comp = CreateCompilation(source); 86819var comp = CreateCompilation(source); 86847var comp = CreateCompilation(source); 86880var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPropertyPatterns); 86901var comp = CreateCompilation(source, options: WithNullableEnable()); 86927var comp = CreateCompilation(source, options: WithNullableEnable()); 86957var comp = CreateCompilation(source, options: WithNullableEnable()); 86980var comp = CreateCompilation(source, options: WithNullableEnable()); 87008var comp = CreateCompilation(source, options: WithNullableEnable()); 87062var comp = CreateCompilation(source, options: WithNullableEnable()); 87108var comp = CreateCompilation(source, options: WithNullableEnable()); 87138var comp = CreateCompilation(source, options: WithNullableEnable()); 87165var comp = CreateCompilation(source, options: WithNullableEnable()); 87190var comp = CreateCompilation(source, options: WithNullableEnable()); 87224var comp = CreateCompilation(source, options: WithNullableEnable()); 87250var comp = CreateCompilation(source, options: WithNullableEnable()); 87273var comp = CreateCompilation(source, options: WithNullableEnable()); 87300var comp = CreateCompilation(source, options: WithNullableEnable()); 87334var comp = CreateCompilation(source, options: WithNullableEnable()); 87371var comp = CreateCompilation(source, options: WithNullableEnable()); 87398var comp = CreateCompilation(source, options: WithNullableEnable()); 87428var comp = CreateCompilation(source, options: WithNullableEnable()); 87455var comp = CreateCompilation(source, options: WithNullableEnable()); 87489var comp = CreateCompilation(source, options: WithNullableEnable()); 87525var comp = CreateCompilation(source, options: WithNullableEnable()); 87560var comp = CreateCompilation(source, options: WithNullableEnable()); 87590var comp = CreateCompilation(source, options: WithNullableEnable()); 87621var comp = CreateCompilation(source, options: WithNullableEnable()); 87651var comp = CreateCompilation(source, options: WithNullableEnable()); 87687var comp = CreateCompilation(source, options: WithNullableEnable()); 87733var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: WithNullableEnable()); 87758var comp = CreateCompilation(source, options: WithNullableEnable()); 87798var comp = CreateCompilation(source, options: WithNullableEnable()); 87842var comp = CreateCompilation(source, options: WithNullableEnable()); 87877var comp = CreateCompilation(source, options: WithNullableEnable()); 87907var comp = CreateCompilation(source, options: WithNullableEnable()); 87959var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 88000var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 88035var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 88071var comp = CreateCompilation(source, options: WithNullableEnable()); 88095var comp = CreateCompilation(source, options: WithNullableEnable()); 88125var comp = CreateCompilation(new[] { source }, new[] { ref0 }, options: WithNullableEnable()); 88152var comp = CreateCompilation(new[] { source }, new[] { ref0 }, options: WithNullableEnable()); 88185var comp = CreateCompilation(new[] { source }, new[] { ref0 }, options: WithNullableEnable()); 88214var comp = CreateCompilation(new[] { source }, new[] { ref0 }, options: WithNullableEnable()); 88238var comp = CreateCompilation(source, options: WithNullableEnable()); 88258var comp = CreateCompilation(source, options: WithNullableEnable()); 88284var comp = CreateCompilation(source, options: WithNullableEnable()); 88313var comp = CreateCompilation(source, options: WithNullableEnable()); 88344var comp = CreateCompilation(source, options: WithNullableEnable()); 88374var comp = CreateCompilation(source, options: WithNullableEnable()); 88407var comp = CreateCompilation(source, options: WithNullableEnable()); 88432var comp = CreateCompilation(source); 88455var comp = CreateCompilation(source, options: WithNullableEnable()); 88499var comp = CreateCompilation(source, options: WithNullableEnable()); 88548var comp = CreateCompilation(source, options: WithNullableEnable()); 88600var comp = CreateCompilation(source, options: WithNullableEnable()); 88629var comp = CreateCompilation(source, options: WithNullableEnable()); 88660var comp = CreateCompilation(source, options: WithNullableEnable()); 88682var comp = CreateCompilation(source, options: WithNullableEnable()); 88725var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), targetFramework: TargetFramework.Mscorlib46); 88784var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), targetFramework: TargetFramework.Mscorlib46); 88846var comp = CreateEmptyCompilation(source); 88856var comp2 = CreateEmptyCompilation(new[] { source }, options: WithNullableEnable()); 88889var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7); 88921var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 88949var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7); 88976var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89001var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89021var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89038var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89049var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7); 89062var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7); 89076var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89103var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89148var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89189var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89220var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 89242var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable(), references: new[] { comp0.EmitToImageReference() }); 89318var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89417var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89546var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89623var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89688var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89774var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89831var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89875var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89907var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89946var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 89978var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 90060var comp = CreateEmptyCompilation(new[] { source }, options: WithNullableEnable()); 90101var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 90125var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 90154var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 90217var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 90280var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 90324var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 90375var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 90419var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 90454var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 90520var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 90579var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 90647var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 90703var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 90757var comp = CreateCompilation(source, options: WithNullableEnable()); 90788var comp = CreateCompilation(source, options: WithNullableEnable()); 90868var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 90938var comp = CreateCompilation(source, options: WithNullableEnable()); 91002var comp = CreateCompilation(source, options: WithNullableEnable()); 91066var comp = CreateCompilation(source, options: WithNullableEnable()); 91104var comp = CreateCompilation(source, options: WithNullableEnable()); 91146var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 91205var comp = CreateCompilationWithTasksExtensions(new[] { source, MaybeNullAttributeDefinition }); 91303var comp = CreateCompilation(source, options: WithNullableEnable()); 91336var comp = CreateCompilationWithMscorlibAndSpan(source, options: WithNullableEnable()); 91446var comp = CreateEmptyCompilation(new[] { source, systemSource }, options: WithNullableEnable()); 91481var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 91508var comp = CreateCompilation(src); 91544var comp = CreateCompilation(source, options: WithNullableEnable()); 91584var comp = CreateCompilation(source, options: WithNullableEnable()); 91623var comp = CreateCompilation(source, options: WithNullableEnable()); 91650var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable()); 91678var comp = CreateCompilation(new[] { source, NotNullAttributeDefinition }, options: WithNullableEnable()); 91702var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91729var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91758var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91796var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91828var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91857var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91887var comp = CreateCompilation(new[] { source, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91914var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91944var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 91974var comp = CreateCompilation(new[] { source, DisallowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92001var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92033var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92060var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92094var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92124var comp = CreateCompilation(new[] { source, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92148var comp = CreateCompilation(source); 92175var comp = CreateCompilation(source); 92203var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92230var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92259var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92298var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92331var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92361var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92391var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92418var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92448var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, AllowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92478var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, DisallowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92506var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92539var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92567var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92601var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92631var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, NotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92655var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92680var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92741var comp = CreateCompilation( 92767var comp = CreateCompilation( 92802var comp = CreateCompilation( 92826var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 92848var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 92870var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 92884var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 92906var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 92926var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 92974var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 92997var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93021var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 93041var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93092var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 93114var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93136var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 93158var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93198var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 93259var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93279var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 93300var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93325var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 93347var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93382var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 93413var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 93452var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 93482var comp = CreateCompilation( 93515var comp = CreateCompilation( 93542var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93567var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 93598var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93623var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 93657var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 93671var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93693var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 93714var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 93744var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(TestOptions.UnsafeDebugDll)); 93799var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93824var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 93837var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93891var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 93923var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 93952var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 94016var comp = CreateCompilation( 94087var comp = CreateCompilation( 94135var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 94149var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable(), references: new[] { ref0 }); 94194var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0, ref1 }); 94245var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 94279var comp = CreateCompilation(source); 94308var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 94332var comp = CreateCompilation( 94356var comp = CreateCompilation( 94380var comp = CreateCompilation( 94404var comp = CreateCompilation( 94427var comp = CreateCompilation( 94448var comp = CreateCompilation( 94477var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 94505var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 94535var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 94554var comp = CreateCompilation( 94573var comp = CreateCompilation( 94594var comp = CreateCompilation( 94626var comp = CreateCompilation( 94664var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 94692var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 94727var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 94759var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 94795var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 94823var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 94868var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 94938var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 95011var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 95077var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 95112var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 95139var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 95154var comp0 = CreateCompilation(source0); 95170var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 95193var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 95221var comp = CreateCompilation(source, options: WithNullableEnable()); 95253var comp = CreateCompilation(source, options: WithNullableEnable()); 95292var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 95328var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 95375var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 95422var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 95455var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 95492var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 95536var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 95570var comp = CreateCompilation(source, options: WithNullableEnable()); 95605var comp = CreateCompilation(source, options: WithNullableEnable()); 95635var comp = CreateCompilation(source, options: WithNullableEnable()); 95669var comp = CreateCompilation(source, options: WithNullableEnable()); 95705var comp = CreateCompilation(source, options: WithNullableEnable()); 95733var comp = CreateCompilation(source, options: WithNullableEnable()); 95756var comp = CreateCompilation(source, options: WithNullableEnable()); 95784var comp = CreateCompilation(source, options: WithNullableEnable()); 95820var comp = CreateCompilation(source, options: WithNullableEnable()); 95850var comp = CreateCompilation(source, options: WithNullableEnable()); 95877var comp = CreateCompilation(source, options: WithNullableEnable()); 95909var comp = CreateCompilation(source, options: WithNullableEnable()); 95947var comp = CreateCompilation(source, options: WithNullableEnable()); 95989var comp = CreateCompilation(source, options: WithNullableEnable()); 96024var comp = CreateCompilation(source, options: WithNullableEnable()); 96055var comp = CreateCompilation(source, options: WithNullableEnable()); 96084var comp = CreateCompilation(source, options: WithNullableEnable()); 96117var comp = CreateCompilation(source, options: WithNullableEnable()); 96146var comp = CreateCompilation(source, options: WithNullableEnable()); 96190var comp = CreateCompilation(source, options: WithNullableEnable()); 96232var comp = CreateCompilation(source, options: WithNullableEnable()); 96266var comp = CreateCompilation(source, options: WithNullableEnable()); 96306var comp = CreateCompilation(source, options: WithNullableEnable()); 96340var comp = CreateCompilation(source, options: WithNullableEnable()); 96371var comp = CreateCompilation(source, options: WithNullableEnable()); 96419var comp = CreateCompilation(source, options: WithNullableEnable()); 96473var comp = CreateCompilation(source, options: WithNullableEnable()); 96538var comp = CreateCompilation(source, options: WithNullableEnable()); 96590var comp = CreateCompilation(source, options: WithNullableEnable()); 96641var comp = CreateCompilation(source, options: WithNullableEnable()); 96683var comp = CreateCompilation(source, options: WithNullableEnable()); 96735var comp = CreateCompilation(source, options: WithNullableEnable()); 96771var comp = CreateCompilation(source, options: WithNullableEnable()); 96798var comp = CreateCompilation(source, options: WithNullableEnable()); 96825var comp = CreateCompilation(source, options: WithNullableEnable()); 96857var comp = CreateCompilation(source, options: WithNullableEnable()); 96898var comp = CreateCompilation(source, options: WithNullableEnable()); 96948var comp = CreateCompilation(source, options: WithNullableEnable()); 97001var comp = CreateCompilation(source, options: WithNullableEnable()); 97042var comp = CreateCompilation(source, options: WithNullableEnable()); 97072var comp = CreateCompilation(source, options: WithNullableEnable()); 97101var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 97122var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 97144var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 97166var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 97189var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 97217var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 97243var comp = CreateCompilation(source, options: WithNullableEnable()); 97275var comp = CreateCompilation(source, options: WithNullableEnable()); 97311var comp = CreateCompilation(source, options: WithNullableEnable()); 97361var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 97393var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 97426var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 97456var comp = CreateCompilation(source, options: WithNullableEnable()); 97483var comp = CreateCompilation(source, options: WithNullableEnable()); 97525var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 97550var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 97596var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 97637var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 97697var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 97754var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 97795var comp = CreateCompilation(source); 97888var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 97921var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 97951var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 97991var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 98019var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 98053var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 98093var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 98124var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 98149var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 98183var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 98217var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 98247var comp = CreateCompilation(new[] { source, NullableAttributeDefinition }, parseOptions: TestOptions.Regular9); 98288var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 98314var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable()); 98330var comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), references: new[] { comp1.EmitToImageReference() }) 98356var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable()); 98372var comp3 = CreateCompilation(new[] { source3 }, options: WithNullableEnable(), 98399var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable()); 98415var comp2 = CreateCompilation(new[] { source2 }, references: new[] { comp1.EmitToImageReference() }); 98482var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 98588var comp1 = CreateCompilation(new[] { source2, source1 }, options: WithNullableEnable()); 98651var comp2 = CreateCompilation(new[] { source1 }, options: WithNullableEnable()); 98655var comp3 = CreateCompilation(new[] { source2 }, references: new[] { comp2.ToMetadataReference() }, options: WithNullable(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular8); 98677var comp4 = CreateCompilation(new[] { source1 }); 98679var comp5 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), references: new[] { comp4.ToMetadataReference() }); 98712var comp = CreateCompilation(new[] { source }, 98764var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable()); 98779var comp2 = CreateCompilation(new[] { source2 }, 98833var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable()); 98835var comp2 = CreateCompilation(NullableContextAttributeDefinition); 98850var comp3 = CreateCompilation(new[] { source3 }, 98905var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable()); 98921var comp2 = CreateCompilation(new[] { source2 }, references: new[] { comp1.EmitToImageReference() }); 98982var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 99010var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 99043var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 99083var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 99118var comp = CreateCompilation(source); 99163var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 99188var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 99276var comp1 = CreateCompilation(new[] { source2, source1 }, options: WithNullableEnable()); 99339var comp2 = CreateCompilation(new[] { source1 }, options: WithNullableEnable()); 99343var comp3 = CreateCompilation(new[] { source2 }, references: new[] { comp2.ToMetadataReference() }, options: WithNullable(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular8); 99365var comp4 = CreateCompilation(new[] { source1 }); 99367var comp5 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), references: new[] { comp4.ToMetadataReference() }); 99443var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable()); 99445var comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), references: new[] { comp1.ToMetadataReference() }); 99459var comp3 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), references: new[] { comp1.EmitToImageReference() }); 99462var comp4 = CreateCompilation(new[] { source2 }, options: WithNullableDisable(), references: new[] { comp1.ToMetadataReference() }); 99465var comp5 = CreateCompilation(new[] { source2 }, options: WithNullableDisable(), references: new[] { comp1.EmitToImageReference() }); 99468var comp6 = CreateCompilation(new[] { source1 }, options: WithNullableDisable(), parseOptions: TestOptions.Regular8); 99478var comp7 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), references: new[] { comp6.ToMetadataReference() }); 99481var comp9 = CreateCompilation(new[] { source2 }, options: WithNullableDisable(), references: new[] { comp6.ToMetadataReference() }); 99548var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 99625var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 99708var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 99791var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 99868var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 99942var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 99998var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 100080var comp1 = CreateCompilation(new[] { source2, source1 }, options: WithNullableEnable()); 100116var comp2 = CreateCompilation(new[] { source1 }, options: WithNullableEnable()); 100120var comp3 = CreateCompilation(new[] { source2 }, references: new[] { comp2.ToMetadataReference() }, options: WithNullable(NullableContextOptions.Warnings)); 100151var comp4 = CreateCompilation(new[] { source1 }); 100153var comp5 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), references: new[] { comp4.ToMetadataReference() }); 100165var comp6 = CreateCompilation(new[] { source2 }, references: new[] { comp4.ToMetadataReference() }); 100213var comp1 = CreateCompilation(new[] { source2, source1 }, options: WithNullableEnable()); 100235var comp2 = CreateCompilation(new[] { source1 }, options: WithNullableEnable()); 100239var comp3 = CreateCompilation(new[] { source2 }, references: new[] { comp2.ToMetadataReference() }, options: WithNullable(NullableContextOptions.Warnings)); 100262var comp4 = CreateCompilation(new[] { source1 }); 100264var comp5 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), references: new[] { comp4.ToMetadataReference() }); 100270var comp6 = CreateCompilation(new[] { source2 }, references: new[] { comp4.ToMetadataReference() }); 100288var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 100326var comp = CreateCompilation(new[] { source }); 100369var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 100413var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7_3); 100466var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 100489var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 100533var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 100575var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 100616var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 100658var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 100753var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 100842var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 100914var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 100941var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 100967var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 100990var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 101028var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 101111var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 101227var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 101291var comp1 = CreateCompilation(source1, options: WithNullableDisable()); 101295var comp2 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { reference }); 101324var comp3 = CreateCompilationWithIL(new[] { source3 }, il, options: WithNullableEnable()); 101372var comp1 = CreateCompilation(source1, options: WithNullableEnable()); 101376var comp2 = CreateCompilation(source2, options: WithNullable(NullableContextOptions.Warnings), references: new[] { reference }); 101412var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 101438var compilation = CreateCompilation(source); 101472var compilation = CreateCompilation(source); 101539var compilation = CreateCompilation(source); 101605var compilation = CreateCompilation(source); 101638var compilation = CreateCompilation(source); 101661var compilation = CreateCompilation(new[] { Tuple2NonNullable, source }, targetFramework: TargetFramework.Mscorlib46); 101689var compilation = CreateCompilation(new[] { Tuple2NonNullable, source }, targetFramework: TargetFramework.Mscorlib46); 101718var compilation = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib46); 101751var compilation = CreateCompilation(new[] { Tuple2NonNullable, TupleRestNonNullable, source }, targetFramework: TargetFramework.Mscorlib46); 101797var compilation = CreateCompilation(new[] { Tuple2NonNullable, TupleRestNonNullable, source }, targetFramework: TargetFramework.Mscorlib46); 101847var compilation = CreateCompilation(new[] { Tuple2NonNullable, source }, targetFramework: TargetFramework.Mscorlib46); 101867var compilation = CreateCompilation(new[] { Tuple2NonNullable, TupleRestNonNullable, source }, targetFramework: TargetFramework.Mscorlib46, parseOptions: TestOptions.Regular7_3, skipUsesIsNullable: true); 101924var comp1 = CreateCompilation(source1); 101947var comp2 = CreateCompilation(source2); 101976var comp1 = CreateCompilation(source1); 102003var comp1 = CreateCompilation(source1); 102030var comp1 = CreateCompilation(source1); 102057var comp1 = CreateCompilation(source1); 102084var comp1 = CreateCompilation(source1); 102111var comp1 = CreateCompilation(source1); 102153var comp1 = CreateCompilation(source1); 102184var comp1 = CreateCompilation(source1); 102218var comp2 = CreateCompilation(source2); 102258var comp1 = CreateCompilation(source1); 102296var comp1 = CreateCompilation(source1); 102334var comp1 = CreateCompilation(source1); 102362var comp1 = CreateCompilation(source1); 102390var comp1 = CreateCompilation(source1); 102418var comp1 = CreateCompilation(source1); 102457var comp1 = CreateCompilation(source1); 102484var comp1 = CreateCompilation(source1); 102506var comp2 = CreateCompilation(source2); 102534var comp1 = CreateCompilation(source1); 102560var comp1 = CreateCompilation(source1); 102586var comp1 = CreateCompilation(source1); 102612var comp1 = CreateCompilation(source1); 102638var comp1 = CreateCompilation(source1); 102664var comp1 = CreateCompilation(source1); 102705var comp1 = CreateCompilation(source1); 102735var comp1 = CreateCompilation(source1); 102768var comp2 = CreateCompilation(source2); 102807var comp1 = CreateCompilation(source1); 102844var comp1 = CreateCompilation(source1); 102881var comp1 = CreateCompilation(source1); 102908var comp1 = CreateCompilation(source1); 102935var comp1 = CreateCompilation(source1); 102962var comp1 = CreateCompilation(source1); 102999var comp1 = CreateCompilation(source1); 103031var comp1 = CreateCompilation(source1); 103062var comp1 = CreateCompilation(source1); 103105var comp1 = CreateCompilation(source1); 103149var comp1 = CreateCompilation(source1); 103190var comp1 = CreateCompilation(source1); 103210var comp2 = CreateCompilation(source2); 103235var comp3 = CreateCompilation(source3); 103264var comp1 = CreateCompilation(source1); 103284var comp2 = CreateCompilation(source2); 103315var comp1 = CreateCompilation(source1); 103335var comp2 = CreateCompilation(source2); 103362var comp3 = CreateCompilation(source3); 103393var comp1 = CreateCompilation(source1); 103414var comp2 = CreateCompilation(source2); 103442var comp1 = CreateCompilation(source1); 103468var comp2 = CreateCompilation(source2); 103495var comp3 = CreateCompilation(source3); 103529var comp1 = CreateCompilation(source1); 103552var comp2 = CreateCompilation(source2); 103576var comp3 = CreateCompilation(source3); 103609var comp1 = CreateCompilation(source1); 103633var comp2 = CreateCompilation(source2); 103658var comp3 = CreateCompilation(source3); 103691var comp1 = CreateCompilation(source1); 103718var comp2 = CreateCompilation(source2); 103746var comp3 = CreateCompilation(source3); 103780var comp1 = CreateCompilation(source1); 103806var comp2 = CreateCompilation(source2); 103833var comp3 = CreateCompilation(source3); 103867var comp1 = CreateCompilation(source1); 103890var comp2 = CreateCompilation(source2); 103914var comp3 = CreateCompilation(source3); 103947var comp1 = CreateCompilation(source1); 103974var comp2 = CreateCompilation(source2); 104002var comp3 = CreateCompilation(source3); 104039var comp1 = CreateCompilation(source1); 104064var comp2 = CreateCompilation(source2); 104090var comp3 = CreateCompilation(source3); 104123var comp1 = CreateCompilation(source1); 104143var comp1 = CreateCompilation(source1); 104165var comp1 = CreateCompilation(source1); 104187var comp2 = CreateCompilation(source2); 104213var comp1 = CreateCompilation(source1); 104234var comp2 = CreateCompilation(source2); 104259var comp1 = CreateCompilation(source1); 104280var comp1 = CreateCompilation(source1); 104310var comp1 = CreateCompilation(source1); 104336var comp1 = CreateCompilation(source1); 104365var comp1 = CreateCompilation(source1); 104397var comp1 = CreateCompilation(source1); 104423var comp1 = CreateCompilation(source1); 104452var comp1 = CreateCompilation(source1); 104480var comp1 = CreateCompilation(source1); 104500var comp1 = CreateCompilation(source1); 104522var comp1 = CreateCompilation(source1); 104549var comp1 = CreateCompilation(source1); 104574var comp1 = CreateCompilation(source1); 104595var comp1 = CreateCompilation(source1); 104625var comp1 = CreateCompilation(source1); 104652var comp1 = CreateCompilation(source1); 104681var comp1 = CreateCompilation(source1); 104712var comp1 = CreateCompilation(source1); 104738var comp1 = CreateCompilation(source1); 104767var comp1 = CreateCompilation(source1); 104806var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 104886var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable()); 104902var comp2 = CreateCompilation(new[] { source2 }, options: WithNullableEnable(), references: new[] { comp1.EmitToImageReference() }); 104959var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable()); 104961var comp2 = CreateCompilation(NullableAttributeDefinition); 104977var comp3 = CreateCompilation(new[] { source3 }, options: WithNullableEnable(), 105034var comp = CreateCompilation(new[] { source }); 105080var comp1 = CreateCompilation(new[] { source1 }); 105131var comp1 = CreateCompilation(new[] { source1 }); 105173var comp1 = CreateCompilation(new[] { source1 }); 105216var comp1 = CreateCompilation(new[] { source1 }); 105255var comp1 = CreateCompilation(new[] { source1 }); 105295var comp1 = CreateCompilation(new[] { source1 }); 105335var comp1 = CreateCompilation(new[] { source1 }); 105381var comp1 = CreateCompilation(new[] { source1 }); 105418var comp1 = CreateCompilation(new[] { source1 }); 105448var comp1 = CreateCompilation(new[] { source1 }); 105534var comp1 = CreateCompilation(new[] { source1 }); 105606var comp2 = CreateCompilation(new[] { source2 }, references: new[] { comp1.EmitToImageReference() }); 105642var comp1 = CreateCompilation(new[] { source1 }); 105675var comp1 = CreateCompilation(new[] { source1 }); 105708var comp1 = CreateCompilation(new[] { source1 }); 105738var comp1 = CreateCompilation(new[] { source1 }); 105768var comp1 = CreateCompilation(new[] { source1 }, parseOptions: TestOptions.Regular8); 105795var comp1 = CreateCompilation(new[] { source1 }); 105816var comp1 = CreateCompilation(new[] { source1 }, parseOptions: TestOptions.Regular8); 105845var comp = CreateCompilation(source); 105870var comp1 = CreateCompilation(new[] { source }, options: options); 105899var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 105910var comp2 = CreateCompilation(new[] { source }, options: WithNullableDisable()); 105974var comp1 = CreateCompilation(new[] { source1 }); 106115var comp2 = CreateCompilation(new[] { source2 }, references: new[] { reference }, parseOptions: TestOptions.Regular8); 106157var comp1 = CreateCompilation(new[] { source1 }); 106188var comp1 = CreateCompilation(new[] { source1 }); 106219var comp1 = CreateCompilation(new[] { source1 }); 106251var comp1 = CreateCompilation(new[] { source1 }); 106284var comp1 = CreateCompilation(new[] { source1 }); 106317var comp1 = CreateCompilation(new[] { source1 }); 106349var comp1 = CreateCompilation(new[] { source1 }); 106381var comp1 = CreateCompilation(new[] { source1 }); 106414var comp1 = CreateCompilation(new[] { source1 }); 106444var comp1 = CreateCompilation(new[] { source1 }); 106475var comp1 = CreateCompilation(new[] { source1 }); 106506var comp1 = CreateCompilation(new[] { source1 }); 106538var comp1 = CreateCompilation(new[] { source1 }); 106570var comp1 = CreateCompilation(new[] { source1 }); 106603var comp1 = CreateCompilation(new[] { source1 }); 106634var comp1 = CreateCompilation(new[] { source1 }); 106666var comp1 = CreateCompilation(new[] { source1 }); 106697var comp1 = CreateCompilation(new[] { source1 }); 106729var comp1 = CreateCompilation(new[] { source1 }); 106759var comp1 = CreateCompilation(new[] { source1 }); 106789var comp1 = CreateCompilation(new[] { source1 }); 106819var comp1 = CreateCompilation(new[] { source1 }); 106849var comp1 = CreateCompilation(new[] { source1 }); 107043var compilation = CreateCompilationWithIL(new[] { "" }, il, options: WithNullableEnable()); 107114var compilation = CreateCompilationWithIL(new[] { "" }, il, options: WithNullableEnable()); 107149var compilation = CreateCompilationWithIL(new[] { "" }, il, options: WithNullableEnable()); 107176var comp1 = CreateCompilation(new[] { source1 }); 107213var comp1 = CreateCompilation(new[] { source1 }); 107249var comp1 = CreateCompilation(new[] { source1 }); 107286var comp1 = CreateCompilation(new[] { source1 }); 107322var comp1 = CreateCompilation(new[] { source1 }); 107360var comp1 = CreateCompilation(new[] { source1 }); 107404var comp1 = CreateCompilation(new[] { source1 }); 107407var comp2 = CreateCompilation(new[] { source2 }, references: new[] { comp1.EmitToImageReference() }); 107445var comp1 = CreateCompilation(new[] { source1 }); 107486var comp1 = CreateCompilation(new[] { source1 }); 107522var comp1 = CreateCompilation(new[] { source1 }); 107559var comp1 = CreateCompilation(new[] { source1 }); 107595var comp1 = CreateCompilation(new[] { source1 }); 107631var comp1 = CreateCompilation(new[] { source1 }); 107667var comp1 = CreateCompilation(new[] { source1 }); 107703var comp1 = CreateCompilation(new[] { source1 }); 107728var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 107784var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 107859var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 107920var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 107963var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108014var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108084var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108141var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108186var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108231var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108275var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108333var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108398var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108450var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108504var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108545var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108618var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108707var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108777var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108836var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108889var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108921var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108953var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 108991var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 109029var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 109079var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 109137var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 109198var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 109255var comp0 = CreateCompilation(new[] { source0 }, options: WithNullableEnable()); 109259var comp1 = CreateCompilation(new[] { source1 }, options: WithNullableEnable(), references: new[] { reference }); 109314var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 109353var comp1 = CreateCompilation(new[] { source }, options: WithNullableEnable()); 109414var comp1 = CreateCompilation(source); 109465var comp1 = CreateCompilation(source); 109537var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 109653var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 109708var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 109742var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 109769var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 109837var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 109886var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 109913var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 109977var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 110018var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 110093var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110139var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 110170var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110200var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110234var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110293var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110349var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110421var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110447var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110477var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110500var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110543var comp = CreateCompilation(source1, new[] { ref0 }); 110623var comp = CreateCompilation(source1, new[] { ref0 }); 110638var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110686var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110723var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110787var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110831var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 110878var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 110912var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 110959var comp = CreateCompilation(new[] { source1 }, new[] { ref0 }, options: WithNullableEnable()); 110992var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular8); 111038var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 111061var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 111114var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular7); 111127var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 111143var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 111181var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 111213var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 111245var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 111271var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 111306var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 111328var comp0 = CreateCompilation(source0); 111335var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 111347var comp0 = CreateCompilation(source0); 111358var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 111376var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 111394var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 111412var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 111430var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 111445var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 111463var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 111481var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 111499var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 111514var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 111529var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 111548var comp0 = CreateCompilation(new[] { source0 }); 111570var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 111600var comp0 = CreateCompilation(new[] { source0 }, parseOptions: TestOptions.Regular8); 111656var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { new CSharpCompilationReference(comp0) }); 111751var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 111805var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 111852var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 111870var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 111894var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 111904var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 111914var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 111956var comp = CreateCompilation(new[] { source }, references: new[] { ref0 }); 111988var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 112030var comp = CreateCompilation(new[] { source }, references: new[] { ref0 }); 112076var comp0 = CreateCompilation(new[] { source0 }, options: WithNullableEnable()); 112088var comp = CreateCompilation(new[] { source }, references: new[] { ref0 }, parseOptions: TestOptions.Regular8); 112131var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 112187var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 112216var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 112257var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 112284var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular7); 112305var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), references: new[] { ref0 }); 112347var comp = CreateCompilation(source, options: WithNullableEnable()); 112385var comp = CreateCompilation(source, options: WithNullableEnable()); 112424var comp = CreateCompilation(source, options: WithNullableEnable()); 112466var comp = CreateCompilation(source, options: WithNullableEnable()); 112494var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 112538var comp0 = CreateCompilation(source0); 112540var comp = CreateCompilation(source, references: new[] { ref0 }); 112636var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular8); 112647var comp = CreateCompilation(source, references: new[] { ref0 }); 112721var comp = CreateCompilation(source); 112786var comp = CreateCompilation(new[] { source }); 112876var comp = CreateCompilation(new[] { source }); 112913var comp = CreateCompilation(new[] { source }); 112933var comp = CreateCompilation(new[] { source }); 112993var comp = CreateCompilation(new[] { source }); 113075var comp = CreateCompilation(new[] { source }); 113111var comp = CreateCompilation(new[] { source }); 113182var comp1 = CreateCompilation(new[] { source.Replace("PLACEHOLDER", "") }); 113185var comp2 = CreateCompilation(new[] { source.Replace("PLACEHOLDER", "annotations") }); 113188void verify(CSharpCompilation comp) 113237var comp = CreateCompilation(new[] { source }, options: compilationOptions); 113266var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 113303var comp = CreateCompilation(new[] { source }, options: compilationOptions); 113334var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 113375var comp = CreateCompilation(new[] { source }, options: compilationOptions); 113397var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 113427var comp = CreateCompilation(new[] { source }, options: compilationOptions); 113452var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 113482var comp = CreateCompilation(new[] { source }, options: compilationOptions); 113507var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 113537var comp = CreateCompilation(new[] { source }, options: compilationOptions); 113562var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 113595var comp = CreateCompilation(new[] { source }, options: compilationOptions); 113626var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 113653var comp = CreateCompilation(new[] { source }, options: compilationOptions); 113672var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 113696var comp = CreateCompilation(new[] { source }, options: compilationOptions); 113718var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 113751var comp = CreateCompilation(new[] { source }, options: compilationOptions); 113772var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 113804var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 114029var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 114253var comp = CreateCompilation(new[] { source }, options: compilationOptions); 114278var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 114311var comp = CreateCompilation(new[] { source }, options: compilationOptions); 114339var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 114372var comp = CreateCompilation(new[] { source }, options: compilationOptions); 114400var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 114430var comp = CreateCompilation(new[] { source }, options: compilationOptions); 114466var comp = CreateCompilation(new[] { source }, options: compilationOptions); 114503var comp = CreateCompilation(new[] { source }, options: compilationOptions); 114539var comp = CreateCompilation(new[] { source }, options: compilationOptions); 114569var comp = CreateCompilation(new[] { source }, options: compilationOptions); 114601var comp = CreateCompilation(new[] { source }, options: compilationOptions); 114632var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 114663var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 114693var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 114724var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 114754var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 114783var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 114867var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular8); 114917var comp = CreateCompilation(new[] { source }); 114957var comp = CreateCompilation(new[] { source }); 114982var comp = CreateCompilation(new[] { source }); 115005var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115037var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115080var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 115123var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115156var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115205var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115234var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115261var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115290var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115331var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115369var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115403var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115441var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115486var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115526var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115557var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115592var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115611var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115647var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 115700var comp = CreateEmptyCompilation(new[] { source0 }, options: WithNullableEnable()); 115746var comp = CreateNullableCompilation(text); 115769var comp = CreateNullableCompilation(text); 115792var comp = CreateNullableCompilation(text); 115837var comp = CreateNullableCompilation(text); 115931var comp = CreateNullableCompilation(text); 116154var comp1 = CreateCompilation(source1, options: WithNullableDisable()); 116165var comp2 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.EmitToImageReference() }); 116168var comp3 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.ToMetadataReference() }); 116191var comp1 = CreateCompilation(source1, options: WithNullableDisable()); 116203var comp2 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.EmitToImageReference() }); 116206var comp3 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.ToMetadataReference() }); 116229var comp1 = CreateCompilation(source1, options: WithNullableDisable()); 116240var comp2 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.EmitToImageReference() }); 116243var comp3 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.ToMetadataReference() }); 116266var comp1 = CreateCompilation(source1, options: WithNullableDisable()); 116277var comp2 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.EmitToImageReference() }); 116280var comp3 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.ToMetadataReference() }); 116303var comp1 = CreateCompilation(source1, options: WithNullableDisable()); 116319var comp2 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.EmitToImageReference() }); 116322var comp3 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.ToMetadataReference() }); 116345var comp1 = CreateCompilation(source1, options: WithNullableDisable()); 116361var comp2 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.EmitToImageReference() }); 116364var comp3 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.ToMetadataReference() }); 116384var comp1 = CreateCompilation(source1, options: WithNullableDisable()); 116402var comp2 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.EmitToImageReference() }); 116405var comp3 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.ToMetadataReference() }); 116425var comp1 = CreateCompilation(source1, options: WithNullableDisable()); 116446var comp2 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.EmitToImageReference() }); 116449var comp3 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.ToMetadataReference() }); 116472var comp1 = CreateCompilation(source1, options: WithNullableDisable()); 116487var comp2 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.EmitToImageReference() }); 116490var comp3 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.ToMetadataReference() }); 116513var comp1 = CreateCompilation(source1, options: WithNullableDisable()); 116530var comp2 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.EmitToImageReference() }); 116533var comp3 = CreateCompilation(source2, options: WithNullableEnable(), references: new[] { comp1.ToMetadataReference() }); 116622var compilation1 = CreateEmptyCompilation(source1, options: WithNullableEnable(TestOptions.ReleaseDll), references: new[] { MinCorlibRef }); 116638var compilation2 = CreateEmptyCompilation(source2, options: WithNullableEnable(TestOptions.ReleaseDll), references: new[] { compilation1.EmitToImageReference(), MinCorlibRef }); 116651var compilation3 = CreateEmptyCompilation(source2, options: WithNullableEnable(TestOptions.ReleaseDll), references: new[] { compilation1.ToMetadataReference(), MinCorlibRef }); 116662var compilation4 = CreateEmptyCompilation(source2, options: WithNullableEnable(TestOptions.ReleaseDll), references: new[] { compilation1.EmitToImageReference() }); 116692var compilation5 = CreateEmptyCompilation(source2, options: WithNullableEnable(TestOptions.ReleaseDll), references: new[] { compilation1.ToMetadataReference() }); 116730var compilation6 = CreateEmptyCompilation(source2, options: WithNullableEnable(TestOptions.ReleaseDll), references: new[] { compilation1.EmitToImageReference(), MscorlibRef }); 116760var compilation7 = CreateEmptyCompilation(source2, options: WithNullableEnable(TestOptions.ReleaseDll), references: new[] { compilation1.ToMetadataReference(), MscorlibRef }); 116801var comp = CreateCompilation(source2, new[] { ref1.WithEmbedInteropTypes(true), CSharpRef }, options: WithNullableEnable(TestOptions.ReleaseExe)); 120327var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 120353var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 120379var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 120403var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 120427var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 120450var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 120605var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 120621var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 120637var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 120661var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 120892var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 123586var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 123621var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 123658var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 123688var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 123727var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 123758var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 123813var comp = CreateCompilation(new[] { source }); 124137var compilation = CreateCompilation(new[] { source }, new[] { CompileIL(ilSource) }); 124228var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 124263var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 124299var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 124339var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 124382var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 124429var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 124475var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 124517var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 124559var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 124599var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 124839var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 124886var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 124924var comp = CreateCompilation(source, options: WithNullableEnable()); 124977var comp = CreateCompilation(source, options: WithNullableEnable()); 125029var comp = CreateCompilation(source, options: WithNullableEnable()); 125056var comp = CreateCompilation(source, options: WithNullableEnable()); 125080var comp = CreateCompilation(source, options: WithNullableEnable()); 125113var comp = CreateCompilation(new[] { source, source2 }, options: WithNullableDisable()); 125296var comp = CreateCompilation(new[] { source, source2 }, options: WithNullableDisable()); 125467var comp = CreateCompilation(new[] { source, source2 }, options: options); 125887var comp = CreateCompilation(source); 126006var comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions); 126081var comp = CreateCompilation(new[] { source, source2 }, options: compilationOptions); 126152var comp = CreateCompilation(new[] { source, source2 }, options: options); 126686var comp = CreateCompilation(source, options: WithNullableEnable()); 126720var comp = CreateCompilation(source, options: WithNullableEnable()); 126757var comp = CreateCompilation(source, options: WithNullableEnable()); 126797var comp = CreateCompilation(source, options: WithNullableEnable()); 126829var comp = CreateCompilation(source, options: WithNullableEnable()); 127129var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7, options: WithNullableEnable()); 127149var comp = CreateCompilation(source); 127165var comp = CreateCompilation(source, options: WithNullableEnable()); 127185var comp = CreateCompilation(source, options: WithNullableEnable()); 127200var comp = CreateCompilation(source, options: WithNullableEnable()); 127225var comp = CreateCompilation(source, options: WithNullableEnable()); 127248var comp = CreateCompilation(source, options: WithNullableEnable()); 127268var comp = CreateCompilation(source, options: WithNullableEnable()); 127294var comp = CreateCompilation(source, options: WithNullableEnable()); 127309var comp = CreateCompilation(source, options: WithNullableEnable()); 127334var comp = CreateCompilation(source, options: WithNullableEnable()); 127364var comp = CreateCompilation(source, options: WithNullableEnable()); 127396var comp = CreateCompilation(source, options: WithNullableEnable()); 127428var comp = CreateCompilation(source, options: WithNullableEnable()); 127479var comp = CreateCompilation(source, options: WithNullableEnable()); 127537var comp = CreateCompilation(source, options: WithNullableEnable()); 127579var comp = CreateCompilation(source, options: WithNullableEnable()); 127630var comp = CreateCompilation(source, options: WithNullableEnable()); 127666var comp = CreateCompilation(source, options: WithNullableEnable()); 127695var comp = CreateCompilation(source, options: WithNullableEnable()); 127758var comp = CreateCompilation(source, options: WithNullableEnable()); 127852var comp = CreateCompilation(source, options: WithNullableEnable()); 127934var comp = CreateCompilation(source, options: WithNullableEnable()); 127995var comp = CreateCompilation(source, options: WithNullableEnable()); 128060var comp = CreateCompilation(source, options: WithNullableEnable()); 128126var comp = CreateCompilation(source, options: WithNullableEnable()); 128180var comp = CreateCompilation(source, options: WithNullableEnable()); 128237var comp = CreateCompilation(source, options: WithNullableEnable()); 128275var comp = CreateCompilation(source, options: WithNullableEnable()); 128332var comp = CreateCompilation(source, options: WithNullableEnable()); 128380var comp = CreateCompilation(source, options: WithNullableEnable()); 128452var comp = CreateCompilation(source, options: WithNullableEnable()); 128493var comp = CreateCompilation(source, options: WithNullableEnable()); 128557var comp = CreateCompilation(source, options: WithNullableEnable()); 128610var comp = CreateCompilation(source, options: WithNullableEnable()); 128673var comp = CreateCompilation(source, options: WithNullableEnable()); 128723var comp = CreateCompilation(source, options: WithNullableEnable()); 128789var comp = CreateCompilation(source, options: WithNullableEnable()); 128845var comp = CreateCompilation(source, options: WithNullableEnable()); 128912var comp = CreateCompilation(source, options: WithNullableEnable()); 128956var comp = CreateCompilation(source, options: WithNullableEnable()); 129015var comp = CreateCompilation(source, options: WithNullableEnable()); 129064var comp = CreateCompilation(source, options: WithNullableEnable()); 129118var comp = CreateCompilation(source, options: WithNullableEnable()); 129169var comp = CreateCompilation(source, options: WithNullableEnable()); 129216var comp = CreateCompilation(source, options: WithNullableEnable()); 129264var comp = CreateCompilation(source, options: WithNullableEnable()); 129305var comp = CreateCompilation(source, options: WithNullableEnable()); 129365var comp = CreateCompilation(source, options: WithNullableEnable()); 129405var comp = CreateCompilation(source, options: WithNullableEnable()); 129428var comp = CreateCompilation(source, options: WithNullableEnable()); 129480var comp = CreateCompilation(source, options: WithNullableEnable()); 129533var comp = CreateCompilation(source, options: WithNullableEnable()); 129597var comp = CreateCompilation(source, options: WithNullableEnable()); 129645var comp = CreateCompilation(source, options: WithNullableEnable()); 129703var comp = CreateCompilation(source, options: WithNullableEnable()); 129744var comp = CreateCompilation(source, options: WithNullableEnable()); 129793var comp = CreateCompilation(source, options: WithNullableEnable()); 129841var comp = CreateCompilation(source, options: WithNullableEnable()); 129881var comp = CreateCompilation(source, options: WithNullableEnable()); 129912var comp = CreateCompilation(source, options: WithNullableEnable()); 129959var comp = CreateCompilation(source, options: WithNullableEnable()); 129992var comp = CreateCompilation(source, options: WithNullableEnable()); 130026var comp = CreateCompilation(source, options: WithNullableEnable()); 130068var comp = CreateCompilation(source, options: WithNullableEnable()); 130100var comp = CreateCompilation(source, options: WithNullableEnable()); 130130var comp = CreateCompilation(source, options: WithNullableEnable()); 130161var comp = CreateCompilation(source, options: WithNullableEnable()); 130192var comp = CreateCompilation(source, options: WithNullableEnable()); 130229var comp = CreateCompilation(source, options: WithNullableEnable()); 130252var comp = CreateCompilation(source, options: WithNullableEnable()); 130271var comp = CreateCompilation(source, options: WithNullableEnable()); 130288var comp = CreateCompilation(source, options: WithNullableEnable()); 130315var comp = CreateCompilation(source, options: WithNullableEnable()); 130359var comp = CreateCompilation(source, options: WithNullableEnable()); 130421var comp = CreateCompilation(source, options: WithNullableEnable()); 130460var comp = CreateCompilation(source, options: WithNullableEnable()); 130505var comp = CreateCompilation(source, options: WithNullableEnable()); 130535var comp = CreateCompilation(source, options: WithNullableEnable()); 130578var comp = CreateCompilation(source, options: WithNullableEnable()); 130617var comp = CreateCompilation(source, options: WithNullableEnable()); 130696var comp = CreateCompilation(source, options: WithNullableEnable()); 130753var comp = CreateCompilation(source, options: WithNullableEnable()); 130789var comp = CreateCompilation(source, options: WithNullableEnable()); 130821var comp = CreateCompilation(source, options: WithNullableEnable()); 130844var comp = CreateCompilation(source, options: WithNullableEnable()); 130879var comp = CreateCompilation(source, options: WithNullableEnable()); 130918var comp = CreateCompilation(source, options: WithNullableEnable()); 130942var comp = CreateCompilation(source, options: WithNullableEnable()); 130966var comp = CreateCompilation(source, options: WithNullableEnable()); 130993var comp = CreateCompilation(new[] { source, NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 131032var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition }); 131064var comp = CreateCompilation(new[] { source, DoesNotReturnIfAttributeDefinition }, options: WithNullableEnable()); 131099var comp = CreateCompilation(source, options: WithNullableEnable()); 131134var comp = CreateCompilation(source, options: WithNullableEnable()); 131173var comp = CreateCompilation(source, options: WithNullableEnable()); 131212var comp = CreateCompilation(source, options: WithNullableEnable()); 131244var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 131265var comp = CreateCompilationWithIndexAndRange(src, options: WithNullableEnable()); 131295var comp = CreateCompilation(source, options: WithNullableEnable()); 131325var comp = CreateCompilation(source, options: WithNullableEnable()); 131352var comp = CreateCompilation(source, options: WithNullableEnable()); 131378var comp = CreateCompilation(source, options: WithNullableEnable()); 131404var comp = CreateCompilation(source, options: WithNullableEnable()); 131422var comp = CreateCompilation(source, options: WithNullableEnable()); 131440var comp = CreateCompilation(source, options: WithNullableEnable()); 131459var comp = CreateCompilation(source, options: WithNullableEnable()); 131478var comp = CreateCompilation(source, options: WithNullableEnable()); 131500var comp = CreateCompilation(source, options: WithNullableEnable()); 131534var comp = CreateCompilation(source, options: WithNullableEnable()); 131569var comp = CreateCompilation(source, options: WithNullableEnable()); 131607var comp = CreateCompilation(source, options: WithNullableEnable()); 131629var comp = CreateCompilation(source, options: WithNullableEnable()); 131651var comp = CreateCompilation(source, options: WithNullableEnable()); 131697var comp = CreateCompilation(source, options: WithNullableEnable()); 131730var comp = CreateCompilation(source, options: WithNullableEnable()); 131764var comp = CreateCompilation(source, options: WithNullableEnable()); 131797var comp = CreateCompilation(source, options: WithNullableEnable()); 131822var comp = CreateCompilation(source, options: WithNullableEnable()); 131855var comp = CreateCompilation(source, options: WithNullableEnable()); 131890var comp = CreateCompilation(source, options: WithNullableEnable()); 131925var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 131960var comp = CreateCompilation(source, options: WithNullableEnable()); 131988var comp = CreateCompilation(source, options: WithNullableEnable()); 132017var comp = CreateNullableCompilation(source); 132067var comp = CreateCompilation(source, options: WithNullableEnable()); 132111var comp = CreateCompilation(source, options: WithNullableEnable()); 132154var comp = CreateCompilation(source, options: WithNullableEnable()); 132207var comp = CreateCompilation(source, options: WithNullableEnable()); 132226var comp = CreateCompilation(source, options: WithNullableEnable()); 132252var comp = CreateCompilation(source, options: WithNullableEnable()); 132277var comp = CreateCompilation(source, options: WithNullableEnable()); 132295var comp = CreateCompilation(source, options: WithNullableEnable()); 132324var comp = CreateCompilation(source, options: WithNullableEnable()); 132369var comp = CreateCompilation(source, options: WithNullableEnable()); 132395var comp = CreateCompilation(source, options: WithNullableEnable()); 132423var comp = CreateCompilation(source, options: WithNullableEnable()); 132449var comp = CreateCompilation(source, options: WithNullableEnable()); 132483var comp = CreateCompilation(source, options: WithNullableEnable()); 132507var comp = CreateCompilation(source, options: WithNullableEnable()); 132533var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 132559var comp = CreateCompilation(source, options: WithNullableEnable()); 132585var comp = CreateCompilation(source, options: WithNullableEnable()); 132614var comp = CreateCompilation(source, options: WithNullableEnable()); 132641var comp = CreateCompilation(source, options: WithNullableEnable()); 132667var comp = CreateCompilation(source, options: WithNullableEnable()); 132692var comp = CreateCompilation(source, options: WithNullableEnable()); 132716var comp = CreateCompilation(source, options: WithNullableEnable()); 132741var comp = CreateCompilation(source, options: WithNullableEnable()); 132765var comp = CreateCompilation(source, options: WithNullableEnable()); 132789var comp = CreateCompilation(source, options: WithNullableEnable()); 132813var comp = CreateCompilation(source, options: WithNullableEnable()); 132838var comp = CreateCompilation(source, options: WithNullableEnable()); 132863var comp = CreateCompilation(source, options: WithNullableEnable()); 132894var comp = CreateCompilation(source, options: WithNullableEnable()); 132921var comp = CreateCompilation(source, options: WithNullableEnable()); 132951var comp = CreateCompilation(source, options: WithNullableEnable()); 132981var comp = CreateCompilation(source, options: WithNullableEnable()); 133012var comp = CreateCompilation(source, options: WithNullableEnable()); 133044var comp = CreateCompilation(source, options: WithNullableEnable()); 133077var comp = CreateCompilation(source, options: WithNullableEnable()); 133112var comp = CreateCompilation(source, options: WithNullableEnable()); 133135var comp = CreateCompilation(source, options: WithNullableEnable()); 133160var comp = CreateCompilation(source, options: WithNullableEnable()); 133186var comp = CreateCompilation(source, options: WithNullableEnable()); 133214var comp = CreateCompilation(source, options: WithNullableEnable()); 133298var comp = CreateCompilation(source, options: WithNullableEnable()); 133358var comp = CreateCompilation(source, options: WithNullableEnable()); 133388var comp = CreateCompilation(source, options: WithNullableEnable()); 133412var comp = CreateCompilation(source, options: WithNullableEnable()); 133438var comp = CreateCompilation(source, options: WithNullableEnable()); 133474var comp = CreateCompilation(source, options: WithNullableEnable()); 133505var comp = CreateCompilation(source, options: WithNullableEnable()); 133538var comp = CreateCompilation(source, options: WithNullableEnable()); 133574var comp = CreateCompilation(source, options: WithNullableEnable()); 133605var comp = CreateCompilation(source, options: WithNullableEnable()); 133641var comp = CreateCompilation(source, options: WithNullableEnable()); 133676var comp = CreateCompilation(source, options: WithNullableEnable()); 133723var comp = CreateCompilation(source, options: WithNullableEnable()); 133758var comp = CreateCompilation(source, options: WithNullableEnable()); 133785var comp = CreateCompilation(source, options: WithNullableEnable()); 133813var comp = CreateCompilation(source, options: WithNullableEnable()); 133844var comp = CreateCompilation(source, options: WithNullableEnable()); 133873var comp = CreateCompilation(source, options: WithNullableEnable()); 133906var comp = CreateCompilation(source, options: WithNullableEnable()); 133942var comp = CreateCompilation(source, options: WithNullableEnable()); 133979var comp = CreateCompilation(source, options: WithNullableEnable()); 134010var comp = CreateCompilation(source, options: WithNullableEnable()); 134056var comp = CreateCompilationWithTasksExtensions(new[] { s_IAsyncEnumerable, source }); 134115var comp = CreateCompilationWithTasksExtensions(source); 134157var comp = CreateCompilation(source, options: WithNullableEnable()); 134199var comp = CreateCompilation(source, options: WithNullableEnable()); 134253var comp = CreateCompilation(source, options: WithNullableEnable()); 134324var comp = CreateCompilation(source, options: WithNullableEnable()); 134402var comp = CreateCompilation(source, options: WithNullableEnable()); 134473var comp = CreateCompilation(source, options: WithNullableEnable()); 134523var comp = CreateCompilation(source, options: WithNullableEnable()); 134554var comp = CreateCompilation(source, options: WithNullableEnable()); 134582var comp = CreateCompilation(source, options: WithNullableEnable()); 134617var comp = CreateCompilation(source, options: WithNullableEnable()); 134643var comp = CreateCompilation(source, options: WithNullableEnable()); 134675var comp = CreateCompilation(source, options: WithNullableEnable()); 134711var comp = CreateCompilation(source, options: WithNullableEnable()); 134729var comp = CreateCompilation(source, options: WithNullableEnable()); 134757var comp = CreateCompilation(source, options: WithNullableEnable()); 134795var comp = CreateCompilation(source, options: WithNullableEnable()); 134827var comp = CreateCompilation(source, options: WithNullableEnable()); 134860var comp = CreateCompilation(source, options: WithNullableEnable()); 134894var comp = CreateCompilation(source, options: WithNullableEnable()); 134923var comp = CreateCompilation(source, options: WithNullableEnable()); 134940var comp = CreateCompilation(source, options: WithNullableEnable()); 134958var comp = CreateCompilation(source, options: WithNullableEnable()); 134980var comp = CreateCompilation(source, options: WithNullableEnable()); 135007var comp = CreateCompilation(source, options: WithNullableEnable()); 135032var comp = CreateCompilation(source, options: WithNullableEnable()); 135056var comp = CreateCompilation(source, options: WithNullableEnable()); 135083var comp = CreateCompilation(source, options: WithNullableEnable()); 135113var comp = CreateCompilation(source, options: WithNullableEnable()); 135142var comp = CreateCompilation(source, options: WithNullableEnable()); 135174var comp = CreateCompilation(source, options: WithNullableEnable()); 135194var comp = CreateCompilation(source, options: WithNullableEnable()); 135218var comp = CreateCompilation(source, options: WithNullableEnable()); 135250var comp = CreateCompilation(source, options: WithNullableEnable()); 135297var comp = CreateCompilation(source, options: WithNullableEnable()); 135324var comp = CreateCompilation(source, options: WithNullableEnable()); 135351var comp = CreateCompilation(source, options: WithNullableEnable()); 135370var comp = CreateCompilation(source, options: WithNullableEnable()); 135407var comp = CreateCompilation(source, options: WithNullableEnable()); 135473var comp = CreateCompilation(source, options: WithNullableEnable()); 135551var comp = CreateCompilation(source, options: WithNullableEnable()); 135601var comp = CreateCompilation(source, options: WithNullableEnable()); 135644var comp = CreateCompilation(source, options: WithNullableEnable()); 135675var comp = CreateCompilation(source, options: WithNullableEnable()); 135699var comp = CreateCompilation(source, options: WithNullableEnable()); 135721var comp = CreateCompilation(source, options: WithNullableEnable()); 135742var comp = CreateCompilation(source, options: WithNullableEnable()); 135763var comp = CreateCompilation(source, options: WithNullableEnable()); 135786var comp = CreateCompilation(source, options: WithNullableEnable()); 135849var comp = CreateCompilation(source, options: WithNullableEnable()); 135916var comp = CreateCompilation(source, options: WithNullableEnable()); 135983var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 136038var comp = CreateCompilation(source, options: WithNullableEnable()); 136087var comp = CreateCompilation(source); 136127var comp = CreateCompilation(source); 136161var comp = CreateCompilation(source); 136182var comp = CreateCompilation(source, options: WithNullableEnable()); 136197var comp = CreateCompilation(source, options: WithNullableEnable()); 136227var comp = CreateCompilation(source, options: WithNullableEnable()); 136245var comp = CreateCompilation(source, options: WithNullableEnable()); 136279var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136343var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136375var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136522var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136546var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136565var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136607var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136730var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136757var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136786var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136811var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136836var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136868var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136895var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136922var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136944var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 136963var comp = CreateCompilation(new[] { source, NotNullAttributeDefinition }, options: WithNullableEnable()); 136982var comp = CreateCompilation(new[] { source1, source2 }); 137014var comp = CreateCompilation(new[] { source1, source2 }); 137048var comp = CreateCompilation(new[] { source1, source2 }); 137081var comp = CreateCompilation(new[] { source1, source2 }); 137110var comp = CreateCompilation(new[] { source1, source2 }); 137140var comp = CreateCompilation(new[] { source1 }); 137162var comp = CreateCompilation(new[] { source1 }); 137184var comp = CreateCompilation(new[] { source1 }); 137206var comp = CreateCompilation(new[] { source1 }); 137232var comp = CreateCompilation(new[] { source1 }); 137259var comp = CreateCompilation(new[] { source1 }); 137284var comp = CreateCompilation(new[] { source1 }); 137311var comp = CreateCompilation(new[] { source1, source2 }); 137368var comp1 = CreateCompilation(new[] { source0, source1 }); 137374var comp2 = CreateCompilation(new[] { source0, source2 }); 137380var comp3 = CreateCompilation(new[] { source0, source3 }); 137386var comp = CreateCompilation(new[] { source0, source1, source2, source3 }); 137446var comp1 = CreateCompilation(new[] { source }); 137487var comp1 = CreateCompilation(new[] { source }); 137526var comp1 = CreateCompilation(new[] { source }); 137565var comp1 = CreateCompilation(new[] { source }); 137614var comp1 = CreateCompilation(new[] { source }); 137650var comp = CreateCompilation(new[] { source0, source1, source2 }); 137690var comp = CreateCompilation(new[] { source0, source1, source2 }); 137734var comp = CreateCompilation(new[] { source0, source1, source2 }); 137777var comp = CreateCompilation(new[] { source0, source1, source2 }); 137819var comp = CreateCompilation(new[] { source0, source1, source2 }); 137855var comp = CreateCompilation(new[] { source0, source1, source2 }); 137898var comp = CreateCompilation(new[] { source0, source1, source2, source3 }); 137949var comp = CreateCompilation(new[] { source0, source1, source2 }); 137994var comp = CreateCompilation(new[] { source0, source1, source2 }); 138047var comp = CreateCompilation(new[] { source0, source1, source2 }); 138100var comp = CreateCompilation(new[] { source0, source1, source2 }); 138145var comp = CreateCompilation(new[] { source0, source1, source2 }); 138200var comp = CreateCompilation(new[] { source0, source1, source2 }); 138516var comp2 = CreateCompilation(source2, [verifier1.Compilation.ToMetadataReference()]); 138769var comp = CreateCompilation(new[] { source1, source2 }); 138793var comp = CreateCompilation(new[] { source1, source2 }); 138831var comp = CreateCompilation(new[] { source1 }); 138869var comp = CreateCompilation(new[] { source1 }); 138977var comp = CreateCompilation(source).VerifyDiagnostics( 139010var comp = CreateCompilation(source).VerifyDiagnostics( 139043var comp = CreateCompilation(source).VerifyDiagnostics( 139075var comp = CreateCompilation(source).VerifyDiagnostics(); 139101var comp = CreateCompilation(source).VerifyDiagnostics(); 139128var comp = CreateCompilation(source).VerifyDiagnostics(); 139155var comp = CreateCompilation(source).VerifyDiagnostics( 139196var comp = CreateCompilation(source).VerifyDiagnostics( 139228var comp = CreateCompilation(source).VerifyDiagnostics( 139252var comp = CreateCompilation(source).VerifyDiagnostics( 139276var comp = CreateCompilation(source).VerifyDiagnostics(); 139297var comp = CreateCompilation(source).VerifyDiagnostics( 139321var comp = CreateCompilation(source).VerifyDiagnostics(); 139341var comp = CreateCompilation(source).VerifyDiagnostics( 139365var comp = CreateCompilation(source).VerifyDiagnostics( 139395var comp = CreateCompilation(source).VerifyDiagnostics( 139423var comp = CreateCompilation(source).VerifyDiagnostics(); 139451var comp = CreateCompilation(source).VerifyDiagnostics(); 139479var comp = CreateCompilation(source).VerifyDiagnostics(); 139507var comp = CreateCompilation(source).VerifyDiagnostics(); 139539var comp = CreateCompilation(source).VerifyDiagnostics(); 139567var comp = CreateCompilation(source).VerifyDiagnostics(); 139595var comp = CreateCompilation(source).VerifyDiagnostics(); 139622var comp = CreateCompilation(source).VerifyDiagnostics(); 139645var comp = CreateCompilation(source).VerifyDiagnostics(); 139668var comp = CreateCompilation(source).VerifyDiagnostics(); 139695var comp = CreateCompilation(source).VerifyDiagnostics(); 139718var comp = CreateCompilation(source).VerifyDiagnostics(); 139741var comp = CreateCompilation(source).VerifyDiagnostics(); 139770var comp = CreateCompilation(source).VerifyDiagnostics(); 139892var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 139936var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 139975var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 140016var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 140063var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 140076CSharpCompilation c = CreateNullableCompilation(@" 140198var comp = CreateCompilation(source); 140223var comp = CreateCompilation(source); 140252var comp = CreateCompilation(source); 140289var comp = CreateCompilation(source); 140319var comp = CreateCompilation(source); 140352var comp = CreateCompilation(source); 140385var comp = CreateCompilation(source); 140425var comp = CreateCompilation(source); 140435CSharpCompilation c = CreateNullableCompilation(@" 140472var comp = CreateCompilation(new[] { DoesNotReturnIfAttributeDefinition, source }, options: WithNullableEnable()); 140501var comp = CreateCompilation(new[] { NotNullAttributeDefinition, source }, options: WithNullableEnable()); 140523var comp = CreateCompilation(source, options: WithNullableEnable()); 140545var comp = CreateNullableCompilation(source); 140574var comp = CreateNullableCompilation(source); 140621var comp = CreateCompilation(source, options: WithNullableEnable()); 140660var comp = CreateCompilation(source, options: WithNullableEnable()); 140694var comp = CreateCompilation(source, options: WithNullableEnable()); 140723var comp = CreateCompilation(source, options: WithNullableEnable()); 140757var comp = CreateCompilation(source, options: WithNullableEnable()); 140791var comp = CreateCompilation(source, options: WithNullableEnable()); 140824var comp = CreateCompilation(source, options: WithNullableEnable()); 140859var comp = CreateCompilation(source, options: WithNullableEnable()); 140898var comp = CreateCompilation(source, options: WithNullableEnable()); 140972var comp = CreateCompilation(source, options: WithNullableEnable()); 141014var comp = CreateCompilation(source, options: WithNullableEnable()); 141056var comp = CreateCompilation(source, options: WithNullableEnable()); 141098var comp = CreateCompilation(source, options: WithNullableEnable()); 141140var comp = CreateCompilation(source, options: WithNullableEnable()); 141180var comp = CreateCompilation(source, options: WithNullableEnable()); 141230var comp = CreateCompilation(source, options: WithNullableEnable()); 141271var comp = CreateCompilation(source, options: WithNullableEnable()); 141306var comp = CreateCompilation(source, options: WithNullableEnable()); 141347var comp = CreateCompilation(source, options: WithNullableEnable()); 141388var comp = CreateCompilation(source, options: WithNullableEnable()); 141431var comp = CreateCompilation(source, options: WithNullableEnable()); 141476var comp = CreateCompilation(source, options: WithNullableEnable()); 141513var comp = CreateCompilation(source, options: WithNullableEnable()); 141544var comp = CreateCompilation(source, options: WithNullableEnable()); 141572var comp = CreateCompilation(source, options: WithNullableEnable()); 141631var comp = CreateCompilation(source); 141696var comp = CreateCompilation(source); 141764var comp = CreateCompilation(source); 141819var comp = CreateCompilation(source); 141873var comp = CreateCompilation(source); 141932var comp = CreateCompilation(source); 141969var comp = CreateCompilation(source); 141999var comp = CreateCompilation(source); 142034var comp = CreateCompilation(source); 142098var comp = CreateCompilation(source); 142120var comp = CreateCompilation(source); 142158var comp = CreateCompilation(source); 142206var comp = CreateCompilation(source); 142224var comp = CreateCompilation(source); 142267var comp = CreateCompilation(source); 142327var comp = CreateCompilation(source); 142363var comp = CreateCompilation(source); 142411var comp = CreateCompilation(source); 142475var comp = CreateCompilation(source); 142521var comp = CreateCompilation(source); 142567var comp = CreateCompilation(source); 142605var comp = CreateCompilation(source); 142650var comp = CreateCompilation(source); 142685var comp = CreateCompilation(source); 142711var comp = CreateCompilation(source); 142746var comp = CreateCompilation(source); 142788var comp = CreateCompilation(source); 142827var comp = CreateCompilation(source); 142858var comp = CreateCompilation(source); 142886var comp = CreateCompilation(source); 142914var comp = CreateCompilation(source); 142944var comp = CreateCompilation(source); 142977var comp = CreateCompilation(source); 143003var comp = CreateCompilation(source); 143036var comp = CreateCompilation(source); 143067var comp = CreateCompilation(source); 143097var comp = CreateCompilation(source); 143129var comp = CreateCompilation(source); 143160var comp = CreateCompilation(source); 143234var comp = CreateCompilation(source); 143285var comp = CreateCompilation(source); 143311var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 143340var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 143370var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 143414var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 143448var comp = CreateCompilation(source, references: new[] { vbComp.EmitToImageReference() }); 143482var comp = CreateCompilation(source, references: new[] { vbComp.EmitToImageReference() }); 143518var comp = CreateCompilation(source, references: new[] { vbComp.EmitToImageReference() }); 143560var comp = CreateCompilation(source, references: new[] { vbComp.EmitToImageReference() }); 143594var comp = CreateCompilation(source); 143625var comp = CreateCompilation(source); 143651var comp = CreateCompilation(source); 143677var comp = CreateCompilation(source); 143706var comp = CreateCompilation(source); 143738var comp = CreateCompilation(source); 143774var comp = CreateCompilation(source); 143812var comp = CreateCompilation(source); 143850var comp = CreateCompilation(source); 143879var comp = CreateCompilation(source); 143908var comp = CreateCompilation(source); 143944var comp = CreateCompilation(source); 143977var comp = CreateCompilation(source); 144007var comp = CreateCompilation(source); 144036var comp = CreateCompilation(source); 144063var comp = CreateCompilation(source); 144095var comp = CreateCompilation(source); 144130var comp = CreateCompilation(source); 144160var comp = CreateCompilation(source); 144183var comp = CreateNullableCompilation(source); 144209var comp = CreateNullableCompilation(source); 144235var comp = CreateCompilation(source, options: WithNullableEnable()); 144260var comp = CreateCompilation(source, options: WithNullableEnable()); 144310var comp = CreateCompilation(source, options: WithNullableDisable()); 144333var comp = CreateCompilation(source, options: WithNullableDisable()); 144399var comp = CreateCompilation(new[] { source1, source2 }, options: WithNullableDisable()); 144421var comp = CreateCompilation(source, options: WithNullableDisable()); 144477var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }, options: WithNullableEnable()); 144570var comp = CreateCompilation(source, options: WithNullableEnable()); 144606var comp = CreateCompilation(source, options: WithNullableEnable()); 144640var comp = CreateCompilation(source, options: WithNullableEnable()); 144669var comp = CreateCompilation(source, options: WithNullableEnable()); 144708var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }, options: WithNullableEnable()); 144740var comp = CreateCompilation(source, options: WithNullableEnable()); 144778var comp = CreateCompilation(source, options: WithNullableEnable()); 144820var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }, options: WithNullableEnable()); 144850var comp = CreateCompilation(source, options: WithNullableEnable()); 144893var comp = CreateCompilation(source, options: WithNullableEnable()); 144924var comp = CreateCompilation(source, options: WithNullableEnable()); 144967var comp = CreateCompilation(def + @" 145003var defComp = CreateCompilation(def, 145007var useComp = CreateCompilation(@" 145054var comp = CreateCompilationWithSpan(src + @" 145087var comp = CreateCompilation(@" 145118var comp = CreateCompilation(@" 145162var comp = CreateCompilation(source, options: WithNullableEnable()); 145192var comp = CreateCompilation(source, options: WithNullableEnable()); 145258var comp = CreateCompilation(source, options: WithNullableEnable()); 145316var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 145352var comp = CreateCompilation(source, options: WithNullableEnable(TestOptions.ReleaseExe)); 145378var comp = CreateCompilation(source); 145415var comp = CreateCompilation(source); 145455var comp = CreateCompilation(source); 145492var comp = CreateCompilation(source); 145531var comp = CreateCompilation(source); 145573var comp = CreateCompilation(source); 145606var comp = CreateCompilation(source); 145638var comp = CreateCompilation(source); 145673var comp = CreateCompilation(source); 145712var comp = CreateCompilation(source); 145743var comp = CreateCompilation(source); 145770var comp = CreateCompilation(source); 145792var comp = CreateCompilation(source); 145806var comp = CreateCompilation(source); 145835var comp = CreateCompilation(source); 145864var comp = CreateCompilation(source); 145893var comp = CreateCompilation(source); 145920var comp = CreateCompilation(source); 145953var comp = CreateCompilation(source); 145984var comp = CreateCompilation(source); 146013var comp = CreateCompilation(source); 146046var comp = CreateCompilation(source); 146071var comp = CreateCompilation(source); 146095var comp = CreateCompilation(source); 146116var comp = CreateCompilation(source); 146142var comp = CreateCompilation(source); 146165var comp = CreateCompilation(source); 146190var comp = CreateCompilation(source); 146214var comp = CreateCompilation(source); 146238var comp = CreateCompilation(source); 146262var comp = CreateCompilation(source); 146297var comp = CreateCompilation(text); 146336var comp = CreateCompilation(text); 146376var comp = CreateCompilation(text); 146415var comp = CreateCompilation(text); 146455var comp = CreateNullableCompilation(source); 146501var compilation1 = CreateCompilation(source, parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 146534var compilation1 = CreateCompilation(source, parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 146563var compilation1 = CreateCompilation(source, parseOptions: TestOptions.Regular, targetFramework: TargetFramework.NetCoreApp); 146603var comp = CreateCompilation(source); 146641var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 146681var comp = CreateCompilation(source); 146730var comp = CreateCompilation(source, options: WithNullableEnable()); 146781var comp = CreateCompilation(source); 146850var comp = CreateCompilation(source); 146932var comp = CreateCompilation(source); 146997var comp = CreateCompilation(source); 147097var comp = CreateCompilation(source, options: WithNullableEnable()); 147184var comp = CreateCompilation(source); 147227var comp = CreateCompilation(source); 147256var comp = CreateCompilation(source); 147279var comp = CreateCompilation(source); 147307var comp = CreateCompilation(source); 147346var comp = CreateCompilationWithTasksExtensions(new[] { IAsyncDisposableDefinition, source }); 147379var comp = CreateCompilationWithTasksExtensions(new[] { IAsyncDisposableDefinition, source }); 147424var comp = CreateCompilationWithTasksExtensions(new[] { s_IAsyncEnumerable, source }); 147475var comp = CreateCompilationWithTasksExtensions(new[] { s_IAsyncEnumerable, source }); 147520var comp = CreateCompilation(source); 147545var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 147627var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 147718var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 147840var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 147900var comp = CreateCompilation(source); 148019var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 148086var comp = CreateCompilation(source); 148127var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 148291var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 148362var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 148408var comp = CreateCompilation(source); 148446var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 148514var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 148541var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 148614var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 148651var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 148700var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 148732var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 148766var comp = CreateCompilation(source); 148792var comp = CreateCompilation(source); 148814var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 148835var comp = CreateCompilation(source); 148856var comp = CreateCompilation(source); 148880var comp = CreateCompilation(source); 148918var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 148965var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 149005var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 149049var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 149073var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 149108var comp = CreateCompilation(source); 149132var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 149164var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 149188var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 149218var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 149254var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 149311var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 149342var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 149365var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 149387var comp = CreateCompilation(source); 149426var comp = CreateCompilation(source); 149465var comp = CreateCompilation(source); 149505var comp = CreateCompilation(source); 149548var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 149577var comp = CreateCompilation(source); 149618var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 149658var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, NotNullAttributeDefinition }); 149723var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 149771var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 149808var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 149853var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 149895var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 149917var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 149940var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular8); 149970static void verifyMethod(CSharpCompilation comp) 149995var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 150161var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 150219var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 150455var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 150485var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 150551var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 150608var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 151250var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 151625var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 152001var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 152374var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 152680var comp = CreateCompilation(new[] { sourceA, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 152971var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 153222var comp = CreateCompilation(new[] { sourceA, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 153429var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 153535var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153563var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 153661var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153716var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153763var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153800var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153839var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153883var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153948var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 153987var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 154141var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 154161var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 154251var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 154281var comp = CreateCompilation(source1, parseOptions: TestOptions.Regular9); 154412var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 154462var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 154509var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 154587var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 154720var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 154787var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 154855var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 154923var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 154968var comp = CreateCompilation(new[] { sourceA, DisallowNullAttributeDefinition, NotNullAttributeDefinition }); 155068var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 155129var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 155199var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 155231var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 155292var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular8); 155341var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 155385var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 155455var comp = CreateCompilation(source); 155481var comp = CreateCompilation(source); 155508var comp = CreateCompilation(source); 155541var comp = CreateCompilation(source); 155577var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 155636var comp = CreateCompilation(source); 155701var comp = CreateCompilation(new[] { source, DoesNotReturnIfAttributeDefinition }); 155738var comp = CreateCompilation(source); 155799var comp = CreateCompilation(source); 155819var nullableAttrComp = CreateCompilation(NullableAttributeDefinition); 155838var lib = CreateCompilation(lib_cs, references: new[] { nullableAttrRef }); 155851var comp = CreateCompilation(source_cs, references: new[] { libRef }); 155863var executeComp = CreateCompilation(executable_cs, 155882var comp = CreateNullableCompilation(source); 155904var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 155925var comp = CreateNullableCompilation(source); 155947var comp = CreateCompilation(source); 155973var comp = CreateCompilation(source); 155998var comp = CreateCompilation(source); 156031var comp = CreateCompilation(source); 156060var comp = CreateCompilation( 156162var comp = CreateCompilation(source); 156202var comp = CreateCompilation(source); 156236var comp = CreateCompilation(source); 156270var comp = CreateCompilation(source); 156281var comp = CreateCompilation(@" 156309var comp = CreateNullableCompilation(@" 156345var comp = CreateNullableCompilation(@" 156376var comp = CreateNullableCompilation(@" 156436var comp = CreateNullableCompilation(source); 156457var comp = CreateCompilation(source); 156475var comp = CreateCompilation(source); 156493var comp = CreateCompilation(source); 156512var comp = CreateCompilation(source); 156531var comp = CreateCompilation(source); 156552var comp = CreateCompilation(source0); 156582var comp = CreateCompilation(source); 156600var comp = CreateCompilation(source0); 156647var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 156680var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 156716var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 156748var comp = CreateCompilation(source); 156790var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 156812var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 156859var comp = CreateCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 156886var comp = CreateCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 156928var comp = CreateCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 156964var comp = CreateCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 156998var comp = CreateCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 157014var comp = CreateCompilation(source0); 157050var comp = CreateCompilation(source0); 157097var comp = CreateCompilation(source0); 157174var comp = CreateCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 157205var comp = CreateCompilation(sourceA); 157426var comp = CreateCompilation(src, options: TestOptions.DebugExe); 157452var comp = CreateCompilation(src, options: TestOptions.DebugExe); 157488var comp = CreateCompilation(src, options: TestOptions.DebugExe); 157519var comp = CreateCompilation(src); 157540var comp = CreateCompilation(src); 157558var comp = CreateCompilation(src); 157582var comp = CreateCompilation(src); 157630var comp = CreateCompilation(src); 157681var comp = CreateCompilation(src); 157704var comp = CreateCompilation(src); 157727var comp = CreateCompilation(src); 157750var comp = CreateCompilation(src); 157773var comp = CreateCompilation(src); 157796var comp = CreateCompilation(src); 157819var comp = CreateCompilation(src); 157842var comp = CreateCompilation(src); 157877var comp = CreateCompilation(src, options: TestOptions.DebugExe.WithNullableContextOptions(NullableContextOptions.Enable)); 157915var comp = CreateCompilation(src); 157952var comp = CreateCompilation(src); 157990var comp = CreateCompilation(src); 158024var comp = CreateCompilation(src); 158057var comp = CreateCompilation(src); 158098var comp = CreateCompilation(src); 158133var comp = CreateCompilation(src); 158166var comp = CreateCompilation(src, targetFramework: TargetFramework.NetCoreApp); 158193var comp = CreateCompilation(src); 158226var comp = CreateCompilation(src); 158267var comp = CreateCompilation(src); 158307var comp = CreateCompilation(src); 158346var comp = CreateCompilation(src); 158383var comp = CreateCompilation(src); 158418var comp = CreateCompilation(src); 158451var comp = CreateCompilation(src, targetFramework: TargetFramework.NetCoreApp); 158478var comp = CreateCompilation(src); 158517var comp = CreateCompilation(src); 158559var comp = CreateCompilation(src); 158601var comp = CreateCompilation(src); 158640var comp = CreateCompilation(src); 158676var comp = CreateCompilation(src); 158706var comp = CreateCompilation(src); 158742var comp = CreateCompilation(src); 158777var comp = CreateCompilation(src); 158816var comp = CreateCompilation(src); 158849var comp = CreateCompilation(src); 158938var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition, NotNullAttributeDefinition, DoesNotReturnAttributeDefinition, DoesNotReturnIfAttributeDefinition }); 158957var comp = CreateCompilation(source); 158983var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 159010var comp = CreateCompilation(new[] { source, DisallowNullAttributeDefinition }); 159048var comp = CreateCompilation(source); 159070var comp = CreateCompilation(new[] { source, DisallowNullAttributeDefinition }); 159108var comp = CreateCompilation(new[] { source, MemberNotNullWhenAttributeDefinition }); 159149var comp = CreateCompilation(new[] { source, MemberNotNullWhenAttributeDefinition }); 159184var comp = CreateCompilation(new[] { source, MemberNotNullWhenAttributeDefinition }); 159210var comp = CreateCompilation(source); 159217var comp = CreateCompilation(@" 159270var comp = CreateCompilation(@" 159313var comp = CreateCompilation(@" 159399var comp = CreateCompilation(@" 159440var comp = CreateCompilation(@" 159498var comp = CreateCompilation(@" 159556var comp = CreateCompilation(@" 159609var comp = CreateCompilation(@" 159652var comp = CreateCompilation(@" 159738var comp = CreateCompilation(@" 159779var comp = CreateCompilation(@" 159837var comp = CreateCompilation(@" 159895var comp = CreateCompilation(@" 159936var comp = CreateCompilation(@" 159986var comp = CreateCompilation(@" 160029var comp = CreateCompilation(@" 160115var comp = CreateCompilation(@" 160156var comp = CreateCompilation(@" 160214var comp = CreateCompilation(@" 160272var comp = CreateCompilation(@" 160349var piaCompilation = CreateCompilationWithMscorlib461(pia, options: WithNullableEnable(TestOptions.DebugDll)); 160351CSharpCompilation c = CreateCompilationWithMscorlib461( 160407var piaCompilation = CreateCompilationWithMscorlib461(pia, options: WithNullableEnable(TestOptions.DebugDll)); 160409CSharpCompilation c = CreateCompilationWithMscorlib461( 160456var piaCompilation = CreateCompilationWithMscorlib461(pia, options: WithNullableEnable(TestOptions.DebugDll)); 160458CSharpCompilation c = CreateCompilationWithMscorlib461( 160489CSharpCompilation c = CreateCompilation(new[] { @" 160557var comp = CreateCompilation(source, options: WithNullableEnable()); 160587var comp = CreateNullableCompilation(source); 160612var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 160662var comp = CreateCompilation(source); 160682var comp = CreateCompilation(@" 160703var comp = CreateCompilation(@" 160734var comp = CreateCompilation(@" 160763var comp = CreateCompilation(@" 160815var comp = CreateCompilation($$""" 160877var comp = CreateCompilation($$""" 160926var comp = CreateCompilation(@" 160951var comp = CreateCompilation(@" 160978var comp = CreateCompilation(@" 161023var comp = CreateCompilation(""" 161239var comp = CreateCompilation(source).VerifyDiagnostics( 161285var comp = CreateCompilation(source).VerifyDiagnostics( 161325var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 161349var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 161387var comp = CreateCompilation(source); 161412var comp = CreateCompilation(source); 161438var comp = CreateCompilation(source); 161467var comp = CreateCompilation(source);
Semantics\NullableReferenceTypesVsPatterns.cs (88)
17private CSharpCompilation CreateNullableCompilation(string source) 25CSharpCompilation c = CreateNullableCompilation(@" 56CSharpCompilation c = CreateNullableCompilation(@" 83CSharpCompilation c = CreateNullableCompilation(@" 109CSharpCompilation c = CreateNullableCompilation(@" 136CSharpCompilation c = CreateNullableCompilation(@" 163CSharpCompilation c = CreateNullableCompilation(@" 186CSharpCompilation c = CreateNullableCompilation(@" 215CSharpCompilation c = CreateNullableCompilation(@" 244CSharpCompilation c = CreateNullableCompilation(@" 283CSharpCompilation c = CreateNullableCompilation(@" 327CSharpCompilation c = CreateNullableCompilation(@" 366CSharpCompilation c = CreateNullableCompilation(@" 409var comp = CreateNullableCompilation(source); 430var comp = CreateNullableCompilation(source); 463var comp = CreateNullableCompilation(source); 515var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 549var comp = CreateNullableCompilation(source); 578var comp = CreateNullableCompilation(source); 604var comp = CreateNullableCompilation(source); 643var comp = CreateNullableCompilation(source); 695var comp = CreateNullableCompilation(source); 763var comp = CreateNullableCompilation(source); 802var comp = CreateNullableCompilation(source); 838var comp = CreateNullableCompilation(source); 901var comp = CreateNullableCompilation(source); 959var comp = CreateNullableCompilation(source); 1019var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1046var comp = CreateNullableCompilation(source); 1065var comp = CreateNullableCompilation(source); 1089var comp = CreateNullableCompilation(source); 1112var comp = CreateNullableCompilation(source); 1137var comp = CreateNullableCompilation(source); 1212var comp = CreateNullableCompilation(source); 1319var comp = CreateNullableCompilation(source); 1384var comp = CreateNullableCompilation(source); 1431var comp = CreateNullableCompilation(source); 1448var comp = CreateNullableCompilation(source); 1468var comp = CreateNullableCompilation(source); 1486var comp = CreateNullableCompilation(source); 1517var comp = CreateNullableCompilation(source); 1557var comp = CreateNullableCompilation(source); 1597var comp = CreateNullableCompilation(source); 1645var comp = CreateNullableCompilation(source); 1684var comp = CreateNullableCompilation(source); 1721var comp = CreateNullableCompilation(source); 1764var comp = CreateNullableCompilation(source); 1807var comp = CreateNullableCompilation(source); 1858var comp = CreateNullableCompilation(source); 1900var comp = CreateNullableCompilation(source); 1909CSharpCompilation c = CreateNullableCompilation(@" 1989CSharpCompilation c = CreateNullableCompilation(@" 2050CSharpCompilation c = CreateNullableCompilation(@" 2081CSharpCompilation c = CreateNullableCompilation(@" 2116CSharpCompilation c = CreateNullableCompilation(@" 2211var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithPatternCombinators); 2282var comp = CreateCompilation(source); 2311var comp = CreateCompilation(source); 2336var comp = CreateCompilation(source); 2365var comp = CreateCompilation(source); 2372var comp = CreateCompilation(@" 2396var comp = CreateCompilation(@" 2421var comp = CreateCompilation(@" 2446var comp = CreateCompilation(@" 2464var comp = CreateCompilation(@" 2497var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2519var comp = CreateCompilation(@" 2551var comp = CreateCompilation(@" 2576var comp = CreateCompilation(@" 2595var comp = CreateCompilation(@" 2610var comp = CreateCompilation(@" 2629var comp = CreateCompilation(@" 2767var comp = CreateCompilation(source); 2806var comp = CreateCompilation(source); 2843var comp = CreateCompilation(source); 2885var comp = CreateCompilation(source); 2921var comp = CreateCompilation(source); 2951var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 2980var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3016var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3050var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3096var comp = CreateCompilation(source); 3127var comp = CreateCompilation(source); 3161var comp = CreateCompilation(source); 3196var comp = CreateCompilation(source); 3223var comp = CreateCompilation(source); 3250var comp = CreateCompilation(source); 3281var comp = CreateCompilation(source);
Semantics\NullableTests.cs (8)
33var comp = CreateCompilation(src); 66var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 92var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 137var comp = CreateCompilation(source1); 1793var complib = CreateCompilation( 1798var comp = CreateCompilation( 2211var comp = CreateCompilation(source); 2244var comp = CreateCompilation(source);
Semantics\NullCoalesceAssignmentTests.cs (5)
31var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 68var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 111var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 152var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 178var comp = CreateCompilation(source);
Semantics\ObjectAndCollectionInitializerTests.cs (17)
3460var compilation = CreateCompilation(source); 3508var compilation = CreateCompilation(source); 3553var compilation = CreateCompilation(source); 3601var compilation = CreateCompilation(source); 3638var compilation = CreateCompilation(source); 3679var compilation = CreateCompilation(source); 3729var compilation = CreateCompilation(source); 3773var compilation = CreateCompilation(source); 3804var comp = CreateCompilation(source); 3827var comp = CreateCompilation(source); 3851var comp = CreateCompilation(source); 3924var compilation = CreateCompilation(source); 4006var compilation = CreateCompilation(source); 4041var compilation = CreateCompilation(source); 4116var compilation = CreateCompilation(source); 4214var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp); 4268var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp);
Semantics\OperatorTests.cs (44)
43var compilation = CreateCompilation(source); 2969var compilation = CreateCompilation(source); 3201var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 4828var compilation = CreateCompilation(source).VerifyDiagnostics(); 4840var compilation = CreateCompilation(source, references: new[] { CSharpRef }); 4908var compilation = CreateCompilation(source); 4945var compilation = CreateCompilation(source); 4983var compilation = CreateCompilation(source); 5256var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 5431var comp = CreateCompilation(source); 5458var comp = CreateCompilation(source); 5500var comp = CreateCompilation(source); 5534var comp = CreateCompilation(source); 5590var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 5934var comp = CreateCompilation(source); 6930var comp = CreateCompilation(source); 7050var comp = CreateCompilation(source); 7130var comp = CreateCompilation(source, new[] { CSharpRef }, TestOptions.ReleaseExe); 7177var comp = CreateCompilation(source, new[] { CSharpRef }, TestOptions.ReleaseExe); 7205var comp = CreateCompilation(source); 7325var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 7483var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithOverflowChecks(true)); 7531CSharpCompilation compilation, 7699var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithOverflowChecks(false)); 7852var compilation = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib461Extended, options: TestOptions.ReleaseDll.WithOverflowChecks(true)); 8012var compilation = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40Extended, options: TestOptions.ReleaseDll.WithOverflowChecks(true)); 8070CSharpCompilation compilation, 8549var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 8584var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithOverflowChecks(false)); 8628var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithOverflowChecks(false)); 8678var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithOverflowChecks(false)); 8743var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 8808var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 8962var compilation = CreateCompilation(source); 11219var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 11280var compilation = CreateCompilation(source) 11303var compilation = CreateCompilationWithMscorlib40(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }) 11329var compilation = CreateCompilation(source); 11404var comp = CreateCompilation(source); 11476var comp = CreateCompilation(code); 11497var comp = CreateCompilation(code, options: TestOptions.UnsafeReleaseExe); 11520var comp = CreateCompilation(code); 11543var comp = CreateCompilation(code); 11567var comp = CreateCompilation(code);
Semantics\OverloadResolutionPerfTests.cs (29)
40var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 66var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 91var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 114var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 136var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 158var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 187var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 235var comp = CreateCompilation(source); 287var comp = CreateCompilation(new[] { NotNullAttributeDefinition, source }); 311var comp = CreateCompilation(source); 344var comp = CreateCompilation(source); 383var comp = CreateCompilation(source); 411var comp = CreateCompilation(source); 444var comp = CreateCompilation(source); 477var comp = CreateCompilation(source); 498var comp = CreateCompilation(source); 528var comp = CreateCompilation(source); 558var comp = CreateCompilation(source); 589var comp = CreateCompilation(source); 616var comp = CreateCompilation(source); 652var comp = CreateCompilation(source); 682var comp = CreateCompilation(source); 715var comp = CreateCompilation(source); 755var comp = CreateCompilation(sourceBuilder.ToString()); 846var comp = CreateCompilation(source); 886var comp = CreateCompilation(source); 922var comp = CreateCompilation(source); 965var comp = CreateCompilation(source); 1056var comp = CreateCompilation(sourceB, references: new[] { refA });
Semantics\OverloadResolutionTestBase.cs (1)
33var compilation = CreateEmptyCompilation(source, references, TestOptions.ReleaseDll);
Semantics\OverloadResolutionTests.cs (73)
43var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 389var comp = CreateCompilation(source2); 608var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.UnsafeDebugDll); 688var compilation = CreateCompilationWithMscorlib461(source, assemblyName: "comp"); 771var compilation = CreateCompilationWithMscorlib461(source, references: new[] { reference }); 801var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.UnsafeDebugDll); 842var compilation = CreateCompilationWithMscorlib461(source, references: new[] { reference }); 875var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular9); 929var compilation = CreateCompilationWithMscorlib461(source, references: new[] { reference }); 966var compilation = CreateCompilationWithMscorlib461(source); 1020var compilation = CreateCompilationWithMscorlib461(source); 1073var compilation = CreateCompilationWithMscorlib461(source); 1118var compilation = CreateEmptyCompilation(source, references: new[] { MscorlibRef_v20 }); 1375var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 1948var comp = CreateCompilationWithILAndMscorlib40(csharpSource, ilSource); 2299var cCommon = CreateCompilation(@" 2304var cCS = CreateCompilation(@" 2310var cFinal = CreateCompilation(@" 2937var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource); 4554var compilation = CreateCompilationWithILAndMscorlib40(source2, source1, options: TestOptions.ReleaseExe); 6693var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 6724var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 6765var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 6802var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 7021var compilation = CreateCompilation(source, options: TestOptions.DebugExe); 7143var comp = CreateCompilation(source); 7253var comp = CreateCompilation(source); 7427var comp = CreateCompilation(source); 7468var comp = CreateCompilation(source); 7499var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 7527var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 7552var comp = CreateCompilation(source); 7575var comp = CreateCompilation(source); 7609var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 7722var compilation = CreateCompilationWithMscorlib461(source1, options: TestOptions.ReleaseExe); 7755var compilation = CreateCompilationWithMscorlib461(source1, options: TestOptions.ReleaseExe); 7783var compilation = CreateCompilationWithMscorlib461(source1, options: TestOptions.ReleaseExe); 7831var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 7874var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 7954var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 8157var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 8196var compilation = CreateCompilationWithMscorlib40(source1, new[] { Net40.References.SystemCore }, options: TestOptions.DebugExe); 8232var compilation = CreateCompilationWithMscorlib40(source1, new[] { Net40.References.SystemCore }, options: TestOptions.DebugExe); 8265var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 8311var comp = CreateCompilation(source); 8373var comp = CreateCompilation(source); 8493var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 8541var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 8588var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 8627var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 8662var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 8688var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 8718var compilation = CreateCompilation(source1, options: TestOptions.DebugExe); 8838var compilation = CreateCompilation(source1); 8923var compilation = CreateCompilation(source); 8968var compilation = CreateCompilationWithMscorlib461(source1); 9033var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 9060var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 9294var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 9333var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 9368var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 9409var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 9572var comp1 = CreateCompilation(source1).VerifyDiagnostics( 11447var comp = CreateCompilation(code); 11501var libComp = CreateCompilationWithMscorlib40(librarySrc, references: new[] { Net40.References.SystemCore }).VerifyDiagnostics(); 11750var comp = CreateCompilation(new[] { source0, source1, source2 }); 11760static void verify(CSharpCompilation comp, SyntaxTree tree) 11799var comp = CreateCompilation(new[] { source0, source1, source2 }); 11809static void verify(CSharpCompilation comp, SyntaxTree tree) 11849var comp = CreateCompilation(new[] { source0, source1, source2 }); 11859static void verify(CSharpCompilation comp, SyntaxTree tree) 11890var comp = CreateCompilation(source); 11918var comp = CreateCompilation(source);
Semantics\PropertyAccessTests.cs (1)
33var comp = CreateEmptyCompilation(
Semantics\QueryTests.cs (43)
1449var compilation = CreateCompilation(csSource); 1657var compilation = CreateCompilation(csSource); 1718var compilation = CreateCompilation(csSource); 1756var compilation = CreateCompilation(csSource); 2173var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2203var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2229var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2268var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2296var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2321var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2353var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2380var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2424var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2480var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2518var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2544var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2574var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2659var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2687var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2713var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode, parseOptions: TestOptions.Script); 2739var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode, parseOptions: TestOptions.Script); 2893var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2926var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 2946var comp = CreateCompilation(@" 2996var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 3039var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3108var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3131var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3159var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3288var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3335var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3364var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3416var compilation = CreateCompilation(csSource); 3460var compilation = CreateCompilation(csSource); 3507var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 3546var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 3590var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 3767var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 3806var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 3846var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 3880var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode, options: TestOptions.DebugExe); 4443var comp = CreateCompilationWithMscorlib40AndSystemCore(code); 4475var comp = CreateCompilation(@"
Semantics\RawInterpolationTests.cs (1)
1111var comp = CreateEmptyCompilation(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: Test.Utilities.TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
Semantics\RawInterpolationTests_Handler.cs (184)
212var comp1 = CreateCompilation(interpolatedStringBuilder); 216var comp2 = CreateCompilation(source, new[] { reference }); 590var comp = CreateCompilation(new[] { source, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: true, useDefaultParameters: false, useBoolReturns: false) }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.NetCoreApp); 630var comp1 = CreateCompilation(interpolatedStringBuilder, targetFramework: TargetFramework.Net50); 634var comp2 = CreateCompilation(source, new[] { reference }, targetFramework: TargetFramework.Net50, parseOptions: TestOptions.RegularPreview); 1654var comp = CreateCompilation(new[] { code, interpolatedStringBuilder }); 1683var comp = CreateCompilation(new[] { code, interpolatedStringBuilder }); 1712var comp = CreateCompilation(new[] { code, interpolatedStringBuilder }); 1742var comp = CreateCompilation(new[] { code, interpolatedStringBuilder }); 1770var comp = CreateCompilation(new[] { code, interpolatedStringBuilder }); 1797var comp = CreateCompilation(new[] { code, interpolatedStringBuilder }); 1824var comp = CreateCompilation(new[] { code, interpolatedStringBuilder }); 1923var comp = CreateCompilationWithIL(code, ilSource: interpolatedStringBuilder + UnmanagedCallersOnlyIl); 1997var comp = CreateCompilationWithIL(code, ilSource: interpolatedStringBuilder + UnmanagedCallersOnlyIl); 2023var comp = CreateCompilation(new[] { source, interpolatedStringBuilder }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.NetCoreApp); 2118var comp = CreateCompilation(new[] { source, interpolatedStringBuilder }, parseOptions: TestOptions.Regular9); 2454var comp = CreateCompilation(new[] { source, interpolatedStringBuilder }, 2507var comp = CreateCompilation(new[] { source, interpolatedStringBuilder }, targetFramework: TargetFramework.NetCoreApp); 2609var comp = CreateCompilation(source); 2642var comp = CreateCompilation(source); 2681var comp = CreateCompilation(new[] { source, InterpolatedStringHandlerAttribute }); 2705var comp = CreateCompilation(source, references: new[] { handlerRef }); 2730var comp = CreateCompilation(source, references: new[] { handlerRef }); 2762var comp = CreateCompilation(source); 2813var comp = CreateCompilation(source); 2896private static void VerifyInterpolatedStringExpression(CSharpCompilation comp, string handlerType = "CustomHandler") 2925private CompilationVerifier CompileAndVerifyOnCorrectPlatforms(CSharpCompilation compilation, string expectedOutput) 2941var comp = CreateCompilation(new[] { code, builder }); 3079var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 3122var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: false) }); 3189var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 3219var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 3247var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 3277var comp = CreateCompilation(new[] 3307var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 3361var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 3412var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 3434var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }, parseOptions: TestOptions.RegularPreview); 3459var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 3486var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial class", useBoolReturns: true) }); 3544var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial class", useBoolReturns: true) }); 3591var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 3646var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: true) }); 3707var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial class", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 3774var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net50); 3850var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 3917var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 3987var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 4050var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 4077var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4127var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 4188var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 4259var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 4284var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 4344var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 4370var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 4427var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 4453var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 4532var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 4596var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 4661var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 4687var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 4743var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 4788var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: false) }, targetFramework: TargetFramework.Net50); 4808var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "class", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 4851var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 4897var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 4943var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }, targetFramework: TargetFramework.NetCoreApp); 4990var comp = CreateCompilation(new[] 5073var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute }); 5102var comp = CreateCompilation(@"C.M(1, $"""""" 5138var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 5175var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 5208var comp = CreateCompilation(@"C.M($"""""" 5262var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 5295var comp = CreateCompilation(@"C.M(1, $"""""" 5349var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 5385var comp = CreateCompilation(@"C.M(1, $"""""" 5439var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 5472var comp = CreateCompilation(@"C.M($"""""" 5526var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 5559var comp = CreateCompilation(@"C.M(1, $"""""" 5606var comp = CreateCompilation(@"C.M(1, $"""""" 5653var comp = CreateCompilation(@"C.M(1, $"""""" 5707var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 5742var comp = CreateCompilation(@"C.M($"""""" 5796var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 5831var comp = CreateCompilation(@"_ = new C($"""""" 5885var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, customHandler }); 5924var comp = CreateCompilation(@"C<CustomHandler>.M($"""""" 5971var comp = CreateCompilation("", references: new[] { vbComp.EmitToImageReference() }); 6015var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, customHandler }); 6057var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, customHandler }); 6090var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 6144var comp = CreateCompilation(new[] { code, executableCode, InterpolatedStringHandlerArgumentAttribute, handler }); 6150var dependency = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 6199var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 6421var comp = CreateCompilation(new[] { code, executableCode, InterpolatedStringHandlerArgumentAttribute, handler }); 6425var dependency = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 6477var comp = CreateCompilation(new[] { code, executableCode, InterpolatedStringHandlerArgumentAttribute, handler }); 6485var dependency = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 6598var comp = CreateCompilation(new[] { code, executableCode, InterpolatedStringHandlerArgumentAttribute, handler }); 6609var dependency = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 6744var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 6910var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7045var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7184var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7289var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }); 7356var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }); 7423var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7541var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7661var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7786var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7863var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 7911var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 8147var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 8237var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 8283var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 8351var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 8490var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 8588var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 8881var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 9146var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 9405var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 9476var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 9530var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 9761var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 9815var comp = CreateCompilation(code, new[] { vbComp.EmitToImageReference() }); 9855var comp = CreateCompilation(new[] { code, handler }); 9871var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 9930var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 9990var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 10052var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 10114var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 10211var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }); 10330var comp = CreateCompilation(code); 10351var comp = CreateCompilation(code); 10383var comp = CreateCompilation(new[] { code, customHandler }); 10431var comp = CreateCompilation(new[] { code, customHandler }); 10473var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }); 10507var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute }); 10544var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp); 10595var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp); 10646var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp); 10691var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp); 10742var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp); 10803var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp); 10902var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp); 11007var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Net50); 11042var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Net50); 11077var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Net50); 11119var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50); 11164var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50); 11197var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50); 11230var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50); 11264var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50); 11302var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50); 11340var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50); 11356var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 11402var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 11456var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 11494var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 11532var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 11571var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 11633var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 11669var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: false) }); 11727var comp = CreateCompilation(new[] { code, GetInterpolatedStringHandlerDefinition(includeSpanOverloads: false, useDefaultParameters: false, useBoolReturns: true) }); 11750var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 11825var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 12341var comp = CreateCompilation(code); 12504var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 12571var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 12638var comp = CreateCompilationWithCSharp(new[] { code, handler }); 12742var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 12811var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 12886var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 12921var comp = CreateCompilation(code, references: new[] { vbComp.EmitToImageReference() }); 13200var comp = CreateCompilation(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) }); 13235var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }); 13413var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }); 13448var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }); 13469var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute }); 13524var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }); 13578var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) });
Semantics\ReadOnlyStructsTests.cs (67)
221var comp = CreateCompilation(csharp); 253var comp = CreateCompilation(csharp); 279var comp = CreateCompilation(csharp); 315var comp = CreateCompilation(csharp); 351var comp = CreateCompilation(csharp); 382var comp = CreateCompilation(csharp); 411var comp = CreateCompilation(csharp); 444var comp = CreateCompilation(csharp); 474var comp = CreateCompilation(csharp); 513var comp = CreateCompilation(csharp, options: TestOptions.UnsafeReleaseDll); 543var comp = CreateCompilation(csharp); 574var comp = CreateCompilation(csharp); 703var comp = CreateCompilation(csharp); 726var comp = CreateCompilation(csharp); 756var comp = CreateCompilation(csharp); 828var comp = CreateCompilation(csharp); 850var verifier = CreateCompilation(csharp); 879var verifier = CreateCompilation(csharp); 908var verifier = CreateCompilation(csharp); 932var comp = CreateCompilation(csharp); 960var comp = CreateCompilation(csharp); 1105var comp = CreateCompilationWithILAndMscorlib40(csharp, ilreadonlyStructWithWriteableFieldIL, options: TestOptions.ReleaseExe); 1128var comp = CreateCompilationWithILAndMscorlib40(csharp, ilreadonlyStructWithWriteableFieldIL, options: TestOptions.ReleaseExe); 1150var comp = CreateCompilation(csharp); 1310var comp = CreateCompilation(csharp); 1345var comp = CreateCompilation(csharp); 1377var comp = CreateCompilation(csharp); 1398var comp = CreateCompilation(csharp); 1426var comp = CreateCompilation(csharp); 1452var comp = CreateCompilation(csharp); 1479var comp = CreateCompilation(csharp); 1503var comp = CreateCompilation(csharp); 1520var comp = CreateCompilation(csharp); 1537var comp = CreateCompilation(csharp); 1551var comp = CreateCompilation(csharp); 1571var comp = CreateCompilation(csharp); 1612var moduleComp = CreateCompilation("", new[] { moduleMetadata }); 1617var dllComp = CreateCompilation("", new[] { dllMetadata }); 1640var moduleComp = CreateCompilation("", new[] { moduleMetadata }); 1645var dllComp = CreateCompilation("", new[] { dllMetadata }); 1667var moduleComp = CreateCompilation(csharp, options: TestOptions.DebugModule, targetFramework: TargetFramework.Mscorlib461); 1673var dllComp = CreateCompilation(csharp, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461); 1689var moduleComp = CreateCompilation(csharp, options: TestOptions.DebugModule, targetFramework: TargetFramework.Mscorlib461); 1695var dllComp = CreateCompilation(csharp, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461); 1708var comp = CreateCompilation(csharp); 1725var comp = CreateCompilation(csharp); 1757var comp = CreateCompilation(csharp); 1774var comp = CreateCompilation(csharp); 1803var comp = CreateCompilation(csharp); 1842var comp = CreateCompilation(csharp); 1861var comp = CreateCompilation(csharp); 1905var comp = CreateCompilationWithTasksExtensions(new[] { csharp, AsyncStreamsTypes }); 1949var comp = CreateCompilation(csharp); 1998var comp = CreateCompilation(csharp); 2017var comp = CreateCompilation(csharp); 2042var comp = CreateCompilation(csharp); 2062var comp = CreateCompilation(csharp); 2078var comp = CreateCompilation(csharp); 2103var comp = CreateCompilation(csharp); 2129var comp = CreateCompilation(csharp); 2218var comp = CreateCompilation(csharp); 2246var comp = CreateCompilation(csharp); 2268var comp = CreateCompilation(csharp); 2287var comp = CreateCompilation(csharp); 2309var comp = CreateCompilation(csharp); 2339var comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular7_3); 2395var comp = CreateCompilation(csharp);
Semantics\RecordStructTests.cs (252)
26private static CSharpCompilation CreateCompilation(CSharpTestSource source) 184var comp = CreateCompilation(src + src2); 188var comp2 = CreateCompilation(src2, references: new[] { comp.EmitToImageReference() }); 209var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 251var comp = CreateCompilation(new[] { src1, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 323var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular9); 380var comp = CreateCompilation(src); 436var comp = CreateCompilation(src); 457var comp = CreateCompilation(src); 471var comp = CreateCompilation(src); 509var comp = CreateCompilation(src, targetFramework: TargetFramework.Mscorlib40); 510var comp2 = CreateCompilation("", targetFramework: TargetFramework.Mscorlib46, references: new[] { comp.ToMetadataReference() }); 531var comp = CreateCompilation(src); 551var comp = CreateCompilation(src); 571var comp = CreateCompilation(src, options: TestOptions.UnsafeReleaseDll); 593var comp = CreateCompilation(src); 612var comp = CreateCompilation(src); 630var comp = CreateCompilation(src); 659var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview, options: TestOptions.UnsafeDebugDll); 684var comp = CreateCompilation(src); 726var comp = CreateCompilation(src); 742var comp = CreateCompilation(src); 760var comp = CreateCompilation(src); 777var comp = CreateCompilation(src); 823var comp = CreateCompilation(src); 861var comp = CreateCompilation(src); 883var comp = CreateCompilation(src); 907var comp = CreateCompilation(src); 926var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 970var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 1031var comp = CreateCompilation(src); 1086var comp = CreateCompilation(src); 1102var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 1136var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 1166var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 1185var comp = CreateCompilation(src); 1231var comp = CreateCompilation(src); 1279var comp = CreateCompilation(src); 1309var comp = CreateCompilation(src); 1331var comp = CreateCompilation(src); 1366var comp = CreateCompilation(src); 1378var comp = CreateCompilation(src); 1399var comp = CreateCompilation(src); 1447var comp = CreateCompilation(src); 1504var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll); 1560var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll); 1613var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll); 1672var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview, options: TestOptions.UnsafeDebugExe); 1710var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, options: TestOptions.UnsafeDebugDll); 1834var comp = CreateCompilation(src); 1862var comp = CreateCompilation(src); 1892var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 1978var comp = CreateCompilation(src); 2030var comp = CreateCompilation(src); 2072var comp = CreateCompilation(@" 2088var comp = CreateCompilation(@" 2108var comp = CreateCompilation(src); 2133var comp = CreateCompilation(src); 2156var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 2202var comp = CreateCompilation(@" 2224var comp = CreateCompilation(@" 2297var comp = CreateEmptyCompilation(src, parseOptions: TestOptions.RegularPreview, references: new[] { corlibRef }); 2321var comp = CreateEmptyCompilation(src, parseOptions: TestOptions.RegularPreview, references: new[] { corlibRef }); 2397var comp = CreateEmptyCompilation(src, parseOptions: TestOptions.RegularPreview, references: new[] { corlibRef }); 2423var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 2438var comp = CreateCompilation(src); 2452var comp = CreateCompilation(src); 2481var comp = CreateCompilation(source); 2496var comp = CreateCompilation(source); 2521var comp = CreateCompilation(source); 2536var comp = CreateCompilation(source); 2563var comp = CreateCompilation(source); 2589var comp = CreateCompilation(src); 2619var comp = CreateCompilation(src); 2650var comp = CreateCompilation(src); 2693var comp = CreateCompilation(src); 2716var comp = CreateCompilation(src); 2739var comp = CreateCompilation(src); 2763var comp = CreateCompilation(src); 2786var comp = CreateCompilation(src); 2803var comp = CreateCompilation(src); 2820var comp = CreateCompilation(src); 2857var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 2897var comp = CreateCompilation(src); 2928var comp = CreateCompilation(src); 2956var comp = CreateCompilation(src); 2978var comp = CreateCompilation(text); 3006var comp = CreateCompilation(source); 3102var comp = CreateCompilation(text); 3159var comp = CreateCompilation(source).VerifyDiagnostics(); 3174var comp = CreateCompilation(src); 3196var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 3235var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 3276var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 3321var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 3369var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 3438var deconstruct = ((CSharpCompilation)verifier.Compilation).GetMember<MethodSymbol>("B.Deconstruct"); 3611var comp = CreateCompilation(source); 3649var comp = CreateCompilation(source); 3684var comp = CreateCompilation(source); 3725var comp = CreateCompilation(source); 3761var comp = CreateCompilation(source); 3822var comp = CreateCompilation(src); 3837var comp = CreateCompilation(src); 3907var comp = CreateCompilation(source); 3933var comp = CreateCompilation(source); 3952var comp = CreateCompilation(source); 3971var comp = CreateCompilation(source); 3995var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 4028var comp = CreateCompilation(source); 4053var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 4092var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 4138var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 4148var comp = CreateCompilation(source); 4162var comp = CreateCompilation(source); 4195var comp = CreateCompilation(source); 4219var comp = CreateCompilation(source); 4243var comp = CreateCompilation(source); 4273var comp = CreateCompilation(source); 4302var comp = CreateCompilation(source); 4378var comp = CreateCompilation(source); 4401var comp = CreateCompilation(source); 4452var comp = CreateCompilation(source); 4511var comp = CreateEmptyCompilation(src, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute()); 4553var comp = CreateCompilation(source); 4650var comp = CreateCompilation(source); 4676var comp = CreateCompilation(src); 4691var comp = CreateCompilation(source); 4708var comp = CreateCompilation(source); 4722var comp = CreateCompilation(src); 4739var comp = CreateCompilation(source); 4788var comp = CreateEmptyCompilation(src, parseOptions: TestOptions.RegularPreview.WithNoRefSafetyRulesAttribute()); 4805var comp = CreateCompilation(src); 4816var comp = CreateCompilation(src); 4835var comp = CreateCompilation(src); 4850var comp = CreateCompilation(src); 4863var comp = CreateCompilation(src); 4903var comp = (CSharpCompilation)verifier.Compilation; 4964var comp = CreateCompilation(source); 4986var comp = CreateCompilation(source); 5006var comp = CreateCompilation(source); 5026var comp = CreateCompilation(source); 5044var comp = CreateCompilation(source); 5065var comp1 = CreateCompilation(source1); 5099var comp = CreateCompilation(src); 5118var compDebug = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 5119var compRelease = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 5137var comp = CreateCompilation(src); 5206var comp = CreateCompilation(src); 5228var comp = CreateCompilation(src); 5244var comp = CreateCompilation(src); 5260var comp = CreateCompilation(src); 5295var comp = CreateCompilation(src); 5323var comp = CreateCompilation(src); 5341var comp = CreateCompilation(src); 5398var comp = CreateCompilation(src); 5439var comp = CreateCompilation(src); 5479var comp = CreateCompilation(src); 5539var comp = CreateCompilation(src); 5612var comp = CreateCompilation(src); 5630var comp = CreateCompilation(src); 5648var comp = CreateCompilation(src); 5666var comp = CreateCompilation(src); 5679var comp = CreateCompilation(src); 5696var comp = CreateCompilation(src); 5732var comp = CreateCompilation(src); 5759var comp = CreateCompilation(src); 5777var comp = CreateCompilation(src); 5795var comp = CreateCompilation(src); 5809var comp = CreateCompilation(src); 5824var comp = CreateCompilation(src); 5840var comp = CreateCompilation(src); 5864var comp2 = CreateCompilation(src2); 5882var comp = CreateCompilation(src); 5914var comp = CreateCompilation(text1); 6153var comp = CreateCompilation(text1); 6239var comp = CreateCompilation(text1); 6384var comp = CreateCompilation(text1); 6423VerifyOperationTree((CSharpCompilation)context.Compilation, context.Operation, @""); 6487var comp = CreateCompilation(text1); 6543var comp = CreateCompilation(text1); 6615var comp = CreateCompilation(text1); 6783var comp = CreateCompilation(text1); 6898var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 7001var comp = CreateCompilation(src); 7088var comp = CreateCompilation(src); 7166var comp = CreateCompilation(src); 7238var comp = CreateCompilation(src); 7365var comp = CreateCompilation(src); 7500var comp = CreateCompilation(src); 7534var comp = CreateCompilation(src, parseOptions: TestOptions.Regular10); 7586var comp = CreateCompilation(src); 7627var comp = CreateCompilation(src); 7662var comp = CreateCompilation(src); 7702var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe); 7736var comp = CreateCompilation(src); 7770var comp = CreateCompilation(src); 7815var comp = CreateCompilation(src); 7844var comp = CreateCompilation(src); 7859var comp = CreateCompilation(src, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularPreview); 7882var comp = CreateCompilation(src); 7979var comp = CreateCompilationWithMscorlibAndSpan(new[] { text, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 8032var comp = CreateCompilation(src); 8050var comp = CreateCompilation(src); 8078var comp = CreateCompilation(src); 8115var comp = CreateCompilation(src); 8153var comp = CreateCompilation(src); 8221var comp = CreateCompilation(@" 8258var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 8441var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 8616var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 8787var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 8984var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 9153var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 9339var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 9533var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 9646var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 9793var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 9919var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 10040var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 10149var comp = CreateCompilation(src, parseOptions: TestOptions.Regular9); 10182var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 10341var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 10444var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 10459var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview); 10539var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 10578var comp = CreateCompilation(source); 10595var comp = CreateCompilation(src, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularPreview); 10617var comp = CreateCompilation(source); 10637var comp = CreateCompilation(source); 10670var comp = CreateCompilation(src); 10697var comp = CreateCompilation(src); 10724var comp = CreateCompilation(src); 10749var comp = CreateCompilation(src); 10809var comp = CreateCompilation(src); 10837var comp = CreateCompilation(src); 10909var comp = CreateCompilation(source); 11002var comp = CreateCompilation(source); 11027var comp = CreateCompilation(source); 11137var comp = CreateCompilation(source); 11166var comp = CreateCompilation(source); 11195var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11226var comp = CreateCompilation(source); 11237var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 11263var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 11289var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 11315var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 11344var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 11373var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 11402var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8); 11434var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60);
Semantics\RefEscapingTests.cs (108)
47var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 79var comp = CreateCompilationWithMscorlibAndSpan(@" 102var comp = CreateCompilationWithMscorlibAndSpan(@" 128var comp = CreateCompilationWithMscorlibAndSpan(@" 150var comp = CreateCompilationWithMscorlibAndSpan(@" 174var comp = CreateCompilationWithMscorlibAndSpan(@" 235var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 335var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10); 417var comp = CreateCompilationWithMscorlibAndSpan(text); 469var comp = CreateCompilationWithMscorlibAndSpan(text); 835var comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1005var comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1124var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1188var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1241var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1292var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1360var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1418var comp = CreateCompilationWithMscorlibAndSpan(new[] { source, UnscopedRefAttributeDefinition }); 1450var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1491var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1525var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1587var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1650var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1794var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10); 1863var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1927var comp = CreateCompilationWithMscorlibAndSpan(new[] { text, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 2138var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10); 2221var comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular10); 2470var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10); 2569var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10); 2633var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 2666var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 2797var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 2918var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 2947var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 3041var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 3195var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 3277var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 3364var comp = CreateCompilation(tree, targetFramework: TargetFramework.Net90, options: TestOptions.UnsafeDebugDll); 3447var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 3784var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 3829var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 3994var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 4184var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 4364var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular10); 4564var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 4657var comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 4780var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 4985var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5009var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5033var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5083var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5133var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5185var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5212var comp = CreateCompilationWithMscorlibAndSpan(csharp, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeDebugDll); 5318var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 5500var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 5554var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.NetCoreApp); 5589var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.NetCoreApp); 5688var compilation = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 5773var compilation = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 5888var compilation = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 5975var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 6052var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 6089var comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 6340var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 6363var comp = CreateCompilation(@" 6771var compilation = CreateCompilation( 6831var compilation = CreateCompilation( 6944var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7011var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7060var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7105var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7159var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7204var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7251var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7305var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7349var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7390var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7439var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7476var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7520var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7596var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7646var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7699var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7771var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7833var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7889var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7962var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8035var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8092var comp = CreateCompilation(source); 8145var comp = CreateCompilation(source); 8181var comp = CreateCompilation(source); 8225var comp = CreateCompilation(new[] { source0, source1 }, parseOptions: TestOptions.Regular11); 8232var comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular10); 8235var comp1 = CreateCompilation(source1, references: new[] { comp0.ToMetadataReference() }, parseOptions: TestOptions.Regular11); 8295var comp = CreateCompilationWithMscorlibAndSpan(source); 8345var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 8372var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 8435var comp = CreateCompilation(source); 8490var comp = CreateCompilationWithSpan(source); 8520var comp = CreateCompilationWithSpan(source); 8551var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8584var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8626var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8712var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 9755var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll); 9842var comp = CreateCompilationWithSpan(tree, TestOptions.UnsafeDebugDll);
Semantics\RefExtensionMethodsTests.cs (22)
364var reference = CreateCompilationWithMscorlib40AndSystemCore(@" 420var reference = CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 464var reference = CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 508var reference = CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 534var reference = CreateCompilationWithMscorlib40AndSystemCore(@" 590var reference = CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 634var reference = CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 909var reference = CreateCompilationWithMscorlib40AndSystemCore(@" 965var reference = CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 1009var reference = CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 1053var reference = CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 1097var reference = CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 1141var reference = CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 1185var reference = CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics( 1526var compilation = CreateCompilationWithMscorlib40AndSystemCore(code, options: TestOptions.ReleaseExe); 1582var compilation = CreateCompilationWithMscorlib40AndSystemCore(code, options: TestOptions.ReleaseExe); 2141var comp = CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics(); 2160var comp = CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics(); 2179var comp = CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics(); 2198var comp = CreateCompilationWithMscorlib40AndSystemCore(code).VerifyDiagnostics(); 2306var reference = CreateCompilationWithMscorlib40AndSystemCore(@" 2410var reference = CreateCompilationWithMscorlib40AndSystemCore(@"
Semantics\RefFieldTests.cs (682)
85var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 167var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 218comp = (CSharpCompilation)verifier.Compilation; 236var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 292comp = (CSharpCompilation)verifier.Compilation; 312var comp = CreateCompilation(sourceB, new[] { refA }); 329var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Mscorlib40); 370var comp = CreateCompilation(sourceB, new[] { refA }, targetFramework: TargetFramework.Net70); 394var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 425var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 506var comp = CreateCompilation(sourceB, targetFramework: TargetFramework.Mscorlib40, references: new[] { refA }); 541var comp = CreateCompilation(sourceB, references: new[] { refA, CSharpRef }); 564var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 602var comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 632var comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net70); 656var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 726var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 772var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 821var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 904var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1002var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1095var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1160var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1236var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1316var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1350var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1395var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1440var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1487var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.UnsafeReleaseDll); 1488var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1543var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.UnsafeReleaseDll); 1544var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1595var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.UnsafeReleaseDll); 1596var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1651var spanReference = CreateCompilation(TestSources.Span, options: TestOptions.UnsafeReleaseDll); 1652var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1689var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 1727var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe); 1763var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 1799var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 1842var comp = CreateCompilation(source, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 1886var comp = CreateCompilation(sourceB, new[] { refA }, targetFramework: TargetFramework.Net70); 1918var comp = CreateCompilation(sourceB, new[] { refA }, targetFramework: TargetFramework.Net70); 1958var comp = CreateCompilation(sourceC, new[] { refB }, targetFramework: TargetFramework.Net70); 1988var compB = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net70); 2006var comp = CreateCompilation("", references: new[] { refA, refB }); 2056var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 2098var comp = CreateCompilation(sourceB, references: new[] { refA }); 2144var comp = CreateEmptyCompilation(new[] { sourceA }, parseOptions: TestOptions.Regular10); 2227var compA = CreateCompilation(sourceA, targetFramework: TargetFramework.Net70); 2246var compB = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net70); 2289var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net70); 2337var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net70); 2439var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net70); 2477var comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net70); 2503var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 2534var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugDll); 2585var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 2640var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 2696var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 2732var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 2782var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 2827var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 2847var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 2895var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3033var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3139var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3400var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3454var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3500var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3618var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3733var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3818var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 4004var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 4033var comp = CreateCompilation(source); 4077var comp = CreateCompilation(source); 4126var comp = CreateCompilation(source); 4165var comp = CreateCompilation(source); 4196var comp = CreateCompilation(source); 4236var comp = CreateCompilation(source); 4291var comp = CreateCompilation(source); 4310var comp = CreateCompilation(source); 4331var comp = CreateCompilation(source); 4353var comp = CreateCompilation(source); 4391var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 4421var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 4456var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 4501var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 4544var comp = CreateCompilation(source); 4570var comp = CreateCompilation(source); 4596var comp = CreateCompilation(source); 4642var comp = CreateCompilation(new[] { source }); 4693var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 4763var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 4815var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 4854var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 4899var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 4934var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 4961var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 4992var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Regular10); 5037var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 5072var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 5123var comp = CreateCompilation(source); 5179var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 5195var comp = CreateCompilation(source); 5214var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 5271var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 5346var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugDll); 5384var comp = CreateCompilation(source); 5437var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 5465var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 5500var comp = CreateCompilation(""" 5523var comp = CreateCompilation(""" 5544var comp = CreateCompilation(""" 5565var comp = CreateCompilation(""" 5589var comp = CreateCompilation(""" 5624var comp = CreateCompilation(""" 5656var comp = CreateCompilation(""" 5680var comp = CreateCompilation(""" 5703var comp = CreateCompilation(""" 5726var comp = CreateCompilation(""" 5749var comp = CreateCompilation(""" 5772var comp = CreateCompilation(""" 5792var comp = CreateCompilation(""" 5815var comp = CreateCompilation(""" 5867var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 5935var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 5973var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 6032var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 6070var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 6128var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 6174var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 6214var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 6260var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 6381var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 6626var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 6786var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 7031var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7115var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7238var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7374var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7458var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7545var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7583var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7657var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7688var comp = CreateCompilation(source); 7728var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7756var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7799var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7827var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7889var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 7933var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 7995var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 8039var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 8101var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8148var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8219var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8266var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8328var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithFeature("peverify-compat"), targetFramework: TargetFramework.Net70); 8362var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8408var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8480var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net70); 8508var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8565var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8634var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8671var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8708var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8753var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8803var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8872var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8943var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9006var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9080var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9143var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9166var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9189var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9221var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9265var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9311var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9345var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9366var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9395var comp = CreateCompilation(source); 9415var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9469var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9521var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9569var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9621var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9660var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9699var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9746var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9794var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 9816var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net70); 9864var comp = CreateCompilation(source); 9935var comp = CreateCompilation(source); 10014var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 10064var comp = CreateCompilation(source); 10097var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 10134var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 10157var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10, options: TestOptions.UnsafeReleaseDll); 10201var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe, targetFramework: TargetFramework.Net70); 10240var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe, targetFramework: TargetFramework.Net70); 10280var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe, targetFramework: TargetFramework.Net70); 10318var comp = CreateCompilationWithSpanAndMemoryExtensions(source, 10362var comp = CreateCompilationWithSpanAndMemoryExtensions(source, 10416var comp = CreateCompilation(source, 10470var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 10505var comp = CreateCompilationWithSpanAndMemoryExtensions(source); 10535var comp = CreateCompilation(source); 10565var comp = CreateCompilation(source, 10597var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10619var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 10650var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 10684var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 10743var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 10799var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA), options: TestOptions.UnsafeReleaseDll); 10841var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 10874var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10); 10916static void verify(CSharpCompilation comp, bool useUpdatedEscapeRules) 10949var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 10966static void verify(CSharpCompilation comp) 10992var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11021static void verify(CSharpCompilation comp, bool useUpdatedEscapeRules) 11063var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular10); 11095static void verify(CSharpCompilation comp, bool useUpdatedEscapeRules) 11142var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 11156static void verify(CSharpCompilation comp, bool useUpdatedEscapeRules) 11180var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, options: TestOptions.UnsafeReleaseExe); 11217static void verify(CSharpCompilation comp, bool useUpdatedEscapeRules) 11243var comp = CreateCompilation(source); 11266var comp = CreateCompilation(source); 11352var comp = CreateCompilation(source); 11381var comp = CreateCompilation(source); 11434var comp = CreateCompilation(source1, references: new[] { ref0 }); 11451var comp = CreateCompilation(sourceA); 11505var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 11546var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 11586var comp = CreateCompilation(source); 11617var comp = CreateCompilation(source); 11644var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 11669var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 11711var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 11739var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp10)); 11785var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp11)); 11835var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 11869var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 11905var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 11921static void verify(CSharpCompilation comp) 11946var comp = CreateCompilation(source); 11964var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Mscorlib40); 12030var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 12057static void verify(CSharpCompilation comp) 12109var comp = CreateCompilation(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 12126static void verify(CSharpCompilation comp) 12177var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 12194static void verify(CSharpCompilation comp) 12262var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 12376static void verify(CSharpCompilation comp) 12479var comp = CreateCompilation(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 12563static void verify(CSharpCompilation comp) 12658var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 12789static void verify(CSharpCompilation comp) 12889var comp = CreateCompilation(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 12972static void verify(CSharpCompilation comp) 13049var comp = CreateCompilation(source); 13087var comp = CreateCompilation(source); 13122var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 13147static void verify(CSharpCompilation comp) 13177var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 13202static void verify(CSharpCompilation comp) 13239var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 13261static void verify(CSharpCompilation comp) 13289var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 13304static void verify(CSharpCompilation comp) 13329var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 13353var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 13377var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 13399var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 13423var comp = CreateCompilation(source); 13435static void verifyModel(CSharpCompilation comp) 13487var comp = CreateCompilation(source); 13499static void verifyModel(CSharpCompilation comp) 13563var comp = CreateCompilation(source); 13575static void verifyModel(CSharpCompilation comp) 13634var comp = CreateCompilation(source); 13646static void verifyModel(CSharpCompilation comp) 13699var comp = CreateCompilation(source); 13738var comp = CreateCompilation(source); 13772var comp = CreateCompilation(source); 13800var comp = CreateCompilation(source); 13814var comp = CreateCompilation(source); 13828var comp = CreateCompilation(source); 13846var comp = CreateCompilation(source); 13863var comp = CreateCompilation(source); 13881var comp = CreateCompilation(source); 13904var comp = CreateCompilation(source); 13926var comp = CreateCompilation(source); 13960var comp = CreateCompilation(source); 14000var comp = CreateCompilation(source); 14039var comp = CreateCompilation(source); 14080var comp = CreateCompilation(source); 14122var comp = CreateCompilation(source); 14163var comp = CreateCompilation(source); 14224var comp = CreateCompilation(source); 14302var comp = CreateCompilation(source); 14338var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 14351static void verify(CSharpCompilation comp, bool useUpdatedEscapeRules) 14380var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 14393static void verify(CSharpCompilation comp, bool useUpdatedEscapeRules) 14425var comp = CreateCompilation(source); 14455var comp = CreateCompilation(source); 14484var comp = CreateCompilation(source); 14517var comp = CreateCompilation(source); 14575var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 14594static void verify(CSharpCompilation comp) 14675var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 14727var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 14839static void verify(CSharpCompilation comp) 14965var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 15029var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 15047static void verify(CSharpCompilation comp) 15072var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion)); 15120var comp = CreateCompilation(source); 15128static void verifyModel(CSharpCompilation comp) 15187var comp = CreateCompilation(source); 15216var comp = CreateCompilation(source); 15245var comp = CreateCompilation(source); 15277var comp = CreateCompilation(source); 15337var comp = CreateCompilation(source); 15396var comp = CreateCompilation(source); 15459var comp = CreateCompilation(source); 15511var comp = CreateCompilation(source); 15560var comp = CreateCompilation(source); 15615var comp = CreateCompilation(source); 15661var comp = CreateCompilation(source); 15701var comp = CreateCompilation(source); 15742var comp = CreateCompilation(sourceA); 15779var comp = CreateCompilation(source); 15822var comp = CreateCompilation(source); 15881var comp = CreateCompilation(source); 15929var comp = CreateCompilation(source); 15970var comp = CreateCompilation(source); 16022var comp = CreateCompilation(source); 16071var comp = CreateCompilation(source); 16202var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 16257var comp = CreateCompilation(source); 16292var comp = CreateCompilation(source); 16328var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 16371var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 16442var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 16471var comp = CreateCompilation(source); 16495var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 16532var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 16579var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 16622var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 16657var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 16684var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 16718var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 16764var comp = CreateCompilation(source, options: WithNullableEnable()); 16813var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugExe); 16872var comp = CreateCompilation(source); 16911var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 16944var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 16976var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 16994var comp = CreateCompilation(source); 17025var comp = CreateCompilation(source); 17084var comp = CreateCompilation(new[] { sourceA, sourceB1 }); 17149var comp = CreateCompilation(new[] { sourceA, sourceB1 }); 17203var comp = CreateCompilation(new[] { sourceA, sourceB1, UnscopedRefAttributeDefinition }); 17227var comp = CreateCompilation(sourceA); 17282var comp = CreateCompilation(sourceA); 17332var comp = CreateCompilation(sourceA); 17384var comp = CreateCompilation(source); 17413var comp = CreateCompilation(source); 17440var comp = CreateCompilation(sourceA); 17535var comp = CreateCompilation(sourceA); 17609var comp = CreateCompilation(sourceA); 17641var comp = CreateCompilation(source); 17664var comp = CreateCompilation(source); 17688var comp = CreateCompilation(source); 17727var comp = CreateCompilation(source); 17776var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 17812var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 17838var comp = CreateCompilation(source); 17858var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 17877var comp = CreateCompilation(source); 17902var comp = CreateCompilation(source); 17934var comp = CreateCompilation(source); 17978var comp = CreateCompilation(source); 18003var comp = CreateCompilation(source); 18022var comp = CreateCompilation(source); 18052var comp = CreateCompilation(source); 18074var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe); 18098var comp = CreateCompilation(source); 18117var comp = CreateCompilation(source); 18174var comp = CreateCompilation(source); 18205var comp = CreateCompilation(source); 18245var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net70); 18295var comp = CreateCompilation(source); 18314var comp = CreateCompilation(source); 18355var comp = CreateCompilation(source); 18390var comp = CreateCompilation(source); 18434var comp = CreateCompilation(source); 18478var comp = CreateCompilation(source); 18522var comp = CreateCompilation(source); 18557var comp = CreateCompilation(source); 18593var comp = CreateCompilation(source); 18628var comp = CreateCompilation(source); 18658var comp = CreateCompilation(source); 18679var comp = CreateCompilation(source); 18700var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 18718var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 18744var comp = CreateCompilation(source); 18763var comp = CreateCompilation(source); 18799var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net70); 18827var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugDll); 18849var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 18904var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 18930var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 18960var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 18995var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19021var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19064var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19092var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19130var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19174var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19227var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19274var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19322var comp = CreateCompilation(source); 19413var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19491var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19576var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19671var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19752var comp = CreateCompilation(source); 19794var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19850var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19892var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19921var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19942var comp = CreateCompilation(source); 19981var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20009var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 20038var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20068var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50); 20103var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20129var comp = CreateCompilation(sourceB, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 20160var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 20198var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 20229var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 20251var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 20298var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20326var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 20354var lib = CreateCompilation(lib_cs, parseOptions: TestOptions.Regular11, targetFramework: TargetFramework.Net70); 20356var comp = CreateCompilation(source, references: new[] { lib.EmitToImageReference() }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 20415var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 20461var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20486var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20516var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20540var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20562var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20585var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20605var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20629var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20660var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20687var comp = CreateCompilation(source); 20714var comp = CreateCompilation(source); 20741var comp = CreateCompilation(source); 20768var comp = CreateCompilation(source); 20798var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20825var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20846var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20875var comp = CreateCompilation(source); 20899var comp = CreateCompilation(source); 20925var comp = CreateCompilation(source); 20951var comp = CreateCompilation(source); 20977var comp = CreateCompilation(source); 21011var comp = CreateCompilation(source); 21045var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 21071var comp = CreateCompilation(source); 21094var comp = CreateCompilation(source); 21126var comp = CreateCompilation(source); 21159var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 21211var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 21244var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 21279var comp = CreateCompilation(source); 21302var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 21334var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net70); 21456var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net70); 21498var comp = CreateCompilation(source); 21530var comp = CreateCompilation(source); 21557var comp = CreateCompilation(source); 21615var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 21747var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 21786var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 21862var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 21886var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 22195var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 22216var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 22251var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 22284var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 22311var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 22339var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 22366var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 22385var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }); 22445var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 22484var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 22503var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }); 22549var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition, IsExternalInitTypeDefinition }); 22580var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 22613var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 22649var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 22684var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net60); 22729var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 22769var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 22799var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }); 22864var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Mscorlib40); 22939var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 22977var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 22995var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 23025var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 23052var comp = CreateCompilation(source); 23085var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net70); 23195var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net70); 23288var comp = CreateCompilation(sourceB, references: new[] { refA }); 23308var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 23339var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 23372var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }); 23445var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 23511var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 23598var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 23648var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 23681var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 23709var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 23740var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 23778var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 23819var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 23863var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 23893var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 23929var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 23966var comp = CreateCompilation(source); 24018var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 24082var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 24143var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }); 24214var comp = CreateCompilation(source); 24257var comp = CreateCompilation(new[] { sourceA, sourceB }); 24298var comp = CreateCompilation(new[] { sourceA, sourceB }); 24387var comp = CreateCompilation(sourceB, new[] { refA }); 24489var comp = CreateCompilation(sourceB, new[] { refA }); 24597var comp = CreateCompilation(sourceB, new[] { refA }); 24635var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net50, options: TestOptions.ReleaseDll); 24663var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 24700var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 24736var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 24784var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA), options: TestOptions.UnsafeReleaseDll); 24801static MethodSymbol getFunctionPointerMethod(CSharpCompilation comp, string qualifiedName) => 24826var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 24883var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 24934var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 24993var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }); 25023var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }); 25061var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 25120var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular); 25198var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular); 25269var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersionA)); 25385var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular); 25432var comp = CreateCompilation(new[] { sourceA, UnscopedRefAttributeDefinition }); 25529var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 25607var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 25645var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 25690var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 25717var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 25752var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 25778var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 25824var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 25879var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 25930var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net60); 25963var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 26007var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 26069var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 26114var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 26416var comp = CreateCompilation(sourceB, references: new[] { refA }); 26462var comp = CreateCompilation(sourceB, references: new[] { refA }); 26501var comp = CreateCompilation(sourceB, references: new[] { refA }); 26532var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: targetFramework); 26591var comp = CreateCompilation(assemblyIdentity, new[] { source0 }, references: null, parseOptions: TestOptions.Regular10); 26648var comp = CreateCompilation(assemblyIdentityLowerVersion, new[] { source0 }, references: null, parseOptions: TestOptions.Regular10); 26716var comp = CreateCompilation(assemblyIdentity, new[] { source0 }, references: null, parseOptions: TestOptions.Regular10); 26781var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, options: TestOptions.ReleaseDll); 26833var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, options: TestOptions.ReleaseDll); 26885var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, options: TestOptions.ReleaseDll); 26975var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 27012var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 27043static void verify(CSharpCompilation comp) 27102var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 27133static void verify(CSharpCompilation comp) 27186var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 27253static void verify(CSharpCompilation comp) 27287var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 27354static void verify(CSharpCompilation comp) 27391var comp = CreateCompilation(source); 27399static void verifyModel(CSharpCompilation comp) 27451var comp = CreateCompilation(source); 27459static void verifyModel(CSharpCompilation comp) 27505var comp = CreateCompilation(source); 27524var comp = CreateCompilation(source); 27545var comp = CreateCompilation(source); 27564var comp = CreateCompilation(source); 27599var comp = CreateCompilation(source); 27646var comp = CreateCompilation(source); 27676var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 27689static void verify(CSharpCompilation comp) 27724var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 27737static void verify(CSharpCompilation comp) 27778var comp = CreateCompilation(source); 27817var comp = CreateCompilation(source); 27904var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 27983var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28099var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugExe); 28179var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28248var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugDll); 28292var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28317var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeReleaseExe); 28351var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28380var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28409var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28441var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28476var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28508var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net70); 28550var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe); 28582var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28618var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe); 28665var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28694var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28723var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28749var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28771var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28810var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe); 28949var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28981var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29010var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29050var comp = CreateCompilation(source); 29107var comp = CreateCompilation(source); 29169var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29246var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29316var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29376var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29411var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29449var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29479var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29524var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29763var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 29789var comp = CreateCompilation(source); 29819var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeReleaseDll); 29851var comp = CreateCompilationWithSpan(source, options: TestOptions.UnsafeReleaseDll); 29895var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29932var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29970var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29992var comp = CreateCompilation(source); 30019var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 30047var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 30089var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 30111var comp = CreateCompilationWithSpan(source); 30137var comp = CreateCompilationWithSpan(source); 30164var comp = CreateCompilationWithSpan(source); 30189var comp = CreateCompilationWithSpan(source); 30206var comp = CreateCompilationWithSpan(source); 30245var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 30296var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 30526var comp = CreateCompilation(""" 30592var comp = CreateCompilation(""" 30665var comp = CreateCompilation(""" 31036var comp = CreateCompilation(""" 31061var comp = CreateCompilation(""" 31086var comp = CreateCompilation(""" 31113var comp = CreateCompilation(""" 31138var comp = CreateCompilation(""" 31166var comp = CreateCompilation(""" 31191var comp = CreateCompilation(""" 31219var comp = CreateCompilation(""" 31247var comp = CreateCompilation(""" 31272var comp = CreateCompilation(""" 31300var comp = CreateCompilation(""" 31328var comp = CreateCompilation(""" 31353var comp = CreateCompilation("""
Semantics\RefLocalsAndReturnsTests.cs (90)
25var comp = CreateCompilation(@" 46var comp = CreateCompilation(@" 73var comp = CreateCompilation(@" 91var comp = CreateCompilation(@" 112var comp = CreateCompilation(@" 128var comp = CreateCompilation(@" 146var comp = CreateCompilation(@" 165var comp = CreateCompilation(@" 186var comp = CreateCompilation(@" 205var comp = CreateCompilation(@" 224var comp = CreateCompilationWithMscorlibAndSpan(@" 259var comp = CreateCompilation(@" 276var comp = CreateCompilationWithMscorlibAndSpan(@" 294var comp = CreateCompilation(@" 360var comp = CreateCompilation(@" 399var comp = CreateCompilation(@" 418var comp = CreateCompilation(@" 435var comp = CreateCompilation(@" 460var comp = CreateCompilation(@" 512var comp = CreateCompilation(@" 585var comp = CreateCompilationWithMscorlibAndSpan(new[] { source, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 601var comp = CreateCompilation(@" 619var comp = CreateCompilation(@" 638var comp = CreateCompilation(@" 654var comp = CreateCompilation(@" 671var comp = CreateCompilation(@" 704var comp = CreateCompilation(@" 724var comp = CreateCompilation(@" 752var comp = CreateCompilation(@" 781var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 800var comp = CreateCompilation(@" 824var comp = CreateCompilation(@" 849var comp = CreateCompilation(@" 899var comp = CreateCompilation(@" 916var comp = CreateCompilation(@" 934var comp = CreateCompilation(@" 952var comp = CreateCompilation(@" 971var comp = CreateCompilation(@" 991var comp = CreateCompilation(@" 1011var comp = CreateCompilation(@" 1092var comp = CreateCompilation(tree); 1102var comp = CreateCompilation(@" 1120var comp = CreateCompilation(@" 1138var comp = CreateCompilation(@" 1155var comp = CreateCompilation(@" 1177var comp = CreateCompilation(@" 1196var comp = CreateCompilation(@" 1218var comp = CreateCompilation(@" 1237var comp = CreateCompilationWithMscorlib46(@" 1254var comp = CreateCompilation(@" 1351var comp = CreateCompilation(@" 1382var comp = CreateCompilation(@" 1410var comp = CreateCompilation(@" 1434var comp = CreateCompilation(@" 1455var comp = CreateCompilation(@" 1476var comp = CreateCompilation(@" 1511var comp = CreateCompilation(@" 1529var comp = CreateCompilation(@" 1565var comp = CreateCompilation(@" 1605var comp = CreateCompilation(@" 1645var comp = CreateCompilation(text); 1669var comp = CreateCompilation(text); 1690var comp = CreateCompilation(text); 1734var comp = CreateCompilation(text); 1775var comp = CreateCompilation(text); 1848var comp = CreateCompilation(text); 1902var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 1956var comp = CreateCompilation(text); 1998var comp = CreateCompilation(text, targetFramework: TargetFramework.Empty, references: new[] { MscorlibRef, SystemCoreRef }); 2049var comp = CreateCompilation(text); 2166var comp = CreateCompilation(text); 2265var comp = CreateCompilation(text); 2373var comp = CreateCompilation(text); 2446var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 2529var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll); 2623var comp = CreateCompilation(text); 2678var comp = CreateCompilationWithMscorlib461(text, parseOptions: options); 2720var comp = CreateCompilationWithMscorlib461(text, parseOptions: options); 4737var compilation = CreateCompilation(@" 4765var compilation = CreateCompilation(@" 4793var compilation = CreateCompilation(@" 4821var compilation = CreateCompilation(@" 4849var compilation = CreateCompilation(@" 4877var compilation = CreateCompilation(@" 4905var compilation = CreateCompilation(@" 4965var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.RegularDefault.WithLanguageVersion(langVersion)); 5018var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.RegularDefault.WithLanguageVersion(langVersion)); 5193var comp = CreateCompilation(code).VerifyEmitDiagnostics( 5239var comp = CreateCompilation(code, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script); 5278var comp = CreateCompilation(code, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.Script);
Semantics\ScriptSemanticsTests.cs (71)
87var taskCompilation = CreateEmptyCompilation(taskAssembly, references: new[] { MscorlibRef_v20 }); 97var script = CreateEmptyCompilation( 114var script = CreateEmptyCompilation( 139var script = CreateEmptyCompilation( 159var script = CreateEmptyCompilation( 185var script = CreateEmptyCompilation( 204var script = CreateEmptyCompilation( 235var compilation = CreateCompilationWithMscorlib461(test, parseOptions: TestOptions.Script); 265var compilation = CreateCompilationWithMscorlib461(new[] { tree }, options: TestOptions.ReleaseExe.WithScriptClassName("Script")); 275var compilation = CreateCompilation("namespace System { public struct Int32 { } }"); 288var compilation = CreateCompilationWithMscorlib461(new[] { tree }, options: TestOptions.ReleaseExe.WithScriptClassName("Script")); 298var submission = CSharpCompilation.CreateScriptCompilation("test", syntaxTree: SyntaxFactory.ParseSyntaxTree("1", options: TestOptions.Script), returnType: typeof(int)); 322var c = CreateSubmission(@" 367var compilation = CSharpCompilation.Create( 398var compilation = CSharpCompilation.Create( 445var compilation = CreateCompilationWithMscorlib461( 487var compilation = CreateCompilationWithMscorlib461( 508var submission = CreateSubmission(source); 552var compilation = CreateSubmission(test); 583var compilation = CreateSubmission(text); 612var submission = CreateSubmission("x", 627var compilation = CreateCompilationWithMscorlib461(new[] { Parse(source, options: TestOptions.Script) }); 640var compilation = CreateCompilationWithMscorlib461(new[] { Parse(source, options: TestOptions.Script) }); 652var compilation = CreateCompilationWithMscorlib461(new[] { Parse(source, options: TestOptions.Script) }); 661var compilation = CreateSubmission(source); 677var compilation = CreateSubmission(source); 695var c0 = CreateSubmission(source0); 703var c1 = CreateSubmission(source1, previous: c0); 712var c0 = CreateSubmission(@"public class C { private static int goo() { return 1; } }"); 713var c1 = CreateSubmission(@"C.goo()", previous: c0); 723var c0 = CreateSubmission(@" 731var c1 = CreateSubmission(@" 794var c0 = CreateSubmission(@" 799var c1 = CreateSubmission("s + i", previous: c0, returnType: typeof(int)); 800var c2 = CreateSubmission("static int t = i;", previous: c1); 808var c0 = CreateSubmission(@" 814var c1 = CreateSubmission(@" 831var c0 = CreateSubmission(@" 848var c0 = CreateSubmission(@" 851var c1 = CreateSubmission(@" 869var s0 = CreateSubmission("int a = \"x\";"); 881var submission = CreateSubmission("using Unknown;"); 896var c = CreateSubmission("Z()", new[] { HostRef }); 912var c = CreateSubmission(source, new[] { HostRef }, hostObjectType: typeof(C)); 931var c = CreateSubmission("int i = 42l;"); 943var c = CreateSubmission("var x = x;"); 953var c = CreateSubmission("var x = 1; { var x = x;}"); 965var c = CreateSubmission( 990var c = CreateSubmission( 1014var c = CreateSubmission(@" 1032var c0 = CreateSubmission("var x = 1;"); 1033var c1 = CreateSubmission("&x", previous: c0); 1044var c0 = CreateSubmission("&x", new[] { HostRef }, hostObjectType: typeof(B2)); 1058var c0 = CreateSubmission(source, new[] { SystemCoreRef }); 1069var s0 = CreateSubmission("int i = 5;"); 1070var s1 = CreateSubmission("i* i", previous: s0); 1071var s2 = CreateSubmission("i* i;", previous: s1); 1086var s0 = CreateSubmission(@" 1097var s0 = CreateSubmission("goto Object;"); 1111var s0 = CreateSubmission("static void E(this object o) { }", references); 1113var s1 = CreateSubmission("void F(this object o) { }", references, previous: s0); 1120var s2 = CreateSubmission("static void G(this dynamic o) { }", references, previous: s0); 1135var compilation = CreateCompilationWithMscorlib461(new[] { tree }); 1155var compilation = CreateCompilationWithMscorlib461(new[] { tree }); 1181var compilation = CreateCompilationWithMscorlib461(new[] { syntaxTree }); 1275var compilation = CreateCompilationWithMscorlib461(new[] { syntaxTree1, syntaxTree2 }); 1308var compilation = CreateCompilationWithMscorlib461(new[] { syntaxTree }); 1371var script = CreateEmptyCompilation(
Semantics\SemanticAnalyzerTests.cs (1)
61var comp = CreateCompilation(source);
Semantics\SemanticErrorTests.cs (96)
1384var comp = CreateCompilationWithMscorlib461( 2115var comp = CreateCompilation(text, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(new Dictionary<string, ReportDiagnostic>() 3251var comp = CreateCompilation(text); 3323var compilation = CreateCompilation(tree); 4002var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7_3); 4139var comp = CreateCompilation(text); 4175var comp = CreateCompilation(text); 4203var comp = CreateCompilation(text); 4293var comp = CreateCompilation(text, parseOptions: TestOptions.Regular6); 4349var comp = CreateCompilation(text); 4375var comp = CreateCompilation(text); 4553var compilation1 = CreateCompilation(source1); 4566var compilation2 = CreateCompilation(source2, references: new[] { reference1 }); 6463var comp = CreateCompilation(text, parseOptions: TestOptions.Regular10); 6511var comp = CreateCompilation(text); 7239var comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib461); 7270var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 7482var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics( 7801var compilation1 = CreateCompilation(source1); 7814var compilation2 = CreateCompilation(source2, references: new[] { reference1 }); 7892var comp = CreateCompilation(new[] { Parse(test, options: TestOptions.Regular6) }, new MetadataReference[] { }); 8401var comp = CreateCompilation(text); 8669var comp = CreateCompilation(text); 11413var compilation = CreateCompilation( 11528var comp = CreateCompilation(text, targetFramework: TargetFramework.Mscorlib461); 11553var comp = CreateCompilation(text, targetFramework: TargetFramework.Mscorlib461); 11629var compilation = CreateCompilation( 11667var compilation = CreateCompilation(text); 12031var comp = CreateCompilation(source); 12054var comp = CreateCompilation(source); 12302var comp = CreateCompilation(text); 13010var comp = CreateCompilation(text); 13270var compilation2 = CreateCompilationWithMscorlib40AndSystemCore(source2, new[] { reference1 }); 13319var compilation2 = CreateCompilation(source2, new[] { reference1 }); 13371var compilation2 = CreateCompilation(source2, new[] { reference1 }); 13454var compilation2 = CreateCompilation(source2, new[] { reference1 }); 15127var comp = CreateCompilation(text); 15155var comp = CreateCompilation(text); 15191var comp = CreateCompilation(text); 15247var comp = CreateCompilation(text); 15282var comp = CreateCompilation(text); 15390var comp = CreateCompilation(text); 15419var comp = CreateCompilation(text); 15445var comp = CreateCompilation(text); 16312var compilation = CreateCompilation(text); 16339var compilation = CreateCompilation(text); 16586var comp = CreateCompilation(text); 16629var compilation = CreateCompilation(text); 16725var comp = CreateCompilation(text); 16744var comp = CreateCompilation(text, parseOptions: TestOptions.Regular6); 16803var compilation = CSharpTestBase.CreateCompilation(text); 16977var compilation = CreateCompilationWithMscorlib40(text, references: new[] { Net40.References.SystemCore }); 17000var compilation = CreateCompilationWithMscorlib40(source, references: new[] { Net40.References.SystemCore }); 17247var comp = CreateCompilation(program); 17398var comp = CreateCompilationWithMscorlib40AndSystemCore(text); 17733var comp = CreateCompilation(text); 18451var comp = CreateCompilation(text, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 18477var comp = CreateCompilationWithMscorlib40AndSystemCore(text); 18512var comp = CreateCompilationWithMscorlib40AndSystemCore(text); 18545var comp = CreateCompilation(text, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 18571var comp = CreateCompilation(text, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.DebugExe); 18599var comp = CreateCompilationWithMscorlib40AndSystemCore(text); 18662var comp = CreateCompilationWithMscorlib40AndSystemCore(text); 18681var comp = CreateCompilationWithMscorlib40AndSystemCore(text); 18713var comp = CreateCompilationWithMscorlib40AndSystemCore(source, new[] { CSharpRef }); 18785var comp = CreateCompilationWithMscorlib40AndSystemCore(source, new[] { CSharpRef }, options: TestOptions.UnsafeReleaseDll); 18833var comp = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeReleaseDll); 19278var comp = CreateCompilation(text); 19307var comp = CreateCompilation(text); 19340var comp = CreateCompilation(text); 20040var comp = CreateCompilation(text); 20056var comp = CreateCompilation(text); 20339var comp = CreateCompilation(text); 21193var comp = CreateCompilation(text); 21463var comp = CreateCompilation(text); 21582var compilation = CreateCompilation(text, targetFramework: TargetFramework.Mscorlib461, options: TestOptions.DebugExe); 21902var c = CreateCompilation( 21977var comp = CreateCompilationWithMscorlib40AndDocumentationComments(string.Format(sourceTemplate, xmlFile.Path)); 22739var comp = CreateCompilationWithMscorlib40AndSystemCore(text); 22771var comp = CreateCompilationWithMscorlib40AndSystemCore(text); 23019var comp = CreateCompilation(text); 24203var compilation = CreateCompilationWithMscorlib461(text).VerifyDiagnostics( 24495var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe); 24687var compilation = CreateCompilation(text); 24834var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 24871var comp = CreateCompilation(source); 24892var comp = CreateCompilation(source); 24918var comp = CreateCompilationWithSpan(source); 24950var comp = CreateCompilation(source); 24974var comp = CreateCompilation(source); 25006var comp = CreateCompilation(source); 25036var comp = CreateCompilation(source); 25067var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 25103var comp = CreateCompilation(source); 25167var comp = CreateCompilation(source); 25264var comp = CreateCompilation(source);
Semantics\SpanStackSafetyTests.cs (58)
24var comp = CreateCompilationWithMscorlibAndSpan(@" 46var comp = CreateCompilationWithMscorlibAndSpan(@" 65var comp = CreateCompilationWithMscorlibAndSpan(@" 91var comp = CreateCompilationWithMscorlibAndSpan(@" 116var comp = CreateCompilationWithMscorlibAndSpan(@" 141var comp = CreateCompilationWithMscorlibAndSpan(@" 169var comp = CreateCompilationWithMscorlibAndSpan(@" 192var comp = CreateCompilationWithMscorlibAndSpan(@" 215var comp = CreateCompilationWithMscorlibAndSpan(@" 230var comp = CreateCompilationWithMscorlibAndSpan(@" 254var comp = CreateCompilationWithMscorlibAndSpan(@" 278var comp = CreateCompilationWithMscorlibAndSpan(@" 300var comp = CreateCompilationWithMscorlibAndSpan(@" 322var comp = CreateCompilationWithMscorlibAndSpan(@" 358CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text); 411CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text); 441CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text); 473CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text); 529var comp = CreateCompilationWithMscorlibAndSpan(new[] { text, UnscopedRefAttributeDefinition }, parseOptions: TestOptions.Regular10); 588CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text); 658CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text); 728CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.ReleaseExe); 792CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.ReleaseExe); 853CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.ReleaseExe); 911CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.ReleaseExe); 1061var comp = CreateCompilationWithMscorlibAndSpan(text, TestOptions.ReleaseExe, TestOptions.Regular13); 1208var comp = CreateCompilationWithMscorlibAndSpan(text, TestOptions.ReleaseExe, TestOptions.Regular13); 1239CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text); 1272CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text); 1302CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text); 1390CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text); 1439CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text); 1497var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70); 1541var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70); 1595var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70); 1657var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70); 1744CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text); 1794CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text); 1834var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular13); 1863CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text); 1900CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text); 1927var reference = CreateEmptyCompilation( 1944var comp = CreateEmptyCompilation( 1961var reference = CreateEmptyCompilation( 1978var comp = CreateEmptyCompilation( 2005var reference = CreateEmptyCompilation( 2022var comp = CreateEmptyCompilation( 2046var reference = CreateEmptyCompilation( 2063var comp = CreateEmptyCompilation( 2141var comp = CreateCompilationWithMscorlibAndSpan(@" 2202var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseExe); 2238var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseExe); 2340var comp = CreateCompilationWithMscorlibAndSpan(@" 2621CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.DebugExe); 2646CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.DebugExe); 2671CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.DebugExe); 2701CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.DebugExe); 2724CSharpCompilation comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.DebugExe);
Semantics\StackAllocInitializerTests.cs (31)
23var comp = CreateCompilationWithMscorlibAndSpan(@" 110var comp = CreateCompilationWithMscorlibAndSpan(@" 175var comp = CreateCompilationWithMscorlibAndSpan(@" 237var comp = CreateCompilationWithMscorlibAndSpan(@" 290var comp = CreateCompilationWithMscorlibAndSpan(@" 343var comp = CreateCompilationWithMscorlibAndSpan(@" 416var comp = CreateCompilationWithMscorlibAndSpan(@" 492var comp = CreateCompilationWithMscorlibAndSpan(@" 531var comp = CreateCompilationWithMscorlibAndSpan(@" 570var comp = CreateCompilationWithMscorlibAndSpan(@" 724var comp = CreateCompilationWithMscorlibAndSpan(@" 746var comp = CreateCompilationWithMscorlibAndSpan(@" 767var comp = CreateCompilationWithMscorlibAndSpan(""" 786var comp = CreateCompilationWithMscorlibAndSpan(@" 805var comp = CreateCompilationWithMscorlibAndSpan(@" 824var comp = CreateCompilationWithMscorlibAndSpan(@" 843var comp = CreateCompilationWithMscorlibAndSpan(@" 870var comp = CreateCompilationWithMscorlibAndSpan(@" 897var comp = CreateCompilationWithMscorlibAndSpan(@" 919var comp = CreateCompilationWithMscorlibAndSpan(@" 942var comp = CreateCompilationWithMscorlibAndSpan(@" 965var comp = CreateCompilationWithMscorlibAndSpan(@" 993var comp = CreateCompilationWithMscorlibAndSpan(@" 1095var comp = CreateCompilationWithMscorlibAndSpan(@" 2344var comp = CreateCompilationWithMscorlibAndSpan(@" 2450var comp = CreateCompilationWithMscorlibAndSpan(@" 2538var comp = CreateCompilationWithMscorlibAndSpan(@" 2628var comp = CreateCompilationWithMscorlibAndSpan(@" 2704var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 2747var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 2776var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70);
Semantics\StackAllocSpanExpressionsTests.cs (2)
26var comp = CreateCompilationWithMscorlibAndSpan(@" 100var comp = CreateCompilationWithMscorlibAndSpan(@"
Semantics\StructConstructorTests.cs (62)
29var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9); 101var comp = CreateCompilation(source); 217var comp = CreateCompilation(sourceA); 1047var comp = (CSharpCompilation)verifier.Compilation; 1142var comp = (CSharpCompilation)verifier.Compilation; 1239var comp = (CSharpCompilation)verifier.Compilation; 1325var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 1470var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 1575var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 1626var comp = CreateCompilation(source, parseOptions: GetParseOptions(languageVersion)); 1661var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 1721var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 1898var comp = CreateCompilation(source, parseOptions: GetParseOptions(languageVersion)); 1927var comp = CreateCompilation(source, parseOptions: GetParseOptions(languageVersion)); 1973var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2013var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2074var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2376var comp = CreateCompilation(source); 2437var comp = CreateCompilation(source); 2535var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2617var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 2700var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 2753var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 2855var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 2926var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 3035var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10); 3054var comp = CreateCompilation(source); 3076var comp = CreateCompilation(source); 3140var comp = CreateCompilation(source); 3218var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Mscorlib40); 3276var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 3326var comp = CreateCompilation(source); 3356var comp = CreateCompilation(source); 3406var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular10); 3456var comp = CreateCompilation(source); 3524var comp = CreateCompilation(source); 3547var comp = CreateCompilation(source); 3574var comp = CreateCompilation(source); 3615var comp = CreateCompilation(source); 3664var comp = CreateCompilationWithMscorlib40(sourceA); 3696var comp = CreateCompilationWithSpan(source); 3719var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 3745var comp = CreateCompilationWithSpan(source); 3770var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 3792var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 3819var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 3846var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 3870var comp = CreateCompilation(source, parseOptions: TestOptions.Script, targetFramework: TargetFramework.NetCoreApp); 3940var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe); 4015var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 4055var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 4107var comp = CreateCompilation(source); 4129var comp = CreateCompilation(source); 4149var comp = CreateCompilation(source); 4527var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings)); 4549var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings)); 4699var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular10); 4827var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4870var comp = CreateCompilation(source, options: TestOptions.ReleaseExe);
Semantics\StructsTests.cs (8)
117var comp = CreateCompilation(text, options: TestOptions.DebugExe); 376var c1 = CSharpCompilation.Create("C1", 381var c2 = CSharpCompilation.Create("C2", 478var compilation = CreateCompilationWithILAndMscorlib40(csharpSource, ilSource); 532var comp = CreateCompilationWithILAndMscorlib40(csharpSource, ilSource); 669var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9);
Semantics\SuppressAccessibilityChecksTests.cs (6)
20var compilationA = CreateCompilation(@" 33var compilationB = CreateCompilation(@" 120var comp = CreateCompilation(tree); 135var compilationA = CreateCompilationWithMscorlib40AndSystemCore(@" 155var compilationB = CreateCompilation(@" 184var compilation = CreateCompilation(@"
Semantics\SwitchTests.cs (3)
1152var comp = CreateEmptyCompilation(new[] { syntaxTree }, references: null); 2417var submission = CSharpCompilation.CreateScriptCompilation(
Semantics\SyntaxTreeRootTests.cs (4)
62Assert.Throws<ArgumentException>(() => CSharpCompilation.Create("Grrr", syntaxTrees: new[] { arbitraryTree })); 63Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("Wah").AddSyntaxTrees(arbitraryTree)); 64Assert.Throws<ArgumentException>(() => CSharpCompilation.Create("Bahh", syntaxTrees: new[] { parsedTree }).ReplaceSyntaxTree(parsedTree, arbitraryTree)); 65Assert.Throws<ArgumentException>(() => CSharpCompilation.Create("Woo").GetSemanticModel(arbitraryTree));
Semantics\SynthesizedStaticConstructorTests.cs (1)
290var compilation = CreateCompilation(source);
Semantics\TargetTypedConditionalOperatorTests.cs (9)
182var comp = CreateCompilation( 207var comp = CreateCompilation( 229var comp = CreateCompilation( 265var comp = CreateCompilation( 333var comp = CreateCompilation(tree, options: TestOptions.DebugDll.WithAllowUnsafe(true)); 412var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.DebugExe) 664var comp = CreateCompilation(source); 685var comp = CreateCompilation(source); 707var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8);
Semantics\TargetTypedDefaultTests.cs (120)
31var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 66var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular7); 117var comp = CreateCompilation(source, options: TestOptions.DebugExe); 136var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 167var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 189var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 219var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 236var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 273var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe); 312var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 353var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 413var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 457var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 487var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 509var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 552var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 595var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, options: TestOptions.DebugExe); 637var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 660var comp = CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular7_1); 692var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 713var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 734var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 778var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 813var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 830var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 859var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 889var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 910var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 928var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 946var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 967var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 994var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 1013var comp2 = CreateCompilation(source, parseOptions: TestOptions.Regular7); 1057var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 1077var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 1107var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 1134var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 1163var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 1192var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 1228var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 1246var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 1362var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 1365var comp2 = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 1468var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 1471var comp2 = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 1571var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 1574var comp2 = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 1593var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 1621var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 1624var comp2 = CreateCompilation(source, parseOptions: TestOptions.Regular7_3, options: TestOptions.DebugExe); 1721var comp = CreateCompilation(source, parseOptions: parseOptions, options: TestOptions.DebugExe); 1787var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3, options: TestOptions.DebugExe); 1858var comp = CreateCompilation(source, parseOptions: TestOptions.Regular, options: TestOptions.DebugExe); 1903var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 1939var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 1968var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2007var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2053var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2079var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2108var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2144var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2177var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2203var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe.WithAllowUnsafe(true)); 2227var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 2250var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2270var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 2287var comp = CreateCompilationWithMscorlib40(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe, 2307var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2326var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2359var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 2381var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 2407var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2449var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2477var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 2503var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 2524var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2549var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2575var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 2591var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 2609var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2628var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 2653var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, references: new[] { CSharpRef }, options: TestOptions.DebugExe); 2671var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2696var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3, options: TestOptions.DebugExe); 2743var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2768var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular7_1); 2792var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2810var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular7_1); 2833var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 2855var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugDll); 2880var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7_1); 2903var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugDll); 2926var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugDll); 2962var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3012var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 3028var comp = CreateCompilationWithMscorlib40AndSystemCore(text, parseOptions: TestOptions.Regular7_1); 3049var comp = CreateCompilationWithMscorlib40AndSystemCore(text, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3078var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3100var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3129var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3161var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3193var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3225var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3254var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3274var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3295var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 3330var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 3369var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 3406var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3428var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3447var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3467var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3487var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3506var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3547var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3568var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3623var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 3705var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1, options: TestOptions.DebugExe); 3743var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_1); 3793var comp = CreateCompilation(source);
Semantics\TopLevelStatementsTests.cs (259)
31private static bool IsNullableAnalysisEnabled(CSharpCompilation compilation) 43var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 77var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 105var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 140var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 161var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 177var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 186static void verifyModel(CSharpCompilation comp, SyntaxTree tree1, bool nullableEnabled = false) 278var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 311static void verifyModel(CSharpCompilation comp, SyntaxTree tree1, SyntaxTree tree2, bool nullableEnabled = false) 434var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 476static void verifyModel(CSharpCompilation comp, SyntaxTree tree1, SyntaxTree tree2) 524var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 562var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 568static void verifyModel(CSharpCompilation comp, SyntaxTree tree1) 611var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular8); 630var comp = CreateCompilation(text, parseOptions: DefaultParseOptions); 664var comp = CreateCompilation(text, parseOptions: DefaultParseOptions); 690var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 736var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 780var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 812var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 825var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 838var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 859var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 909var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 930var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 955var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 970var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1002var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1015var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1028var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1055var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1073var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1101var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1116var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1159var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1186var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1208var comp = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1251var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1269var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1286var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1302var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1346var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1395var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1446var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1500var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1541var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1587var comp = CreateCompilation(new[] { text1, text2, text3 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1649var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1822var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 1976var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2043var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2207var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2357var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2409var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2554var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2573var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2604var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2629var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2690var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2775var comp = CreateCompilation(text, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2832var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2860var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 2894var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3008var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3070var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3133var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3200var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3264var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3326var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3389var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3456var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3520var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3582var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3645var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3712var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3776var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3844var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 3912var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4061var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4161var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4186var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4207var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4289var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4311var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4363var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4451var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4468var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4492var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4531var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4559var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4597var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4611var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4639var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4656var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4672var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4692var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4707var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4725var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4748var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4763var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4777var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4798var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4819var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4840var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4865var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4885var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4917var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4938var comp = CreateCompilation(new[] { text1, text2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 4970var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5003var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5031var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5061var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5093var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5123var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5149var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5185var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5224var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5280var comp = CreateCompilation(new[] { text1, text4 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5317var comp = CreateCompilation(text, options: TestOptions.DebugExe.WithMainTypeName("Program2"), parseOptions: DefaultParseOptions); 5344var comp = CreateCompilation(text, options: TestOptions.DebugExe.WithMainTypeName(""), parseOptions: DefaultParseOptions); 5368var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5388var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5409var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5430var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5454var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5479var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5506var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5534var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5561var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5589var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5613var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5638var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5655var comp = CreateCompilation(text); 5665var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5679var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5698var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5719var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5743var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5769var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5790var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5811var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5832var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5853var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5873var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5897var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5915var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5939var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5962var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 5999var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6223var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6264var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6307var comp = CreateCompilation(source, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6357var comp = CreateCompilation(new[] { source1, source2 }, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6396var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6501var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6558var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6679var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6766var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6824var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6882var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 6950var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7029var comp = CreateCompilation(text1 + text2, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7142var comp = CreateCompilation(text1 + text2 + text3, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7236var comp = CreateCompilation(text1 + text2, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7309var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7376var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7443var comp = CreateEmptyCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7465var comp = CreateCompilation(text, targetFramework: TargetFramework.Minimal, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7488var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7510var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7548var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7574var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7605var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7623var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7670var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7717var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7786var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7851var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7874var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7893var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7912var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7932var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7950var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7972var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 7992var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8011var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8029var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8049var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8061var comp = CreateCompilation(text, options: TestOptions.DebugDll, parseOptions: DefaultParseOptions); 8074var comp = CreateCompilation(text, options: TestOptions.ReleaseModule, parseOptions: DefaultParseOptions); 8190var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8208var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8221var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8230var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8244var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8258var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8272var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8299var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8316var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8333var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8350var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8397var comp = CreateCompilation(text, options: TestOptions.DebugExe.WithOverflowChecks(true), parseOptions: DefaultParseOptions); 8442var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugExe, parseOptions: DefaultParseOptions); 8458var comp = CreateCompilation(text, options: TestOptions.UnsafeDebugExe, parseOptions: DefaultParseOptions); 8485var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8515var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8537var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8556var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8571var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8604var comp = CreateCompilation(text1, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8624var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8636var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8647var comp = CreateCompilation(text); 8669var comp = CreateCompilation(text); 8691var comp = CreateCompilation(text); 8707var comp = CreateCompilationWithMscorlibAndSpan(@" 8725var comp = CreateCompilationWithMscorlibAndSpan(@" 8818var comp = CreateCompilation(@" 8874var comp = CreateCompilation(@" 8951var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8968var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8985var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 8997var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 9010var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 9028var comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: DefaultParseOptions); 9046var comp = CreateCompilation(text, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All)); 9101var comp = CreateCompilation(text, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All)); 9139var comp = CreateCompilation(text); 9173var comp = CreateCompilation(text); 9195var comp = CreateCompilation(text); 9217var comp = CreateCompilation(text); 9246var comp = CreateCompilation(text); 9268var comp = CreateCompilation(text); 9291var comp = CreateCompilation(text); 9318var comp = CreateCompilation(text); 9350var comp = CreateCompilation(text); 9366var comp = CreateCompilation(text); 9382var comp = CreateCompilation(text); 9398var comp = CreateCompilation(text); 9420var comp = CreateCompilation(text); 9440var comp = CreateCompilation(text); 9455var comp = CreateCompilation(text); 9475var comp = CreateCompilation(text); 9495var comp = CreateCompilation(text, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All)); 9534var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 9551var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 9571var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments); 9597var comp = CreateCompilation(src); 9610var comp = CreateCompilation(src); 9632var comp = CreateCompilation(src); 9654var comp = CreateCompilation(src); 9675var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 9700var compilation = CreateCompilation(source); 9725var comp = CreateCompilation(src); 9766var comp = CreateCompilation(new[] { src1, src2 }, options: TestOptions.ReleaseExe); 9794var comp = CreateCompilation(new[] { src1, src2 }, options: TestOptions.ReleaseExe); 9822var comp = CreateCompilation(new[] { src1, src2 }, options: TestOptions.ReleaseExe);
Semantics\TryCatchTests.cs (1)
39var compilation = CreateCompilation(source);
Semantics\TypeOfTests.cs (1)
30var compilation = CreateCompilationWithMscorlib461(source);
Semantics\UninitializedNonNullableFieldTests.cs (99)
49var comp = CreateCompilation(src, options: WithNullableEnable()); 71var comp = CreateCompilation(src, options: WithNullableEnable()); 87var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7); 107var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7, skipUsesIsNullable: true); 129var comp = CreateCompilation(source, options: WithNullableEnable()); 159var comp = CreateCompilation(source); 180var comp = CreateCompilation(source); 201var comp = CreateCompilation(source); 221var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 236var comp = CreateCompilation(new[] { source }, options: WithNullableEnable()); 265var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 299var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 328var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 362var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 389var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 403var comp = CreateCompilation(source, options: WithNullableEnable()); 419var comp = CreateCompilation(source, options: WithNullableEnable()); 437var comp = CreateCompilation(source, options: WithNullableEnable()); 461var comp = CreateCompilation(source, options: WithNullableEnable()); 505var comp = CreateCompilation(source, options: WithNullableEnable()); 534var comp = CreateCompilation(source, options: WithNullableEnable()); 551var comp = CreateCompilation(source, options: WithNullableEnable()); 571var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }, options: WithNullableEnable()); 590var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }, options: WithNullableEnable()); 610var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }, options: WithNullableEnable()); 633var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }, options: WithNullableEnable()); 666var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, options: WithNullableEnable()); 702var comp = CreateCompilation(source, options: WithNullableEnable()); 728var comp = CreateCompilation(source, options: WithNullableEnable()); 758var comp = CreateCompilation(source, options: WithNullableEnable()); 812var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 856var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular10); 952var comp = CreateCompilation(source); 983var comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 1013var comp = CreateCompilation(source); 1052var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 1128var comp = CreateCompilation(source); 1190var comp = CreateCompilation(source, options: WithNullableEnable()); 1218var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1258var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1283var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1303var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1323var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1350var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1380var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1406var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1436var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1487var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1521var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1555var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1589var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1612var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1647var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1694var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1734var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1755var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1782var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1846var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1865var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1888var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1903var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 1918var comp = CreateCompilation(source); 1940var comp = CreateCompilation(source); 1963var comp = CreateCompilation(source); 1982var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 2028var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 2055var comp = CreateCompilation(source); 2078var comp = CreateCompilation(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 2092var comp = CreateCompilation(@" 2189var comp = CreateCompilation(new[] { source, DoesNotReturnIfAttributeDefinition }, options: WithNullableEnable()); 2216var comp = CreateCompilation(source, options: WithNullableEnable()); 2244var comp = CreateCompilation(new[] { source, MemberNotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.RegularPreview); 2275var comp = CreateCompilation(source, options: WithNullableEnable()); 2313var comp = CreateCompilation(new[] { source, MemberNotNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.RegularPreview); 2337var comp = CreateCompilation(source, options: WithNullableEnable()); 2361var comp = CreateCompilation(source); 2379var comp = CreateCompilation(source); 2398var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }, options: WithNullableEnable()); 2424var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }, options: WithNullableEnable()); 2438var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }, options: WithNullableEnable()); 2463var comp = CreateCompilation(new[] { source1, source2 }, options: WithNullableEnable()); 2493var comp = CreateCompilation(new[] { source1, source2 }, options: WithNullableEnable()); 2531var comp = CreateCompilation(new[] { source1, source2 }, options: WithNullableEnable()); 2557var comp = CreateCompilation(new[] { source1, source2 }, options: WithNullableEnable()); 2595var comp = CreateCompilation(new[] { source1, source2 }, options: WithNullableEnable()); 2616var comp = CreateCompilation(@" 2662var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable()); 2677var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable()); 2692var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable()); 2707var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable()); 2722var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable()); 2745var comp = CreateCompilation(source, options: WithNullableEnable()); 2766var comp = CreateCompilation(source, options: WithNullableEnable()); 2788var comp = CreateCompilation(@" 2828var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }); 2851var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }); 2875var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition, RequiredMemberAttribute, SetsRequiredMembersAttribute, CompilerFeatureRequiredAttribute }); 2897var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition, RequiredMemberAttribute, SetsRequiredMembersAttribute, CompilerFeatureRequiredAttribute }); 2926var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition, RequiredMemberAttribute, SetsRequiredMembersAttribute, CompilerFeatureRequiredAttribute });
Semantics\UnsafeTests.cs (112)
58var comp1 = CreateEmptyCompilation(text1, assemblyName: "assembly1", references: new[] { MscorlibRef_v20 }, 76var comp2 = CreateCompilationWithMscorlib461(text2, 702var comp = CreateCompilationWithTasksExtensions(code, options: TestOptions.UnsafeReleaseExe); 2643var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 5188var compilation = CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeReleaseDll); 5295var compilation = CreateCompilation(text); 5312var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 5327var compilation = CreateCompilation(text); 5344var compilation = CreateCompilation(text); 5360var compilation = CreateCompilation(text); 5379var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 5400var compilation = CreateCompilation(text); 5420var compilation = CreateCompilation(text); 5437var compilation = CreateCompilation(text); 5470var compilation = CreateCompilation(text); 5486var compilation = CreateCompilation(text); 5519var compilation = CreateCompilation(text); 5556var compilation = CreateCompilation(text); 5588var compilation = CreateCompilation(text); 5622var compilation = CreateCompilation(text); 5644var compilation = CreateCompilation(text); 5679var compilation = CreateCompilation(text); 5723var compilation = CreateCompilation(text); 5762var compilation = CreateCompilation(text); 5806var compilation = CreateCompilation(text); 5829var compilation = CreateCompilation(text); 5842var compilation = CreateCompilation(text); 5864var compilation = CreateCompilation(text); 5884var compilation = CreateCompilation(text); 5897var compilation = CreateCompilation(text); 5914var libComp = CreateCompilation(libSrc, options: TestOptions.UnsafeDebugDll); 5934var comp = CreateCompilation(src, options: TestOptions.UnsafeDebugDll, references: new[] { libComp.EmitToImageReference() }); 5966var comp = CreateCompilation(src); 5993var comp = CreateCompilation(src, options: TestOptions.UnsafeDebugDll); 6036var comp = CreateCompilation(libSrc); 6057var comp = CreateCompilation(libSrc); 6078var comp = CreateCompilation(libSrc); 6097var comp = CreateCompilation(libSrc, targetFramework: TargetFramework.Net70); 6119var comp = CreateCompilation(libSrc); 6300var comp = CreateCompilation(tree); 6367var compilation = CreateCompilation(tree, new[] { metadata }, TestOptions.UnsafeReleaseDll); 7253var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7290var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7319var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7357var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7395var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7531var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7841var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 7908var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8154var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8221var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8279var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8339var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8375var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8851var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 8905var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 9317var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 10173var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 10214var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 10286var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 10622var compilation = CreateCompilation(text); 10684var compilation = CreateCompilation(text); 10744var compilation = CreateCompilation(text); 11301var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 11785var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 11803var comp = CreateCompilation(tree, options: TestOptions.UnsafeReleaseDll); 11825var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseExe); 11873var compilation = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 11900var comp = CreateCompilation(tree, options: TestOptions.UnsafeReleaseDll); 11919var comp = CreateCompilation(text, options: TestOptions.ReleaseExe); 12712var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 12726var comp = CreateCompilation(csharp, options: TestOptions.DebugDll); 12746var comp = CreateCompilation(csharp, options: TestOptions.DebugDll); 12762var comp = CreateCompilation(csharp, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular11); 12781var comp = CreateCompilation(csharp, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular11); 12800var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 12816var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 12832var comp = CreateCompilation(csharp, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular11); 12851var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 12877var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 12900var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 12920var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 12938var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 12962var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 12983var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 12998var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13011var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13024var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13046var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13065var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13083var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13098var comp = CreateCompilation(csharp, options: TestOptions.DebugDll); 13117var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13136var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13157var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13183var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13203var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13228var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13247var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13265var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13300var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll); 13329var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13381var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13423var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13485var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13520var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13562var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13593var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview); 13627var comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular11); 13745var comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular11); 13888var comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular11); 13932var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11);
Semantics\UserDefinedConversionTests.cs (28)
256var comp = CreateCompilation(source1 + source2); 319var comp = CreateCompilation(implicitConversions + implicitConversionBadSuccess); 435var comp = CreateCompilation(source1); 485var comp = CreateCompilation(source); 669var comp = CreateCompilation(source1 + source3); 1151var comp = CreateCompilation(source1 + source2 + source3 + source4 + source5, options: TestOptions.UnsafeReleaseDll); 1186var comp = CreateCompilation(source); 1249var comp = CreateCompilation(source2); 1411var comp = CreateCompilation(source); 1470var comp = CreateCompilation(source1); 1621var comp = CreateCompilation(source); 1643var comp = CreateCompilation(source); 1675var comp = CreateEmptyCompilation(code); 1720var comp = CreateEmptyCompilation(code); 1773var comp = CreateEmptyCompilation(code); 1830var comp = CreateEmptyCompilation(code); 1865var comp = CreateCompilation(code, options: TestOptions.UnsafeReleaseExe); 1910var comp = CreateCompilation(code, options: TestOptions.UnsafeReleaseExe); 1951var comp = CreateCompilation(source); 1993var comp = CreateCompilation(source); 2035var comp = CreateCompilation(source); 2055var comp = CreateCompilation(source); 2097var comp = CreateCompilation(source); 2117var comp = CreateCompilation(source); 2159var comp = CreateCompilation(source); 2180var comp = CreateCompilation(source); 2224var comp = CreateCompilation(source); 2278var comp = CreateCompilation(source);
Semantics\UseSiteErrorTests.cs (39)
1029var delComp = CreateEmptyCompilation( 1044var lib1Comp = CreateEmptyCompilation( 1058var lib2Comp = CreateEmptyCompilation( 1088var lib = CreateCompilation(libSource, new[] { xRef }, assemblyName: "Test"); 1093var main = CreateCompilation(mainSource, new[] { new CSharpCompilationReference(lib) }, assemblyName: "Main"); 1120var lib = CreateCompilation(libSource, new[] { xRef }, assemblyName: "Lib"); 1125var main = CreateCompilation(mainSource, new[] { new CSharpCompilationReference(lib) }, assemblyName: "Main"); 1149var lib = CreateCompilation(libSource, new[] { xRef }, assemblyName: "Lib"); 1154var main = CreateCompilation(mainSource, new[] { new CSharpCompilationReference(lib) }, assemblyName: "Main"); 1174var main = CreateCompilation(mainSource, new[] { ilRef, unavailableRef }); 1188var main = CreateCompilation(mainSource, new[] { ilRef, unavailableRef }); 1202var main = CreateCompilation(mainSource, new[] { ilRef, unavailableRef }); 1223var compilation = CreateEmptyCompilation(text).VerifyDiagnostics( 1248var baseLib = CreateCompilation(baseSource, assemblyName: "BaseAssembly"); 1251var derivedLib = CreateCompilation(derivedSource, assemblyName: "DerivedAssembly", references: new[] { new CSharpCompilationReference(baseLib) }); 2189CSharpCompilation comp1 = CreateCompilation(source1, assemblyName: "Base"); 2195CSharpCompilation comp2 = CreateCompilation(source2, new MetadataReference[] { new CSharpCompilationReference(comp1) }); 2213CSharpCompilation comp3 = CreateCompilation(source3, new MetadataReference[] { new CSharpCompilationReference(comp2) }); 2266var compilation = CreateEmptyCompilation( 2278private static CSharpCompilation CompileWithMissingReference(string source) 2284var successfulCompilation = CreateCompilation(source, new MetadataReference[] { unavailableAssemblyReference, csharpAssemblyReference, ilAssemblyReference }); 2287var failingCompilation = CreateCompilation(source, new MetadataReference[] { csharpAssemblyReference, ilAssemblyReference }); 2306var compilation1 = CreateEmptyCompilation(source1, parseOptions: parseOptions, options: TestOptions.ReleaseDll, references: new[] { MinCorlibRef }); 2322var compilation2 = CreateEmptyCompilation(source2, parseOptions: parseOptions, options: TestOptions.ReleaseDll, references: new[] { compilation1.EmitToImageReference(), MinCorlibRef }); 2333var compilation3 = CreateEmptyCompilation(source2, parseOptions: parseOptions, options: TestOptions.ReleaseDll, references: new[] { compilation1.ToMetadataReference(), MinCorlibRef }); 2344var compilation4 = CreateEmptyCompilation(source2, parseOptions: parseOptions, options: TestOptions.ReleaseDll, references: new[] { compilation1.EmitToImageReference() }); 2374var compilation5 = CreateEmptyCompilation(source2, parseOptions: parseOptions, options: TestOptions.ReleaseDll, references: new[] { compilation1.ToMetadataReference() }); 2389var compilation6 = CreateEmptyCompilation(source2, parseOptions: parseOptions, options: TestOptions.ReleaseDll, references: new[] { compilation1.EmitToImageReference(), MscorlibRef }); 2419var compilation7 = CreateEmptyCompilation(source2, parseOptions: parseOptions, options: TestOptions.ReleaseDll, references: new[] { compilation1.ToMetadataReference(), MscorlibRef }); 2441var compilation = CompileWithMissingReference(text); 2484var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2511var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2536var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2563var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2610var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2652var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2692var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 }); 2729var comp = CreateCompilation(source, references: new[] { UnmanagedUseSiteError_Ref2 }); 2750var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, references: new[] { UnmanagedUseSiteError_Ref2 });
Semantics\UsingDeclarationTests.cs (4)
385var compilation = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics(); 409var compilation = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics(); 435var compilation = CreateCompilation(source, options: TestOptions.DebugExe).VerifyDiagnostics(); 824var compilation = CreateCompilationWithTasksExtensions(source, options: TestOptions.DebugExe).VerifyDiagnostics();
Semantics\UsingStatementTests.cs (21)
54var compilation = CreateCompilation(source); 813var compilation = CreateCompilation(source).VerifyDiagnostics( 843var compilation = CreateCompilation(source).VerifyDiagnostics( 1079var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.ReleaseExe); 1107var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }); 1138var compilation = CreateCompilationWithTasksExtensions(new[] { source, IAsyncDisposableDefinition }, options: TestOptions.ReleaseExe); 1304var compilation = CreateCompilation(source); 1335var compilation = CreateCompilation(source); 1368var compilation = CreateCompilation(source); 1479var compilation = CreateCompilation(source); 1499var compilation = CreateCompilation(source); 1521var compilation = CreateCompilation(source); 1549var compilation = CreateCompilation(source); 1578var compilation = CreateCompilation(source); 1606var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 1635var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 1663var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 1848var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature("run-nullable-analysis", "never")); 1860private IEnumerable<ILocalSymbol> VerifyDeclaredSymbolForUsingStatements(CSharpCompilation compilation, int index = 1, params string[] variables) 1876private SymbolInfo VerifySymbolInfoForUsingStatements(CSharpCompilation compilation, ISymbol symbol, int index = 1) 1890private ISymbol VerifyLookUpSymbolForUsingStatements(CSharpCompilation compilation, ISymbol symbol, int index = 1)
Semantics\Utf8StringsLiteralsTests.cs (117)
54var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 83var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 111var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 142var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 175var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 199var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 226var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 255var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 283var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 314var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 338var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 362var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 384var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 416var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 487var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 518var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 561var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 635var comp = CreateCompilationWithIL(source, il); 673var comp = CreateCompilation(source); 707var comp = CreateCompilation(source); 740var comp = CreateCompilation(source); 774var comp = CreateCompilation(source); 821var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 873var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 924var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 981var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1037var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1095var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1151var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1205var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1257var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1308var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1366var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1396var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1420var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1453var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1475var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1515var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1536var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1575var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1602var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1623var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1649var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1702var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1755var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1817var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1877var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1916var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 1943var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugExe); 1972var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2002var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2037var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2074var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2102var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2122var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2143var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2169var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2198var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2235var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2276var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2325var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2362var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2399var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2433var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2457var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2482var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2513var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 2540var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2573var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2606var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2639var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2687var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2732var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2780var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2810var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2852var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2890var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2916var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2942var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2967var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 2995var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3023var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3051var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3079var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3107var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3135var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3163var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3191var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3219var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3247var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3275var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3303var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3332var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseDll); 3384var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseDll); 3446var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 3494var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 3536var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 3585var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 3634var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 3684var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 3731var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 3772var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 3794var comp = CreateCompilation(new[] { source + HelpersSource, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll); 3827var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 3853var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 3899var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3945var comp = CreateCompilation(source, options: TestOptions.DebugExe); 3989var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4032var comp = CreateCompilation(source, options: TestOptions.DebugExe); 4061var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 4132var comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 4155var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 4186var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 4225var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 4250var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 4275var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe); 4300var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp);
Semantics\ValueTupleTests.cs (11)
84var comp = CreateCompilation(source); 169var comp = CreateCompilationWithMscorlib40(""); 265var comp = CreateCompilation(source, assemblyName: "comp"); 294var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 330var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 360var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 444var comp = CreateEmptyCompilation(new[] { source, Stubs }); 495var comp = CreateEmptyCompilation(new[] { source, Stubs }); 546var comp = CreateEmptyCompilation(new[] { source, Stubs }); 594var comp = CreateEmptyCompilation(new[] { source, Stubs }); 637var comp = CreateEmptyCompilation(new[] { source, Stubs });
Semantics\VarianceTests.cs (2)
113var comp = CreateCompilation(string.Format(text, i, j)); 226var comp = CreateCompilation(string.Format(text, i, j));
Semantics\WarningVersionTests.cs (9)
131var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 209var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 288var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 382var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 410var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 497var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 584var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 671var comp1 = CreateCompilation(source, options: TestOptions.DebugModule); 701var comp1 = CreateCompilation(source, options: TestOptions.DebugModule);
SourceGeneration\GeneratorDriverTests.cs (15)
1348var compilation = CreateCompilation(source, parseOptions: parseOptions); 4309var compilation = CreateCompilation("class Compilation1{}"); 4355var compilation = CreateCompilation("class Compilation1{}", parseOptions: parseOptions); 4378var compilation = CreateCompilation("class Compilation1{}"); 4406var compilation = CreateCompilation("class Compilation1{}"); 4440var compilation = CreateCompilation("class C{}"); 4463var compilation = CreateCompilation("class Compilation1{}", parseOptions: parseOptions); 4484var compilation = CreateCompilation("class Compilation1{}", parseOptions: parseOptions); 4520var compilation = CreateCompilation("class Compilation1{}", parseOptions: parseOptions); 4537var compilation = CreateCompilation("class Compilation1{}", parseOptions: parseOptions); 4555var compilation = CreateCompilation("class Compilation1{}", parseOptions: parseOptions); 4575var compilation = CreateCompilation("class Compilation1{}", parseOptions: parseOptions); 4593var compilation = CreateCompilation("class Compilation1{}", parseOptions: parseOptions); 4611var compilation = CreateCompilation("class Compilation1{}", parseOptions: parseOptions); 4628var compilation = CreateCompilation("class Compilation1{}", parseOptions: parseOptions);
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.cs (2)
1330var compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions); 1376var compilation = CreateCompilation(source, options: TestOptions.DebugDllThrowing, parseOptions: parseOptions);
SourceGeneration\StateTableTests.cs (2)
1345var c = CSharpCompilation.Create("empty");
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6501)
BadSymbolReference.cs (26)
30var compilation1 = CreateCompilation( 360var compilation2 = CreateCompilation(a_cs, new MetadataReference[] { cl3 }); 460var cl3Compilation = CreateCompilation(cl3Source, new MetadataReference[] { cl2 }); 464var compilation3 = CreateCompilation(a_cs, new MetadataReference[] { new CSharpCompilationReference(cl3Compilation) }); 468var cl3BadCompilation1 = CreateCompilation(cl3Source, new MetadataReference[] { cl3 }); 470var compilation4 = CreateCompilation(a_cs, new MetadataReference[] { new CSharpCompilationReference(cl3BadCompilation1) }); 561var cl3BadCompilation2 = CreateCompilation(cl3Source); 601var compilation5 = CreateCompilation(a_cs, new MetadataReference[] { new CSharpCompilationReference(cl3BadCompilation2) }); 649var compilation6 = CreateCompilation(cl4Source); 749var compilation1 = CreateEmptyCompilation( 798var comp1 = CreateEmptyCompilation(project1Source, new[] { MscorlibRef, libRef }, assemblyName: "Project1"); 801var comp2 = CreateEmptyCompilation(project2Source, new[] { MscorlibRef, libRef }, assemblyName: "Project2"); 806var comp3 = CreateEmptyCompilation(project3Source, new[] { MscorlibRef, comp1.ToMetadataReference(), comp2.ToMetadataReference() }, assemblyName: "Project3"); 815var comp3 = CreateEmptyCompilation(project3Source, new[] { MscorlibRef, comp1.EmitToImageReference(), comp2.EmitToImageReference() }, assemblyName: "Project3"); 826var lib1 = CreateCompilation(@" 844var lib2 = CreateCompilation(@" 854var lib3 = CreateCompilation(@" 935var lib4 = CreateCompilation(lib4Def, new[] { lib1Ref, lib3Ref }, TestOptions.ReleaseDll); 1018var lib1 = CreateCompilation(@" 1033var lib2 = CreateCompilation(@" 1055var lib3 = CreateCompilation(@" 1155var lib4 = CreateCompilation(lib4Def, new[] { lib1Ref, lib3Ref }, TestOptions.ReleaseDll); 1303var lib1 = CreateCompilation(@" 1318var lib2 = CreateCompilation(@" 1327var lib3 = CreateCompilation(@" 1377var lib4 = CreateCompilation(lib4Def, new[] { lib1Ref, lib3Ref }, TestOptions.ReleaseDll);
Compilation\CompilationAPITests.cs (312)
73var comp = CreateCompilation(tree, options: options); 92var comp = CreateCompilation(tree); 120var comp = CreateCompilation(tree); 141var comp = CreateCompilation(tree, options: options); 151var comp2 = CreateCompilation(tree, options: options); 174var comp = CreateCompilation(new[] { tree, newTree }, options: options); 241var comp = CSharpCompilation.Create("test", options: options); 276CSharpCompilation.Create(@"C:/goo/Test.exe").VerifyEmitDiagnostics( 284CSharpCompilation.Create(@"C:\goo\Test.exe").GetDeclarationDiagnostics().Verify( 289CSharpCompilation.Create(@"\goo/Test.exe", options: compilationOptions).VerifyEmitDiagnostics( 293CSharpCompilation.Create(@"C:Test.exe", options: compilationOptions).VerifyEmitDiagnostics( 297CSharpCompilation.Create(@"Te\0st.exe", options: compilationOptions).VerifyEmitDiagnostics( 301CSharpCompilation.Create(@" \t ", options: compilationOptions).VerifyEmitDiagnostics( 305CSharpCompilation.Create(@"\uD800", options: compilationOptions).VerifyEmitDiagnostics( 309CSharpCompilation.Create(@"", options: compilationOptions).VerifyEmitDiagnostics( 313CSharpCompilation.Create(@" a", options: compilationOptions).VerifyEmitDiagnostics( 317CSharpCompilation.Create(@"\u2000a", options: compilationOptions).VerifyEmitDiagnostics( // U+20700 is whitespace 321CSharpCompilation.Create("..\\..\\RelativePath", options: compilationOptions).VerifyEmitDiagnostics( 327CSharpCompilation.Create(@";,*?<>#!@&", options: compilationOptions).VerifyEmitDiagnostics(); 328CSharpCompilation.Create("goo", options: compilationOptions).VerifyEmitDiagnostics(); 329CSharpCompilation.Create(".goo", options: compilationOptions).VerifyEmitDiagnostics(); 330CSharpCompilation.Create("goo ", options: compilationOptions).VerifyEmitDiagnostics(); // can end with whitespace 331CSharpCompilation.Create("....", options: compilationOptions).VerifyEmitDiagnostics(); 332CSharpCompilation.Create(null, options: compilationOptions).VerifyEmitDiagnostics(); 360var comp = CSharpCompilation.Create("Compilation", listSyntaxTree, listRef, ops); 375comp = CSharpCompilation.Create(asmname, listSyntaxTree, listRef, ops); 376var comp1 = CSharpCompilation.Create(asmname, listSyntaxTree, listRef, null); 385var c = CSharpCompilation.Create("a", 396var c = CreateCompilation("class C {}"); 444var comp = CSharpCompilation.Create("Compilation", options: TestOptions.ReleaseDll); 489var comp = CSharpCompilation.Create("Compilation", options: TestOptions.DebugExe); 519var compCollection = CSharpCompilation.Create("Compilation", references: hs, options: opt); 527compCollection = CSharpCompilation.Create("Compilation", references: col, options: opt); 538compCollection = CSharpCompilation.Create("Compilation", references: stack, options: opt); 549compCollection = CSharpCompilation.Create("Compilation", references: queue, options: opt); 589var c = CreateCompilationWithMscorlib461(new[] { t1, t2 }, options: TestOptions.ReleaseDll.WithMetadataReferenceResolver( 612var refcomp = CSharpCompilation.Create("DLL", 620var comp = CSharpCompilation.Create("APP", 631comp = CSharpCompilation.Create("APP1", 644comp = CSharpCompilation.Create("APP2", 680var refcomp = CSharpCompilation.Create("DLL", 688var comp = CSharpCompilation.Create("APP", 699comp = CSharpCompilation.Create("APP1", 712comp = CSharpCompilation.Create("APP2", 791var comp = CSharpCompilation.Create("Compilation", syntaxTrees: new[] { SyntaxFactory.ParseSyntaxTree(s1) }, options: TestOptions.ReleaseDll); 846var compCollection = CSharpCompilation.Create("Compilation", syntaxTrees: hs); 854compCollection = CSharpCompilation.Create("Compilation", syntaxTrees: col); 865compCollection = CSharpCompilation.Create("Compilation", syntaxTrees: stack); 876compCollection = CSharpCompilation.Create("Compilation", syntaxTrees: queue); 914Assert.Throws<ArgumentException>(() => CSharpCompilation.Create("Compilation", new SyntaxTree[] { withExpressionRootTree })); 938CSharpCompilation comp = CSharpCompilation.Create(options: TestOptions.ReleaseDll, assemblyName: "Compilation", references: null, syntaxTrees: null); 964CSharpCompilation comp1 = CSharpCompilation.Create(assemblyName: "Compilation", syntaxTrees: null, options: TestOptions.ReleaseDll, references: null); 980var netModule1 = CreateCompilation( 986var netModule2 = CreateCompilation( 1000var assembly = CreateCompilation( 1036var netModule1 = CreateCompilation( 1042var netModule2 = CreateCompilation( 1056var netModule3 = CreateCompilation( 1070var assembly = CreateCompilation( 1091var netModule1 = CreateCompilation( 1106var assembly = CreateCompilation( 1125var netModule1 = CreateCompilation( 1131var netModule2 = CreateCompilation( 1145var assembly = CreateCompilation( 1164var comp = CSharpCompilation.Create("Compilation"); 1177var comp1 = CSharpCompilation.Create("Test1", new[] { SyntaxFactory.ParseSyntaxTree(text1) }); 1178var comp2 = CSharpCompilation.Create("Test2", new[] { SyntaxFactory.ParseSyntaxTree(text1) }); 1189comp = CSharpCompilation.Create( 1321var comp = CSharpCompilation.Create("Compilation"); 1341Assert.Throws<ArgumentNullException>(() => CSharpCompilation.Create("goo", syntaxTrees: new SyntaxTree[] { null })); 1342Assert.Throws<ArgumentNullException>(() => CSharpCompilation.Create("goo", references: new MetadataReference[] { null })); 1350var comp = CSharpCompilation.Create("Compilation"); 1378var comp = CSharpCompilation.Create("Compilation"); 1414var comp = CSharpCompilation.Create("Compilation"); 1436var comp = CSharpCompilation.Create("Compilation"); 1452var comp = CSharpCompilation.Create("Compilation"); 1474var comp = CSharpCompilation.Create("Compilation"); 1498var comp = CSharpCompilation.Create("Compilation"); 1507var comp = CSharpCompilation.Create("Compilation"); 1540var comp = CSharpCompilation.Create("API"); 1554var comp = CSharpCompilation.Create("Compilation"); 1563var comp = CSharpCompilation.Create("Compilation"); 1580var compP = comp.AddSyntaxTrees(syntaxTree); 1636var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe); 1657var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1661Assert.Same(CSharpCompilation.EntryPoint.None, compilation.GetEntryPointAndDiagnostics(default(CancellationToken))); 1673var compilation = CreateCompilation(source, options: TestOptions.ReleaseModule); 1677Assert.Same(CSharpCompilation.EntryPoint.None, compilation.GetEntryPointAndDiagnostics(default(CancellationToken))); 1690var compilation = CSharpCompilation.Create(assemblyName: null, options: TestOptions.ReleaseModule, syntaxTrees: new[] { Parse(source) }, references: new[] { MscorlibRef }); 1698compilation = CSharpCompilation.Create(assemblyName: null, options: TestOptions.ReleaseDll, syntaxTrees: new[] { Parse(source) }, references: new[] { MscorlibRef }); 1706compilation = CSharpCompilation.Create(assemblyName: "ModuleAssemblyName", options: TestOptions.ReleaseModule, syntaxTrees: new[] { Parse(source) }, references: new[] { MscorlibRef }); 1726void AssertCompilationCorlib(CSharpCompilation compilation) 1739var firstCompilation = CSharpCompilation.CreateScriptCompilation( 1747var secondCompilation = CSharpCompilation.CreateScriptCompilation( 1768var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Script); 1789var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script); 1810var compilation = CSharpCompilation.CreateScriptCompilation("sub", 1834var compilation = CSharpCompilation.CreateScriptCompilation("sub", 1869var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName("B")); 1884var comp = CSharpCompilation.Create("Compilation"); 1902var comp = CreateEmptyCompilation(text, references: new[] { MscorlibRef, alias }); 1937var compilation = CreateCompilation(source: new string[] { source1, source2 }); 1951var compilation = CreateCompilation(source: new string[] { source1, source2 }); 1967var c1 = CSharpCompilation.Create("c", options: TestOptions.ReleaseDll); 1969var c2 = c1.WithOptions(TestOptions.ReleaseExe); 1981c1 = CSharpCompilation.Create("c", options: TestOptions.ReleaseModule); 1999var c1 = CSharpCompilation.Create("c", options: TestOptions.ReleaseDll); 2005var c3 = c1.WithOptions(TestOptions.ReleaseDll.WithMetadataReferenceResolver(c1.Options.MetadataReferenceResolver)); 2012var c1 = CSharpCompilation.Create("c", options: TestOptions.ReleaseDll); 2014var c2 = c1.WithOptions(TestOptions.ReleaseDll.WithXmlReferenceResolver(new XmlFileResolver(null))); 2017var c3 = c1.WithOptions(TestOptions.ReleaseDll.WithXmlReferenceResolver(c1.Options.XmlReferenceResolver)); 2024var c1 = CSharpCompilation.Create("c1"); 2026var c2 = c1.WithAssemblyName("c2"); 2029var c3 = c1.WithAssemblyName("c1"); 2032var c4 = c1.WithAssemblyName(null); 2035var c5 = c4.WithAssemblyName(null); 2042var c1 = CSharpCompilation.Create("c1"); 2044var c2 = c1.WithReferences(new[] { MscorlibRef }); 2047var c3 = c2.WithReferences(new[] { MscorlibRef, SystemCoreRef }); 2083var a = CSharpCompilation.Create("c", syntaxTrees: new[] { ta }); 2087var ab = a.AddSyntaxTrees(tb); 2090var ac = a.AddSyntaxTrees(tc); 2093var ar = a.AddSyntaxTrees(tr); 2096var arc = ar.AddSyntaxTrees(tc); 2101var ar2 = arc.RemoveSyntaxTrees(tc); 2104var c = arc.RemoveSyntaxTrees(ta, tr); 2107var none1 = c.RemoveSyntaxTrees(tc); 2110var none2 = arc.RemoveAllSyntaxTrees(); 2113var none3 = ac.RemoveAllSyntaxTrees(); 2118var asc = arc.ReplaceSyntaxTree(tr, ts); 2121var brc = arc.ReplaceSyntaxTree(ta, tb); 2124var abc = arc.ReplaceSyntaxTree(tr, tb); 2127var ars = arc.ReplaceSyntaxTree(tc, ts); 2136var c1 = CSharpCompilation.CreateScriptCompilation("c1"); 2140var c2 = c1.WithScriptCompilationInfo(null); 2144var c3 = c2.WithScriptCompilationInfo(new CSharpScriptCompilationInfo(previousCompilationOpt: null, returnType: typeof(int), globalsType: null)); 2149var c4 = c3.WithScriptCompilationInfo(null); 2153var c5 = c4.WithScriptCompilationInfo(new CSharpScriptCompilationInfo(previousCompilationOpt: c1, returnType: typeof(int), globalsType: null)); 2156var c6 = c5.WithScriptCompilationInfo(new CSharpScriptCompilationInfo(previousCompilationOpt: c1, returnType: typeof(bool), globalsType: null)); 2159var c7 = c6.WithScriptCompilationInfo(new CSharpScriptCompilationInfo(previousCompilationOpt: c2, returnType: typeof(bool), globalsType: null)); 2162var c8 = c7.WithScriptCompilationInfo(new CSharpScriptCompilationInfo(previousCompilationOpt: null, returnType: typeof(bool), globalsType: null)); 2165var c9 = c8.WithScriptCompilationInfo(null); 2206var c1 = CreateEmptyCompilation("public class Main { public static C C; }", new[] { MscorlibRef, reference, reference }); 2207var c2 = c1.WithAssemblyName("c2"); 2208var c3 = c2.AddSyntaxTrees(Parse("public class Main2 { public static int a; }")); 2209var c4 = c3.WithOptions(TestOptions.DebugModule); 2210var c5 = c4.WithReferences(new[] { MscorlibRef, reference }); 2237var c = CSharpCompilation.Create("Goo", references: new[] { MscorlibRef, mdModule.GetReference(display: "ModuleCS00") }, options: TestOptions.ReleaseDll); 2255var compilation = CreateEmptyCompilation( 2291var libComp = CreateEmptyCompilation( 2312var c1 = CreateEmptyCompilation( 2337var c2 = CreateEmptyCompilation( 2349var comp = CSharpCompilation.Create("Compilation"); 2356var comp2 = CSharpCompilation.Create("Compilation"); 2366var comp = CreateCompilation(""); 2385CSharpCompilation.Create(assemblyName, new[] { tree1, tree2 }, new[] { MscorlibRef }, compilationOptions); 2388CSharpCompilation.Create(assemblyName, new[] { tree1, tree3 }, new[] { MscorlibRef }, compilationOptions); 2400Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", returnType: genericParameter)); 2401Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", returnType: open)); 2402Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", returnType: typeof(void))); 2403Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", returnType: byref)); 2405Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", globalsType: genericParameter)); 2406Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", globalsType: open)); 2407Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", globalsType: typeof(void))); 2408Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", globalsType: typeof(int))); 2409Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", globalsType: ptr)); 2410Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", globalsType: byref)); 2412var s0 = CSharpCompilation.CreateScriptCompilation("a0", globalsType: typeof(List<int>)); 2413Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a1", previousScriptCompilation: s0, globalsType: typeof(List<bool>))); 2416Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseExe)); 2417Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule))); 2418Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.WindowsRuntimeMetadata))); 2419Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.WindowsRuntimeApplication))); 2420Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.WindowsApplication))); 2421Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.WithCryptoKeyContainer("goo"))); 2422Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.WithCryptoKeyFile("goo.snk"))); 2423Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.WithDelaySign(true))); 2424Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.WithDelaySign(false))); 2430Assert.False(CSharpCompilation.CreateScriptCompilation("sub").HasSubmissionResult()); 2448var s0 = CreateSubmission("int a = \"x\";"); 2460var comp = (Compilation)CSharpCompilation.Create(""); 2489var comp = (Compilation)CSharpCompilation.Create(""); 2507var compilation = CSharpCompilation.Create("HelloWorld"); 2517var compilation = (Compilation)CSharpCompilation.Create("HelloWorld"); 2529var compilation = (Compilation)CSharpCompilation.Create("HelloWorld"); 2541var compilation = (Compilation)CSharpCompilation.Create("HelloWorld"); 2553var compilation = (Compilation)CSharpCompilation.Create("HelloWorld"); 2565var compilation = CSharpCompilation.Create("HelloWorld"); 2575var compilation = CSharpCompilation.Create("HelloWorld"); 2585var compilation = CSharpCompilation.Create("HelloWorld"); 2595var compilation = (Compilation)CSharpCompilation.Create("HelloWorld"); 2605var compilation = (Compilation)CSharpCompilation.Create("HelloWorld"); 2620var compilation = (Compilation)CSharpCompilation.Create("HelloWorld"); 2641var compilation = (Compilation)CSharpCompilation.Create("HelloWorld"); 2657var comp = (Compilation)CSharpCompilation.Create(""); 2687var comp = (Compilation)CSharpCompilation.Create(""); 2697var comp = (Compilation)CSharpCompilation.Create(""); 2741var compilation = CreateCompilation(""); 2758var compilation = CreateCompilation(""); 2769var compilation = CreateCompilation(""); 2778var compilation = CreateCompilation("", references: Array.Empty<MetadataReference>(), targetFramework: TargetFramework.Empty); 2788var compilation = CreateCompilation(""); 2816var compilation = CreateCompilation(""); 2829var compilation = CreateCompilation(@" 2861var compilation = CreateCompilation(@" 2896var compilation = CreateCompilation(@" 2937var compilation = CreateCompilation(""); 2949var compilation = CreateCompilation(""); 2959var compilation = CreateCompilation(""); 2968var compilation = CreateCompilation("", references: Array.Empty<MetadataReference>(), targetFramework: TargetFramework.Empty); 2978var compilation = CreateCompilation(""); 3014var compilation = CreateCompilation(""); 3094var module = CreateCompilation(string.Empty, options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule)); 3103var comp = CreateCompilation(string.Empty, references: new[] { moduleReference }); 3113var module = CreateCompilation(string.Empty); 3122var comp = CreateCompilation(string.Empty, references: new[] { moduleReference }); 3134var module = CreateCompilation(string.Empty, options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule)); 3143var comp = CreateCompilation(string.Empty, references: new[] { moduleReference }); 3155var script = CreateSubmission("return null;", returnType: typeof(object)); 3163var script = CreateSubmission("return \"¡Hola!\";", returnType: typeof(object)); 3171var script = CreateSubmission("return 42;", returnType: typeof(object)); 3179var script = CreateSubmission("return", returnType: typeof(object)); 3193var script = CreateSubmission("return 42;", returnType: typeof(int)); 3202var script = CreateSubmission("return 42;", returnType: null); 3210var script = CreateSubmission("return 42", returnType: typeof(uint)); 3221var script = CreateSubmission("return await System.Threading.Tasks.Task.FromResult(42);", returnType: typeof(int)); 3236var script = CreateSubmission("return System.Threading.Tasks.Task.FromResult(42);", returnType: typeof(int)); 3247var script = CreateSubmission(@" 3264var script = CreateSubmission(@" 3292var script = CreateSubmission(@" 3306var script = CreateSubmission(@" 3327var script = CreateSubmission(@" 3346var script = CreateSubmission(@" 3361var script = CreateSubmission(@" 3377var script = CreateSubmission(@" 3387var compilation = CreateCompilationWithMscorlib461(@" 3404var comp = CreateCompilation(""); 3417var referenceComp = CreateCompilation(""); 3419var comp = CreateCompilation( 3437var referenceComp = CreateCompilation(""); 3439var comp = CreateCompilation( 3466var referenceComp = CreateCompilation(source); 3471var comp = CreateCompilation(source, new[] { reference }); 3494var referenceComp = CreateCompilation(source); 3499var comp = CreateCompilation("", new[] { reference }); 3520var referenceComp1 = CreateCompilation(source); 3523var referenceComp2 = CreateCompilation(source); 3528var comp = CreateCompilation("", new[] { reference1, reference2 }); 3543MetadataReference getReference(CSharpCompilation referenceComp1) 3558var referenceComp1 = CreateCompilation(source); 3561var referenceComp2 = CreateCompilation(source); 3566var comp = CreateCompilation(source, new[] { reference1, reference2 }); 3583MetadataReference getReference(CSharpCompilation referenceComp1) 3603var corlib = CreateEmptyCompilation(corlibSource, parseOptions: parseOptions); 3606var other = CreateEmptyCompilation(@"public class C {}", new[] { corlibReference }, parseOptions: parseOptions); 3609var current = CreateEmptyCompilation(@"public class C {}", new[] { otherReference, corlibReference }); 3638var corlib = CreateEmptyCompilation(corlibSource, parseOptions: parseOptions); 3641var current = CreateEmptyCompilation(@"", new[] { corlibReference }, parseOptions: parseOptions); 3663var corlib = CreateEmptyCompilation(corlibSource, parseOptions: parseOptions); 3666var other = CreateEmptyCompilation(@"public class C {}", new[] { corlibReference }, parseOptions: parseOptions); 3669var current = CreateEmptyCompilation(@"", new[] { otherReference, corlibReference });
Compilation\GetImportScopesTests.cs (15)
22var comp = CreateCompilation(tree); 397private static CSharpCompilation CreateCompilationWithExternAlias(CSharpTestSource source, params string[] aliases) 402var comp = CreateCompilation(source); 413var comp = CreateCompilationWithExternAlias(tree); 432var comp = CreateCompilationWithExternAlias(tree); 454var comp = CreateCompilationWithExternAlias(tree); 475var comp = CreateCompilationWithExternAlias(tree); 495var comp = CreateCompilationWithExternAlias(tree); 511var comp = CreateCompilationWithExternAlias(tree); 531var comp = CreateCompilationWithExternAlias(tree, "CORE1", "CORE2"); 562var comp = CreateCompilationWithExternAlias(tree, "CORE1", "CORE2"); 587var comp = CreateCompilationWithExternAlias(tree, "CORE1", "CORE2"); 613var comp = CreateCompilationWithExternAlias(new[] { tree, Parse(globalImportsText) }); 642var comp = CreateCompilationWithExternAlias(new[] { tree, Parse(globalImportsText) }); 675var comp = CreateCompilationWithExternAlias(new[] { tree, Parse(globalImportsText) });
Compilation\GetSemanticInfoBrokenCodeTests.cs (16)
29var comp = CreateCompilation(tree); 48var comp = CreateCompilation(tree); 71var comp = CreateCompilation(tree); 94var comp = CreateCompilation(tree); 107var comp = CreateCompilation(tree); 132var comp = CreateCompilation(tree); 159var comp = CreateCompilation(tree); 176var comp = CreateCompilation(tree); 196var comp = CreateCompilation(source); 220var comp = CreateCompilation(source); 263var comp = CreateCompilation(source); 296var comp = CreateCompilation(source); 315var comp = CreateEmptyCompilation(new[] { tree }); 330var comp = CreateEmptyCompilation(new[] { tree }); 345var comp = CreateEmptyCompilation(new[] { tree }); 360var comp = CreateCompilation(tree);
Compilation\GetSemanticInfoTests.cs (98)
40var comp = CreateCompilation(tree); 70var comp = CreateCompilation(tree); 99var comp = CreateCompilation(tree); 133var comp = CreateCompilation(tree); 162var comp = CreateCompilation(tree); 188var comp = CreateCompilation(tree); 239var comp = CreateCompilation(tree); 292var comp = CreateCompilation(tree); 413var comp = CreateCompilation(tree); 440var comp = CreateCompilation(tree); 474var comp = CreateCompilation(tree); 527var comp = CreateCompilation(tree); 594var comp = CreateCompilation(tree); 627var comp = CreateCompilation(tree); 963var compilation = CreateCompilation(@" 987var compilation = CreateCompilation(@" 1043var compilation = CreateCompilation(code); 1130var comp = CreateCompilation(tree); 1161var comp = CreateCompilation(tree); 1190var comp = CreateCompilation(tree); 1214var comp = CreateCompilation(tree); 1237var comp = CreateCompilation(tree); 1373var comp = CreateCompilation(tree); 1383private static INamedTypeSymbol GetSystemActionType(CSharpCompilation comp) 1409var comp = CreateCompilation(tree); 1447var comp = CreateCompilation(tree); 1485var comp = CreateCompilation(tree); 1521var comp = CreateCompilation(tree); 1552var comp = CreateCompilation(tree); 1574var comp = CreateCompilation(tree); 1627var comp = CreateCompilation(tree); 1666var comp = CreateCompilation(tree); 1698var comp = CreateCompilation(tree); 1733var comp = CreateCompilation(tree); 1768var comp = CreateCompilation(tree); 1804var comp = CreateCompilation(tree); 1840var comp = CreateCompilation(tree); 1881var comp = CreateCompilation(tree); 1910var comp = CreateCompilation(tree); 1946var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { tree }); 1982var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { tree }); 2018var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { tree }); 2053var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { tree }); 2279var comp = CreateCompilation(text); 2317var comp = CreateCompilation(tree); 2353var comp = CreateCompilation(tree); 2389var comp = CreateCompilation(tree); 2448var comp = CreateCompilation(tree); 2475var comp = CreateCompilation(text); 2505var comp = CreateCompilation(tree); 2534var comp = CreateCompilation(tree); 2561var compilation = CreateCompilation(source); 2864var comp = CreateCompilation(tree); 2957var comp = CreateCompilation(tree); 3049var comp = CreateCompilation(tree); 3123var comp = CreateCompilation(tree); 3197var comp = CreateCompilation(tree); 3270var comp = CreateCompilation(tree); 3458var compilation = CreateCompilation(source); 3514var compilation = CreateCompilation(source); 3547var compilation = CreateCompilation(source); 3575var compilation = CreateCompilation(source); 3602var compilation = CreateCompilation(source); 3627var compilation = CreateCompilation(source); 3660var compilation = CreateCompilation(source); 3696var compilation = CreateCompilation(source); 3753var compilation = CreateCompilation(text); 3814var compilation = CreateCompilation(text); 3868var compilation = CreateCompilation(text); 3948var compilation = CreateCompilation(source2, new[] { reference1 }, assemblyName: "SpeculativelyBindPropertyGroup"); 3994var compilation = CreateCompilation(source2, new[] { reference1 }, assemblyName: "SpeculativelyBindPropertyGroup"); 4102var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 4157var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 4207var compilation = CreateCompilation(text); 4237var compilation = CreateCompilation(text); 4267var compilation = CreateCompilation(text); 4288var compilation = CreateCompilation(text); 4318var compilation = CreateCompilation(text); 4346var compilation = CreateCompilation(text); 4372var compilation = CreateCompilation(text); 4396var compilation = CreateCompilation(text); 4580var compilation = CreateCompilation(text); 4634var compilation = CreateCompilation(text); 4748var comp = CreateCompilation(source); 4781var comp = CreateCompilation(source); 4824var comp = CreateCompilation(source); 4868var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 4905var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 5466var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 5780var comp = CreateCompilation(new[] { tree1, tree2 }); 5819var comp = CreateCompilation(new[] { tree1, tree2, tree3 }); 5863var comp = CreateCompilation(new[] { tree1, tree2, tree3 }); 5892var comp = CreateCompilation(source); 5910var comp = CreateCompilation(source); 5923var comp = CreateCompilation(source); 5983var comp = CreateCompilation(source); 6007var compilation = CreateCompilation(text); 6033var comp = CreateCompilation(source);
Compilation\GetUnusedImportDirectivesTests.cs (20)
33var comp = CreateCompilation(tree); 58var classLib1 = CreateCompilation(source: class1Source, assemblyName: "ClassLibrary1"); 73var classLib2 = CreateCompilation(source: class2Source, assemblyName: "ClassLibrary2", references: new[] { classLib1.ToMetadataReference() }); 90var comp = CreateCompilation(tree, new[] { classLib1.ToMetadataReference(), classLib2.ToMetadataReference() }, assemblyName: "ConsoleApplication"); 122var comp = CreateEmptyCompilation(text, new[] { MscorlibRef }); 173var comp = CreateCompilation(tree); 191var comp = CreateCompilation(tree); 221var ivtCompilation = CreateCompilation( 242var libCompilation = CreateCompilation( 281var comp = CreateCompilation(source); 317var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(0)); 346var lib = CreateEmptyCompilation("", assemblyName: "lib"); 347var comp = CreateCompilation(source, new[] { new CSharpCompilationReference(lib, aliases: ImmutableArray.Create("A")) }); 379var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Error)); 390var comp = CSharpCompilation.CreateScriptCompilation("sub1", tree, new[] { MscorlibRef_v4_0_30316_17626 }); 399var comp = CreateCompilationWithMscorlib461(new[] { tree }); 422var comp = CreateCompilation(new[] { source1, source2 }); 450var comp = CreateCompilation(new[] { source1, source2 }); 487var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithDocumentationMode(documentationMode));
Compilation\IndexedProperties_BindingTests.cs (1)
136var comp = CreateCompilation(tree, new[] { reference });
Compilation\LoadDirectiveTests.cs (7)
22var compilation = CreateCompilationWithMscorlib461(code, options: options, parseOptions: TestOptions.Script); 35var compilation = CreateCompilationWithMscorlib461(code, options: options, parseOptions: TestOptions.Script); 54var compilation = CreateCompilationWithMscorlib461(code, options: options, parseOptions: TestOptions.Script); 79var compilation = CreateCompilationWithMscorlib461(code, sourceFileName: "external1.csx", options: options, parseOptions: TestOptions.Script); 129var compilation = CreateCompilationWithMscorlib461(code, parseOptions: TestOptions.Script); 145var compilation = CreateCompilationWithMscorlib461(code, parseOptions: TestOptions.Script); 157var compilation = CreateCompilationWithMscorlib461(code, options: options, parseOptions: TestOptions.Script);
Compilation\ReferenceManagerTests.cs (156)
32var ifaceDef = CreateCompilation( 43var implDef2 = CreateCompilation( 66var refV1 = CreateCompilation("public class D : C { }", new[] { v1 }, assemblyName: "refV1"); 67var refV2 = CreateCompilation("public class D : C { }", new[] { v2 }, assemblyName: "refV2"); 70var testRefV1 = CreateCompilation("public class E : D { }", new MetadataReference[] { new CSharpCompilationReference(refV1), v2 }, assemblyName: "testRefV1"); 73var testRefV2 = CreateCompilation("public class E : D { }", new MetadataReference[] { new CSharpCompilationReference(refV2), v1 }, assemblyName: "testRefV2"); 108var refV1 = CreateCompilation("public class D : C { }", new[] { v1 }); 109var refV2 = CreateCompilation("public class D : C { }", new[] { v2 }); 112var testRefV1 = CreateCompilation("public class E { }", new MetadataReference[] { new CSharpCompilationReference(refV1), v2 }); 115var testRefV2 = CreateCompilation("public class E { }", new MetadataReference[] { new CSharpCompilationReference(refV2), v1 }); 129var libV1 = CreateCompilation( 139var libV2 = CreateCompilation( 149var libV3 = CreateCompilation( 162var refLibV2 = CreateCompilation( 180var main13 = CreateCompilation( 200var main31 = CreateCompilation( 233var libV1 = CreateCompilation( 245var libV2 = CreateCompilation( 294var refLibV1 = CreateCompilation( 307var x = CreateCompilation( 343var main = CreateCompilation( 402var a1 = CreateCompilation( 412var a2 = CreateCompilation( 422var b1 = CreateCompilation( 432var b2 = CreateCompilation( 449var refA1B2 = CreateCompilation( 466var main = CreateCompilation( 516var libV1 = CreateEmptyCompilation( 540var libV2 = CreateEmptyCompilation( 556var refLibV1 = CreateEmptyCompilation( 570var main = CreateEmptyCompilation( 590var libV1 = CreateCompilation( 601var libV2 = CreateCompilation( 614var refLibV1 = CreateCompilation( 629var main = CreateCompilation( 655var libV1 = CreateCompilation( 665var libV2 = CreateCompilation( 686var refLibV1 = CreateCompilation( 704var main = CreateCompilation( 745var compilation = CreateEmptyCompilation(tree, new[] { MscorlibRef, r1, r2_SysCore }, TestOptions.DebugExe, assemblyName: "Test"); 753CSharpCompilation c; 829CSharpCompilation createCompilationCore(string s, IEnumerable<MetadataReference> references) 861var compilation = CSharpCompilation.Create("goo", 930var compilation = CSharpCompilation.Create("goo", options: TestOptions.ReleaseDll, 962var c = CreateEmptyCompilation("class C {}", TargetFrameworkUtil.StandardReferences.AddRange(new[] { ref1, ref2 })); 978var lib1 = CreateCompilation(sourceLib, options: s_signedDll, assemblyName: "Lib"); 979var lib2 = CreateCompilation(sourceLib, options: s_signedDll, assemblyName: "Lib"); 984var c = CreateEmptyCompilation("class C {}", TargetFrameworkUtil.StandardReferences.AddRange(new[] { ref1, ref2 })); 999var compilation = CSharpCompilation.Create("goo", references: new[] { r1, r2 }); 1017var comp = CSharpCompilation.Create( 1091var libV1 = CreateCompilation(sourceLibV1, assemblyName: "Lib"); 1092var libV2 = CreateCompilation(sourceLibV2, assemblyName: "Lib"); 1094var refLibV1 = CreateCompilation(sourceRefLibV1, 1098var main = CreateCompilation(sourceMain, 1132var main = CreateEmptyCompilation(sourceMain, 1167var main = CreateCompilation(sourceMain, 1197var main = CreateEmptyCompilation(sourceMain, 1225var compilation = CreateEmptyCompilation(source, TargetFrameworkUtil.StandardReferences.AddRange(new[] { arSA, enUS })); 1274var c1 = CSharpCompilation.Create("c1", 1326var c = CSharpCompilation.Create("c", syntaxTrees: new[] { tree }, options: options); 1334var c1 = CSharpCompilation.Create("goo", 1340var c2 = c1.AddSyntaxTrees(Parse("class D { }")); 1361var c = CreateCompilationWithMscorlib461(new[] { t1, t2 }, options: TestOptions.ReleaseDll.WithMetadataReferenceResolver( 1387var a = CreateCompilation(sourceA, assemblyName: "A"); 1393var b = CreateCompilation(sourceB, new[] { new CSharpCompilationReference(a) }, assemblyName: "B"); 1403var a2 = CreateCompilation(sourceA2, new[] { refB }, assemblyName: "A"); 1409var c = CreateCompilation("class C : A {}", new[] { refA2, refB }, assemblyName: "C"); 1417var b2 = CreateCompilation(@" 1439var a = CreateCompilation("public class A { }", assemblyName: "A"); 1440var b = CreateCompilation("public class B : A { } ", new[] { new CSharpCompilationReference(a) }, assemblyName: "B"); 1444var a2 = CreateCompilation(@"public class A { B B; }", new[] { refB }, assemblyName: "A"); 1447var withCircularReference1 = CreateCompilation(@"public class B : A { }", new[] { refA2 }, assemblyName: "B"); 1448var withCircularReference2 = withCircularReference1.WithOptions(TestOptions.ReleaseDll); 1549var comp = CreateCompilation(csharp, new[] { ilRef }, assemblyName: "ReachFramework"); 1648var comp = CreateCompilation(newVersion + csharp, new[] { ilRef, oldRef }, assemblyName: "ReachFramework"); 1706var b = CreateCompilation(srcB, references: new[] { aRef }, options: TestOptions.ReleaseModule.WithModuleName("mod.netmodule"), assemblyName: "B"); 1732var lib = CreateCompilation(libSource, assemblyName: "lib"); 1734var main = CreateCompilation(mainSource, new[] { refLib }, assemblyName: "main"); 1766var comp1 = CreateCompilation(text1, new MetadataReference[] 1784var comp2 = comp1.ReplaceSyntaxTree(tree1, tree2); 1817var comp1 = CreateCompilation(text1, new MetadataReference[] 1827var comp2 = comp1.ReplaceSyntaxTree(tree1, tree2); 1836var cPublic = CreateCompilation("class C { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Public)); 1837var cInternal = CreateCompilation("class D { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 1838var cAll = CreateCompilation("class E { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1840var cPublic2 = CreateCompilation("class C { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Public)); 1841var cInternal2 = CreateCompilation("class D { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 1842var cAll2 = CreateCompilation("class E { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1864var module = CreateCompilation(moduleSource, options: TestOptions.ReleaseModule); 1868var mainAll = CreateCompilation(mainSource, new[] { moduleRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1873var mainInternal = CreateCompilation(mainSource, new[] { moduleRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 1878var mainPublic = CreateCompilation(mainSource, new[] { moduleRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Public)); 1888var pl = CreateEmptyCompilation(plSource, new[] { MscorlibPP7Ref, SystemRuntimePP7Ref }); 1894var main = CreateEmptyCompilation(mainSource, new MetadataReference[] { r1, MscorlibFacadeRef }, options: TestOptions.ReleaseDll); 1913var libBv1 = CreateCompilation(string.Format(libBTemplate, "1"), assemblyName: "B", options: s_signedDll); 1914var libBv2 = CreateCompilation(string.Format(libBTemplate, "2"), assemblyName: "B", options: s_signedDll); 1925var libAv1 = CreateCompilation( 1942var comp = CreateCompilation(source, new[] { new CSharpCompilationReference(libAv1), new CSharpCompilationReference(libBv2) }); 1957var libBv1 = CreateCompilation(string.Format(libBTemplate, "1"), assemblyName: "B", options: s_signedDll); 1958var libBv2 = CreateCompilation(string.Format(libBTemplate, "2"), assemblyName: "B", options: s_signedDll); 1969var libAv1 = CreateCompilation( 1986var comp = CreateCompilation(source, new[] { new CSharpCompilationReference(libAv1), new CSharpCompilationReference(libBv2) }); 2001var libBv1 = CreateCompilation(string.Format(libBTemplate, "1"), assemblyName: "B", options: s_signedDll); 2002var libBv2 = CreateCompilation(string.Format(libBTemplate, "2"), assemblyName: "B", options: s_signedDll); 2013var libAv1 = CreateCompilation(libASource, new[] { new CSharpCompilationReference(libBv1) }, assemblyName: "A", options: s_signedDll); 2026var comp = CreateCompilation(source, new[] { new CSharpCompilationReference(libAv1), new CSharpCompilationReference(libBv2) }); 2060var libBv1 = CreateCompilationWithMscorlib40AndSystemCore(string.Format(libBTemplate, "1"), assemblyName: "B", options: s_signedDll); 2061var libBv2 = CreateCompilationWithMscorlib40AndSystemCore(string.Format(libBTemplate, "2"), assemblyName: "B", options: s_signedDll); 2087var libAv1 = CreateCompilation(libASource, new[] { new CSharpCompilationReference(libBv1) }, assemblyName: "A", options: s_signedDll); 2101var comp = CreateCompilation(source, new[] { new CSharpCompilationReference(libAv1), new CSharpCompilationReference(libBv2) }); 2115var c = CreateCompilation("", new[] { new TestImageReference(TestResources.Basic.NativeApp, "NativeApp.exe") }); 2127var c = CreateCompilation(source, new[] { AssemblyMetadata.CreateFromImage(new byte[0]).GetReference(display: "Empty.dll") }); 2137var compilation = CSharpCompilation.Create("test", references: new[] { md.GetReference() }); 2151var corlib1 = CreateEmptyCompilation(""); 2154var corlib2 = corlib1.Clone(); 2166var vectors40 = CreateCompilation( 2173var vectors41 = CreateCompilation( 2183var c1 = CreateEmptyCompilation("", 2193var c2 = CreateEmptyCompilation("", 2207var c = CreateSubmissionWithExactReferences("System.Diagnostics.Process.GetCurrentProcess()", new[] 2227var c = CreateSubmissionWithExactReferences("new C()", new[] 2245var c = CreateSubmissionWithExactReferences("new C()", new[] 2263var c = CreateSubmissionWithExactReferences("new C()", new[] 2288var c = CreateSubmissionWithExactReferences("new C()", new[] 2325var c = CreateSubmissionWithExactReferences(source, 2355var c = CreateSubmissionWithExactReferences(source, new[] { MscorlibRef_v4_0_30316_17626, bRef.WithAliases(ImmutableArray.Create("X")), aRef }, 2393var c = CreateEmptyCompilation(source, new[] 2429var c = CreateEmptyCompilation(source, new[] 2465var c = CreateEmptyCompilation(source, new[] 2506var c = CreateEmptyCompilation(source, new[] 2535var c = CreateCompilationWithMscorlib46("public class C : A { }", new[] { aRef }, TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolver)); 2557var c = CreateCompilationWithMscorlib46(@" 2593var c = CreateEmptyCompilation(@" 2645var c = CreateSubmissionWithExactReferences(@"public interface C : A, D { }", new[] { MscorlibRef_v4_0_30316_17626, aRef, dRef }, 2681var c = CreateSubmissionWithExactReferences(@"public interface C : A, D { }", new[] { MscorlibRef_v4_0_30316_17626, aRef, dRef }, 2708var c = CreateCompilationWithMscorlib46("public interface C : A { }", new[] { aRef, dRef }, 2724var c = CreateCompilationWithMscorlib46("public interface C : A { }", new[] { aRef }, 2752var c = CreateCompilationWithMscorlib46(@"public interface C : A { }", new[] { aRef }, 2777var c = CreateCompilationWithMscorlib46("public interface C : A, B { }", new[] { aRef, bRef }, 2809var c = CreateCompilationWithMscorlib46("public interface C : A { }", new[] { aRef, mRef, nRef }, 2844var c = CreateCompilationWithMscorlib46("public class C : A { }", new[] { aRef, b3Ref }, 2896var c = CreateEmptyCompilation("public class C : A { }", new[] { MscorlibRef, aRef, b1Ref }, 2962var c = CreateEmptyCompilation("public class C : A { }", new[] { MscorlibRef, aRef, b2Ref }, 3016var c = CreateSubmissionWithExactReferences("public class C : A { }", new[] { MscorlibRef_v4_0_30316_17626, aRef }, 3062var c = CreateEmptyCompilation("public class C : A { }", new[] { MscorlibRef, aRef }, 3128var c = CreateSubmissionWithExactReferences("public class C : A { }", new[] { MscorlibRef_v4_0_30316_17626, aRef }, 3190var c = CreateSubmissionWithExactReferences("public interface C : A, B { System.Diagnostics.Process PC { get; } }", new[] { MscorlibRef_v4_0_30316_17626, aRef, bRef }, 3230var c = CreateSubmissionWithExactReferences("public interface D : A, B { C CC { get; } }", new[] { MscorlibRef_v4_0_30316_17626, aRef, bRef },
Compilation\SemanticModelAPITests.cs (124)
26var comp = CreateCompilationWithIndexAndRange(@" 87var comp1 = CreateCompilation(src, parseOptions: TestOptions.Regular8); 89var comp2 = CreateCompilation(src2, parseOptions: TestOptions.Regular8, 105static SymbolInfo checkSymbolInfo(CSharpCompilation comp) 120var comp = CreateCompilationWithIndexAndRange(@" 163var comp = CreateCompilation(@" 185var comp = CreateCompilation(@" 216var comp = CreateCompilationWithMscorlibAndSpan(@" 250var comp = CreateCompilation(tree); 269var comp1 = CreateCompilation(tree); 270var comp2 = CreateCompilation(tree); 289var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { tree }); 308var comp1 = CreateCompilationWithMscorlib40AndSystemCore(new[] { tree }); 309var comp2 = CreateCompilationWithMscorlib40AndSystemCore(new[] { tree }); 328var comp = CreateCompilation(tree); 347var comp = CreateCompilation(tree); 368var comp1 = CreateCompilation(tree1); 369var comp2 = CreateCompilation(tree2); 391var comp = CreateCompilation(tree); 418var comp = CreateCompilation(tree); 460var comp = CreateCompilation(text); 484var comp = CreateCompilation(tree); 516var comp = CreateCompilation(new SyntaxTree[] { partial1Tree, partial2Tree }); 531var comp = CreateCompilation(tree); 557var comp = CreateCompilation(tree); 639var compilation = CreateCompilation(tree1); 779var comp = CreateCompilation(tree); 840var comp = CreateCompilation(tree); 922var comp = CreateCompilation(tree); 960var comp = CreateCompilation(new[] { tree1, tree2 }); 1001var comp = CreateCompilation(new List<SyntaxTree> { tree1, tree2 }); 1039var comp = CreateCompilation(tree); 1070var comp = CreateCompilation(tree); 1111var comp = CreateCompilation(tree); 1155var comp = CreateCompilation(tree); 1191var comp = CreateCompilation(tree); 1258var comp1 = CreateCompilation("public class C { }"); 1261var comp2 = CreateCompilation(source, new[] { ref1 }); 1302var comp = CreateCompilation(source); 1329var comp = CreateCompilation(source); 1384var comp = CreateCompilation(source); 1401var compilation = CreateCompilation(@" 1445var compilation = CreateCompilation(@" 1488var compilation = CreateCompilation(@" 1532var compilation = CreateCompilation(@" 1576var compilation = CreateCompilation(@" 1619var compilation = CreateCompilation(@" 1637var compilation = CreateCompilation(@" 1655var compilation = CreateCompilation(@" 1756var compilation = CreateCompilation(@" 1815var compilation = CreateCompilation(@" 1863var compilation = CreateCompilation(@" 1895var compilation = CreateCompilation(@" 1937var compilation = CreateCompilationWithMscorlib40AndSystemCore(@" 1972var compilation = CreateCompilation(@" 2016var comp = CreateCompilation(source, parseOptions: TestOptions.Regular); 2135var comp = CreateCompilation(source); 2154var compilation = CreateCompilation(@" 2199var compilation = CreateCompilation(@" 2245var compilation = CreateCompilation(@" 2306var comp = CreateCompilation(source); 2328var compilation = CreateCompilation(@" 2367var compilation = CreateEmptyCompilation(@" 2380var compilation = CreateEmptyCompilation(@" 2420var compilation = CreateCompilation(@" 2462var compilation = CreateCompilation(@" 2504var compilation = CreateCompilation(@" 2549var compilation = CreateCompilation(@" 2621var compilation = CreateCompilation(@" 2656var compilation = CreateCompilationWithMscorlib40AndSystemCore(@" 2742var compilation = CreateCompilation(@" 2793var compilation = CreateCompilation(@"using System.Runtime;"); 2808var compilation = CreateCompilation(@"using A = System.Exception;"); 2823var compilation = CreateCompilation(@" 2848var compilation = CreateCompilation(@" 2880var compilation = CreateCompilation(@" 2911var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(@" 2951var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(@" 2991var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(@" 3074var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(@" 3123var comp = CreateCompilation(source); 3151var comp = CreateCompilation(source); 3186var comp = CreateCompilation(source); 3216var comp = CreateCompilationWithMscorlib40AndDocumentationComments(source); 3253var comp = CreateCompilationWithMscorlib40AndDocumentationComments(source); 3294var comp = CreateCompilationWithMscorlib40AndDocumentationComments(source); 3335var comp = CreateCompilationWithMscorlib40AndDocumentationComments(source); 3369var comp = CreateCompilationWithMscorlib40AndDocumentationComments(source); 3411var comp = CreateCompilationWithMscorlib40AndDocumentationComments(source); 3452var comp = CreateCompilationWithMscorlib40AndDocumentationComments(source); 3493var comp = CreateCompilationWithMscorlib40AndDocumentationComments(source); 3519var compilation = CreateCompilation(source); 3540var compilation = CreateCompilation(source); 3578var comp = CreateCompilation(source); 3609var compilation = CreateCompilation(tree); 3765var comp = CreateCompilation(@" 3811var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 3842var comp = CreateCompilation(source, new[] { libRef }); 3870var comp = CreateCompilation(source); 4027var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 4054var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 4083var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 4103var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4140var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4183var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4207var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4235var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4273var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4325var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 4365var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular7_2); 4421var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3); 4451var comp = CreateCompilation(source); 4470var comp = CreateCompilation(source, options: options, parseOptions: TestOptions.Regular9); 4525var comp = CreateCompilation(source, options: options, parseOptions: TestOptions.Regular9); 4608static IAliasSymbol getGlobalAlias(CSharpCompilation compilation) 4623var compilation = CreateCompilation(text); 4641var compilation = CreateCompilation(text); 4659var compilation = CreateCompilation(text); 4674var compilation = CreateCompilation(text); 4690var compilation = CreateCompilation(text); 4705var compilation = CreateCompilation(text); 4724var compilation = CreateCompilation(text); 4740var compilation = CreateCompilation(text); 4752var compilation = CreateCompilation(tree);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (146)
26var comp = CreateCompilationWithMscorlibAndSpan(@" 49var comp = CreateCompilation(@" 72var compilation = CreateCompilation($@" 89var compilation = CreateCompilation(@" 114var compilation = CreateCompilation($@" 135var compilation = CreateCompilation(@" 158var compilation = CreateCompilation(@" 183var compilation = CreateCompilation(@" 201var compilation = CreateCompilation(@" 224var compilation = CreateCompilation(@" 247var compilation = CreateCompilation(@" 267var compilation = CreateCompilation(@" 288var compilation = CreateCompilation( 319var compilation = CreateCompilation( 368var compilation = CreateCompilation( 398var compilation = CreateCompilation( 420var compilation = CreateCompilation( 441var compilation = CreateCompilation( 463var compilation = CreateCompilation( 488var compilation = CreateCompilation( 510var compilation = CreateCompilation( 532var compilation = CreateCompilation( 556var compilation = CreateCompilation(@" 578var compilation = CreateCompilation(@" 604var compilation = CreateCompilation(@" 633var compilation = CreateCompilation(@" 658var compilation = CreateCompilation(@" 699var compilation = CreateCompilation(@" 732var compilation = CreateCompilation(@" 764var compilation = CreateCompilation(@" 786var compilation = CreateCompilation(@" 812var compilation = CreateCompilation(@" 833var compilation = CreateCompilation(@" 848var compilation = CreateCompilation(@" 872var compilation = CreateCompilation(@" 892var compilation = CreateCompilation(@" 912var compilation = CreateCompilation(@" 996var compilation = CreateCompilation(@" 1020var compilation = CreateCompilation(@" 1041var compilation = CreateCompilation(@" 1065var compilation = CreateCompilation(@" 1100var compilation = CreateCompilation(@" 1155var compilation = CreateCompilation(@" 1186var compilation = CreateCompilation(@" 1231var compilation = CreateCompilation(@" 1260var compilation = CreateCompilation(@" 1299var compilation = CreateCompilation(@" 1359var compilation = CreateCompilation(@" 1402var compilation = CreateCompilation(@" 1468var compilation = CreateCompilation( 1509var compilation = CreateCompilation( 1569var compilation = CreateCompilation(@" 1605var compilation = CreateCompilation(@" 1643var compilation = CreateCompilation(@" 1845var compilation = CreateCompilation( 1993var compilation = CreateCompilation( 2037var compilation = CreateCompilation(@" 2076var compilation = CreateCompilation(text); 2163var compilation = CreateCompilation(text); 2235var compilation = CreateCompilation(@" 2266var compilation = CreateCompilation(@" 2303var compilation = CreateCompilation(@" 2339var compilation = CreateCompilation(@" 2375var compilation = CreateCompilation(@" 2410var compilation = CreateCompilation(@" 2440var compilation = CreateCompilation(@" 2479var compilation = CreateCompilation(@" 2510var compilation = CreateCompilation(@" 2547var compilation = CreateCompilation(@" 2576var compilation = CreateCompilation(@" 2606var compilation = CreateCompilation(@" 2631var compilation = CreateCompilation(@" 2657var compilation = CreateCompilation(@" 2685var compilation = CreateCompilation(@" 2752var compilation = CSharpCompilation.Create( 2801var compilation = CreateCompilation(@" 2826var compilation = CreateCompilation(@" 3032var compilation = CreateCompilation(@" 3088var comp1 = CreateCompilation(@" 3102var comp = (Compilation)CSharpCompilation.Create( 3173var compilation = CreateCompilation(text); 3186var compilation = CreateCompilation(@" 3248var compilation = CreateCompilation(@" 3299var compilation = CreateCompilation(@" 3328var compilation = CreateCompilation(@" 3354var compilation = CreateCompilation(@" 3379var compilation = CreateCompilation(@"private"); 3397var compilation = CreateCompilation(@" 3420var compilation = CreateCompilation(@" 3441var compilation = CreateCompilation(@" 3461var compilation = CreateCompilation(@" 3489var compilation = CreateCompilation(@" 3512var compilation = CreateCompilation(@" 3545var compilation = CreateCompilation(@" 3576var compilation = CreateCompilation(@" 3598var compilation = CreateCompilation(@" 3623var compilation = CreateCompilation(@" 3655var compilation = CreateCompilation(@" 3682var compilation = CreateCompilation(@"/", parseOptions: parseOptions); 3697var compilation = CreateCompilation(@" 3764var compilation = CreateCompilation(@" 3803var compilation = CreateCompilation(code, parseOptions: TestOptions.Script); 3816var compilation = CreateCompilation(@" 3844var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode, parseOptions: TestOptions.Script); 3864var compilation = CreateCompilation(text); 3899var comp = CreateCompilation(tree); 3920var comp = CreateCompilation(tree); 3950var c1 = CreateCompilation(@" 3964var c2 = CreateCompilation(tree2, references: new[] { new CSharpCompilationReference(c1) }); 4122var comp = CreateCompilation(src); 4164var compilation = CreateCompilation(source); 4243var compilation = CreateCompilation(source); 4395var compilation = CreateCompilation(@" 4601var compilation = CreateCompilation(text); 4689var compilation = CreateCompilation(source); 4704var compilation = CreateCompilation(source); 4719var compilation = CreateCompilation(source); 4738var compilation = CreateCompilation(source); 4764var compilation = CreateCompilation(source); 4795var compilation = CreateCompilation(source); 4818var compilation = CreateCompilation(source); 4841var compilation = CreateCompilation(source); 4864var compilation = CreateCompilation(source); 4887var compilation = CreateCompilation(source); 4910var compilation = CreateCompilation(source); 4933var compilation = CreateCompilation(source); 4956var compilation = CreateCompilation(source); 4980var compilation = CreateCompilationWithMscorlib46(source); 5029var compilation = CreateCompilation(source); 5086var compilation = CreateCompilation(source); 5109var compilation = CreateCompilation(source); 5122var compilation = CreateCompilation(@"private"); 5160var compilation = CreateCompilation(@" 5201var comp = CreateCompilation(source); 5219var comp = CreateCompilation(source); 5240var comp = CreateCompilation(source); 5261var comp = CreateCompilation(source); 5292var comp = CreateCompilation(source); 5343var comp = CreateCompilation(source); 5387var comp = CreateCompilation(source); 5432var comp = CreateCompilation(source); 5478var comp = CreateCompilation(source); 5529var comp = CreateCompilation(source); 5573var comp = CreateCompilation(source); 5618var comp = CreateCompilation(source);
Compilation\SemanticModelGetSemanticInfoTests.cs (20)
896var compilation = CreateCompilation(source: sourceCode); 1451var compilation = CreateCompilation(source2, new[] { reference1 }); 1590var compilation = CreateCompilation(source2, new[] { reference1 }); 1661var compilation = CreateCompilation(""); 5538var compilation = CreateCompilation(sourceCode); 8265var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode); 8430var compilation = CreateCompilation(sourceCode); 8454var compilation = CreateCompilation(sourceCode); 12123var comp = CreateCompilation(tree); 14482var compilation = CreateCompilation(sourceCode); 14650var comp = CreateCompilation(source); 14732var compilation = CreateCompilation(new[] { sourceCode1, sourceCode2 }); 14750var compilation = CreateCompilation( 14833var compilation = CreateCompilation( 14930var pia = CreateCompilation( 14969var compilation = CreateCompilation( 15051var compilation = CreateCompilation(sourceCode); 15293var comp = CreateCompilation(@" 15369var compilation = CreateCompilation(sourceCode); 15431var compilation = CreateCompilation(source);
Compilation\SymbolSearchTests.cs (19)
22var compilation = GetTestCompilation(); 28var compilation = GetTestCompilation(); 34var compilation = GetTestCompilation(); 40var compilation = GetTestCompilation(); 50var compilation = GetTestCompilation(); 56var compilation = GetTestCompilation(); 66var compilation = GetTestCompilation(); 72var compilation = GetTestCompilation(); 80var compilation = GetTestCompilation(); 95var compilation = GetTestCompilation(); 110var compilation = GetTestCompilation(); 125var compilation = GetTestCompilation(); 140var compilation = GetTestCompilation(); 155var compilation = GetTestCompilation(); 188var compilation = CreateCompilation(new[] { source }); 193private static CSharpCompilation GetTestCompilation() 232private static void TestNameAndPredicate(CSharpCompilation compilation, string name, bool includeNamespace, bool includeType, bool includeMember, int count) 238private static void Test(CSharpCompilation compilation, string name, bool includeNamespace, bool includeType, bool includeMember, int count) 246private static void Test(CSharpCompilation compilation, Func<string, bool> predicate, bool includeNamespace, bool includeType, bool includeMember, int count)
Compilation\SymbolVisitorTests.cs (6)
528var c = CreateCompilation( 579var c = CreateCompilation( 630var c = CreateCompilation( 682var c = CreateCompilation( 726var c = CreateCompilation( 770var c = CreateCompilation(
Compilation\TypeInfoTests.cs (1)
19var c = CreateCompilation("");
Compilation\UsedAssembliesTests.cs (137)
35var comp1 = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 40var comp2 = CreateCompilation(source); 56var comp1 = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 77Assert.IsType<TAssemblySymbol>(((CSharpCompilation)comp2).GetAssemblyOrModuleSymbol(reference)); 379var comp1 = CreateEmptyCompilation(source, parseOptions: parseOptions); 405Assert.IsType<TAssemblySymbol>(((CSharpCompilation)comp2).GetAssemblyOrModuleSymbol(reference)); 420var comp1 = CreateEmptyCompilation(source, parseOptions: parseOptions); 439Assert.IsType<TAssemblySymbol>(((CSharpCompilation)comp2).GetAssemblyOrModuleSymbol(reference)); 454var comp1 = CreateCompilation(source1); 490Assert.IsType<TAssemblySymbol>(((CSharpCompilation)comp2).GetAssemblyOrModuleSymbol(reference)); 504var comp0 = CreateCompilation(source0); 518var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 561Assert.IsType<TAssemblySymbol>(((CSharpCompilation)comp2).GetAssemblyOrModuleSymbol(reference1)); 574var comp0 = CreateCompilation(source0); 589var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }, options: TestOptions.DebugModule); 659Assert.IsType<TAssemblySymbol>(((CSharpCompilation)comp2).GetAssemblyOrModuleSymbol(reference0)); 666Assert.IsType<TAssemblySymbol>(((CSharpCompilation)comp3).GetAssemblyOrModuleSymbol(references.Last())); 683var comp1 = CreateCompilation(source1); 746var comp0 = CreateCompilation(source0); 764var comp1 = CreateCompilation(source1); 946var comp0 = CreateCompilation(source0); 964var comp1 = CreateCompilation(source1); 1117var comp0 = CreateCompilation(source0); 1130var comp1 = CreateCompilation(source1); 1277var comp0 = CreateCompilation(source0); 1290var comp1 = CreateCompilation(source1); 1364var comp1 = CreateCompilation(source1); 1383Assert.IsType<TAssemblySymbol>(((CSharpCompilation)comp2).GetAssemblyOrModuleSymbol(reference)); 1396var comp0 = CreateCompilation(source0); 1413var comp1 = CreateCompilation(source1); 1468var comp0 = CreateCompilation(source0); 1478var comp1 = CreateCompilation(source1); 1506var comp0 = CreateCompilation(source0); 1516var comp1 = CreateCompilation(source1); 1547var comp0 = CreateCompilation(source0, assemblyName: "MethodReference_05_0"); 1559var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 1569var comp2 = CreateCompilation(source2); 1625var comp5 = CreateCompilation(source5); 1630var comp6 = CreateCompilation(source1, references: new[] { comp5Ref }); 1634var comp7 = CreateCompilation(source5); 1683var comp0 = CreateCompilation(source0); 1693var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 1704var comp2 = CreateCompilation(source2, references: new[] { comp1Ref }); 1736var comp0 = CreateCompilation(source0, assemblyName: "MethodReference_07_0"); 1746var comp1 = CreateCompilation(source1); 1756var comp2 = CreateCompilation(source2, references: new[] { comp0Ref, comp1Ref }); 1789var comp0 = CreateCompilation(source0); 1800var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 1872var comp0 = CreateCompilation(source0); 1883var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 1938var comp5 = CreateCompilation(source5); 1943var comp6 = CreateCompilation(source1, references: new[] { comp5Ref }); 1947var comp7 = CreateCompilation(source5); 1968var comp1 = CreateCompilation(source1); 2005Assert.IsType<TAssemblySymbol>(((CSharpCompilation)comp2).GetAssemblyOrModuleSymbol(reference)); 2022var comp0 = CreateCompilation(source0); 2032var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 2062var comp0 = CreateCompilation(source0); 2073var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 2105var comp1 = CreateCompilation(source1); 2166var comp1 = CreateCompilation(source1); 2359var comp1 = CreateCompilation(source1); 2425var comp0 = CreateCompilation(source0); 2460var comp3 = CreateCompilation(source0); 2472Assert.IsType<TAssemblySymbol>(((CSharpCompilation)comp2).GetAssemblyOrModuleSymbol(reference1)); 2493var comp0 = CreateCompilation(source0); 2511var comp3 = CreateCompilation(source0); 2581var comp0 = CreateCompilation(source0); 2599var comp3 = CreateCompilation(source0); 2669var comp0 = CreateCompilation(source0); 2687var comp3 = CreateCompilation(source0); 2753var comp0 = CreateCompilation(source0); 2772var comp3 = CreateCompilation(source0); 2842var comp0 = CreateCompilation(source0); 2860var comp3 = CreateCompilation(source0); 2930var comp0 = CreateCompilation(source0); 2948var comp3 = CreateCompilation(source0); 2994var comp0 = CreateCompilation(source0); 3039var comp3 = CreateCompilation(source0); 3303var comp0 = CreateCompilation(source0); 3349var comp3 = CreateCompilation(source0); 3537var comp = CreateCompilation(source2, references: new[] { ref0, ref1 }); 3556var comp0 = CreateCompilation(source0); 3572var comp1 = CreateCompilation(source1); 3704var comp0 = CreateCompilation(source0); 3720var comp1 = CreateCompilation(source1); 3852var comp0 = CreateCompilation(source0); 3864var comp1 = CreateCompilation(source1); 3928var comp0 = CreateCompilation(source0); 3940var comp1 = CreateCompilation(source1); 4043var comp0 = CreateCompilation(source0); 4055var comp1 = CreateCompilation(source1); 4147var comp0 = CreateCompilation(source0); 4156var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 4189var comp = CreateCompilation(@" 4262var comp0 = CreateCompilation(source0); 4274var comp1 = CreateCompilation(source1); 4287var comp2 = CreateCompilation(source2); 4345var comp0 = CreateCompilation(source0); 4357var comp1 = CreateCompilation(source1); 4370var comp2 = CreateCompilation(source2); 4463var comp0 = CreateCompilation(source0); 4475var comp1 = CreateCompilation(source1); 4488var comp2 = CreateCompilation(source2); 4651var comp0 = CreateCompilation(source0); 4663var comp1 = CreateCompilation(source1); 4676var comp2 = CreateCompilation(source2); 4903var comp0 = CreateCompilation(source0); 4919var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 4993var comp0 = CreateCompilation(source0); 5009var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 5053var comp0 = CreateCompilation(source0); 5064var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 5140var comp0 = CreateCompilation(source0); 5151var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 5195var comp0 = CreateCompilation(source0); 5398var comp0 = CreateCompilation(source0); 5409var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 5459var comp0 = CreateEmptyCompilation(source0, parseOptions: parseOptions); 5473var comp1 = CreateEmptyCompilation(source1, references: new[] { comp0Ref }, parseOptions: parseOptions); 5484var comp2 = CreateEmptyCompilation(source2, references: new[] { comp0Ref }, parseOptions: parseOptions); 5500var comp3 = CreateEmptyCompilation(source3, references: references, parseOptions: parseOptions); 5515var comp4 = CreateEmptyCompilation(source4, references: new[] { comp0Ref, comp1Ref, comp2Ref }, parseOptions: parseOptions); 5617var comp = CreateCompilation(source, options: TestOptions.ReleaseExe); 5631var comp1 = CreateCompilation(source1); 5677var comp0 = CreateCompilation(source0); 5687var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 5715var comp0 = CreateCompilation(source0); 5725var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 5754var comp0 = CreateCompilation(source0); 5765var comp1 = CreateCompilation(source1, references: new[] { comp0Ref }); 5805var comp0 = CreateCompilation(source0); 5842var comp0 = CreateCompilation(source0); 5877var comp0 = CreateCompilation(source0); 5915var comp1 = CreateCompilation(source1); 5927var comp2 = CreateCompilation(source2); 6006var comp1 = CreateCompilation(source1);
CrossLanguageTests.cs (1)
35var comp = CreateEmptyCompilation(new[] { tree }, new[] { ref1 });
DeclarationTests.cs (16)
260var comp = CSharpCompilation.Create( 290var compilation = CreateCompilation(new SyntaxTree[] { underlyingTree, countedTree }, skipUsesIsNullable: true, options: TestOptions.ReleaseDll); 337var compilation = CreateCompilation(new SyntaxTree[] { underlyingTree, countedTree }, skipUsesIsNullable: true, options: TestOptions.ReleaseDll); 404var compilation = CreateCompilation(new SyntaxTree[] { firstTree }); 457var compilation = CreateCompilation(new SyntaxTree[] { firstTree }); 500var compilation = CreateCompilation(new SyntaxTree[] { firstTree }); 553var compilation = CreateCompilation(new SyntaxTree[] { firstTree }); 608var compilation = CreateCompilation(new SyntaxTree[] { firstTree }); 657var compilation = CreateCompilation(new SyntaxTree[] { firstTree }); 700var compilation = CreateCompilation(new SyntaxTree[] { firstTree }); 747var compilation = CreateCompilation(new SyntaxTree[] { firstTree }); 792var compilation = CreateCompilation(new SyntaxTree[] { firstTree }); 837var compilation = CreateCompilation(new SyntaxTree[] { firstTree }); 869var compilation1 = CreateCompilation(new SyntaxTree[] { firstTree }); 870var compilation2 = CreateCompilation(new SyntaxTree[] { firstTree });
DocumentationComments\ConstructorDocumentationCommentTests.cs (1)
18private readonly CSharpCompilation _compilation;
DocumentationComments\CrefTests.cs (163)
247var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments); 277var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments); 317var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 346var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 375var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 404var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 424var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 441var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 466var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 495var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 518var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 538var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 558var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 581var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 604var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 627var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 656var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 690var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 739var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 784var compilation = CreateCompilationWithILAndMscorlib40(csharp, il); 814var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 861var compilation = CreateCompilationWithILAndMscorlib40(csharp, il); 1178var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 1201var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 1244var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(csharp, new[] { ilRef }); 1266var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 1288var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 1310var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 1332var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 1354var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 1376var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 1405var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 1425var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 1450var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 1476var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 1502var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 1527var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 1551var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 1598var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 1629var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 1656var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 1694var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 1731var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 1757var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 1779var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 1803var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 1839var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 1868var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, new[] { lib1Ref, lib2Ref }); 1901var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 1932var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 1967var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 1997var lib1 = CreateCompilationWithMscorlib40AndDocumentationComments(libSource, assemblyName: "Lib1"); 1998var lib2 = CreateCompilationWithMscorlib40AndDocumentationComments(libSource, assemblyName: "Lib2"); 2000var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, new[] { new CSharpCompilationReference(lib1), new CSharpCompilationReference(lib2) }); 2039var lib1 = CreateCompilationWithMscorlib40AndDocumentationComments(libSource, assemblyName: "Lib1"); 2040var lib2 = CreateCompilationWithMscorlib40AndDocumentationComments(libSource, assemblyName: "Lib2"); 2042var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, new[] { new CSharpCompilationReference(lib1), new CSharpCompilationReference(lib2) }); 2090var lib1 = CreateCompilationWithMscorlib40AndDocumentationComments(lib1Source, assemblyName: "Lib1"); 2091var lib2 = CreateCompilationWithMscorlib40AndDocumentationComments(lib2Source, assemblyName: "Lib2"); 2093var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, new[] { new CSharpCompilationReference(lib1), new CSharpCompilationReference(lib2) }); 2133var lib = CreateCompilationWithMscorlib40AndDocumentationComments(libSource, assemblyName: "Lib"); 2135var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, new[] { new CSharpCompilationReference(lib, aliases: ImmutableArray.Create("LibAlias")) }); 2163var lib = CreateCompilationWithMscorlib40AndDocumentationComments(libSource, assemblyName: "Lib"); 2165var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, new[] { new CSharpCompilationReference(lib, aliases: ImmutableArray.Create("LibAlias")) }); 2193var lib = CreateCompilationWithMscorlib40AndDocumentationComments(libSource, assemblyName: "Lib"); 2195var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, new[] { new CSharpCompilationReference(lib, aliases: ImmutableArray.Create("LibAlias")) }); 2215var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2236var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2257var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2278var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2303var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2327var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2354var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2378var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2408var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2429var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2449var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2470var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2491var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2515var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2539var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2563var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2593var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2614var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2634var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2655var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2678var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2699var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2723var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2747var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2771var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2801var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2837var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2858var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2878var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2899var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2920var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2941var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2963var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 2995var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 3070var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 3095var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 3122var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 3153var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 3176var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 3199var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 3222var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 3246var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 3270var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 3294var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 3318var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 3341var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 3368var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 4555var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 4573var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 4591var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 4608var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 4627var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 4644var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 4676var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 4732var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 4813var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 4902var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 5038var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, new[] { SystemCoreRef }); 5169var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, new[] { SystemCoreRef }); 5191var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, new[] { SystemCoreRef }); 5268var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 5300var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 5326var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 5352var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 5378var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 5420var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 5508var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 5553var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 5641var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 5675var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 5690var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 5711var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 5735var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 5778var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 5872var comp = CreateEmptyCompilation( 5942var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 5991var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 6042var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 6066var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 6260var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(@" 6612private static IEnumerable<CrefSyntax> GetCrefSyntaxes(Compilation compilation) => GetCrefSyntaxes((CSharpCompilation)compilation); 6614internal static IEnumerable<CrefSyntax> GetCrefSyntaxes(CSharpCompilation compilation) 6623internal static Symbol GetReferencedSymbol(CrefSyntax crefSyntax, CSharpCompilation compilation, params DiagnosticDescription[] expectedDiagnostics) 6633private static ImmutableArray<Symbol> GetReferencedSymbols(CrefSyntax crefSyntax, CSharpCompilation compilation, out Symbol ambiguityWinner, params DiagnosticDescription[] expectedDiagnostics) 6669var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 6700var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments).VerifyDiagnostics(); 6742static void verify(CSharpCompilation compilation) 6799static void verify(CSharpCompilation compilation) 6842static void verify(CSharpCompilation compilation) 6892static void verify(CSharpCompilation compilation) 6919var compilation = CreateCompilation(source, parseOptions: parseOptions, options: options, targetFramework: TargetFramework.StandardAndCSharp); 6943var compilation = CreateCompilation(source, parseOptions: parseOptions, options: options, targetFramework: TargetFramework.StandardAndCSharp); 6968var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.NetCoreApp); 6993var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp10), targetFramework: TargetFramework.NetCoreApp); 7017var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.NetCoreApp); 7038var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp10), targetFramework: TargetFramework.NetCoreApp); 7057var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.NetCoreApp);
DocumentationComments\DestructorDocumentationCommentTests.cs (1)
18private readonly CSharpCompilation _compilation;
DocumentationComments\DocumentationCommentCompilerTests.cs (179)
27public static CSharpCompilation CreateCompilationUtil( 49var comp = CreateCompilationUtil(source); 76var comp = CreateCompilationUtil(source); 103var comp = CreateCompilationUtil(source); 130var comp = CreateCompilationUtil(source); 159var comp = CreateCompilationUtil(source); 188var comp = CreateCompilationUtil(source); 217var comp = CreateCompilationUtil(source); 246var comp = CreateCompilationUtil(source); 277var comp = CreateCompilationUtil(source); 310var comp = CreateCompilationUtil(source); 335var comp = CreateCompilationUtil(source); 361var comp = CreateCompilationUtil(source); 387var comp = CreateCompilationUtil(source); 415var comp = CreateCompilationUtil(source); 445var comp = CreateCompilationUtil(source); 476var comp = CreateCompilationUtil(source); 507var comp = CreateCompilationUtil(source); 538var comp = CreateCompilationUtil(source); 569var comp = CreateCompilationUtil(source); 627var comp = CreateCompilationUtil(source); 687var comp = CreateCompilationUtil(source); 727var comp = CreateCompilationUtil(source); 763var compA = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 782var compB = CreateCompilation(new[] { tree2, tree1 }, assemblyName: "Test"); 811var comp = CreateCompilationUtil(source); 850var comp = CreateCompilationUtil(source); 891var compA = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 909var compB = CreateCompilation(new[] { tree2, tree1 }, assemblyName: "Test"); 927var comp = CreateCompilation(tree, assemblyName: "Test"); 972var compA = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 993var compB = CreateCompilation(new[] { tree2, tree1 }, assemblyName: "Test"); 1021var compA = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 1043var compB = CreateCompilation(new[] { tree2, tree1 }, assemblyName: "Test"); 1072var compA = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 1094var compB = CreateCompilation(new[] { tree2, tree1 }, assemblyName: "Test"); 1129var compA = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 1148var compB = CreateCompilation(new[] { tree2, tree1 }, assemblyName: "Test"); 1177var compA = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 1196var compB = CreateCompilation(new[] { tree2, tree1 }, assemblyName: "Test"); 1235var compA = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 1252var compB = CreateCompilation(new[] { tree2, tree1 }, assemblyName: "Test"); 1287var compilation = CreateCompilation(source, assemblyName: "Test"); 1344var compilation = CreateCompilation(source, assemblyName: "Test"); 1407var compilation = CreateCompilation(source, assemblyName: "Test"); 1470var compilation = CreateCompilation(source, assemblyName: "Test"); 1513var comp = CreateCompilation(tree, assemblyName: "Test"); 1559var compA = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 1580var compB = CreateCompilation(new[] { tree2, tree1 }, assemblyName: "Test"); 1610var compA = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 1631var compB = CreateCompilation(new[] { tree2, tree1 }, assemblyName: "Test"); 1651var comp = CreateCompilation(tree, assemblyName: "Test"); 1697var compA = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 1719var compB = CreateCompilation(new[] { tree2, tree1 }, assemblyName: "Test"); 1749var compA = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 1771var compB = CreateCompilation(new[] { tree2, tree1 }, assemblyName: "Test"); 1807var compA = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 1826var compB = CreateCompilation(new[] { tree2, tree1 }, assemblyName: "Test"); 1856var compA = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 1875var compB = CreateCompilation(new[] { tree2, tree1 }, assemblyName: "Test"); 1915var compA = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 1932var compB = CreateCompilation(new[] { tree2, tree1 }, assemblyName: "Test"); 1968var compilation = CreateCompilation(source, assemblyName: "Test"); 2026var compilation = CreateCompilation(source, assemblyName: "Test"); 2090var compilation = CreateCompilation(source, assemblyName: "Test"); 2154var compilation = CreateCompilation(source, assemblyName: "Test"); 2197var comp = CreateCompilationUtil(source); 2232var comp = CreateCompilationUtil(source); 2277var comp = CreateCompilationUtil(source, assemblyName: "CompilationName"); 2305var comp = CreateCompilationUtil(source); 3165var comp = CreateCompilation(new[] { tree1, tree2 }); 3252var comp = CreateCompilationUtil(source); 3285var comp = CreateCompilationUtil(source); 3324var comp = CreateCompilationUtil(source); 3364var comp = CreateCompilationUtil(source); 3449var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFilePath)); 3484var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFilePath)); 3522var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFilePath)); 3559var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFilePath)); 3595var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFilePath)); 3660var comp = CSharpCompilation.Create("Test", new[] { tree }, new[] { MscorlibRef }, TestOptions.ReleaseDll.WithXmlReferenceResolver(resolver)); 3689var comp = CreateCompilationUtil(source); 3740var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFile.Path)); 3775var comp = CreateCompilationUtil(source); 3811var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFile.Path)); 3848var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 3885var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFilePath2)); 3919var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 3953var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFilePath2)); 3986var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 4020var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFilePath2)); 4052var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFilePath)); 4084var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFilePath)); 4121var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFilePath)); 4178var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFilePath)); 4218var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFilePath1)); 4266var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFilePath)); 4331var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 4366var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 4409var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 4445var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 4486var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 4521var compilation = CreateCompilation(tree); 4550var comp = CreateCompilationUtil(string.Format(sourceTemplate, seeElement, includeElement)); 4592var comp = CreateCompilationUtil(string.Format(sourceTemplate, seeElement, includeElement)); 4672var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElements)); 4750var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 4819var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 4857var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 4898var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 4939var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 4975var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 5025var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 5093var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 5224var compilation = CreateCompilationUtil(source); 5260var compilation = CreateCompilationUtil(source); 5322var comp = CreateCompilation(new[] { tree1, tree2 }, assemblyName: "Test"); 5373var comp = CreateCompilationUtil(source); 5406var comp = CreateCompilationUtil(source); 5436var comp = CreateCompilationUtil(source); 5494var comp = CreateCompilationUtil(source); 5591var comp = CreateCompilationUtil(source); 5643var comp = CreateCompilationUtil(source); 5709var comp = CreateCompilationUtil(source); 5760var comp = CreateCompilation(tree, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(warnDict), assemblyName: "Test"); 5793var comp = CreateCompilationUtil(source); 5826var comp = CreateCompilationUtil(source); 5858var comp = CreateCompilationUtil(source); 5880var comp = CreateCompilationUtil(source); 5903var comp = CreateCompilationUtil(source); 5933var comp = CreateCompilationUtil(source); 5964var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFile.Path)); 6011var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { tree }, assemblyName: "Test"); 6060var comp = CreateCompilationUtil(source); 6123var comp = CreateCompilationUtil(source); 6190var comp = CreateCompilationUtil(source); 6236var comp = CreateCompilationUtil(source); 6263var comp = CreateCompilationUtil(source); 6313var comp = CreateCompilationUtil(source); 6352var comp = CreateCompilationUtil(source); 6401var comp = CreateCompilationUtil(source); 6431var comp = CreateCompilationUtil(source); 6477var comp = CreateCompilationUtil(source); 6526var comp = CreateCompilationUtil(source); 6558var comp = CreateCompilationUtil(source); 6599var comp = CreateCompilationUtil(source); 6645var comp = CreateCompilationUtil(source); 6710var comp = CreateCompilationUtil(source); 6764var comp = CreateCompilationUtil(source); 6800var comp = CreateCompilationUtil(source); 6832var comp = CreateCompilationUtil(source); 6868var comp = CreateCompilationUtil(source); 6933var comp = CreateCompilationUtil(source, new[] { reference }); 6943var comp = CreateCompilationUtil(source, new[] { reference }); 6959var comp = CreateCompilationUtil(source, options: TestOptions.ReleaseModule); 6993var comp = CreateCompilationUtil(source); 7037var comp = CreateCompilationUtil(source); 7078var comp = CreateCompilationUtil(source); 7134var comp = CreateCompilationUtil(source); 7170var comp = CreateCompilationUtil(source); 7229var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFilePath)); 7274var comp = CreateCompilationUtil(source); 7355var comp = CreateCompilation( 7459var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 7507var comp = CreateCompilationUtil(source); 7542var comp = CreateCompilationUtil(source); 7579var comp = CreateCompilationUtil(source, options: TestOptions.ReleaseExe); 7605var comp = CreateCompilationUtil(source); 7633var comp = CreateCompilationUtil(new[] { source, IsExternalInitTypeDefinition }); 7670var comp = CreateCompilationUtil(new[] { source, IsExternalInitTypeDefinition }); 7700var comp = CreateCompilationUtil(new[] { source, IsExternalInitTypeDefinition }); 7748var comp = CreateCompilationUtil(new[] { source, IsExternalInitTypeDefinition }); 7791var comp = CreateCompilationUtil(new[] { source, IsExternalInitTypeDefinition }); 7834var comp = CreateCompilationUtil(new[] { source, IsExternalInitTypeDefinition }); 7870var comp = CreateCompilationUtil(new[] { source, IsExternalInitTypeDefinition }); 7904var comp = CreateCompilationUtil(new[] { source, IsExternalInitTypeDefinition }); 7948var comp = CreateCompilationUtil(new[] { source, IsExternalInitTypeDefinition }); 7992var comp = CreateCompilationUtil(new[] { source, IsExternalInitTypeDefinition });
DocumentationComments\DocumentationCommentIDTests.cs (24)
28var comp = CreateCompilation(source); 46var comp = CreateCompilation(source); 61var comp = CreateCompilation(source); 76var comp = CreateCompilation(source); 91var comp = CreateCompilation(source); 107var comp = CreateCompilation(source); 122var comp = CreateCompilation(source); 141var comp = CreateCompilation(source); 162var comp = CreateCompilation(source); 182var comp = CreateCompilation(source); 196var comp = CreateCompilation(source); 210var comp = CreateCompilation(source); 224var comp = CreateCompilation(source); 238var comp = CreateCompilation(source); 255var comp = CreateCompilation(source); 270var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 286var comp = CreateCompilation(source); 306var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 323var comp = CreateCompilation(source); 349var comp = CreateCompilation(source); 369var comp = CreateCompilation(source); 395var comp = CreateCompilation(source); 415var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(nullableContextOptions)); 435var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(nullableContextOptions));
DocumentationComments\DocumentationModeTests.cs (2)
354var comp = CreateCompilation(trees.ToArray(), assemblyName: "Test"); 383var comp = CreateCompilation(
DocumentationComments\EventDocumentationCommentTests.cs (1)
18private readonly CSharpCompilation _compilation;
DocumentationComments\FieldDocumentationCommentTests.cs (1)
18private readonly CSharpCompilation _compilation;
DocumentationComments\IncludeTests.cs (2)
28var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(@"namespace Acme 91var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(@"namespace Acme;
DocumentationComments\MethodDocumentationCommentTests.cs (3)
20private readonly CSharpCompilation _compilation; 200var compilation = CreateCompilation(references: new[] { csharpAssemblyReference, ilAssemblyReference }, source: 237var compilation = CreateEmptyCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithDocumentationMode(DocumentationMode.Diagnose));
DocumentationComments\ParameterTests.cs (28)
33var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 56var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 80var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 104var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 133var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 158var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 183var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 204var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 225var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 246var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 271var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 297var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 325var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 348var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 372var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 403var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 430var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 457var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 484var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 511var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 538var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 623var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 667var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 684var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 711var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 734var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 778var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source); 837private static IEnumerable<IdentifierNameSyntax> GetNameAttributeValues(CSharpCompilation compilation)
DocumentationComments\PartialTypeDocumentationCommentTests.cs (1)
18private readonly CSharpCompilation _compilation;
DocumentationComments\PropertyDocumentationCommentTests.cs (1)
18private readonly CSharpCompilation _compilation;
DocumentationComments\TypeDocumentationCommentTests.cs (2)
19private readonly CSharpCompilation _compilation; 139var comp = CreateCompilation(text);
SymbolDisplay\SymbolDisplayTests.cs (51)
2854var comp = CSharpCompilation.CreateScriptCompilation( 3416var comp = CreateCompilation(source); 3447var comp = CreateCompilation(source, parseOptions: parseOptions); 4559var complib = CreateCompilation(src1, assemblyName: "Lib"); 4561var comp1 = CreateCompilation(src2, references: new MetadataReference[] { compref }, assemblyName: "Comp1"); 4565var comp2 = CreateCompilation("", references: new MetadataReference[] { mtref }, assemblyName: "Comp2"); 4644var compilation = CreateCompilation(text); 4706var comp = CreateEmptyCompilation(source, WinRtRefs, TestOptions.ReleaseWinMD); 4769var comp = CreateCompilation(source); 4943var comp = CreateCompilation(source); 5110var comp = CreateCompilationWithILAndMscorlib40(text, il); 5137var compilation = CreateCompilation(source); 5208var comp = CreateCompilation(text, parseOptions: TestOptions.Regular); 5445var comp = CreateCompilation(text); 5487var compA = CreateEmptyCompilation(sourceA, new[] { MscorlibRef }); 5666var compA = CreateCompilation(sourceA); 5691var compA = CreateCompilation(sourceA); 5887var comp = CreateCompilation(text); 6434var comp = CreateCompilation(srcTree); 6477var comp = CreateCompilation(srcTree); 6511var comp = CreateCompilationWithMscorlib461(new[] { srcTree }); 6573var comp = CreateCompilation(srcTree); 6606var comp = CreateCompilationWithMscorlib461(new[] { srcTree }); 6667var comp = CreateCompilation(srcTree); 6700var comp = CreateCompilation(srcTree); 6745var comp = CreateCompilation(srcTree); 6864var comp = CreateCompilation(source).VerifyDiagnostics(); 6902var comp = CreateCompilation(source).VerifyDiagnostics(); 6940var comp = CreateCompilation(source).VerifyDiagnostics(); 6987var comp = CreateCompilation(source).VerifyDiagnostics( 7072var comp = CreateCompilation(source).VerifyDiagnostics(); 7332var comp = CreateCompilation(source).VerifyDiagnostics(); 7485var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithFileScopedNamespaces).VerifyDiagnostics(); 7730var compilation = CreateCompilation(source); 7828var compilation = CreateCompilation(source); 7888var compilation = CreateCompilation(source); 7920var compilation = CreateCompilation(source); 7956var comp = CreateCompilation(new[] { source }, parseOptions: TestOptions.Regular9); 8224var comp = CreateCompilation(source); 8275var comp = CreateCompilation(source); 8345var comp = CreateCompilation(source); 8370var comp = CreateCompilation(source); 8438var comp = CreateCompilation(source); 8473var comp = CreateCompilation(source); 8522var comp = CreateCompilation(source); 8606var comp = CreateCompilation(source); 8632var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 8672var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }); 8699var comp = CreateCompilation(source); 8755var comp = CreateCompilation(source);
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (21)
40var compilation = CreateCompilation(text); 99var compilation = CreateCompilation(text); 150var compilation = CreateCompilation(text); 198var comp1 = CreateCompilation(text1); 202var comp2 = CreateCompilation(text2, references: refs, assemblyName: "Test2"); 205var compilation = CreateCompilation(text3, refs, assemblyName: "Test3"); 316var compilation = CreateCompilationWithILAndMscorlib40(csharp, il); 346var compilation = CreateCompilationWithILAndMscorlib40(csharp, il); 379var compilation = CreateCompilationWithILAndMscorlib40(csharp, il); 413var compilation = CreateCompilation(text); 466var compilation = CreateCompilation(text); 506var comp = CreateCompilation(source); 533var comp = CreateCompilation(source); 560var compilation = CreateCompilation(text); 630var compilation = CreateCompilation(text); 686var compilation = CreateCompilation(text); 751var compilation = CreateCompilationWithILAndMscorlib40(csharp, il); 826var comp = CreateCompilation(text1, references: refs, assemblyName: "OHI_ExpImpPropGetSetMismatch001", 855var comp0 = CreateCompilation(@" 861var comp1 = CreateCompilation(@" 873var comp2 = CreateCompilation(@"", references: new MetadataReference[] { mtref }, assemblyName: "META");
Symbols\AnonymousTypesSemanticsTests.cs (8)
1536var comp = CreateCompilation(source); 1899var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe); 1917var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1934var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 1955var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 2033public CSharpCompilation Compilation; 2044var compilation = Compile(source); 2082private CSharpCompilation Compile(string source) =>
Symbols\AnonymousTypesSymbolTests.cs (10)
583var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 1452var compilation = CreateCompilationWithMscorlib40(new string[] { source1, source2, source3 }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), parseOptions: TestOptions.Regular); 1638var comp = CreateCompilation(tree); 1679var comp = CreateCompilation(tree); 1757var comp = CreateEmptyCompilation(new[] { Parse(source), s_equalityComparerSourceTree }, new[] { MinCorlibRef }); 1785var stateLib = CreateEmptyCompilation(stateSource, new[] { MinCorlibRef }); 1799var attributeLib = CreateEmptyCompilation(attributeSource, new[] { MinCorlibRef, stateLib.ToMetadataReference() }); 1811var comp = CreateEmptyCompilation(new[] { Parse(source), s_equalityComparerSourceTree }, new[] { MinCorlibRef, attributeLib.ToMetadataReference() }); 1845var comp = CreateCompilation(source); 1923var compilation = CreateCompilationWithMscorlib40(source);
Symbols\ArrayTypeSymbolTests.cs (1)
26var c = CreateEmptyCompilation(@"
Symbols\AssemblyAndNamespaceTests.cs (26)
30var comp = CreateCompilation(text, assemblyName: simpleName); 57var comp = CreateCompilation(text, assemblyName: "Test"); 117var comp1 = CSharpCompilation.Create(assemblyName: "Test", options: TestOptions.DebugExe, 121var comp = CSharpCompilation.Create(assemblyName: "Test1", options: TestOptions.DebugExe, 161var comp1 = CreateCompilation(text); 164var comp = CSharpCompilation.Create(assemblyName: "Test1", options: TestOptions.DebugExe, 202var comp1 = CreateCompilation(text1, assemblyName: "Compilation1"); 203var comp2 = CreateCompilation(text2, assemblyName: "Compilation2"); 208var comp = CreateEmptyCompilation(new string[] { text3 }, references: new MetadataReference[] { compRef1, compRef2 }.ToList(), assemblyName: "Test3"); 251var comp1 = CSharpCompilation.Create(assemblyName: "Test1", options: TestOptions.DebugExe, syntaxTrees: new SyntaxTree[] { SyntaxFactory.ParseSyntaxTree(text1) }, references: new MetadataReference[] { }); 252var comp2 = CSharpCompilation.Create(assemblyName: "Test2", options: TestOptions.DebugExe, syntaxTrees: new SyntaxTree[] { SyntaxFactory.ParseSyntaxTree(text2) }, references: new MetadataReference[] { }); 257var comp = CSharpCompilation.Create(assemblyName: "Test3", options: TestOptions.DebugExe, 298var comp = CSharpCompilation.Create( 313var compilation = CreateEmptyCompilation(@" 344var compilation = CreateEmptyCompilation(@" 375var comp = CreateEmptyCompilation(source, new[] { aliasedCorlib }); 412var libComp = CreateCompilationWithMscorlib461(lib, assemblyName: "lib"); 415var comp = CreateCompilationWithMscorlib461(source, new[] { libRef }); 687var comp = CreateCompilation(code);
Symbols\CheckedUserDefinedOperatorsTests.cs (164)
34var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 78var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 112var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 142var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 187var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 208var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 227var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 249var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 311var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 347var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 372var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 398var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 427var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 445var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 472var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 511var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 570var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 601var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 633var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 683var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 742var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 774var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 806var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 855var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 895var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: options); 926var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: options); 969var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1005var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1054var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 1104var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 1157var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 1207var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 1251var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1296var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1331var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1362var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1395var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1418var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1481var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1517var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1544var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1571var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1605var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1623var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1650var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 1691var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 1752var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 1784var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 1807var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 1880var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 1924var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 1984var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2017var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2049var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2108var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2158var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: options); 2214var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2272var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2366var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2429var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2456var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2485var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2532var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2572var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2605var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2637var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2656var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2715var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2749var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2772var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2795var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2821var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 2850var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2906var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2935var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2964var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2993var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 3016var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 3072var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 3101var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 3130var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 3159var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 3179var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: options); 3208var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 3251var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 3301var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 3422var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 3442var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 3443var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 3614var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 3694var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 3771var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 3821var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 3835var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 3836var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 3880var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 3931var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 4035var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 4197var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 4217var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 4218var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 4396var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 4478var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 4557var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 4658var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 4678var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 4679var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 4728var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 4779var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 4797var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 4798var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 4840var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 4891var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 5001var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 5110var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 5204var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 5228var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 5229var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 5290var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 5328var compilation2 = CreateCompilation(source1 + source3, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 5485var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 5574var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 5620var compilation2 = CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 5682var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 5696var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 5697var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 5769var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6037var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6153var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6306var compilation1 = CreateCompilationWithCSharp(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6326var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 6327var compilation3 = CreateCompilationWithCSharp(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 6411var compilation1 = CreateCompilationWithCSharp(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6431var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 6432var compilation3 = CreateCompilationWithCSharp(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 6526var compilation1 = CreateCompilationWithCSharp(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6550var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 6551var compilation3 = CreateCompilationWithCSharp(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() }); 6604var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6607var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 6608var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview, references: new[] { compilation2.EmitToImageReference() }); 6709var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6754var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6757var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 6758var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview, references: new[] { compilation2.EmitToImageReference() }); 6803var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6806var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 6807var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview, references: new[] { compilation2.EmitToImageReference() }); 6852var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 6855var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 6856var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview, references: new[] { compilation2.EmitToImageReference() }); 6962var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7003var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7006var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 7007var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview, references: new[] { compilation2.EmitToImageReference() }); 7048var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7051var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.RegularPreview); 7052var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview, references: new[] { compilation2.EmitToImageReference() }); 7155var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7201var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7273var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7344var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7417var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 7481var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview);
Symbols\CompilationCreationTests.cs (79)
35private static void CheckCompilationSyntaxTrees(CSharpCompilation compilation, params SyntaxTree[] expectedSyntaxTrees) 72var c1 = CSharpCompilation.Create("Test", references: new MetadataReference[] { MscorlibRef_v4_0_30316_17626, mdTestLib1 }); 101var c2 = CSharpCompilation.Create("Test", references: new[] { mdTestLib1 }); 112var tc1 = CSharpCompilation.Create("Cyclic1", references: new[] { mscorlibRef, cyclic2Ref }); 685var varC_MTTestLib1_V1 = CreateCompilation(varMTTestLib1_V1_Name, 700var varC_MTTestLib2 = CreateCompilation(varMTTestLib2_Name, 723var c2 = CreateCompilation(new AssemblyIdentity("c2"), 757var varC_MTTestLib1_V2 = CreateCompilation(varMTTestLib1_V2_Name, 776var varC_MTTestLib3 = CreateCompilation(varMTTestLib3_Name, 816var c3 = CreateCompilation(new AssemblyIdentity("c3"), 879var varC_MTTestLib1_V3 = CreateCompilation(varMTTestLib1_V3_Name, 902var varC_MTTestLib4 = CreateCompilation(varMTTestLib4_Name, 952var c4 = CreateCompilation(new AssemblyIdentity("c4"), 1057var c5 = CreateCompilation(new AssemblyIdentity("c5"), 1066var c6 = CreateCompilation(new AssemblyIdentity("c6"), 1075var c7 = CreateCompilation(new AssemblyIdentity("c7"), 1143var c8 = CreateCompilation(new AssemblyIdentity("c8"), 1157var c9 = CreateCompilation(new AssemblyIdentity("c9"), 1166var c10 = CreateCompilation(new AssemblyIdentity("c10"), 1421var varC_MTTestLib2 = CreateCompilation(varMTTestLib2_Name, (string[])null, 1430var c2 = CreateCompilation(new AssemblyIdentity("c2"), 1468var varC_MTTestLib3 = CreateCompilation(varMTTestLib3_Name, 1485var c3 = CreateCompilation(new AssemblyIdentity("c3"), 1553var varC_MTTestLib4 = CreateCompilation(varMTTestLib4_Name, 1573var c4 = CreateCompilation(new AssemblyIdentity("c4"), 1678var c5 = CreateCompilation(new AssemblyIdentity("c5"), 1690var c6 = CreateCompilation(new AssemblyIdentity("c6"), 1702var c7 = CreateCompilation(new AssemblyIdentity("c7"), 1779var c8 = CreateCompilation(new AssemblyIdentity("c8"), 1798var c9 = CreateCompilation(new AssemblyIdentity("c9"), 1810var c10 = CreateCompilation(new AssemblyIdentity("c10"), 2069var localC1_V1 = CreateCompilation(localC1_V1_Name, 2091var localC1_V2 = CreateCompilation(localC1_V2_Name, 2113var localC4_V1 = CreateCompilation(localC4_V1_Name, 2128var localC4_V2 = CreateCompilation(localC4_V2_Name, 2141var c7 = CreateCompilation(new AssemblyIdentity("C7"), 2156var c3 = CreateCompilation(new AssemblyIdentity("C3"), 2245var c5 = CreateCompilation(new AssemblyIdentity("C5"), 2549var c1 = CreateEmptyCompilation(text, new MetadataReference[] 2558var c2 = CreateCompilation(c2_Name, null, new MetadataReference[] 2592private bool HasSingleTypeOfKind(CSharpCompilation c, TypeKind kind, string fullName) 2618CSharpCompilation c = CSharpCompilation.Create("Test"); 2701var compilation = CreateCompilationWithMscorlib461( 2737var compilation = CreateCompilationWithMscorlib461( 2782var compilation = CreateCompilationWithMscorlib461( 2792var compilation = CreateCompilationWithMscorlib461( 2819var compilation = CreateCompilationWithMscorlib461( 2841var compilation = CreateCompilationWithMscorlib461( 2862var compilation = CSharpCompilation.Create("foo", references: new[] { MscorlibRef, r }, syntaxTrees: new[] { st }); 2879var compilation1 = CSharpCompilation.Create("Compilation1", syntaxTrees: treeOrder1); 2883var compilation2 = CSharpCompilation.Create("Compilation2", syntaxTrees: treeOrder2); 2896var compilation1 = CSharpCompilation.Create("Compilation1", syntaxTrees: treeList1); 2900var compilation2 = compilation1.AddSyntaxTrees(treeList2); 2905var compilation3 = CSharpCompilation.Create("Compilation3", syntaxTrees: treeList3); 2909var compilation4 = compilation3.AddSyntaxTrees(treeList4); 2923var compilation1 = CSharpCompilation.Create("Compilation1", syntaxTrees: treeList1); 2927var compilation2 = compilation1.RemoveSyntaxTrees(treeList2); 2932var compilation3 = CSharpCompilation.Create("Compilation3", syntaxTrees: treeList3); 2936var compilation4 = compilation3.RemoveSyntaxTrees(treeList4); 2949var compilation1 = CSharpCompilation.Create("Compilation1", syntaxTrees: treeList1); 2952var compilation2 = compilation1.ReplaceSyntaxTree(tree1, tree3); 2957var compilation3 = CSharpCompilation.Create("Compilation3", syntaxTrees: treeList3); 2960var compilation4 = compilation3.ReplaceSyntaxTree(tree1, tree3); 2972var lib1 = CreateCompilation(source1, assemblyName: "Lib1", options: TestOptions.ReleaseModule); 2975var lib2 = CreateCompilation(source2, new[] { ref1 }, assemblyName: "Lib2"); 3008var compilation = CreateCompilation("Compilation");
Symbols\ConversionTests.cs (19)
25var compilation = CSharpCompilation.Create("Test", references: new MetadataReference[] { mscorlibRef }); 226var compilation = CSharpCompilation.Create("Test", new[] { Parse(code) }, new[] { mscorlibRef }); 299var compilation = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 385var compilation = (Compilation)CSharpCompilation.Create("MyCompilation") 448var compilation = CreateCompilation(source); 468var compilation = CreateCompilation(source); 514var compilation = CreateCompilation(source); 536var compilation = CreateCompilation(source); 1679var compilation = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); 2028var comp = CreateCompilationWithMscorlib40AndSystemCore( 2063var comp = CreateCompilationWithMscorlib40AndSystemCore(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 2098var comp = CreateCompilationWithMscorlib40AndSystemCore(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 2139var comp = CreateCompilationWithMscorlib40AndSystemCore(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 2193var comp = CreateCompilationWithMscorlib40AndSystemCore(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 2259var comp = CreateCompilationWithMscorlib40AndSystemCore(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }); 2328var comp = CreateCompilationWithMscorlib40AndSystemCore(source); 2378var comp = CreateCompilationWithMscorlib40AndSystemCore(source, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef });
Symbols\CorLibrary\Choosing.cs (4)
32var corLib = CreateEmptyCompilation(@" 46var consumer = CreateEmptyCompilation(@" 58var corLib = CreateEmptyCompilation(@" 67var consumer = CreateEmptyCompilation(@"
Symbols\CorLibrary\CorTypes.cs (30)
187var c1 = CSharpCompilation.Create("CorLib", syntaxTrees: new[] { Parse(source) }); 288var comp = CreateCompilation(source, options: TestOptions.DebugExe); 329var corLib_v1_Comp = CreateEmptyCompilation(corLib_v1, assemblyName: "corLib"); 341var typeLib_v1_Comp = CreateEmptyCompilation(typeLib_v1, references: [corLib_v1_Comp.ToMetadataReference()], assemblyName: "typeLib"); 351var comp1 = CreateEmptyCompilation( 372var corLib_v2_Comp = CreateCompilation(corLib_v2, assemblyName: "corLib"); 378var typeLib_v2_Comp = CreateCompilation(typeLib_v2, assemblyName: "typeLib"); 390var comp = CreateCompilation(source2, references: [corLib_v2_Comp.ToMetadataReference(), typeLib_v2_Comp.ToMetadataReference(), comp1Ref], options: TestOptions.DebugExe); 425var comp = CreateCompilation(source, options: TestOptions.DebugExe); 507var corLib_v1_Comp = CreateEmptyCompilation(corLib_v1, assemblyName: "corLib"); 519var typeLib_v1_Comp = CreateEmptyCompilation(typeLib_v1, references: [corLib_v1_Comp.ToMetadataReference()], assemblyName: "typeLib"); 532var comp1 = CreateEmptyCompilation( 557var corLib_v2_Comp = CreateCompilation(corLib_v2, assemblyName: "corLib"); 563var typeLib_v2_Comp = CreateCompilation(typeLib_v2, assemblyName: "typeLib"); 575var comp = CreateCompilation(source2, references: [corLib_v2_Comp.ToMetadataReference(), typeLib_v2_Comp.ToMetadataReference(), comp1Ref], options: TestOptions.DebugExe); 617var comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40AndSystemCore, options: TestOptions.DebugExe); 663var comp = CreateCompilation(source, options: TestOptions.DebugExe); 726var corLib_v1_Comp = CreateEmptyCompilation(corLib_v1, assemblyName: "corLib"); 785var typeLib_v1_Comp = CreateEmptyCompilation(typeLib_v1, references: [corLib_v1_Comp.ToMetadataReference()], assemblyName: "typeLib"); 805var comp1 = CreateEmptyCompilation( 829var corLib_v2_Comp = CreateCompilation(corLib_v2, assemblyName: "corLib"); 844var typeLib_v2_Comp = CreateCompilation(typeLib_v2, assemblyName: "typeLib"); 856var comp = CreateCompilation(source2, references: [corLib_v2_Comp.ToMetadataReference(), typeLib_v2_Comp.ToMetadataReference(), comp1Ref], options: TestOptions.DebugExe); 920var corLib_v1_Comp = CreateEmptyCompilation(corLib_v1, assemblyName: "corLib"); 980var typeLib_v1_Comp = CreateEmptyCompilation(typeLib_v1, references: [corLib_v1_Comp.ToMetadataReference()], assemblyName: "typeLib"); 1000var comp1 = CreateEmptyCompilation( 1023var corLib_v2_Comp = CreateCompilation(corLib_v2, assemblyName: "corLib"); 1038var typeLib_v2_Comp = CreateCompilation(typeLib_v2, assemblyName: "typeLib"); 1050var comp = CreateCompilation(source2, references: [corLib_v2_Comp.ToMetadataReference(), typeLib_v2_Comp.ToMetadataReference(), comp1Ref], options: TestOptions.DebugExe);
Symbols\CovariantReturnTests.cs (146)
241CSharpCompilation comp, 252CSharpCompilation comp, 352CSharpCompilation comp, 363private static void VerifyNoOverride(CSharpCompilation comp, string methodName) 373private static void VerifyAssignments(CSharpCompilation comp, int expectedAssignments) 396private CSharpCompilation CreateCompilationWithCovariantReturns( 415private CSharpCompilation CreateCompilationWithoutCovariantReturns( 434private CSharpCompilation CreateCompilation( 447private static CSharpCompilation SourceView( 448CSharpCompilation comp, 454private static CSharpCompilation CompilationReferenceView( 455CSharpCompilation comp, 465var result = CreateCompilation(assignments, references: references, targetFramework: TargetFramework.Empty); 475private static CSharpCompilation MetadataView( 476CSharpCompilation comp, 487var result = CreateCompilation(assignments, references: references, targetFramework: TargetFramework.Empty); 492private static CSharpCompilation RetargetingView( 493CSharpCompilation comp, 511var result = CreateCompilation( 575var comp = CreateCompilationWithoutCovariantReturns(source).VerifyDiagnostics( 605static void verify(CSharpCompilation comp) 651var comp = CreateCompilationWithCovariantReturns(source) 659static void verify(CSharpCompilation comp) 701var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 746static void verify(CSharpCompilation comp) 775var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 804static void verify(CSharpCompilation comp) 834var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 863static void verify(CSharpCompilation comp) 896var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 925static void verify(CSharpCompilation comp) 956var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 994static void verify(CSharpCompilation comp) 1025var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 1054static void verify(CSharpCompilation comp) 1089var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 1118static void verify(CSharpCompilation comp) 1151var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 1182static void verify(CSharpCompilation comp) 1213var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 1244static void verify(CSharpCompilation comp) 1280var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 1311static void verify(CSharpCompilation comp) 1338var comp = CreateCompilationWithoutCovariantReturns(source).VerifyDiagnostics( 1351static void verify(CSharpCompilation comp) 1382var comp = CreateCompilationWithoutCovariantReturns(source).VerifyDiagnostics( 1395static void verify(CSharpCompilation comp) 1430var comp = CreateCompilationWithCovariantReturns(source, references: new[] { baseMetadata }, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 1459static void verify(CSharpCompilation comp) 1493var comp = CreateCompilationWithCovariantReturns(source, references: references, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 1522static void verify(CSharpCompilation comp) 1557var comp = CreateCompilationWithCovariantReturns(source, references: references, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 1591static void verify(CSharpCompilation comp) 1622var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 1651static void verify(CSharpCompilation comp) 1681var comp = CreateCompilationWithoutCovariantReturns(source).VerifyDiagnostics( 1694static void verify(CSharpCompilation comp) 1742var comp = CreateCompilationWithoutCovariantReturns(source).VerifyDiagnostics( 1767static void verify(CSharpCompilation comp) 1819var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 1847static void verify(CSharpCompilation comp) 1896var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 1936static void verify(CSharpCompilation comp) 1975var comp = CreateCompilationWithoutCovariantReturns(source).VerifyDiagnostics( 1994static void verify(CSharpCompilation comp) 2036var comp = CreateCompilationWithoutCovariantReturns(source).VerifyDiagnostics( 2055static void verify(CSharpCompilation comp) 2088var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 2117static void verify(CSharpCompilation comp) 2158var comp = CreateCompilationWithoutCovariantReturns(source).VerifyDiagnostics( 2189static void verify(CSharpCompilation comp) 2222var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 2251static void verify(CSharpCompilation comp) 2287var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 2303static void verify(CSharpCompilation comp) 2342var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 2358static void verify(CSharpCompilation comp) 2396var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 2432static void verify(CSharpCompilation comp) 2466var comp = CreateCompilationWithoutCovariantReturns(source).VerifyDiagnostics( 2479static void verify(CSharpCompilation comp) 2514var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 2550static void verify(CSharpCompilation comp) 2575var csComp = CreateCompilationWithCovariantReturns(source0).VerifyDiagnostics( 2864var comp = CreateCompilationWithCovariantReturns(s2, references, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 2884static void verify1(CSharpCompilation comp) 2889static void verify2(CSharpCompilation comp) 2930var comp = CreateCompilationWithCovariantReturns(s2, references, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 2949static void verify1(CSharpCompilation comp) 2955static void verify2(CSharpCompilation comp) 2997var comp = CreateCompilationWithCovariantReturns(s2, references, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 3016static void verify1(CSharpCompilation comp) 3021static void verify2(CSharpCompilation comp) 3057var comp = CreateCompilationWithoutCovariantReturns(source).VerifyDiagnostics( 3064static void verify(CSharpCompilation comp) 3097var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 3113static void verify(CSharpCompilation comp) 3139var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 3152static void verify(CSharpCompilation comp) 3181var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 3194static void verify(CSharpCompilation comp) 3238var comp = CreateCompilationWithCovariantReturns(source).VerifyDiagnostics( 3401var comp = CreateCompilationWithCovariantReturns(source).VerifyDiagnostics( 3569var comp = CreateCompilationWithCovariantReturns(source, parseOptions: TestOptions.WithoutCovariantReturns).VerifyDiagnostics( 3634static void verify(CSharpCompilation comp) 3748var comp = CreateCompilationWithCovariantReturns(cSharpSource, references, parseOptions: TestOptions.WithoutCovariantReturns); 3766void verify(CSharpCompilation comp) 3871var baseCompilation = CreateCompilation(baseSource, references: new[] { corlibRef }, targetFramework: TargetFramework.Empty, parseOptions: parseOptions); 3888var comp = CreateCompilation(compilationSource, references: references, parseOptions: parseOptions, targetFramework: TargetFramework.Empty); 3902void verify(CSharpCompilation compilation) 3947var baseCompilation = CreateCompilation(baseSource, references: new[] { corlibRef }, targetFramework: TargetFramework.Empty, parseOptions: parseOptions); 4007var comp = CreateCompilation(compilationSource, references: references, parseOptions: parseOptions, targetFramework: TargetFramework.Empty); 4022void verify(CSharpCompilation compilation) 4113var baseCompilation = CreateCompilation(baseSource, references: new[] { corlibRef }, targetFramework: TargetFramework.Empty, parseOptions: parseOptions); 4130var comp = CreateCompilation(compilationSource, references: references, parseOptions: parseOptions, targetFramework: TargetFramework.Empty); 4144void verify(CSharpCompilation compilation) 4228var baseCompilation = CreateCompilation(baseSource, references: new[] { corlibRef }, targetFramework: TargetFramework.Empty, parseOptions: parseOptions); 4245var comp = CreateCompilation(compilationSource, references: references, parseOptions: parseOptions, targetFramework: TargetFramework.Empty); 4260void verify(CSharpCompilation compilation) 4337var baseCompilation = CreateCompilation(baseSource, references: new[] { corlibRef }, targetFramework: TargetFramework.Empty, parseOptions: parseOptions); 4354var comp = CreateCompilation(compilationSource, references: references, parseOptions: parseOptions, targetFramework: TargetFramework.Empty); 4368void verify(CSharpCompilation compilation) 4500var baseCompilation = CreateCompilation(baseSource, references: new[] { corlibRef }, targetFramework: TargetFramework.Empty, parseOptions: parseOptions); 4526var comp = CreateCompilation(compilationSource, references: references, parseOptions: parseOptions, targetFramework: TargetFramework.Empty); 4545void verify(CSharpCompilation compilation) 4585var comp = CreateCompilation(withCovariantReturns: withCovariantReturns, source); 4596void verify(CSharpCompilation compilation) 4630var comp = CreateCompilation(withCovariantReturns: withCovariantReturns, source); 4644void verify(CSharpCompilation compilation) 4681var comp = CreateCompilation(withCovariantReturns: withCovariantReturns, source); 4692void verify(CSharpCompilation compilation) 4724var baseCompilation = CreateCompilation(withCovariantReturns: withCovariantReturns, s0); 4738var comp = CreateCompilation(withCovariantReturns: withCovariantReturns, source, references: new[] { baseMetadata }); 4755void verify(CSharpCompilation compilation) 4787var baseCompilation = CreateCompilation(withCovariantReturns: withCovariantReturns, s0); 4801var comp = CreateCompilation(withCovariantReturns: withCovariantReturns, source, references: new[] { baseMetadata }); 4818void verify(CSharpCompilation compilation) 4851var baseCompilation = CreateCompilation(withCovariantReturns: withCovariantReturns, s0); 4865var comp = CreateCompilation(withCovariantReturns: withCovariantReturns, source, references: new[] { baseMetadata }); 4875void verify(CSharpCompilation compilation) 4908var baseCompilation = CreateCompilation(withCovariantReturns: withCovariantReturns, s0); 4922var comp = CreateCompilation(withCovariantReturns: withCovariantReturns, source, references: new[] { baseMetadata }); 4939void verify(CSharpCompilation compilation) 4972var baseCompilation = CreateCompilation(withCovariantReturns: withCovariantReturns, s0); 4986var comp = CreateCompilation(withCovariantReturns: withCovariantReturns, source, references: new[] { baseMetadata }); 5003void verify(CSharpCompilation compilation)
Symbols\CSharpCompilerFeatureRequiredTests.cs (8)
16public class CSharpCompilerFeatureRequiredTests : BaseCompilerFeatureRequiredTests<CSharpCompilation, CSharpTestSource> 58protected override CSharpCompilation CreateCompilationWithIL(CSharpTestSource source, string ilSource) 63protected override CSharpCompilation CreateCompilation(CSharpTestSource source, MetadataReference[] references) 68protected override CompilationVerifier CompileAndVerify(CSharpCompilation compilation) 73protected override void AssertNormalErrors(CSharpCompilation comp) 234protected override void AssertModuleErrors(CSharpCompilation comp, MetadataReference ilRef) 392protected override void AssertAssemblyErrors(CSharpCompilation comp, MetadataReference ilRef) 553var comp = CSharpTestBase.CreateCompilation(new[] { """
Symbols\CustomModifiersTests.cs (39)
218var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 288var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 373var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 446var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 519var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 593var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 698var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 808var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 918var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 1028var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 1122var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 1229var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 1304var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 1371var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 1457var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 1514var compilation1 = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseDll); 1525var compilation2 = CreateCompilationWithMscorlib461(new SyntaxTree[] { }, references: new[] { new CSharpCompilationReference(compilation1) }); 1564var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseDll); 1603var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseDll); 1642var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseDll); 1674var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseDll); 1713var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseDll); 1755var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseDll); 1830var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Mscorlib40, references: new[] { SystemCoreRef }); 1975var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 2039var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 2110var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 2181var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 2254var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 2283var compilation = CreateCompilation(source, references: new[] { TestReferences.SymbolsTests.CustomModifiers.GenericMethodWithModifiers.dll }, 2329var compilation = CreateCompilation(source, references: new[] { TestReferences.SymbolsTests.CustomModifiers.GenericMethodWithModifiers.dll }, 2387var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 2425var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 2473var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseExe); 2594var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Standard); 2708var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Standard); 2802var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, references: new[] { CSharpRef }, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Standard); 2905var compilation = CreateCompilationWithIL(source, ilSource, options: TestOptions.ReleaseExe); 2997var compilation = CreateCompilationWithIL(source, ilSource, options: TestOptions.ReleaseExe);
Symbols\DefaultInterfaceImplementationTests.cs (1052)
117var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net60, 168var compilation2 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 287var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 345var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 361var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 427var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 485var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 501var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 578var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 676var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 778var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 880var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 967var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 1042var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 1121var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 1200var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 1279var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 1363var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 1451var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 1539var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 1585var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended, 1622var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 1666var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60, 1678var compilation3 = CreateCompilation(source2, new[] { reference }, 1723var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1744var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugDll, 1776var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended, 1819var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 1871var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1910var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 1928var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 1971var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended, 2015var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2038var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 2102var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 2181var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 2203var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 2260var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2267var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 2329var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2336var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 2402var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2409var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 2475var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2482var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 2579var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 2633var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 2650var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 2970var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3006var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3042var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3083var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3108var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3133var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3163var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3197var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3231var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3270var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3295var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3320var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3359var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3448var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3514var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3599var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3722var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 3864var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 3982var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 4134var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 4225var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended, 4277var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 4393var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4405var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, 4470var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4489var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, 4534var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 4579var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 4634var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net50, 4675var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 4735var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4786var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 4802var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 4867var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5103var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5140var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5168var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5205var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5244var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5297var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5383var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 5500var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 5591var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 5736var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 5826var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 5855var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 5953var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5965var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, 6011var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6030var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugDll, 6081var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 6126var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 6189var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6220var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 6236var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 6283var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6354var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6368var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 6541var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 6598var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 6619var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 6943var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 7046var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 7137var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 7244var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 7309var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended, 7343var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 7417var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7429var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, 7477var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7496var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugDll, 7532var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 7559var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 7597var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net50, 7620var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 7663var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7696var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 7712var compilation3 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 7760var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7812var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7969var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 8085var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8245var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 8363var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8399var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8430private static void ValidateSymbolsMethodModifiers_01(CSharpCompilation compilation1) 8612var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8678var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 8770var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 8812var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8871var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 8937var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9041var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 9092var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9230var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 9265var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 9282var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 9308var compilation5 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugDll, 9322private static void ValidateI1M1NotImplemented(CSharpCompilation compilation, string className) 9447var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 9462var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 9472var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 9529var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 9536var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 9543var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 9554var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 9828var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 9835var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 9842var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 9849var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 9887var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 9899var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 9907var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 9919var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 9964var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 9984var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 9996var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 10043var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 10050var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 10081var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10133var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 10192var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10303var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10371var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 10456var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 10507var compilation3 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 10574var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10676var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10827var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 10881var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 10915var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 10927var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 10938var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 10977var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 10999var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 11054var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 11160var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 11233var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11256var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11298var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11353var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 11455var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11522var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11552var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11579var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 11606var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11633var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11646var compilation2 = CreateCompilation(source1 + source2, options: TestOptions.DebugDll, 11692var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 11716var compilation2 = CreateCompilation(source0 + source2, options: TestOptions.DebugExe, 11724var compilation3 = CreateCompilation(source0, options: TestOptions.DebugDll, 11757var compilation4 = CreateCompilation(source3, options: TestOptions.DebugExe, 11767var compilation5 = CreateCompilation(source4, options: TestOptions.DebugExe, 11784var compilation6 = CreateCompilation(source1, options: TestOptions.DebugExe, 11847var compilation1 = CreateCompilation(source21 + source1, options: TestOptions.DebugExe, 11890var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 11907var compilation3 = CreateCompilation(source21, new[] { reference }, options: TestOptions.DebugExe, 11923var compilation5 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugDll, 11983var compilation1 = CreateCompilation(source21 + source1, options: TestOptions.DebugExe, 12005var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 12022var compilation3 = CreateCompilation(source21, new[] { reference }, options: TestOptions.DebugExe, 12044var compilation5 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugDll, 12103var compilation1 = CreateCompilation(source21 + source1, options: TestOptions.DebugExe, 12128var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 12145var compilation3 = CreateCompilation(source21, new[] { reference }, options: TestOptions.DebugExe, 12173var compilation5 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugDll, 12216var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 12226var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 12237var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 12278var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 12288var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 12299var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 12340var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 12350var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 12360var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 12612var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 12623var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 12637var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 12700var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 12711var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 12725var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 12788var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 12799var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 12813var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 12892var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12947var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13020var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13077var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13114private static void ValidateSymbolsPropertyModifiers_01(CSharpCompilation compilation1) 13567var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13657var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 13897var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13913private static void ValidatePropertyModifiers_04(CSharpCompilation compilation1, string propertyName) 13991var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 14045private static PropertySymbol GetSingleProperty(CSharpCompilation compilation, string containerName) 14065var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14080private static void ValidatePropertyModifiers_06(CSharpCompilation compilation1, string propertyName) 14212var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 14230var compilation2 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 14359var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14606var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 14705var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14733private static void ValidatePropertyModifiers_10(CSharpCompilation compilation1) 14912var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 14932var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 14958var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 14985var compilation5 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugDll, 15036private static void ValidatePropertyNotImplemented_11(CSharpCompilation compilation, string className) 15110var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 15129var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 15137var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 15245var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 15255var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 15263var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 15660var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 15669var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 15674var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 15683var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 15743var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 15750var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 15755var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 15762var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 15837var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 15856var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 15864var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugDll, 15955var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 15969var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 16002var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16175var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 16307var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16579var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16767var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 16917var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 16925var compilation3 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 17015var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17265var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17456var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 17510var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 17527var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 17541var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 17588var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17619var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 17726var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 18282var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe.WithMetadataImportOptions(metadataImportOptions), 18315var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(metadataImportOptions), 18328var compilation3 = CreateCompilation(source2, new[] { reference }, 18457var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 18484var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 18494var compilation3 = CreateCompilation(source2, new[] { reference }, 19837var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 19891var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 19908var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 19922var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 19969var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 19999var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 20038var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 20170var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 20314var compilation1 = CreateCompilation(source0 + source1, 20353var compilation2 = CreateCompilation(source0 + source2, options: TestOptions.DebugExe, 20367var compilation3 = CreateCompilation(source0, options: TestOptions.DebugDll, 20426var compilation4 = CreateCompilation(source3, options: TestOptions.DebugExe, 20444var compilation5 = CreateCompilation(source4, options: TestOptions.DebugExe, 20456var compilation6 = CreateCompilation(source5, options: TestOptions.DebugExe, 20491var compilation7 = CreateCompilation(source1, options: TestOptions.DebugExe, 21552var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 21592private static void ValidateSymbolsIndexerModifiers_01(CSharpCompilation compilation1) 22041var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22131var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 22370var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22447var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22625var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 23381var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 23688var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 23754var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 23871var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 23937var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 24507var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 24538var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 26531var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 26567var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 26607var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 26743var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 26799var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 26836private static void ValidateSymbolsEventModifiers_01(CSharpCompilation compilation1) 27133var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 27223var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 27619var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 27673private static EventSymbol GetSingleEvent(CSharpCompilation compilation, string containerName) 27693var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 27708private static void ValidateEventModifiers_06(CSharpCompilation compilation1) 27789var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 27863var compilation2 = CreateCompilation(source2, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 27883var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 27940var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28117var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 28195var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28232private static void ValidateEventModifiers_10(CSharpCompilation compilation1) 28418var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 28478var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 28501var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 28528var compilation5 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugDll, 28538private static void ValidateEventNotImplemented_11(CSharpCompilation compilation, string className) 28615var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 28634var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 28642var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 28751var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, targetFramework: targetFramework, 28760var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: targetFramework, 28767var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 29169var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 29178var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 29183var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 29192var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 29255var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 29262var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 29267var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 29274var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 29349var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 29368var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 29376var compilation3 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugDll, 29460var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 29474var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 29500var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 29578var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 29696var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 29992var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30103var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 30265var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 30319var compilation3 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 30438var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30659var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30861var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 30915var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 30930var compilation3 = CreateCompilation(source2, new[] { compilation2.ToMetadataReference() }, options: TestOptions.DebugExe, 30944var compilation4 = CreateCompilation(source2, new[] { compilation2.EmitToImageReference() }, options: TestOptions.DebugExe, 30990var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31020var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 31094var compilation1 = CreateCompilation(source0 + source1, 31121var compilation2 = CreateCompilation(source0 + source2, options: TestOptions.DebugExe, 31130var compilation3 = CreateCompilation(source0, options: TestOptions.DebugDll, 31168var compilation4 = CreateCompilation(source3, options: TestOptions.DebugExe, 31180var compilation5 = CreateCompilation(source4, options: TestOptions.DebugExe, 31206var compilation6 = CreateCompilation(source1, options: TestOptions.DebugExe, 31750var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 31809var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 31932var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 31983var compilation2 = CreateCompilation(source2 + source0, options: TestOptions.DebugExe, 32016var compilation3 = CreateCompilation(source0, options: TestOptions.DebugDll, 32024var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 32038var compilation5 = CreateCompilation(source2, options: TestOptions.DebugExe, 32123var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 32150var compilation3 = CreateCompilation(source0, options: TestOptions.DebugDll, 32158var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 32172var compilation5 = CreateCompilation(source2, options: TestOptions.DebugExe, 32254var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32257var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe); 32287var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe); 32381var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32481var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 32508var compilation2 = CreateCompilation(source2 + source0, options: TestOptions.DebugExe, 32541var compilation3 = CreateCompilation(source0, options: TestOptions.DebugDll, 32549var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 32556var compilation5 = CreateCompilation(source2, options: TestOptions.DebugExe, 32687var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32764var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32801var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32828var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32870var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32959var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 32975var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 32991var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 33117var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33141var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 33193var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33227var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 33283var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 33307var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 33357var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net50, 33386var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 33433var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33481var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33530var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33588var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33650var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33714var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33760var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33799var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 33832var compilation3 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended, 33884var compilation4 = CreateCompilation(source2, options: TestOptions.DebugDll, 33980var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 34141var compilation1 = CreateCompilation(source1 + source2 + source3, options: TestOptions.DebugExe, 34157var compilation2 = CreateCompilation(source3, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 34173var compilation3 = CreateCompilation(source3, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 34188var compilation4 = CreateCompilation(source1, options: TestOptions.DebugDll, 34194var compilation5 = CreateCompilation(source2 + source3, new[] { compilation4.ToMetadataReference() }, options: TestOptions.DebugDll, 34210var compilation6 = CreateCompilation(source2 + source3, new[] { compilation4.EmitToImageReference() }, options: TestOptions.DebugDll, 34282var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 34463var compilation2 = CreateCompilation(source2, new[] { ref1 }, options: TestOptions.DebugDll, 34501var compilation4 = CreateCompilation(source4, new[] { ref1 }, options: TestOptions.DebugExe, 34540var compilation3 = CreateCompilation(source3, new[] { ref1, ref2 }, options: TestOptions.DebugDll, 34585var compilation5 = CreateCompilation(source5, new[] { ref1, ref2 }, options: TestOptions.DebugExe, 34683var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 34689var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 34703var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugDll, 34797var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 34894var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 34912var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 34968var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 34973var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 34997var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugDll, 35059var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 35064var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 35092var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugDll, 35160var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 35165var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 35190var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugDll, 35256var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 35261var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 35285var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugDll, 35351var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 35366var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 35462var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 35469var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 35571var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 35578var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 35684var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 35691var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 35797var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 35804var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 35899var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 35910var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 36008var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 36015var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 36102var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 36113var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 36220var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 36227var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 36386var compilation1 = CreateCompilation(source1 + source2 + source3, options: TestOptions.DebugExe, 36404var compilation2 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugExe, 36421var compilation4 = CreateCompilation(source1, options: TestOptions.DebugDll, 36429var compilation5 = CreateCompilation(source2 + source3, new[] { reference }, options: TestOptions.DebugExe, 36574var compilation1 = CreateCompilation(source1 + source2 + source3, options: TestOptions.DebugExe, 36592var compilation2 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugExe, 36609var compilation4 = CreateCompilation(source1, options: TestOptions.DebugDll, 36617var compilation5 = CreateCompilation(source2 + source3, new[] { reference }, options: TestOptions.DebugExe, 36762var compilation1 = CreateCompilation(source1 + source2 + source3, options: TestOptions.DebugExe, 36780var compilation2 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugExe, 36797var compilation4 = CreateCompilation(source1, options: TestOptions.DebugDll, 36805var compilation5 = CreateCompilation(source2 + source3, new[] { reference }, options: TestOptions.DebugDll, 36859var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 36887var comp = CreateCompilation(source1, options: TestOptions.DebugDll, 36986var compilation1 = CreateCompilation(source1 + source2, options: options, 37002var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: options, 37018var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: options, 37274var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 37291var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 37375var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended, 37391var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 37522var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 37605var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 37649var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 37715var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 37952var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 37987var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 37995var compilation3 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: isStatic ? TargetFramework.Net50 : TargetFramework.Mscorlib461Extended, 38002var compilation4 = CreateCompilation(source2, options: TestOptions.DebugDll, 38401var compilation1 = CreateCompilation(source1 + source2 + source3, options: TestOptions.DebugExe, 38420var compilation2 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugExe, 38438var compilation4 = CreateCompilation(source1, options: TestOptions.DebugDll, 38446var compilation5 = CreateCompilation(source2 + source3, new[] { reference }, options: TestOptions.DebugExe, 38741var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 38800var compilation2 = CreateCompilation(source2, new[] { ref1 }, options: TestOptions.DebugDll, 38838var compilation4 = CreateCompilation(source4, new[] { ref1 }, options: TestOptions.DebugExe, 38880var compilation3 = CreateCompilation(source3, new[] { ref1, ref2 }, options: TestOptions.DebugDll.WithConcurrentBuild(false), 38909var compilation5 = CreateCompilation(source5, new[] { ref1, ref2 }, options: TestOptions.DebugExe, 39002var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 39008var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 39015var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugDll, 39106var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 39175var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 39193var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 39492var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 39510var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 40014var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 40032var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 40050var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 40212var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 40242var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 40303var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 40333var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 40393var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Mscorlib461Extended, 40423var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 40482var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net50, 40511var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, 40572var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 40615var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 40663var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 40723var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 40787var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 40853var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 40927var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 41069var compilation1 = CreateCompilation(source1 + source2 + source3, options: TestOptions.DebugExe, 41087var compilation2 = CreateCompilation(source3, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 41105var compilation3 = CreateCompilation(source3, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 41122var compilation4 = CreateCompilation(source1, options: TestOptions.DebugDll, 41128var compilation5 = CreateCompilation(source2 + source3, new[] { compilation4.ToMetadataReference() }, options: TestOptions.DebugDll, 41141var compilation6 = CreateCompilation(source2 + source3, new[] { compilation4.EmitToImageReference() }, options: TestOptions.DebugDll, 41238var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 41462var compilation2 = CreateCompilation(source2, new[] { ref1 }, options: TestOptions.DebugDll, 41500var compilation4 = CreateCompilation(source4, new[] { ref1 }, options: TestOptions.DebugExe, 41542var compilation3 = CreateCompilation(source3, new[] { ref1, ref2 }, options: TestOptions.DebugDll.WithConcurrentBuild(false), 41587var compilation5 = CreateCompilation(source5, new[] { ref1, ref2 }, options: TestOptions.DebugExe, 41668var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 41674var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 41688var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugDll, 41782var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 41851var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 41869var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 42019var compilation1 = CreateCompilation(source1 + source2 + source3, options: TestOptions.DebugExe, 42039var compilation2 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugExe, 42058var compilation4 = CreateCompilation(source1, options: TestOptions.DebugDll, 42066var compilation5 = CreateCompilation(source2 + source3, new[] { reference }, options: TestOptions.DebugExe, 42223var compilation1 = CreateCompilation(source1 + source2 + source3, options: TestOptions.DebugExe, 42243var compilation2 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugExe, 42262var compilation4 = CreateCompilation(source1, options: TestOptions.DebugDll, 42270var compilation5 = CreateCompilation(source2 + source3, new[] { reference }, options: TestOptions.DebugExe, 42427var compilation1 = CreateCompilation(source1 + source2 + source3, options: TestOptions.DebugExe, 42447var compilation2 = CreateCompilation(source3, new[] { reference }, options: TestOptions.DebugExe, 42466var compilation4 = CreateCompilation(source1, options: TestOptions.DebugDll, 42474var compilation5 = CreateCompilation(source2 + source3, new[] { reference }, options: TestOptions.DebugDll, 43589var compilation1 = CreateCompilation(source1, 43626var compilation1 = CreateCompilation(source1, 43669var compilation1 = CreateCompilation(source1, 43696var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 43720var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 43735static void validate(CSharpCompilation compilation) 43789var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 43834var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 43839var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 43844var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 43868var compilation5 = CreateCompilation(source1, options: TestOptions.DebugExe, 43919var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 43971var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 43976var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 43981var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 44004var compilation5 = CreateCompilation(source1, options: TestOptions.DebugExe, 44054var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 44101var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 44106var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 44111var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 44134var compilation5 = CreateCompilation(source1, options: TestOptions.DebugExe, 44192var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 44222var compilation2 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 44242var compilation3 = CreateCompilation(source0 + source3, options: TestOptions.DebugExe, 44268var compilation2 = CreateCompilation(source3 + source4, new[] { reference }, options: TestOptions.DebugExe, 44288var compilation4 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 44343var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 44389var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 44420var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 44544var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 44642var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 44689var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 44723var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 44747var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All), 44797var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 44838var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 44883var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 44919var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 44964var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 44982var compilation2 = CreateCompilation(source0 + source2, options: TestOptions.DebugExe, 45002var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 45056var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 45101var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 45106var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 45111var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 45144var compilation5 = CreateCompilation(source1, options: TestOptions.DebugExe, 45207var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 45254var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 45259var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 45264var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 45297var compilation5 = CreateCompilation(source1, options: TestOptions.DebugExe, 45350var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 45393var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 45398var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 45403var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 45439var compilation5 = CreateCompilation(source1, options: TestOptions.DebugExe, 45478var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 45540var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 45585var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 45590var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 45595var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 45627var compilation5 = CreateCompilation(source1, options: TestOptions.DebugExe, 45680var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), 45722var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugExe, 45727var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugExe, 45732var compilation4 = CreateCompilation(source1, options: TestOptions.DebugExe, 45764var compilation5 = CreateCompilation(source1, options: TestOptions.DebugExe, 45838var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 45844var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 45902var compilation2 = CreateCompilation(source2, options: TestOptions.DebugExe, 45920var compilation3 = CreateCompilation(source3, options: TestOptions.DebugExe, 45936var compilation4 = CreateCompilation(source4, options: TestOptions.DebugExe, targetFramework: TargetFramework.Mscorlib461Extended, 46001var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 46034var compilation2 = CreateCompilation(source2, options: TestOptions.DebugExe, 46112var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 46160var compilation3 = CreateCompilation(source3, options: TestOptions.DebugExe, 46198var compilation4 = CreateCompilation(source4, options: TestOptions.DebugExe, 46256var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 46303var compilation3 = CreateCompilation(source3, options: TestOptions.DebugExe, 46317var compilation4 = CreateCompilation(source4, options: TestOptions.DebugDll, 46346var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 46372var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMainTypeName("I2"), 46588var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 46598var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 46605var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 46611var compilation6 = CreateCompilation(source1 + source2, options: TestOptions.DebugDll, 46690var compilation61 = CreateCompilation(source1 + source2, options: TestOptions.DebugDll, 46766var compilation7 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 46844var compilation8 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 46864var compilation9 = CreateCompilation(source3, new[] { compilationReference }, options: TestOptions.DebugExe, 46879var compilation10 = CreateCompilation(source3, new[] { metadataReference }, options: TestOptions.DebugExe, 46949var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp); 46952var compilation2 = CreateCompilation(source1 + source3, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp, 46995var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp, 47024var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 47082var compilation3 = CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 47111var compilation4 = CreateCompilationWithIL(source3, ilSource, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview); 47156var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp, 47222var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp, 47231var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 47237var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 47256var compilation9 = CreateCompilation(source3, new[] { compilationReference }, options: TestOptions.DebugExe, 47267var compilation10 = CreateCompilation(source3, new[] { metadataReference }, options: TestOptions.DebugExe, 47314var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 47323var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 47329var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 47390var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 47399var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 47405var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 47463var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 47470var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 47520var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 47529var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 47535var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 47601var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 47610var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 47616var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 47676var compilation0 = CreateCompilation(source0 + source1 + source2, options: TestOptions.DebugDll, 47684var compilation1 = CreateCompilation(source3, new[] { compilationReference0 }, options: TestOptions.DebugExe, 47689var compilation2 = CreateCompilation(source3, new[] { metadataReference0 }, options: TestOptions.DebugExe, 47708var compilation3 = CreateCompilation(source4 + source1 + source2, options: TestOptions.DebugDll, 47716var compilation4 = CreateCompilation(source3, new[] { compilationReference3 }, options: TestOptions.DebugExe, 47721var compilation5 = CreateCompilation(source3, new[] { metadataReference3 }, options: TestOptions.DebugExe, 47737var compilation6 = CreateCompilation(source4 + source1 + source5, options: TestOptions.DebugDll, 47745var compilation7 = CreateCompilation(source3, new[] { compilationReference6 }, options: TestOptions.DebugExe, 47750var compilation8 = CreateCompilation(source3, new[] { metadataReference6 }, options: TestOptions.DebugExe, 47809var compilation0 = CreateCompilation(source0 + source1 + source2, options: TestOptions.DebugDll, 47817var compilation1 = CreateCompilation(source3, new[] { compilationReference0 }, options: TestOptions.DebugExe, 47822var compilation2 = CreateCompilation(source3, new[] { metadataReference0 }, options: TestOptions.DebugExe, 47841var compilation3 = CreateCompilation(source4 + source1 + source2, options: TestOptions.DebugDll, 47849var compilation4 = CreateCompilation(source3, new[] { compilationReference3 }, options: TestOptions.DebugExe, 47854var compilation5 = CreateCompilation(source3, new[] { metadataReference3 }, options: TestOptions.DebugExe, 47870var compilation6 = CreateCompilation(source4 + source1 + source5, options: TestOptions.DebugDll, 47878var compilation7 = CreateCompilation(source3, new[] { compilationReference6 }, options: TestOptions.DebugExe, 47883var compilation8 = CreateCompilation(source3, new[] { metadataReference6 }, options: TestOptions.DebugExe, 47937var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 47945var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 47950var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48004var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 48012var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48017var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48079var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 48088var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48094var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48136var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 48145var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48151var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48203var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 48212var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48218var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48238var compilation9 = CreateCompilation(source3, new[] { compilationReference }, options: TestOptions.DebugExe, 48252var compilation10 = CreateCompilation(source3, new[] { metadataReference }, options: TestOptions.DebugExe, 48300var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 48309var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48315var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48370var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 48379var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48385var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48434var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 48443var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48449var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48513var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 48522var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48528var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48585var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 48594var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48600var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48658var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 48666var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48671var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48728var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 48736var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48741var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48798var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 48805var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48890var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 48899var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48905var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 48956var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 48965var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 48971var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 49063var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 49072var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 49078var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 49118var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 49222var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 49295var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 49304var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 49310var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 49528var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, 49544var compilation2 = CreateCompilation(source2, new[] { compilationReference }, options: TestOptions.DebugExe, 49550var compilation3 = CreateCompilation(source2, new[] { metadataReference }, options: TestOptions.DebugExe, 49576var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 49606var compilation1 = CreateCompilation("", options: TestOptions.DebugDll, 49617var compilation1 = CreateCompilation("", options: TestOptions.DebugDll, 49652var compilation1 = CreateCompilation(source, parseOptions: parseOptions, options: TestOptions.DebugDll, 49660var compilation2 = CreateCompilation("", parseOptions: parseOptions, options: TestOptions.DebugDll, 49768var compilation1 = CreateCompilation(source, parseOptions: parseOptions, options: TestOptions.DebugDll, 49776var compilation2 = CreateCompilation("", parseOptions: parseOptions, options: TestOptions.DebugDll, 49917var compilation1 = CreateCompilation(source, options: TestOptions.DebugDll, 49955var compilation0 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp); 49981var compilation1 = CreateCompilation(source0 + source2, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp); 50010var compilation2 = CreateCompilation(source0 + source3, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); 50044var compilation0 = CreateCompilation(source0, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp); 50083var compilation0 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp); 50109var compilation1 = CreateCompilation(source0 + source2, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp); 50129var compilation2 = CreateCompilation(source0 + source3, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); 50164var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); 50202var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); 50246var compilation0 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp); 50262var compilation2 = CreateCompilation(source0 + source3, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); 50306var compilation0 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp); 50361var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50369var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }, targetFramework: TargetFramework.Net50); 50397var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50409var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }, targetFramework: TargetFramework.Net50); 50438var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50450var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }, targetFramework: TargetFramework.Net50); 50478var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50490var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }, targetFramework: TargetFramework.Net50); 50518var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50530var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }, targetFramework: TargetFramework.Net50); 50562var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50577var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { reference }, targetFramework: TargetFramework.Net50); 50606var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50622var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { reference }, targetFramework: TargetFramework.Net50); 50658var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50670var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }, targetFramework: TargetFramework.Net50); 50683var attributes = CreateCompilation(NoPiaAttributes, options: TestOptions.ReleaseDll, references: baseReferences, targetFramework: TargetFramework.Empty); 50711var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, references: baseReferences, targetFramework: TargetFramework.Empty); 50749var pia2Compilation = CreateCompilation(pia2, baseReferences, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Empty); 50753var compilation1 = CreateCompilation(consumer1, options: TestOptions.ReleaseDll, references: baseReferences.Concat(new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }), targetFramework: TargetFramework.Empty); 50757var compilation2 = CreateCompilation(consumer2, options: TestOptions.ReleaseExe, references: baseReferences.Concat(new[] { reference2, pia2Reference }), targetFramework: TargetFramework.Empty); 50791var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50807var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { reference }, targetFramework: TargetFramework.Net50); 50843var compilation0 = CreateCompilation(source0, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net50); 50896var compilation0 = CreateCompilation(source0, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net50); 50949var compilation0 = CreateCompilation(source0, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net50); 50994var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); 51042var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 51063var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 51070var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 51220var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 51230var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 51237var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, references: new[] { reference }, 51360var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 51374var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 51381var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 51501var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 51511var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 51518var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, references: new[] { reference }, 51644var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 51658var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 51665var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 51784var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 51798var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 51805var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 51894var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 51904var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 51911var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, references: new[] { reference }, 51959var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 52014var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 52079var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 52137var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 52202var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 52257var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 52338var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 52408var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 52432var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 52497var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 52503var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 52510var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 52689var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 52699var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 52706var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, references: new[] { reference }, 52854var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 52860var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 52867var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 53017var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 53027var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 53034var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, references: new[] { reference }, 53192var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 53198var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 53206var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 53354var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 53360var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 53368var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 53486var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 53496var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 53503var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, references: new[] { reference }, 53593var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 53725var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 53871var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 54193var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 54200var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 54376var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 54449var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 54549var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 54620var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 54688var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 54782var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 54876var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 54964var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 57029var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 57219var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 57231var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 57260var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 57272var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 57304var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 57313var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 57339var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 57351var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 57380var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 57389var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 57415var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 57427var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 57475var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 57481var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 57488var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 57647var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 57657var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 57664var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, references: new[] { reference }, 57805var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 57811var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 57818var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 57956var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 57966var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 57973var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, references: new[] { reference }, 58119var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 58125var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 58132var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 58268var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 58274var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 58281var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 58388var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe, 58398var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 58405var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe, references: new[] { reference }, 58481var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 58673var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 59245var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 59252var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 59313var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 59413var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 59422var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 59448var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 59460var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 62197var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 62209var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 62238var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 62247var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 62273var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 62282var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 62375var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp); 62468var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, targetFramework: TargetFramework.NetCoreApp); 62513var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.NetCoreApp); 62555var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 62707var comp = CreateCompilationWithIL(source, ilSource, options: options, targetFramework: TargetFramework.Net60, references: new[] { windowsRuntimeRef }); 62780var comp = CreateCompilation(source, options: TestOptions.DebugWinMD, targetFramework: TargetFramework.NetCoreApp, references: new[] { CompilationExtensions.CreateWindowsRuntimeMetadataReference() }); 62833var comp = CreateCompilation(source, options: TestOptions.DebugWinMD, targetFramework: TargetFramework.NetCoreApp, references: new[] { CompilationExtensions.CreateWindowsRuntimeMetadataReference() }); 63101var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 63325var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 63491var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 63667var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 63858var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net60); 64039var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 64200var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 64316var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 64437var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 64527var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 64607var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net60); 64678var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 64757var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net60); 64787var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 64813var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 64843var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 64873var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 64903var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 64922var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 64941var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 64967var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 64989var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65019var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65051var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65077var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65111var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65158var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 65202var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 65246var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 65299var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 65351var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 65380var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65425var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65475var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65520var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65560var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65606var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65644var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65689var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65727var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65772var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65805var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65846var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65881var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65923var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 65958var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66000var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66040var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66079var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66131var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66175var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66220var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66256var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66299var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66331var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66379var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66410var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66452var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66523var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66634var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66745var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66751var compilation2 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 66804var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 66839var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 66870var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 66925var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66931var compilation2 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 66954var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 66991var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 67032var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 67096var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 67129var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67145private static void AssertNoMethodImplementation(CSharpCompilation compilation1) 67163var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67199var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67233var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67274var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67311var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67327private static void AssertNoPropertyImplementation(CSharpCompilation compilation1) 67347var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67383var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67420var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67461var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67499var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67515private static void AssertNoEventImplementation(CSharpCompilation compilation1) 67537var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67574var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67613var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67655var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67692var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67710var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67750var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67792var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67825var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 67864var compilation1 = CreateEmptyCompilation(source1, options: TestOptions.DebugDll, 67895var compilation1 = CreateEmptyCompilation(source1, options: TestOptions.DebugDll, 67930var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 67996var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 68061var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 68159var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net60, 68191var compilation2 = CreateCompilation(source2, new[] { reference }, options: TestOptions.DebugExe, 68485var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 68529var compilation3 = CreateCompilation(source3, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 68548var compilation4 = CreateCompilation(source4, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 68682var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 68688var compilation2 = CreateCompilation(source2, new[] { compilation1.ToMetadataReference() }, options: TestOptions.DebugDll, 68699var compilation3 = CreateCompilation(source2, new[] { compilation1.EmitToImageReference() }, options: TestOptions.DebugDll, 68843var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 68859var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 68866var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 68925var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 68944var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 68951var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { reference }, 69045var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.Net60); 69321var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 69389var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll,
Symbols\DestructorTests.cs (1)
29var comp = CreateCompilation(source);
Symbols\EnumTests.cs (2)
320var comp = CreateCompilation(sourceA, assemblyName: "UseSiteError_sourceA"); 364var comp = CreateCompilation(sourceA, assemblyName: "UseSiteError_sourceA");
Symbols\ErrorTypeSymbolTests.cs (6)
29var compilation1 = CreateCompilation(source1, assemblyName: "91AB32B7-DDDF-4E50-87EF-4E8B0A664A41"); 42var compilation2 = CreateCompilation(source2, references: new[] { reference1 }, assemblyName: "91AB32B7-DDDF-4E50-87EF-4E8B0A664A42"); 50var compilation3 = CreateCompilation(source3, references: new[] { reference1, reference2 }); 55var compilation4 = CreateCompilation(source2); 61var compilation5 = CreateCompilation(source5, references: new[] { reference2 }); 65private void CompareConstructedErrorTypes(CSharpCompilation compilation, bool missingTypes, bool fromSource)
Symbols\ExtendedPartialMethodsTests.cs (112)
29var comp = CreateCompilation(text, parseOptions: TestOptions.Regular8); 52var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 71var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 87var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 128var comp = CreateCompilation(text, parseOptions: TestOptions.Regular8); 151var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 170var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 186var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 265var comp = CreateCompilation(text, parseOptions: TestOptions.Regular8); 288var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 305var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 322var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 339var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 355var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 367var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 380var comp = CreateCompilation(text1, parseOptions: TestOptions.Regular8); 403var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 422var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 439var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 456var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 512var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 538var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 564var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 586var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 608var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 629var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 642var comp = CreateCompilation(text1, parseOptions: TestOptions.Regular8); 669var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 692var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 713var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 742var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 765var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 791var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 812var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 839var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 867var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 894var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 911var comp = CreateCompilation(text1, parseOptions: TestOptions.Regular8); 937var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 964var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 985var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1006var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1023var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1040var comp = CreateCompilation(text1, parseOptions: TestOptions.Regular8); 1066var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1092var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1258var comp = CreateCompilation(text); 1282var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1338var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1364var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1387var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1416var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1440var comp = CreateCompilation(text1, parseOptions: TestOptions.Regular8); 1466var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1488var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1513var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1535var comp = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1644var comp = CreateCompilation(new[] { text, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1678var comp = CreateCompilation(new[] { text, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1714var comp = CreateCompilation(new[] { text, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1735var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods, targetFramework: TargetFramework.NetCoreApp); 1755var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods, targetFramework: TargetFramework.NetCoreApp); 1782var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods, targetFramework: TargetFramework.NetCoreApp); 1812var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods, targetFramework: TargetFramework.NetCoreApp); 1856var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods, targetFramework: TargetFramework.NetCoreApp); 1888var comp = CreateCompilation(text); 1913var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1939var comp = CreateCompilation(text, parseOptions: TestOptions.Regular8); 1970var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2005var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2027var comp = CreateCompilation(text, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2088var comp1 = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2094var comp2 = CreateCompilation( 2125var comp = CreateCompilation(new[] { text1, text2 }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2179var comp = CreateCompilation(new[] { text1, text2 }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2233var comp1 = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2240var comp2 = CreateCompilation( 2277var comp1 = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2283var comp2 = CreateCompilation( 2320var comp1 = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2361var comp1 = CreateCompilation(text1, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2386var comp1 = CreateCompilation( 2434var comp1 = CreateCompilation( 2481var comp1 = CreateCompilation(source1, assemblyName: "C"); 2579var comp = CreateCompilation(csharp, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2632var comp = CreateCompilationWithIL(source, il, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2696var comp = CreateCompilationWithIL(source, il, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2726var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2748var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2770var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2798var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2834var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2861var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2891var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2937var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3001var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3029var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3054var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3067var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3083var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3102var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3129var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3154var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3210var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3274var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3293var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3317var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5)); 3355var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5)); 3416var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5)); 3422static void verifyDiagnostics(CSharpCompilation comp) 3457var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5)); 3490var comp = CreateCompilation(source, parseOptions: TestOptions.RegularWithExtendedPartialMethods);
Symbols\ExtensionMethodTests.cs (69)
115var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, appendDefaultHeader: false); 203var compilation = CreateCompilation(source); 224var compilation = CreateCompilation(source); 257var compilation = CreateCompilation(source); 430var compilation = CreateCompilation(source); 458var compilation = CreateCompilation(source); 674var compilation = CreateCompilation(source); 751var compilation = CreateCompilation(source); 778var compilation = CreateCompilation(source); 840var compilation = CreateCompilation(source); 1092var compilation = CreateCompilation(source); 1138var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1199var compilation = CreateCompilation(source); 1249var compilation = CreateCompilation(source); 1337var compilation = CreateCompilation(source); 1408var compilation = CreateCompilation(source); 1440var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular9); 1481var compilation = CreateCompilation(source); 1526var compilation = CreateCompilation(source); 1574var compilation = CreateCompilation(source); 1593var compilation = CreateCompilation(source); 1616var compilation = CreateCompilation(source); 1687var compilation = CreateCompilation(source); 1723var compilation = CreateCompilation(source); 1826var compilation = CreateCompilation(source); 1859var compilation = CreateCompilation(source); 1892var compilation = CreateCompilation(source); 1952var compilation = CreateCompilation(source); 2007var compilation = CreateCompilation(source); 2045var compilation = CreateCompilation(source); 2188var compilation = CreateCompilation(source); 2205var compilation = CreateEmptyCompilation(source, new[] { Net40.References.mscorlib }); 2425var compilation = CSharpCompilation.Create( 2522var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 2584var comp = CreateCompilation(@" 2723var compilation = CreateCompilationWithMscorlib40AndSystemCore(code); 2794var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 2825var compilation1 = CreateCompilation(source1); 2842var compilation2 = CreateCompilation(source2, references: new[] { new CSharpCompilationReference(compilation1) }, parseOptions: TestOptions.Regular8); 3102var libCompilation = CreateCompilationWithMscorlib40AndSystemCore(lib, assemblyName: Guid.NewGuid().ToString()); 3135var comp = CreateCompilation(src1); 3253var compilation = CreateCompilation(source2, new[] { reference1 }); 3279var compilation2 = CreateCompilation(source2, new[] { reference1 }); 3295var compilation1 = CreateCompilationWithMscorlib40AndSystemCore(source1, assemblyName: "A"); 3308var compilation2 = CreateCompilationWithMscorlib40AndSystemCore(source2, assemblyName: "B"); 3324var compilation3 = CreateCompilation(source3, assemblyName: "C", references: new[] { reference1, reference2 }); 3361var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3398var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3423var compilation = CreateCompilation(source, references: new[] { FSharpTestLibraryRef }); 3447var compilation = CreateEmptyCompilation(source, new[] { MscorlibRef_v20 }, TestOptions.ReleaseDll); 3506var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3574var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3661var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3695var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3730var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 3772var compilation = CreateCompilation(source); 3800var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script); 3818var s0 = CSharpCompilation.CreateScriptCompilation( 3824var s1 = CSharpCompilation.CreateScriptCompilation( 3860var compilation = CreateCompilation(source); 3903var compilation = CreateCompilation(source); 3952var compilation = CreateCompilation(source); 3998var compilation = CreateCompilation(source); 4088var compilation = CreateCompilationWithMscorlib40AndSystemCore(source); 4124var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp); 4157var comp = CreateCompilation(source);
Symbols\FunctionPointerTypeSymbolTests.cs (44)
21private static CSharpCompilation CreateFunctionPointerCompilation(string source, TargetFramework targetFramework = TargetFramework.Standard) 33var comp = CreateFunctionPointerCompilation($@" 66var comp = CreateFunctionPointerCompilation(@" 179var comp = CreateFunctionPointerCompilation(@" 241var compWithMissingMembers = CreateFunctionPointerCompilation(source, targetFramework: TargetFramework.Minimal); 248void verify(CSharpCompilation comp) 295var comp = CreateFunctionPointerCompilation(@" 361var comp = CreateFunctionPointerCompilation(@" 455var comp = CreateFunctionPointerCompilation(@" 524var comp = CreateFunctionPointerCompilation(@" 666var comp = CreateFunctionPointerCompilation(@" 699var comp = CreateFunctionPointerCompilation(@" 715var comp = CreateFunctionPointerCompilation(@" 735var comp = CreateFunctionPointerCompilation(@" 753var comp = CreateFunctionPointerCompilation(@" 771var comp = CreateFunctionPointerCompilation(@" 790var comp = CreateFunctionPointerCompilation(@" 808var comp = CreateFunctionPointerCompilation(@" 826var comp = CreateFunctionPointerCompilation(@" 844var comp = CreateFunctionPointerCompilation(@" 862var comp = CreateFunctionPointerCompilation(@" 880var comp = CreateFunctionPointerCompilation(@" 967var comp = CreateFunctionPointerCompilation(@" 1001var comp = CreateFunctionPointerCompilation(@" 1015var comp = CreateFunctionPointerCompilation(@" 1053var comp = CreateCompilationWithIL("", ilSource, parseOptions: TestOptions.Regular9); 1078var comp = CreateFunctionPointerCompilation(@" 1124var comp = CreateFunctionPointerCompilation(@" 1184var comp = CreateFunctionPointerCompilation(@" 1235var comp = CreateFunctionPointerCompilation(@" 1306var compilation = CreateFunctionPointerCompilation(source); 1331var comp = CreateFunctionPointerCompilation(@" 1387var comp = CreateCompilationWithIL(source, ilSource, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9); 1408var comp = CreateFunctionPointerCompilation(@" 1478var comp = CreateFunctionPointerCompilation(@" 1512var comp = CreateCompilation("", references: new[] { CompileIL(il) }); 1666var comp = CreateFunctionPointerCompilation(@" 1758var comp = CreateFunctionPointerCompilation(@" 1888var comp = CreateFunctionPointerCompilation(@" 1940var otherCorLib = CreateEmptyCompilation(@" 1958var mainComp = CreateCompilation(""); 1977var comp = CreateFunctionPointerCompilation(""); 2066var comp = CreateEmptyCompilation(@" 2133var comp = CreateFunctionPointerCompilation("");
Symbols\GenericConstraintTests.cs (48)
290var comp1 = CreateCompilation(metadatasrc); 291var comp2 = CreateCompilation(source, new MetadataReference[] { comp1.EmitToImageReference() }); 2889var compilation1 = CreateCompilation(source1, assemblyName: "d521fe98-c881-45cf-0788-249e00d004ea"); 2934var compilation2 = CreateCompilation(source2, references: new MetadataReference[] { MetadataReference.CreateFromImage(compilation1.EmitToArray()) }); 2965var compilation3 = CreateCompilation(source3, references: new MetadataReference[] { MetadataReference.CreateFromImage(compilation2.EmitToArray()) }); 3072var compilation1 = CreateCompilation(source1, assemblyName: "d521fe98-c881-45cf-8870-249e00ae400d"); 3081var compilation2 = CreateCompilation(source2, assemblyName: "d03a3229-eb22-4682-88df-77efaa348e3b", references: new MetadataReference[] { new CSharpCompilationReference(compilation1) }); 3097var compilation3 = CreateCompilation(source3, references: new MetadataReference[] { new CSharpCompilationReference(compilation2) }); 3228var comp = CreateCompilation(source); 3345var compilation = CreateCompilationWithILAndMscorlib40(csharpSource, ilSource); 3394var compilation = CreateCompilationWithILAndMscorlib40(csharpSource, ilSource); 3459var compilation = CreateCompilationWithILAndMscorlib40(csharpSource, ilSource); 3590var compilation1 = CreateCompilationWithILAndMscorlib40(csharpSource, ilSource); 3691var compilation = CreateCompilationWithILAndMscorlib40(csharpSource, ilSource); 3748Action<CSharpCompilation> compilationVerifier = 3749delegate (CSharpCompilation compilation) 3782Action<CSharpCompilation> compilationVerifier = 3783delegate (CSharpCompilation compilation) 3816Action<CSharpCompilation> compilationVerifier = 3817delegate (CSharpCompilation compilation) 3850Action<CSharpCompilation> compilationVerifier = 3851delegate (CSharpCompilation compilation) 3899Action<CSharpCompilation> compilationVerifier = 3900delegate (CSharpCompilation compilation) 5244var compilation = CreateCompilationWithILAndMscorlib40(csharpSource, ilSource); 5287var compilation = CreateCompilationWithILAndMscorlib40(csharpSource, ilSource); 5468var compilation = CreateCompilationWithILAndMscorlib40(csharpSource, ilSource).VerifyDiagnostics(); 5587var compilation = CreateCompilation(source); 5679var csCompilation = CreateCSharpCompilation("InheritedObjectConstraint2CS", 5857var compilation = CreateCompilation(source); 6332var comp = CreateCompilation(text); 6353var comp = CreateCompilation(text); 6432var compilation1 = CreateCompilation(source1, assemblyName: "e521fe98-c881-45cf-8870-249e00ae400d"); 6439var compilation2 = CreateCompilation(source2, references: new MetadataReference[] { new CSharpCompilationReference(compilation1) }); 6443var compilation3 = CreateCompilation(source3, references: new MetadataReference[] { new CSharpCompilationReference(compilation2) }); 6576var compilation = CreateCompilationWithMscorlib40AndSystemCore("public interface I<W> where W : struct {}").VerifyDiagnostics(); 6839var compilation1 = CreateCompilation(source1); 6860var compilation2 = CreateCompilation( 6967var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular11); 7005var compilation = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12); 7294var metadataComp = CreateEmptyCompilation(code, new[] { MscorlibRef_v20 }, assemblyName: "assembly1"); 7296var comp = CreateCompilation(@"System.Console.WriteLine(typeof(C.D).FullName);", 7325var remappedComp11 = CreateCompilation( 7331var remappedComp12 = CreateCompilation( 7357var metadataComp = CreateCompilation(code, new[] { remappedComp11.EmitToImageReference() }, assemblyName: "intermediate", targetFramework: TargetFramework.NetStandard20); 7360var comp = CreateCompilation(@" 7388var comp = CreateCompilation(src); 7409var comp = CreateCompilation(src);
Symbols\ImplicitClassTests.cs (5)
22var c = CreateEmptyCompilation(@" 41var c2 = CreateCompilationWithMscorlib461("", new[] { c.ToMetadataReference() }); 53var c = CreateCompilation(@" 82var c = CreateCompilationWithMscorlib461(@" 96var comp = CreateCompilation(@"
Symbols\IndexedPropertyTests.cs (23)
588var compilation2 = CreateCompilation(source2, new[] { reference1 }); 861var compilation2 = CreateCompilation(source2, new[] { reference1 }); 986var @namespace = (NamespaceSymbol)((CSharpCompilation)compilation2.Compilation).GlobalNamespace; 1087var @namespace = (NamespaceSymbol)((CSharpCompilation)compilation2.Compilation).GlobalNamespace; 1186var compilation2 = CreateCompilation(source2, new[] { reference1 }); 1222var compilation2 = CreateCompilation(source2, new[] { reference1 }); 1265var compilation2 = CreateCompilation(source2, new[] { reference1 }); 1329var compilation2 = CreateCompilation(source2, new[] { reference1 }); 1363var compilation2 = CreateCompilation(source2, new[] { reference1 }); 1405var compilation2 = CreateCompilation(source2, new[] { reference1 }); 1492var compilation2 = CreateCompilation(source2, new[] { reference1 }); 1550var compilation2 = CreateCompilation(source2, new[] { reference1 }); 1756var compilation4 = CreateCompilation(source4, new[] { reference1, reference2 }); 1873var compilation3 = CreateCompilation(source3, new[] { reference1 }); 1908var compilation2 = CreateCompilation(source2, new[] { reference1 }); 2057var compilation2 = CreateCompilation(source2, new[] { reference1 }); 2110var compilation2 = CreateCompilation(source2, new[] { reference1 }); 2149var compilation2 = CreateCompilation(source2, new[] { reference1 }); 2188var compilation3 = CreateCompilation(source3, new[] { reference1, reference2 }); 2505var comp = CreateCompilationWithILAndMscorlib40(source, il, parseOptions: TestOptions.Regular10); 2585var compilation = CreateCompilationWithILAndMscorlib40(source, il, options: TestOptions.ReleaseExe); 2706var compilation2 = CreateCompilationWithMscorlib40AndSystemCore(source2, new[] { reference1, CSharpRef }, TestOptions.ReleaseExe); 2765var compilation2 = CreateCompilationWithMscorlib40AndSystemCore(source2, new[] { reference1, CSharpRef }, TestOptions.ReleaseExe);
Symbols\IndexerTests.cs (37)
128var globalNamespace = (NamespaceSymbol)((CSharpCompilation)compilation.Compilation).GlobalNamespace; 273var compilation = CreateCompilation(source); 313var compilation = CreateCompilation(text); 535var compilation = CreateCompilationWithILAndMscorlib40(csharp1, il).VerifyDiagnostics( 605var compilation = CreateCompilationWithILAndMscorlib40(csharp, il); 729var compilation = CreateCompilationWithILAndMscorlib40(csharp, il); 803var compilation = CreateCompilationWithILAndMscorlib40(csharp, il).VerifyDiagnostics( 1143var compilation = module.DeclaringCompilation; 1286var comp = CreateCompilation(tree); 1320var compilation = CreateCompilation(source, new[] { TestReferences.SymbolsTests.Indexers }); 1351var compilation = CreateCompilation(source, new[] { TestReferences.SymbolsTests.Indexers }); 1367var compilation = CreateCompilation(source, 1386var compilation = CreateCompilation(source, new[] { TestReferences.SymbolsTests.Indexers }); 1408var compilation = CreateCompilation(source, 1432var compilation = CreateCompilation(source); 1457var compilation = CreateCompilation(source); 1512var compilation = CreateCompilation(source); 1564var compilation = CreateCompilation(source); 1593var compilation = CreateCompilation(source); 1624var compilation = CreateCompilation(source); 1656var compilation = CreateCompilation(source); 1685var compilation = CreateCompilation(source); 2126var compilation = CreateCompilation(source).VerifyDiagnostics(); 2164var compilation = CreateCompilation(source); 2195var compilation = CreateCompilation(source); 2231var comp = CreateCompilation(tree); 2272var comp = CreateCompilation(tree); 2314var comp = CreateCompilation(tree); 2352var comp = CreateCompilation(tree); 2402var comp = CreateCompilation(text); 2558var compilation = CreateCompilation(new string[] { text1, text2 }); 2610var comp = CreateCompilation(tree); 2697var comp = CreateCompilation(tree); 2833var comp1 = CreateEmptyCompilation(src1, new[] { Net40.References.mscorlib }); 2834var comp2 = CreateCompilation(src2, new[] { new CSharpCompilationReference(comp1) }); 2860var comp = CreateCompilation(source); 2952var compilation = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp);
Symbols\InterfaceImplementationTests.cs (49)
48var comp = CreateCompilation(text); 119var comp = CreateCompilation(text); 175var comp = CreateCompilation(text); 233var comp1 = CreateCompilation(text1); 237var comp2 = CreateCompilation(text2, references: refs, assemblyName: "Test2"); 241var comp = CreateCompilation(text3, refs, assemblyName: "Test3"); 305var comp1 = CreateCompilation(text1); 309var comp2 = CreateCompilation(text2, references: refs, assemblyName: "Test2"); 313var comp = CreateCompilation(text3, refs, assemblyName: "Test3"); 371var comp = CreateCompilation(text); 419var comp1 = CreateCompilation(text1); 423var comp2 = CreateCompilation(text2, references: refs, assemblyName: "Test2"); 427var comp = CreateCompilation(text3, refs, assemblyName: "Test3"); 504var comp = CreateCompilation(text); 572var comp = CreateCompilation(text); 622var comp = CreateCompilation(text); 673var comp = CreateCompilation(text); 734var comp = CreateCompilation(text); 824var comp = CreateCompilation(text); 906var comp = CreateCompilation(text); 967var comp1 = CreateCompilation(text1, 972var comp2 = CreateCompilation(text2, 1054var comp = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 1108var comp = CreateCompilation(text, new[] { ilAssemblyReference }); 1126var comp = CreateCompilation(text, new[] { ilAssemblyReference }); 1147var comp = CreateCompilation(text); 1214var comp = CreateCompilation(csharp); 1285var comp = CreateCompilationWithILAndMscorlib40(csharp, il); 1341var comp = CreateCompilationWithILAndMscorlib40(csharp, il); 1416var comp = CreateCompilationWithILAndMscorlib40(csharp, il); 1439var comp = CreateCompilationWithILAndMscorlib40(csharp, il); 1535var comp = CreateCompilationWithILAndMscorlib40(csharp, il); 1587var comp = CreateCompilation(text); 1628var comp = CreateCompilation(text); 1688var comp = CreateCompilation(text); 1758var compilation = CreateCompilationWithILAndMscorlib40(csharp, il); 1854var comp = CreateCompilation(source); 1892var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, assemblyName: "asm1"); 1896var comp2 = CreateCompilation(source2, new[] { ref1 }, options: TestOptions.ReleaseDll, assemblyName: "asm2"); 1955var comp = CreateCompilationWithILAndMscorlib40(source, il); 2018var comp = CreateCompilationWithILAndMscorlib40(source, il); 2205var comp = CreateCompilationWithILAndMscorlib40(source, il, options: TestOptions.ReleaseExe); 2281var comp = CreateCompilationWithILAndMscorlib40(source, il); 2449var comp = CreateCompilationWithILAndMscorlib40(source, il, options: TestOptions.DebugExe); 2480var comp = CreateCompilation(text); 2697var comp = CreateCompilation(source0); 2730var comp1 = CreateCompilation(text1); 2753var comp0 = CreateCompilation(text0); 2755var comp1 = CreateCompilation("", references: new[] { comp0.EmitToImageReference() });
Symbols\InterfaceOverriddenOrHiddenMembersTests.cs (24)
784var comp = CreateCompilation(source); 841var comp = CreateCompilation(code).VerifyDiagnostics( 870var comp = CreateCompilation(code).VerifyDiagnostics( 899var comp = CreateCompilation(code).VerifyDiagnostics( 928var comp = CreateCompilation(code).VerifyDiagnostics( 957var comp = CreateCompilation(code).VerifyDiagnostics( 986var comp = CreateCompilation(code).VerifyDiagnostics( 1015var comp = CreateCompilation(code).VerifyDiagnostics( 1044var comp = CreateCompilation(code).VerifyDiagnostics(); 1070var comp = CreateCompilation(code).VerifyDiagnostics(); 1096var comp = CreateCompilation(code).VerifyDiagnostics(); 1122var comp = CreateCompilation(code).VerifyDiagnostics(); 1140var comp = CreateCompilation(code).VerifyDiagnostics(); 1158var comp = CreateCompilation(code).VerifyDiagnostics(); 1175var comp = CreateCompilation(code).VerifyDiagnostics( 1201var comp = CreateCompilation(text).VerifyDiagnostics(); 1220var comp = CreateCompilation(text).VerifyDiagnostics( 1246var comp = CreateCompilation(text).VerifyDiagnostics( 1272var comp = CreateCompilation(code).VerifyDiagnostics( 1296var comp = CreateCompilation(code).VerifyDiagnostics( 1317var comp = CreateCompilation(code).VerifyDiagnostics( 1337var comp = CreateCompilation(code).VerifyDiagnostics(); 1354var comp = CreateCompilation(code).VerifyDiagnostics( 1374var comp = CreateCompilation(code).VerifyDiagnostics(
Symbols\LocalFunctionTests.cs (4)
30var compilation = CreateCompilation(source).VerifyDiagnostics(); 51var compilation = CreateCompilation(source).VerifyDiagnostics(); 72var compilation = CreateCompilation(source).VerifyDiagnostics(); 95var compilation = CreateCompilation(source).VerifyDiagnostics();
Symbols\LookupSymbolsInfoTests.cs (1)
91var compilation = CreateCompilation(source);
Symbols\Metadata\MetadataMemberTests.cs (19)
151var compilation = CreateCompilation(text); 186var compilation = CreateEmptyCompilation(text, new[] { MscorlibRef }); 238var compilation = CreateEmptyCompilation(text, new[] { MscorlibRef }); 298var compilation = CreateCompilation(text); 343var compilation = CreateCompilation(text); 394var compilation = CreateCompilation(text); 441var compilation = CreateCompilationWithILAndMscorlib40(csharp, il); 465var compilation = CreateCompilationWithILAndMscorlib40(csharp, il); 482var comp = CreateCompilationWithILAndMscorlib40(csharp, VTableGapClassIL); 533var comp = CreateCompilationWithILAndMscorlib40(csharp, VTableGapClassIL); 578var comp = CreateCompilationWithILAndMscorlib40(csharp, VTableGapInterfaceIL); 619var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll); 629var comp2 = CreateCompilation("", new[] { comp1.EmitToImageReference() }); 659var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll); 670var comp2 = CreateCompilation("", new[] { comp1.EmitToImageReference() }); 731var compilation0 = CreateCompilation(source); 734var compilation = CreateCompilation("", options: options, references: new[] { compilation0.EmitToImageReference() }); 794var compilation0 = CreateCompilation(source); 796var compilation = CreateCompilation("", options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.Internal), references: new[] { compilation0.EmitToImageReference() });
Symbols\Metadata\MetadataTypeTests.cs (11)
27var compilation = CreateEmptyCompilation(text, new[] { MscorlibRef }); 67var compilation = CreateEmptyCompilation(text, new[] { MscorlibRef }); 117var compilation = CreateEmptyCompilation(text, new[] { MscorlibRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 167var compilation = CreateCompilation(text); 215var compilation = CreateEmptyCompilation(text, 279var compilation1 = CreateEmptyCompilation(source1, new[] { Net40.References.mscorlib, Net40.References.SystemCore }); 283var compilation2 = CreateEmptyCompilation(source2, new MetadataReference[] { Net40.References.mscorlib, Net40.References.SystemCore, compilation1.EmitToImageReference() }, 358var comp = CreateCompilation(source: tree, references: new[] { modRef }); 360var currComp = comp; 512var comp = CreateCompilationWithILAndMscorlib40("", ilSource); 578var comp = CreateCompilationWithILAndMscorlib40("", ilSource);
Symbols\Metadata\PE\BaseTypeResolution.cs (8)
16using CSReferenceManager = Microsoft.CodeAnalysis.CSharp.CSharpCompilation.ReferenceManager; 311var c1 = CSharpCompilation.Create("Test", references: new MetadataReference[] { mscorlibRef }); 317var c2 = CSharpCompilation.Create("Test2", references: new MetadataReference[] { localMTTestLib1Ref }); 337var compilation1 = CreateCompilation(compilationDef1, new MetadataReference[] { crossRefLib }, TestOptions.ReleaseDll); 357var compilation2 = CreateCompilation(compilationDef2, new MetadataReference[] { crossRefModule1, crossRefModule2 }, TestOptions.ReleaseDll); 369var compilation3 = CreateCompilation(compilationDef2, new MetadataReference[] { crossRefModule2 }, TestOptions.ReleaseDll);
Symbols\Metadata\PE\DynamicTransformsTests.cs (3)
402var compilation = CreateCompilationWithILAndMscorlib40(String.Empty, il); 439var c = CreateCompilation(csSource, new[] { dll }); 554var compilation = CreateCompilationWithILAndMscorlib40(source, il, options: TestOptions.ReleaseExe);
Symbols\Metadata\PE\HasUnsupportedMetadata.cs (2)
158var compilation1 = CreateCompilationWithILAndMscorlib40("", iLSource); 362var compilation1 = CreateCompilationWithILAndMscorlib40("", iLSource);
Symbols\Metadata\PE\LoadInAttributeModifier.cs (1)
122var c = CreateCompilation(@"
Symbols\Metadata\PE\LoadingAttributes.cs (2)
1292var compilation = CreateCompilation( 1507var c = CreateCompilationWithILAndMscorlib40(@"
Symbols\Metadata\PE\LoadingEvents.cs (3)
468var comp = CreateCompilation("", new[] { reference }, TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 521var comp = CreateCompilation("", new[] { ilRef }, TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 581var comp = CreateCompilation("", new[] { ilRef }, TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
Symbols\Metadata\PE\LoadingFields.cs (2)
140var compilation = CreateCompilationWithILAndMscorlib40(text, il, options: TestOptions.DebugExe); 148var comp = CreateCompilation("", targetFramework: TargetFramework.Net60);
Symbols\Metadata\PE\LoadingGenericTypeParameters.cs (1)
243var compilation1 = CreateCompilationWithILAndMscorlib40(csharpSource, ilSource);
Symbols\Metadata\PE\LoadingIndexers.cs (1)
609private static void CheckInstanceAndStaticIndexers(CSharpCompilation compilation, string className, string indexerDisplayString)
Symbols\Metadata\PE\LoadingMetadataTokens.cs (2)
18var compilation = CreateCompilation( 81var compilation = CreateCompilation(
Symbols\Metadata\PE\LoadingMethods.cs (10)
772var compilation = CreateCompilation(source, new[] { TestReferences.SymbolsTests.Methods.ILMethods }); 785var compilation = CreateCompilation(source, new[] { TestReferences.SymbolsTests.Methods.ILMethods }); 829var compilation = CreateCompilation(source, new[] { TestReferences.SymbolsTests.Methods.ILMethods }); 1178var compilation = CreateCompilationWithILAndMscorlib40("", ilSource); 1240var compilation = CreateCompilationWithILAndMscorlib40("", ilSource); 1265var c = CreateCompilation(source, new[] { longFormRef }); 1289var c = CreateCompilation(source, new[] { lib }); 1309var c = CreateCompilation(source, new[] { lib }); 1348var comp = CreateEmptyCompilation("", new[] { ilRef }); 1372var comp = CreateCompilation(source, references: references);
Symbols\Metadata\PE\LoadingNamespacesAndTypes.cs (4)
381var compilation = CSharpCompilation.Create("C1", references: 398var compilation = CSharpCompilation.Create("C1", references:
Symbols\Metadata\PE\NoPia.cs (96)
370var localTypes1 = CSharpCompilation.Create("LocalTypes1", new[] { Parse(localTypes1Source) }, new[] { pia1CopyLink, mscorlibRef }); 374var localTypes2 = CSharpCompilation.Create("LocalTypes2", new[] { Parse(localTypes2Source) }, new[] { mscorlibRef, pia1CopyLink }); 385new CSharpCompilation[] { localTypes1, localTypes2 }); 437new CSharpCompilation[] { localTypes1, localTypes2 }); 467new CSharpCompilation[] { localTypes1, localTypes2 }); 501new CSharpCompilation[] { localTypes1, localTypes2 }); 513new CSharpCompilation[] { localTypes1, localTypes2 }); 558new CSharpCompilation[] { localTypes1, localTypes2 }); 588new CSharpCompilation[] { localTypes1, localTypes2 }); 623new CSharpCompilation[] { localTypes1, localTypes2 }); 692var tc1 = CSharpCompilation.Create("Cyclic1", references: new MetadataReference[] { mscorlibRef, cyclic2Ref, piaRef, localTypes1Ref }); 695var tc2 = CSharpCompilation.Create("Cyclic1", references: new MetadataReference[] { mscorlibRef, cyclic2Ref, piaRef, localTypes1Ref }); 762var tc1 = CSharpCompilation.Create("C1", references: new MetadataReference[] { mscorlibRef, pia5Link }); 772var tc2 = CSharpCompilation.Create("C1", references: new MetadataReference[] { mscorlibRef, pia5Ref }); 782var tc3 = CSharpCompilation.Create("C1", references: new MetadataReference[] { mscorlibRef, library2Ref, pia5Link, pia1Ref }); 796var tc4 = CSharpCompilation.Create("C1", references: new MetadataReference[] { mscorlibRef, library2Ref, pia5Ref, pia1Ref }); 812var tc5 = CSharpCompilation.Create("C1", references: new MetadataReference[] { mscorlibRef, library2Ref, pia5Link, pia1Link }); 830var tc6 = CSharpCompilation.Create("C1", references: new MetadataReference[] { mscorlibRef, library2Ref, pia5Link, pia1Ref }); 843var tc7 = CSharpCompilation.Create("C1", references: new MetadataReference[] { mscorlibRef, library2Link, pia5Link, pia1Ref }); 882var tc1 = CSharpCompilation.Create("C1", references: new MetadataReference[] { varmscorlibRef, varCRef, varARef, varBLink }); 888var tc2 = CSharpCompilation.Create("C2", references: new MetadataReference[] { varmscorlibRef, varCRef, varARef, varDRef, varBLink }); 896var tc3 = CSharpCompilation.Create("C3", references: new MetadataReference[] { varmscorlibRef, varCRef, varBLink }); 901var tc4 = CSharpCompilation.Create("C4", references: new MetadataReference[] { varmscorlibRef, varCRef, varARef, varBRef }); 911var tc5 = CSharpCompilation.Create("C5", references: new MetadataReference[] { varmscorlibRef, varCRef, varALink, varBLink }); 922var tc6 = CSharpCompilation.Create("C6", references: new MetadataReference[] { varmscorlibRef, varARef, varBLink, varCLink }); 933var tc7 = CSharpCompilation.Create("C7", references: new MetadataReference[] { varmscorlibRef, varCRef, varARef }); 1009var varC_LocalTypes3 = CSharpCompilation.Create("LocalTypes3", new[] { Parse(localTypes3Source) }, new[] { mscorlibRef, pia1CopyLink }); 1033new CSharpCompilation[] { varC_LocalTypes3 }); 1106var varC_Pia5 = CSharpCompilation.Create("Pia5", new[] { Parse(pia5Source) }, new[] { mscorlibRef }); 1114var varC_Pia1 = CSharpCompilation.Create("Pia1", new[] { Parse(pia1Source) }, new[] { mscorlibRef }); 1122var varC_Library2 = CSharpCompilation.Create("Library2", new[] { Parse(library2Source) }, new MetadataReference[] { mscorlibRef, pia1Ref, pia5Ref }); 1129var tc1 = CSharpCompilation.Create("C1", new SyntaxTree[0], new MetadataReference[] { mscorlibRef, pia5Link }); 1139var tc2 = CSharpCompilation.Create("C1", new SyntaxTree[0], new MetadataReference[] { mscorlibRef, pia5Ref }); 1149var tc3 = CSharpCompilation.Create("C1", new SyntaxTree[0], new MetadataReference[] { mscorlibRef, library2Ref, pia5Link, pia1Ref }); 1163var tc4 = CSharpCompilation.Create("C1", new SyntaxTree[0], new MetadataReference[] { mscorlibRef, library2Ref, pia5Ref, pia1Ref }); 1179var tc5 = CSharpCompilation.Create("C1", new SyntaxTree[0], new MetadataReference[] { mscorlibRef, library2Ref, pia5Link, pia1Link }); 1197var tc6 = CSharpCompilation.Create("C1", new SyntaxTree[0], new MetadataReference[] { mscorlibRef, library2Ref, pia5Link, pia1Ref }); 1210var tc7 = CSharpCompilation.Create("C1", new SyntaxTree[0], new MetadataReference[] { mscorlibRef, library2Link, pia5Link, pia1Ref }); 1267var varC_A = CSharpCompilation.Create("A", references: new[] { mscorlibRef }); 1272var varC_B = CSharpCompilation.Create("B", references: new[] { mscorlibRef }); 1277var varC_C = CSharpCompilation.Create("C", references: new MetadataReference[] { mscorlibRef, varARef, varBRef }); 1282var varC_D = CSharpCompilation.Create("D", references: new MetadataReference[] { mscorlibRef }); 1287var tc1 = CSharpCompilation.Create("C1", references: new MetadataReference[] { mscorlibRef, varCRef, varARef, varBLink }); 1293var tc2 = CSharpCompilation.Create("C2", references: new MetadataReference[] { mscorlibRef, varCRef, varARef, varDRef, varBLink }); 1301var tc3 = CSharpCompilation.Create("C3", references: new MetadataReference[] { mscorlibRef, varCRef, varBLink }); 1306var tc4 = CSharpCompilation.Create("C4", references: new MetadataReference[] { mscorlibRef, varCRef, varARef, varBRef }); 1316var tc5 = CSharpCompilation.Create("C5", references: new MetadataReference[] { mscorlibRef, varCRef, varALink, varBLink }); 1327var tc6 = CSharpCompilation.Create("C6", references: new MetadataReference[] { mscorlibRef, varARef, varBLink, varCLink }); 1338var tc7 = CSharpCompilation.Create("C7", references: new MetadataReference[] { mscorlibRef, varCRef, varARef }); 1382var compilationPIA = CreateCompilation(sourcePIA, options: TestOptions.DebugDll); 1388var compilationBase = CreateCompilation(sourceBase, new[] { referencePIASource }, TestOptions.DebugDll); 1403var compilationDerived1 = CreateCompilation(sourceDerived, new[] { referencePIASource, referenceBaseSource }, TestOptions.DebugDll); 1406var compilationDerived2 = CreateCompilation(sourceDerived, new[] { referencePIAImage, referenceBaseSource }, TestOptions.DebugDll); 1409var compilationDerived3 = CreateCompilation(sourceDerived, new[] { referencePIASource, referenceBaseImage }, TestOptions.DebugDll); 1412var compilationDerived4 = CreateCompilation(sourceDerived, new[] { referencePIAImage, referenceBaseImage }, TestOptions.DebugDll); 1415static void verify(CSharpCompilation compilationDerived)
Symbols\Metadata\PE\NoPiaInstantiationOfGenericClassAndStruct.cs (28)
31var localConsumer1 = CreateCompilation(localTypeSource); 50var localConsumer = CreateCompilation(localTypeSource); 70var localConsumer = CreateCompilation(localTypeSource); 89var localConsumer = CreateCompilation(localTypeSource); 113var localConsumer = CreateCompilation(localTypeSource); 131var localConsumer = CreateCompilation(localTypeSource1); 160var localConsumer = CreateCompilation(localTypeSource1); 178var localConsumer = CreateCompilation(localTypeSource); 197var localConsumer = CreateCompilation(localTypeSource); 216var localConsumer = CreateCompilation(localTypeSource); 235var localConsumer = CreateCompilation(localTypeSource); 254var localConsumer = CreateCompilation(localTypeSource); 273var localConsumer = CreateCompilation(localTypeSource); 292var localConsumer = CreateCompilation(localTypeSource); 311var localConsumer = CreateCompilation(localTypeSource); 330var localConsumer = CreateCompilation(localTypeSource); 349var localConsumer = CreateCompilation(localTypeSource); 366var localConsumer = CreateCompilation(localTypeSource); 386var localConsumer = CreateCompilation(localTypeSource); 407var localConsumer = CreateCompilation(localTypeSource); 438var localConsumer = CreateCompilation(localTypeSource1); 464var localConsumer = CreateCompilation(localTypeSource); 478var localConsumer = CreateCompilationWithMscorlib40(assemblyName: "Dummy", source: (string[])null, 498var localConsumer = CreateCompilation(null); 514var localConsumer = CreateCompilation(null); 554var localType = CreateCompilation(assemblyName: "Dummy", source: localTypeSource, 557var localConsumer = CreateCompilation(assemblyName: "Dummy", source: (string[])null, 576public CSharpCompilation CreateCompilation(string source)
Symbols\Metadata\PE\NoPiaLocalHideAndTypeSubstitutionTests.cs (17)
27var localConsumer = CreateCompilation(assemblyName: "Dummy", source: (string[])null, 73var localType1 = CreateEmptyCompilation(assemblyName: "Dummy1", source: new string[] { localTypeSource1 }, 79var localType2 = CreateEmptyCompilation(assemblyName: "Dummy2", source: new string[] { localTypeSource2 }, 86var localConsumer = CreateEmptyCompilation(assemblyName: "Dummy3", source: CSharpTestSource.None, 122var localConsumer = CreateEmptyCompilation(assemblyName: "Dummy", source: new string[] { localTypeSource }, 185var localConsumer = CreateEmptyCompilation(assemblyName: "Dummy", source: new string[] { localTypeSource }, 222var localConsumer = CreateEmptyCompilation(assemblyName: "Dummy", source: new string[] { localTypeSource }, 257var localConsumer = CreateEmptyCompilation(assemblyName: "Dummy", source: new string[] { localTypeSource }, 288var localConsumer = CreateEmptyCompilation(assemblyName: "Dummy", source: new string[] { localTypeSource }, 316var localConsumer = CreateEmptyCompilation(assemblyName: "Dummy", source: CSharpTestSource.None, 338var localConsumer = CreateEmptyCompilation(assemblyName: "Dummy", source: CSharpTestSource.None, 360var localConsumer = CreateEmptyCompilation(assemblyName: "Dummy", source: CSharpTestSource.None, 423var localType1 = CreateCompilation(assemblyName: "Dummy1", source: localTypeSource1, references: null); 425var localType2 = CreateCompilation(assemblyName: "Dummy2", source: localTypeSource2, 430var localConsumer = CreateCompilation(source: "", assemblyName: "Dummy3", 468var localType = CreateCompilation(assemblyName: "Dummy1", source: localTypeSource, references: null); 470var localConsumer = CreateCompilation(assemblyName: "Dummy2", source: "",
Symbols\Metadata\PE\TypeForwarders.cs (38)
94var compilation = CreateCompilationWithMscorlib40AndSystemCore(new SyntaxTree[0]); 170var compilation = CreateCompilation(csharp, new[] { ref1, ref2, ref3 }); 233var compilation = CreateCompilation(csharp, new[] { ref1, ref2 }); 307var compilation = CreateCompilation(csharp, new[] { ref1, ref2, ref3 }); 406var compilation = CreateCompilation(csharp, new[] { ref1, ref2, ref3, ref4 }); 514var compilation = CreateCompilation(csharp, new[] { ref1, ref2, ref3 }); 570var compilation = CreateCompilation(csharp, new[] { ref1, ref2 }); 754var comp3 = CreateCompilation(csharp, new[] { ref1, ref2 }); 1051var compilation = CreateCompilation(csharp, new[] { ref1 }); 1145var compilation = CreateCompilation(csharp, new[] { ref1 }); 1209var compilation = CreateCompilation(csharp, new[] { ref1 }); 1230private static IEnumerable<string> EnumerateNamespaces(CSharpCompilation compilation) 1462var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, assemblyName: "Asm1"); 1466var comp2 = CreateCompilation(source2, new[] { ref1 }, options: TestOptions.ReleaseDll, assemblyName: "Asm2"); 1611var forwardedTypesCompilation = CreateCompilation(forwardedTypes, options: TestOptions.ReleaseDll, assemblyName: "ForwarderTargetAssembly"); 1618var modCompilation = CreateCompilation(mod, references: new[] { new CSharpCompilationReference(forwardedTypesCompilation) }, options: TestOptions.ReleaseModule); 1628var appCompilation = CreateCompilation(app, references: new[] { modRef1, new CSharpCompilationReference(forwardedTypesCompilation) }, options: TestOptions.ReleaseDll); 1727var comp0 = CreateCompilation(source0, options: TestOptions.ReleaseModule, assemblyName: "asm0"); 1731var comp1 = CreateCompilation(source1, new[] { ref0 }, options: TestOptions.ReleaseDll, assemblyName: "asm1"); 1738var comp2 = CreateCompilation(source2, new[] { ref1 }, options: TestOptions.ReleaseDll, assemblyName: "asm2"); 1823var cA_v1 = CreateCompilation(@" 1829var cB = CreateCompilation(@" 1837var cC_v1 = CreateCompilation(@" 1845var cA_v2 = CreateCompilation(@" 1851var cD = CreateCompilation(@" 1857var cA_v3 = CreateCompilation(@"", new[] { cD_ImageRef, new CSharpCompilationReference(cC_v1) }, options: TestOptions.ReleaseDll, assemblyName: "A"); 1859var cC_v2 = CreateCompilation(@" 1891var context = CreateCompilation("", new[] { r1, r2, r3 }, options: TestOptions.ReleaseDll); 1918var compA1 = CreateCompilation(sourceA1, assemblyName: "A"); 1922var compB1 = CreateCompilation(sourceB1, assemblyName: "B"); 1936var comp = CreateCompilation(sourceProgram, references: new[] { refA1, refB1 }); 1945var compBImpl = CreateCompilation(sourceBImpl, assemblyName: "BImpl"); 1951var compB2 = CreateCompilation(sourceB2, references: new[] { refBImpl }, assemblyName: "B"); 1982var compA1 = CreateCompilation(sourceA1, assemblyName: "A"); 1986var compB1 = CreateCompilation(sourceB1, assemblyName: "B"); 2000var comp = CreateCompilation(sourceProgram, references: new[] { refA1, refB1 }); 2009var compBImpl = CreateCompilation(sourceBImpl, assemblyName: "BImpl"); 2015var compB2 = CreateCompilation(sourceB2, references: new[] { refBImpl }, assemblyName: "B");
Symbols\MethodEqualityTests.cs (3)
33var comp = CreateCompilation(text); 80var comp = CreateCompilation(text); 140var comp = CreateCompilation(text);
Symbols\MissingSpecialMember.cs (67)
37var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 69var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 101var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 124var comp = CreateEmptyCompilation(source, new[] { Net40.References.mscorlib }, options: TestOptions.ReleaseDll); 155Action<CSharpCompilation> validate = comp => 194Action<CSharpCompilation> validatePresent = comp => 201Action<CSharpCompilation> validateMissing = comp => 233Action<CSharpCompilation> validate = comp => 269var comp = CreateEmptyCompilation(source); 302Action<CSharpCompilation> validate = comp => 344Action<CSharpCompilation> validatePresent = comp => 379Action<CSharpCompilation> validate = comp => 430Action<CSharpCompilation> validate = comp => 495var comp = CreateEmptyCompilation("", new[] { corlibRef, publicLibRef, internalLibRef }, assemblyName: "Test"); 506private static void ValidateSourceAndMetadata(string source, Action<CSharpCompilation> validate) 509var comp1 = CreateEmptyCompilation(source, parseOptions: parseOptions); 518var comp2 = CreateEmptyCompilation("", new[] { reference }, parseOptions: parseOptions); 526var comp = CreateEmptyCompilation("", new[] { MscorlibRef_v4_0_30316_17626 }); 550var comp = CreateEmptyCompilation("", [Net461.References.mscorlib]); 597var comp = CreateEmptyCompilation("", refs); 938var comp = CreateEmptyCompilation("", refs); 1103var comp = CreateCompilation(source); 1134var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe); 1172var compilation = CreateCompilationWithMscorlib461(source); 1213var compilation = CreateCompilationWithMscorlib461(source); 1254var compilation = CreateCompilationWithMscorlib461(source); 1294var compilation = CreateCompilationWithMscorlib461(source); 1319var compilation = CreateCompilationWithMscorlib461(source); 1349var compilation = CreateCompilationWithMscorlib461(source); 1397var compilation = CreateCompilationWithMscorlib461(source); 1481var compilation = CreateCompilationWithMscorlib461(source1 + source2); 1520var compilation = CreateCompilationWithMscorlib461(source); 1560var compilation = CreateCompilationWithMscorlib461(source); 1601var compilation = CreateCompilationWithMscorlib461(source); 1624var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }); 1652var compilation = CreateCompilationWithMscorlib461(source); 1680var compilation = CreateCompilationWithMscorlib461(source); 1722var compilation = CreateCompilationWithMscorlib461(source); 1787var compilation = CreateCompilationWithMscorlib461(source); 1813var compilation = CreateCompilationWithMscorlib461(source); 1843var compilation = CreateCompilationWithMscorlib461(source); 1864var compilation = CreateCompilationWithMscorlib461(source); 1896var compilation = CreateCompilationWithMscorlib461(source); 1928var compilation = CreateCompilationWithMscorlib461(source); 1957var compilation = CreateCompilationWithMscorlib461(source); 2000var compilation = CreateCompilationWithMscorlib461(source); 2037var compilation = CreateCompilationWithMscorlib461(source); 2068var compilation = CreateCompilationWithMscorlib461(source); 2099var compilation = CreateCompilationWithMscorlib461(source); 2134var compilation = CreateCompilationWithMscorlib461(source); 2167var compilation = CreateCompilationWithMscorlib461(source); 2198var compilation = CreateCompilationWithMscorlib461(source); 2260var compilation = CreateCompilationWithMscorlib461(source); 2305var compilation = CreateCompilationWithMscorlib461(source); 2356var compilation = CreateCompilationWithMscorlib461(source); 2386var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe); 2408var compilation = CreateCompilationWithMscorlib461(source); 2434var compilation = CreateCompilationWithMscorlib461(source); 2464var compilation = CreateCompilationWithMscorlib461(source); 2497var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }); 2525var compilation = CreateCompilationWithMscorlib461(source); 2556var compilation = CreateCompilationWithMscorlib461(source); 2590var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }); 2612var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }); 2634var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }); 2658var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }); 2683var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemRef });
Symbols\MockSymbolTests.cs (5)
24CSharpCompilation compilation = CSharpCompilation.Create("Test"); 97CSharpCompilation compilation = CSharpCompilation.Create("Test"); 99Assert.IsType<CSharpCompilation>(ne2.Compilation);
Symbols\ModuleInitializers\AccessibilityTests.cs (5)
36var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 119var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 159var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 215var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 283var compilation = CreateCompilation(source, parseOptions: s_parseOptions);
Symbols\ModuleInitializers\GenericsTests.cs (4)
32var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 54var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 76var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 101var compilation = CreateCompilation(source, parseOptions: s_parseOptions);
Symbols\ModuleInitializers\ModuleInitializersTests.cs (11)
39var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular8); 62var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular9); 830var comp1 = CreateCompilation(s1, options: moduleOptions.WithModuleName("A"), parseOptions: s_parseOptions); 847var comp2 = CreateCompilation(s2, options: moduleOptions.WithModuleName("B"), parseOptions: s_parseOptions, references: new[] { ref1 }); 865var comp3 = CreateCompilation(s3, options: exeOptions, parseOptions: s_parseOptions, references: new[] { ref1, ref2 }); 881var comp4 = CreateCompilation(s4, options: exeOptions, parseOptions: s_parseOptions, references: new[] { ref1, ref2 }); 897var comp5 = CreateCompilation(s5, options: exeOptions, parseOptions: s_parseOptions, references: new[] { ref1, ref2 }); 913var comp6 = CreateCompilation(s6, options: exeOptions, parseOptions: s_parseOptions, references: new[] { ref1, ref2 }); 935var comp7 = CreateCompilation(s7, options: exeOptions, parseOptions: s_parseOptions, references: new[] { ref1, ref2 }); 959var comp8 = CreateCompilation(s8, options: exeOptions, parseOptions: s_parseOptions, references: new[] { ref1, ref2 }); 1070var comp = CreateCompilationWithIL(source1, il, parseOptions: s_parseOptions, options: exeOptions);
Symbols\ModuleInitializers\SignatureTests.cs (9)
33var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 56var compilation = CreateCompilation(source, parseOptions: s_parseOptions, targetFramework: TargetFramework.NetCoreApp); 81var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 103var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 125var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 147var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 195var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 217var compilation = CreateCompilation(source, targetFramework: StaticAbstractMembersInInterfacesTests._supportingFramework); 237var compilation = CreateCompilation(source, targetFramework: StaticAbstractMembersInInterfacesTests._supportingFramework);
Symbols\ModuleInitializers\TargetsTests.cs (18)
36var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 67var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 89var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 116var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 138var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 165var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 187var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 214var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 241var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 276var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 306var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 341var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 371var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 406var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 431var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 458var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 480var compilation = CreateCompilation(source, parseOptions: s_parseOptions); 507var compilation = CreateCompilation(source, parseOptions: s_parseOptions);
Symbols\NamespaceExtentTests.cs (2)
19var c1 = CreateCompilation(""); 20var c2 = CreateCompilation("");
Symbols\OverriddenOrHiddenMembersTests.cs (90)
74var comp = CreateCompilation(tree); 161var comp = CreateCompilation(tree); 242var comp = CreateCompilation(text); 333var comp = CreateCompilation(text); 414var comp = CreateCompilation(text); 465var comp = CreateCompilation(text); 525var comp = CreateCompilationWithMscorlib461(text); 601var comp = CreateCompilation(text); 663var comp = CreateCompilation(text); 734var comp1 = CreateCompilation(text1); 738var comp2 = CreateCompilation(text2, references: refs, assemblyName: "Test2"); 742var comp = CreateCompilation(text3, refs, assemblyName: "Test3"); 897var comp = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 997var comp = CreateCompilationWithILAndMscorlib40(csharp, il); 1066var comp = CreateCompilationWithILAndMscorlib40(csharp, il); 1135var comp = CreateCompilation(text); 1153var comp = CreateCompilation(text); 1182var comp = CreateCompilation( 1219var comp = CreateCompilation( 1861var comp = CreateCompilation(text); 1887var comp = CreateCompilation(text); 1912var comp = CreateCompilation(text); 1940var comp = CreateCompilation(text); 1968var comp = CreateCompilation(text); 1996var comp = CreateCompilation(text); 2025var comp = CreateCompilation(text); 2092var comp = CreateCompilation(text); 2176var c1 = CreateCompilation(@" 2190var c2 = CreateCompilation(@" 2205var c1 = CreateCompilation(@" 2231var c2 = CreateCompilation(@" 2432var comp = CreateCompilation(source); 2491var comp = CreateCompilation(source); 2556var comp = CreateCompilation(source); 2615var comp = CreateCompilation(source); 2828var comp = CreateCompilation(csharp, new[] { ref1 }, options: TestOptions.ReleaseExe); 2865var compilation = CreateEmptyCompilation(text, new MetadataReference[] { MscorlibRef_v20 }); 2899var comp1 = CreateCompilation(source1, assemblyName: "A.dll"); 2902var comp2 = CreateCompilation(source2, new[] { ref1 }, assemblyName: "B.dll"); 2905var comp3 = CreateCompilation(source3, new[] { ref1, ref2 }, assemblyName: "C.dll"); 2947var comp1 = CreateCompilation(source1, assemblyName: "A.dll"); 2950var comp2 = CreateCompilation(source2, new[] { ref1 }, assemblyName: "B.dll"); 2953var comp3 = CreateCompilation(source3, new[] { ref1, ref2 }, assemblyName: "C.dll"); 2995var comp1 = CreateCompilation(source1, assemblyName: "A.dll"); 2998var comp2 = CreateCompilation(source2, new[] { ref1 }, assemblyName: "B.dll"); 3001var comp3 = CreateCompilation(source3, new[] { ref1, ref2 }, assemblyName: "C.dll"); 3042var comp1 = CreateCompilation(source1, assemblyName: "A"); 3045var comp2 = CreateCompilation(source2, new[] { ref1 }, assemblyName: "B"); 3048var comp3 = CreateCompilation(source3, new[] { ref1, ref2 }, assemblyName: "C"); 3089var comp1 = CreateCompilation(source1, assemblyName: "A.dll"); 3092var comp2 = CreateCompilation(source2, new[] { ref1 }, assemblyName: "B.dll"); 3095var comp3 = CreateCompilation(source3, new[] { ref1, ref2 }, assemblyName: "C.dll"); 3136var comp1 = CreateCompilation(source1, assemblyName: "A.dll"); 3139var comp2 = CreateCompilation(source2, new[] { ref1 }, assemblyName: "B.dll"); 3142var comp3 = CreateCompilation(source3, new[] { ref1, ref2 }, assemblyName: "C.dll"); 3208var comp1 = CreateCompilation(source1, assemblyName: "A"); 3211var comp2 = CreateCompilation(source2, new[] { ref1 }, assemblyName: "B"); 3216var comp3 = CreateCompilation("", new[] { ref1, ref2, ilRef }, assemblyName: "Test"); 3263var comp1 = CreateCompilation(source1, assemblyName: "A.dll"); 3266var comp2 = CreateCompilation(source2, new[] { ref1 }, assemblyName: "B.dll"); 3269var comp3 = CreateCompilation(source3, new[] { ref1, ref2 }, assemblyName: "C.dll"); 3577var comp = CreateCompilation(source); 3681var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe); 3753var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe); 3813var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe); 3879var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe); 3937var compilation = CreateCompilation(text, options: TestOptions.ReleaseExe); 3973var comp = CreateCompilation(code).VerifyDiagnostics( 4003var comp = CreateCompilation(code).VerifyDiagnostics( 4033var comp = CreateCompilation(code).VerifyDiagnostics( 4063var comp = CreateCompilation(code).VerifyDiagnostics( 4093var comp = CreateCompilation(code).VerifyDiagnostics( 4123var comp = CreateCompilation(code).VerifyDiagnostics( 4153var comp = CreateCompilation(code).VerifyDiagnostics( 4182var comp = CreateCompilation(code).VerifyDiagnostics(); 4209var comp = CreateCompilation(code).VerifyDiagnostics(); 4236var comp = CreateCompilation(code).VerifyDiagnostics(); 4262var comp = CreateCompilation(code).VerifyDiagnostics(); 4289var comp = CreateCompilation(code).VerifyDiagnostics(); 4316var comp = CreateCompilation(code).VerifyDiagnostics(); 4342var comp = CreateCompilation(code).VerifyDiagnostics(); 4376var comp = CreateCompilation(text).VerifyDiagnostics(); 4421var comp = CreateCompilation(text).VerifyDiagnostics( 4447var comp = CreateCompilation(text).VerifyDiagnostics( 4473var comp = CreateCompilation(code).VerifyDiagnostics( 4497var comp = CreateCompilation(code).VerifyDiagnostics( 4518var comp = CreateCompilation(code).VerifyDiagnostics( 4538var comp = CreateCompilation(code).VerifyDiagnostics(); 4555var comp = CreateCompilation(code).VerifyDiagnostics( 4578var comp = CreateCompilation(code).VerifyDiagnostics(
Symbols\PartialPropertiesTests.cs (75)
178var comp = CreateCompilation(source); 204var comp = CreateCompilation(source); 226var comp = CreateCompilation(source); 252var comp = CreateCompilation(source); 276var comp = CreateCompilation(source); 304var comp = CreateCompilation(source); 329var comp = CreateCompilation(source); 352var comp = CreateCompilation(source); 389var comp = CreateCompilation(source); 425var comp = CreateCompilation(source); 450var comp = CreateCompilation(source); 478var comp = CreateCompilation(source); 497var comp = CreateCompilation(source); 591var comp = CreateCompilation(source); 610var comp = CreateCompilation(source); 912var comp = (CSharpCompilation)verifier.Compilation; 987var comp = (CSharpCompilation)verifier.Compilation; 1061var comp = (CSharpCompilation)verifier.Compilation; 1131var comp = (CSharpCompilation)verifier.Compilation; 1177var comp = (CSharpCompilation)verifier.Compilation; 1218var comp = CreateCompilation(source); 1250var comp = CreateCompilation(source); 1335var comp = (CSharpCompilation)verifier.Compilation; 1358var comp = CreateCompilation(source); 1385var comp = CreateCompilation(source); 1449var comp = CreateCompilation(source); 1481var comp = CreateCompilation(source); 1510var comp = CreateCompilation(source); 1553var comp = CreateCompilation(source); 1586var comp = CreateCompilation(source); 1624var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable)); 1675var comp = CreateCompilation(source); 1799var comp = CreateCompilation(source); 1840var comp = (CSharpCompilation)verifier.Compilation; 1878var comp = CreateCompilation(source); 1914var comp = CreateCompilation(source); 1944var comp = (CSharpCompilation)verifier.Compilation; 1969var comp = CreateCompilation(source); 2006var comp = (CSharpCompilation)verifier.Compilation; 2036var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 2075var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll); 2180var comp = CreateCompilation(source); 2260var comp = CreateCompilation(source); 2412var comp = CreateCompilation(source); 2445var comp = CreateCompilation(source); 2479var comp = CreateCompilation(source); 2549var comp = CreateCompilation(source); 2590var comp = CreateCompilation(source); 2623var comp = CreateCompilation(source); 2675var comp = CreateCompilation(source); 2719var comp = CreateCompilation(source); 2758var comp = CreateCompilation(source); 2780var comp = CreateCompilation(source); 2799var comp = CreateCompilation(source); 2874var comp = CreateCompilation(source); 2950var comp = CreateCompilation(source); 2985var comp = CreateCompilation(source); 3016var comp = CreateCompilation(source); 3045var comp = CreateCompilation(source); 3100var comp = CreateCompilation(source); 3160var comp = CreateCompilation(source); 3188var comp = CreateCompilation(source); 3221var comp = CreateCompilation(source); 3254var comp = CreateCompilation(source); 3281var comp = CreateCompilation(source); 3319var comp = CreateCompilation(source);
Symbols\PEParameterSymbolTests.cs (1)
92var compilation = CreateCompilationWithMscorlib461(source, new[] { vbComp }, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular);
Symbols\RelaxedShiftOperatorTests.cs (10)
47var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 51var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 54var compilation2 = CreateCompilation(source1, options: TestOptions.DebugExe, references: new[] { compilation0.ToMetadataReference() }, 59var compilation3 = CreateCompilation(source1, options: TestOptions.DebugExe, references: new[] { compilation0.EmitToImageReference() }, 92var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 136var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp, 180var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp, 224var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp, 268var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp, 312var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp,
Symbols\RequiredMembersTests.cs (207)
22private static CSharpCompilation CreateCompilationWithRequiredMembers(CSharpTestSource source, IEnumerable<MetadataReference>? references = null, CSharpParseOptions? parseOptions = null, CSharpCompilationOptions? options = null, string? assemblyName = null, TargetFramework targetFramework = TargetFramework.Standard) 105var comp = CreateCompilationWithRequiredMembers(@" 195var comp = CreateCompilationWithRequiredMembers(@" 235var comp = CreateCompilationWithRequiredMembers(code, parseOptions: TestOptions.Regular10); 253var comp = CreateCompilationWithRequiredMembers(@" 315var comp = CreateCompilationWithRequiredMembers(code, parseOptions: use10 ? TestOptions.Regular10 : TestOptions.Regular11); 383var comp = CreateCompilationWithRequiredMembers(@" 401var comp = CreateCompilationWithRequiredMembers(@" 420var comp = CreateCompilationWithRequiredMembers(@" 439var comp = CreateCompilationWithRequiredMembers(@" 458var comp = CreateCompilationWithRequiredMembers(@" 500var comp = CreateCompilationWithRequiredMembers(@base + derived); 508var baseComp = CreateCompilationWithRequiredMembers(@base); 542var comp = CreateCompilationWithRequiredMembers(@base + derived + derivedDerived); 550var baseComp = CreateCompilationWithRequiredMembers(@base); 554var derivedComp = CreateCompilation(derived, references: new[] { baseReference }); 582var comp = CreateCompilationWithRequiredMembers(@base + derived); 596var baseComp = CreateCompilationWithRequiredMembers(@base, assemblyName: "test"); 633var comp = CreateCompilationWithRequiredMembers(@base + derived + derivedDerived); 648var baseComp = CreateCompilationWithRequiredMembers(@base); 652var derivedComp = CreateCompilation(derived, new[] { baseReference }); 668var comp = CreateCompilationWithRequiredMembers(@" 712var comp = CreateCompilationWithRequiredMembers(@base + derived); 727var baseComp = CreateCompilationWithRequiredMembers(@base, assemblyName: "base"); 773var comp = CreateCompilationWithRequiredMembers(@base + derived); 799var baseComp = CreateCompilationWithRequiredMembers(@base); 831var comp = CreateCompilationWithRequiredMembers(@" 1104var comp = CreateCompilationWithRequiredMembers(@" 1252var comp = CreateCompilationWithRequiredMembers(@" 1286var comp = CreateCompilation(@" 1324var comp = CreateCompilationWithRequiredMembers(@" 1338var comp = CreateCompilationWithRequiredMembers(@" 1379var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1400var comp = CreateCompilationWithRequiredMembers($$""" 1426var comp = CreateCompilationWithRequiredMembers(""" 1451var comp = CreateCompilationWithRequiredMembers(""" 1476var comp = CreateCompilationWithRequiredMembers(""" 1495var comp = CreateCompilationWithRequiredMembers(""" 1520var comp = CreateCompilationWithRequiredMembers(""" 1554var comp = CreateCompilationWithRequiredMembers(@" 1585var comp = CreateCompilationWithRequiredMembers(new[] { c, creation }); 1607var cComp = CreateCompilationWithRequiredMembers(c); 1630var comp = CreateCompilationWithRequiredMembers(new[] { c, creation }); 1634var cComp = CreateCompilationWithRequiredMembers(c); 1655var comp = CreateCompilationWithRequiredMembers(new[] { c, creation }); 1677var cComp = CreateCompilationWithRequiredMembers(c); 1699var comp = CreateCompilationWithRequiredMembers(new[] { c, creation }); 1702var cComp = CreateCompilationWithRequiredMembers(c); 1720var comp = CreateCompilationWithRequiredMembers(c); 1798var comp = CreateCompilation(new[] { c }, references: new[] { ilRef }, targetFramework: TargetFramework.Net70); 1832var comp = CreateCompilationWithRequiredMembers(c); 1865var comp = CreateCompilationWithRequiredMembers(c); 1896var comp = CreateCompilationWithRequiredMembers(c); 1916var comp = CreateCompilationWithRequiredMembers(c); 1933var comp = CreateCompilationWithRequiredMembers(c); 1961var comp = CreateCompilationWithRequiredMembers(c); 1978var comp = CreateCompilationWithRequiredMembers(c); 2004var comp = CreateCompilationWithRequiredMembers(new[] { @base, code }); 2023var baseComp = CreateCompilationWithRequiredMembers(@base); 2057var comp = CreateCompilationWithRequiredMembers(new[] { @base, derived, code }); 2061var baseComp = CreateCompilationWithRequiredMembers(@base); 2065var derivedComp = CreateCompilation(derived, new[] { baseRef }); 2098var comp = CreateCompilationWithRequiredMembers(new[] { @base, code }); 2117var baseComp = CreateCompilationWithRequiredMembers(@base); 2146var comp = CreateCompilationWithRequiredMembers(new[] { @base, code }); 2150var baseComp = CreateCompilationWithRequiredMembers(@base); 2177var comp = CreateCompilationWithRequiredMembers(new[] { @base, code }); 2181var baseComp = CreateCompilationWithRequiredMembers(@base); 2193var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 2203var baseComp = CreateCompilationWithRequiredMembers(@base, new[] { originalC.ToMetadataReference() }, targetFramework: TargetFramework.Standard); 2205var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 2217var comp = CreateCompilation(code, new[] { baseComp.ToMetadataReference(), retargetedC.ToMetadataReference() }, targetFramework: TargetFramework.Standard); 2242var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 2253var baseComp = CreateCompilationWithRequiredMembers(@base, new[] { originalCRef }, targetFramework: TargetFramework.Standard); 2268var derivedComp = CreateCompilation(derived, new[] { baseRef, originalCRef }, targetFramework: TargetFramework.Standard); 2270var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 2276var comp = CreateCompilation(code, new[] { baseRef, derivedComp.ToMetadataReference(), retargetedC.ToMetadataReference() }, targetFramework: TargetFramework.Standard); 2288var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 2298var baseComp = CreateCompilationWithRequiredMembers(@base, new[] { originalC.ToMetadataReference() }, targetFramework: TargetFramework.Standard); 2300var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 2312var comp = CreateCompilation(code, new[] { baseComp.ToMetadataReference(), retargetedC.ToMetadataReference() }, targetFramework: TargetFramework.Standard); 2339var comp = CreateCompilationWithRequiredMembers(new[] { @base, code }); 2349var baseComp = CreateCompilationWithRequiredMembers(@base); 2380var comp = CreateCompilationWithRequiredMembers(new[] { @base, code }); 2384var baseComp = CreateCompilationWithRequiredMembers(@base); 2413var comp = CreateCompilationWithRequiredMembers(new[] { @base, code }); 2423var baseComp = CreateCompilationWithRequiredMembers(@base); 2452var comp = CreateCompilationWithRequiredMembers(new[] { @base, code }); 2455var baseComp = CreateCompilationWithRequiredMembers(@base); 2540var comp = CreateCompilation(code, new[] { baseRef }, targetFramework: TargetFramework.Net70); 2548var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 2557var baseComp = CreateCompilationWithRequiredMembers(@base, new[] { originalC.ToMetadataReference() }, targetFramework: TargetFramework.Standard); 2558var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 2569var comp = CreateCompilation(code, new[] { baseComp.ToMetadataReference(), retargetedC.ToMetadataReference() }); 2579var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 2588var baseComp = CreateCompilationWithRequiredMembers(@base, new[] { originalC.ToMetadataReference() }, targetFramework: TargetFramework.Standard); 2589var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 2600var comp = CreateCompilation(code, new[] { baseComp.ToMetadataReference(), retargetedC.ToMetadataReference() }); 2735var comp = CreateCompilation(c, new[] { ilRef }, targetFramework: TargetFramework.Net70); 2766var comp = CreateCompilation(c, new[] { ilRef }, targetFramework: TargetFramework.Net70); 2888var comp = CreateCompilation(c, new[] { ilRef }, targetFramework: TargetFramework.Net70); 3014var comp = CreateCompilation(c, new[] { ilRef }, targetFramework: TargetFramework.Net70); 3215var originalComp = CreateCompilationWithRequiredMembers(new[] { original, IsExternalInitTypeDefinition }, assemblyName: "original"); 3239var comp = CreateCompilation(c, new[] { il, originalComp.EmitToImageReference() }); 3263var originalComp = CreateCompilationWithRequiredMembers(new[] { original, IsExternalInitTypeDefinition }, assemblyName: "original"); 3284var comp = CreateCompilation(c, new[] { il, originalComp.EmitToImageReference() }); 3298var originalComp = CreateCompilationWithRequiredMembers(new[] { original, IsExternalInitTypeDefinition }, assemblyName: "original"); 3328var comp = CreateCompilation(c, new[] { il, originalComp.EmitToImageReference() }); 3346var originalComp = CreateCompilationWithRequiredMembers(new[] { original, IsExternalInitTypeDefinition }, assemblyName: "original"); 3369var comp = CreateCompilation(c, new[] { il, originalComp.EmitToImageReference() }); 3393var originalComp = CreateCompilationWithRequiredMembers(new[] { original, IsExternalInitTypeDefinition }, assemblyName: "original"); 3413var comp = CreateCompilation(c, new[] { il, originalComp.EmitToImageReference() }); 3546var comp = CreateCompilation(c, new[] { ilRef }, targetFramework: TargetFramework.Net70); 3680var comp = CreateCompilation(c, new[] { ilRef }, targetFramework: TargetFramework.Net70); 3811var comp = CreateCompilation(c, new[] { ilRef }, targetFramework: TargetFramework.Net70); 3832var comp = CreateCompilationWithRequiredMembers(new[] { code, handler }); 3861var comp = CreateCompilationWithRequiredMembers(code); 3890var comp = CreateCompilationWithRequiredMembers(code); 3915var comp = CreateCompilationWithRequiredMembers(code); 3941var comp = CreateCompilationWithRequiredMembers(code); 3970var comp = CreateCompilationWithRequiredMembers(code); 3999var comp = CreateCompilationWithRequiredMembers(code); 4029var comp = CreateCompilationWithRequiredMembers(code); 4058var comp = CreateCompilation(new[] { code, CompilerFeatureRequiredAttribute }); 4082var comp = CreateCompilation(new[] { code, CompilerFeatureRequiredAttribute }); 4125var comp = CreateCompilation(new[] { code, RequiredMemberAttribute, CompilerFeatureRequiredAttribute }); 4144var comp = CreateCompilationWithRequiredMembers(code); 4176var comp = CreateCompilationWithRequiredMembers(code); 4208var comp = CreateCompilationWithRequiredMembers(code); 4230var comp = CreateCompilationWithRequiredMembers(code); 4256var comp = CreateCompilationWithRequiredMembers(new[] { code, MemberNotNullAttributeDefinition }); 4276var comp = CreateCompilationWithRequiredMembers(new[] { code, MemberNotNullAttributeDefinition }); 4307var comp = CreateCompilationWithRequiredMembers(new[] { code, MemberNotNullAttributeDefinition }); 4327var comp = CreateCompilationWithRequiredMembers(new[] { code, MemberNotNullAttributeDefinition }); 4348var comp = CreateCompilationWithRequiredMembers(new[] { code, MemberNotNullAttributeDefinition }); 4369var comp = CreateCompilationWithRequiredMembers(new[] { code, MemberNotNullAttributeDefinition }); 4397var comp = CreateCompilationWithRequiredMembers(new[] { code, MemberNotNullAttributeDefinition }); 4424var comp = CreateCompilationWithRequiredMembers(new[] { code, MemberNotNullAttributeDefinition }); 4448var comp = CreateCompilationWithRequiredMembers(new[] { code, MemberNotNullAttributeDefinition }); 4477var comp = CreateCompilationWithRequiredMembers(new[] { code, MemberNotNullAttributeDefinition }); 4509var comp = CreateCompilationWithRequiredMembers(new[] { code, MemberNotNullAttributeDefinition }); 4541var comp = CreateCompilationWithRequiredMembers(new[] { code, MemberNotNullAttributeDefinition }); 4574var comp = CreateCompilationWithRequiredMembers(new[] { code, MemberNotNullAttributeDefinition }); 4608var comp = CreateCompilationWithRequiredMembers(new[] { code, MemberNotNullAttributeDefinition }); 4656var comp = CreateCompilationWithRequiredMembers(new[] { @base, derived, MemberNotNullAttributeDefinition }); 4659var baseComp = CreateCompilationWithRequiredMembers(new[] { @base, MemberNotNullAttributeDefinition }); 4701var comp = CreateCompilationWithRequiredMembers(new[] { @base, derived, MemberNotNullAttributeDefinition }); 4704var baseComp = CreateCompilationWithRequiredMembers(new[] { @base, MemberNotNullAttributeDefinition }); 4746var comp = CreateCompilationWithRequiredMembers(new[] { @base, derived, MemberNotNullAttributeDefinition }); 4749var baseComp = CreateCompilationWithRequiredMembers(new[] { @base, MemberNotNullAttributeDefinition }); 4790var comp = CreateCompilationWithRequiredMembers(new[] { @base, derived, MemberNotNullAttributeDefinition }); 4793var baseComp = CreateCompilationWithRequiredMembers(new[] { @base, MemberNotNullAttributeDefinition }); 4836var comp = CreateCompilationWithRequiredMembers(new[] { @base, derived, MemberNotNullAttributeDefinition }); 4839var baseComp = CreateCompilationWithRequiredMembers(new[] { @base, MemberNotNullAttributeDefinition }); 4864var comp = CreateCompilationWithRequiredMembers(code); 4895var comp = CreateCompilationWithRequiredMembers(code); 4922var comp = CreateCompilationWithRequiredMembers(code); 4957var comp = CreateCompilationWithRequiredMembers(code); 5004var comp = CreateCompilationWithRequiredMembers(code); 5049var comp = CreateCompilationWithRequiredMembers(code); 5091var comp = CreateCompilationWithRequiredMembers(code); 5132var comp = CreateCompilationWithRequiredMembers(code); 5195var comp = CreateCompilationWithRequiredMembers(new[] { derived, @base }); 5215var baseComp = CreateCompilationWithRequiredMembers(@base); 5278var comp = CreateCompilationWithRequiredMembers(code); 5341var comp = CreateCompilationWithRequiredMembers(new[] { derived, @base }); 5361var baseComp = CreateCompilationWithRequiredMembers(@base); 5671var attrComp = CreateCompilationWithRequiredMembers("", assemblyName: "attr"); 5678var comp = CreateCompilationWithIL(code, ilSource: il, references: new[] { attrComp.EmitToImageReference() }); 5704var comp = CreateCompilationWithRequiredMembers(code); 5733var comp = CreateCompilationWithRequiredMembers(code); 5759var comp = CreateCompilationWithRequiredMembers(code); 5785var comp = CreateCompilationWithRequiredMembers(code); 5811var comp = CreateCompilationWithRequiredMembers(code); 5830var comp = CreateCompilationWithRequiredMembers(code); 5861var comp = CreateCompilationWithRequiredMembers(code); 5886var comp = CreateCompilationWithRequiredMembers(new[] { @base, code }); 5889var baseComp = CreateCompilationWithRequiredMembers(@base); 5930var comp = CreateCompilationWithRequiredMembers(code); 5961var comp = CreateCompilationWithRequiredMembers(new[] { @base, code }); 5968var baseComp = CreateCompilationWithRequiredMembers(@base); 6097var comp = CreateCompilationWithIL(code, badIl, targetFramework: TargetFramework.Net70); 6129var comp = CreateCompilationWithRequiredMembers(code); 6154var comp = CreateCompilationWithRequiredMembers(code); 6176var comp = CreateCompilationWithRequiredMembers(code); 6222var comp = CreateCompilationWithRequiredMembers(code); 6252var comp = CreateCompilationWithRequiredMembers($$""" 6273var submission = CreateSubmission(""" 6292var script = CreateCompilation(""" 6310var comp = CreateCompilationWithRequiredMembers(""" 6355var comp = CreateCompilationWithRequiredMembers(""" 6400var comp = CreateCompilationWithRequiredMembers(""" 6421var comp = CreateCompilationWithRequiredMembers(""" 6443var comp = CreateCompilationWithRequiredMembers(""" 6514var comp = CreateCompilationWithRequiredMembers(code); 6538var comp = CreateCompilationWithRequiredMembers(code); 6555var comp = CreateCompilationWithRequiredMembers(code); 6589var comp = CreateCompilationWithRequiredMembers(code); 6615var comp = CreateCompilationWithRequiredMembers(code); 6636var comp = CreateCompilationWithRequiredMembers(code); 6712var comp = CreateCompilationWithIL("_ = new S();", il, targetFramework: TargetFramework.Net70); 6821var comp = CreateCompilation(new[] { """ 6894var comp = CreateCompilation(new[] { """ 7026var comp = CreateCompilationWithIL("_ = new C();", il, targetFramework: TargetFramework.Net70); 7127var comp = CreateCompilationWithIL("_ = new C();", il, targetFramework: TargetFramework.Net70); 7142var comp = CreateCompilationWithIL("_ = new C() { P1 = 1 };", il, targetFramework: TargetFramework.Net70); 7151var comp = CreateCompilationWithRequiredMembers("""
Symbols\Retargeting\NoPia.cs (116)
283var LocalTypes1 = CreateEmptyCompilation(s_sourceLocalTypes1_IL, new[] { MscorlibRef }, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes1"); 286var LocalTypes2 = CreateEmptyCompilation(s_sourceLocalTypes2_IL, new[] { MscorlibRef }, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2"); 289var assemblies = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 352var LocalTypes1 = CreateCompilationWithMscorlib40(s_sourceLocalTypes1_IL, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes1"); 355var LocalTypes2 = CreateCompilationWithMscorlib40(s_sourceLocalTypes2_IL, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2"); 358var assemblies1 = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 400var assemblies2 = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 431var assemblies3 = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 475var assemblies4 = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 488var assemblies5 = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 524var assemblies6 = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 553var assemblies7 = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 583var assemblies8 = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 615var assemblies9 = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 625var assemblies10 = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 649var LocalTypes1 = CreateCompilation(s_sourceLocalTypes1, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes1", 654var LocalTypes2 = CreateCompilation(s_sourceLocalTypes2, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2", 659var assemblies1 = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 701var assemblies2 = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 732var assemblies3 = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 776var assemblies4 = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 789var assemblies5 = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 825var assemblies6 = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 854var assemblies7 = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 884var assemblies8 = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 916var assemblies9 = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 926var assemblies10 = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 950var Pia1 = CreateCompilation(s_sourcePia1, options: TestOptions.ReleaseDll, assemblyName: "Pia1", targetFramework: TargetFramework.Standard); 953var LocalTypes1 = CreateCompilation(s_sourceLocalTypes1, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes1", 958var LocalTypes2 = CreateCompilation(s_sourceLocalTypes2, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2", 963var assemblies1 = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 1005var assemblies2 = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 1036var assemblies3 = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 1080var assemblies4 = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 1093var assemblies5 = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 1129var assemblies6 = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 1158var assemblies7 = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 1188var assemblies8 = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 1220var assemblies9 = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 1230var assemblies10 = MetadataTestHelpers.GetSymbolsForReferences(new CSharpCompilation[] { LocalTypes1, LocalTypes2 }, 1258var LocalTypes1 = CreateCompilation(s_sourceLocalTypes1_IL, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes1"); 1263var tc1 = CSharpCompilation.Create("Cyclic1", references: new MetadataReference[] { mscorlibRef, cyclic2Ref, piaRef, localTypes1Ref }); 1266var tc2 = CSharpCompilation.Create("Cyclic1", references: new MetadataReference[] { mscorlibRef, cyclic2Ref, piaRef, localTypes1Ref }); 1283var LocalTypes1 = CreateCompilation(s_sourceLocalTypes1, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes1", 1289var tc1 = CSharpCompilation.Create("Cyclic1", references: new MetadataReference[] { mscorlibRef, cyclic2Ref, piaRef, localTypes1Ref }); 1292var tc2 = CSharpCompilation.Create("Cyclic1", references: new MetadataReference[] { mscorlibRef, cyclic2Ref, piaRef, localTypes1Ref }); 1308var Pia1 = CreateCompilation(s_sourcePia1, options: TestOptions.ReleaseDll, assemblyName: "Pia1"); 1313var LocalTypes1 = CreateCompilation(s_sourceLocalTypes1, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes1", 1319var tc1 = CSharpCompilation.Create("Cyclic1", references: new MetadataReference[] { mscorlibRef, cyclic2Ref, piaRef, localTypes1Ref }); 1322var tc2 = CSharpCompilation.Create("Cyclic1", references: new MetadataReference[] { mscorlibRef, cyclic2Ref, piaRef, localTypes1Ref }); 1335var LocalTypes3 = CreateCompilation(s_sourceLocalTypes3_IL, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes3"); 1339new CSharpCompilation[] { LocalTypes3 }, 1360new CSharpCompilation[] { LocalTypes3 }, 1405var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseDll, assemblyName: "comp"); 1410new CSharpCompilation[] { comp }, 1418new CSharpCompilation[] { }, 1451var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseDll, assemblyName: "comp"); 1455new CSharpCompilation[] { comp }, 1463new CSharpCompilation[] { }, 1490var pia = CreateCompilationWithMscorlib46(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1532var comp1 = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseDll, 1536var comp2 = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseDll, 1571var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1586var comp1 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1590var comp2 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1624var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1639var comp1 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1643var comp2 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1668var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1681var comp1 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1685var comp2 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1718var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1736var comp1 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1740var comp2 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1773var pia = CreateCompilationWithMscorlib46(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1776var lib = CreateCompilationWithMscorlib46(libSource, options: TestOptions.ReleaseDll, references: new[] { pia.ToMetadataReference() }); 1804var comp1 = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseDll, 1808var comp2 = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseDll, 1826var pia = CreateCompilationWithMscorlib46(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1849var comp1 = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseDll, 1866var comp2 = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseDll, 1887var LocalTypes3 = CreateCompilation(s_sourceLocalTypes3, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes3", 1892new CSharpCompilation[] { LocalTypes3 }, 1913new CSharpCompilation[] { LocalTypes3 }, 1934var Pia1 = CreateCompilation(s_sourcePia1, options: TestOptions.ReleaseDll, assemblyName: "Pia1"); 1937var LocalTypes3 = CreateCompilation(s_sourceLocalTypes3, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes3", 1942new CSharpCompilation[] { LocalTypes3 }, 1963new CSharpCompilation[] { LocalTypes3 }, 2015var localTypes2 = CreateCompilation(source, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2"); 2041var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2046var compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2140var localTypes2 = CreateCompilation(source, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2"); 2166var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2171var compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2265var localTypes2 = CreateCompilation(source, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2"); 2291var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2296var compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2381var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2403var localTypes2 = CreateCompilation(source, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2", 2408var compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2473var localTypes2 = CreateCompilation(source, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2"); 2499var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2504var compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2586var pia1 = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "Pia1"); 2599var module1 = CreateCompilation(moduleSource, options: TestOptions.ReleaseModule, assemblyName: "Module1", 2602var multiModule = CreateCompilation("", options: TestOptions.ReleaseDll, 2617var consumer = CreateCompilation(consumerSource, options: TestOptions.ReleaseDll, 2641var piaCompilation = CreateEmptyCompilation(pia, references: [Net40.References.mscorlib], options: TestOptions.DebugDll, assemblyName: "Pia"); 2665var compilation1 = CreateEmptyCompilation(consumer1, references: [Net40.References.mscorlib, piaRef.WithEmbedInteropTypes(true)]); 2669var compilation2 = CreateEmptyCompilation(consumer2, references: [Net461.References.mscorlib, piaRef, consumer1Ref]);
Symbols\Retargeting\RetargetCustomAttributes.cs (13)
69var compilation1 = CSharpCompilation.Create("C1", new[] { Parse(source) }, new[] { OldMsCorLib }, TestOptions.ReleaseDll); 74var compilation2 = CSharpCompilation.Create("C2", references: new MetadataReference[] { NewMsCorLib, c1 }); 298var c1 = CreateEmptyCompilation(source1, new[] { OldMsCorLib }); 299var c2 = CreateEmptyCompilation(source2, new MetadataReference[] { NewMsCorLib, new CSharpCompilationReference(c1) }); 338var comp1 = CreateCompilation(source1, options: TestOptions.DebugDll); 346var comp2 = CreateCompilation(source2, references: new[] { comp1.ToMetadataReference() }, options: TestOptions.DebugDll); 347var comp3 = CreateCompilation("", references: new[] { comp2.ToMetadataReference() }, options: TestOptions.DebugDll); 368var comp1_1 = CreateCompilation(source1_1, options: TestOptions.DebugDll, assemblyName: "Lib65048"); 376var comp2 = CreateCompilation(source2, references: new[] { comp1_1.ToMetadataReference() }, options: TestOptions.DebugDll); 387var comp1_2 = CreateCompilation(source1_2, options: TestOptions.DebugDll, assemblyName: "Lib65048"); 389var comp3 = CreateCompilation("", references: new[] { comp2.ToMetadataReference(), comp1_2.ToMetadataReference() }, options: TestOptions.DebugDll);
Symbols\Retargeting\RetargetCustomModifiers.cs (8)
29var c1 = CSharpCompilation.Create("C1", references: new[] 37CSharpCompilation c2 = CSharpCompilation.Create("C2", references: new MetadataReference[] { newMsCorLib, new CSharpCompilationReference(c1) }); 147CSharpCompilation c1 = CSharpCompilation.Create("C1", new[] { Parse(source) }, new[] { oldMsCorLib }); 152CSharpCompilation c2 = CSharpCompilation.Create("C2", references: new[] { (MetadataReference)newMsCorLib, r1 });
Symbols\Retargeting\RetargetExplicitInterfaceImplementation.cs (7)
23var comp1 = CreateCompilation( 104var comp2 = CreateCompilation( 317var comp1 = CreateCompilation( 362var comp2 = CreateCompilation( 451var compilation1 = CreateCompilation(source1, references: new[] { ref1 }); 459var compilation2 = CreateCompilation(source2, references: new[] { compilation1.ToMetadataReference(), ref1, CreateEmptyCompilation("").ToMetadataReference() }); 461var compilation3 = CreateCompilation("", references: new[] { compilation1.ToMetadataReference(), compilation2.ToMetadataReference() });
Symbols\Retargeting\RetargetingTests.cs (40)
37var compilation = CreateCompilation(source); 108var compilation = CreateCompilation(source); 141var compilation = CreateCompilation(source); 175var compilation = CreateCompilation(source); 211var compilation = CreateCompilation(source); 242var compilation1_v1 = CreateCompilation(source1, assemblyName: "assembly1"); 243var compilation1_v2 = CreateCompilation(source1, assemblyName: "assembly1"); 260var compilation2 = CreateCompilation(source2, new[] { new CSharpCompilationReference(compilation1_v1) }, assemblyName: "assembly2"); 264var compilation3 = CreateCompilation("", new[] { compilation2Ref, new CSharpCompilationReference(compilation1_v2) }, assemblyName: "assembly3"); 333var comp = CreateEmptyCompilation(source); 370var comp = CreateEmptyCompilation(source); 405var comp = CreateCompilation(source); 430var comp = CreateEmptyCompilation(source); 462var comp = CreateCompilation(source); 483var comp = CreateCompilation(source); 509var comp = CreateEmptyCompilation(source); 544var comp = CreateCompilation(source); 570var comp = CreateEmptyCompilation(source); 603var comp = CreateCompilation(source); 631var comp = CreateEmptyCompilation(source); 666var compilation = CreateCompilation(code).VerifyDiagnostics(); 730var comp1 = CreateEmptyCompilation(source, new[] { MscorlibRef_v20 }, TestOptions.ReleaseDll); 735var comp2 = CreateEmptyCompilation("", new[] { MscorlibRef_v4_0_30316_17626, new CSharpCompilationReference(comp1) }, TestOptions.ReleaseDll); 904static MethodSymbol getMethodSymbol(CSharpCompilation compilation) 929static (AssemblySymbol retargetedAssembly1, AssemblySymbol retargetedAssembly2, AssemblySymbol consistentAssembly, CSharpCompilation originalComp, CSharpCompilation retargetedComp) 935var retargeted1 = CreateCompilation(retargetedIdentity, new[] { retargetedSource }, references: standardReference); 937var retargeted2 = CreateCompilation(retargetedIdentity.WithVersion(new Version(2, 0, 0, 0)), new[] { retargetedSource }, references: standardReference); 940var consistent = CreateCompilation("public class C {}", assemblyName: "Con", targetFramework: TargetFramework.Standard); 971var originalComp = CreateCompilation($@" 979var retargetedComp = CreateCompilation("", references: new[] { originalComp.ToMetadataReference(), retargeted2Ref, consistentRef, ilRef }, 987static string buildAssemblyExternClause(CSharpCompilation comp) 1048var beforeRetargeting = CreateCompilation(originalIdentity, new[] { corlibSource }, new MetadataReference[0]); 1051var unmanagedCallersOnlyAssembly = CreateEmptyCompilation(@" 1062var afterRetargeting = CreateCompilation(originalIdentity.WithVersion(new Version(2, 0, 0, 0)), new[] { corlibSource }, new MetadataReference[0]); 1065var finalComp = CreateEmptyCompilation(@"C.M(1);", options: TestOptions.ReleaseExe, references: new[] { afterRetargeting.ToMetadataReference(), unmanagedCallersOnlyAssembly.ToMetadataReference() }); 1126var beforeRetargeting = CreateCompilation(originalIdentity, new[] { corlibSource }, new MetadataReference[0]); 1129var unmanagedCallersOnlyAssembly = CreateEmptyCompilation(@" 1139var afterRetargeting = CreateCompilation(originalIdentity.WithVersion(new Version(2, 0, 0, 0)), new[] { corlibSource }, new MetadataReference[0]); 1142var finalComp = CreateEmptyCompilation(@"C.M(1);", options: TestOptions.ReleaseExe, references: new[] { afterRetargeting.ToMetadataReference(), unmanagedCallersOnlyAssembly.ToMetadataReference() });
Symbols\Source\AccessTests.cs (7)
28var comp = CreateCompilation(tree); 45var comp = CreateCompilation(tree); 71var comp = CreateCompilation(tree); 94var comp = CreateCompilation(tree); 123var comp = CreateCompilation(tree); 145var comp = CreateCompilation(tree); 168var comp = CreateCompilation(tree);
Symbols\Source\BaseClassTests.cs (75)
34var comp = CreateEmptyCompilation(text); 54var comp = CreateEmptyCompilation(text); 77var comp = CreateCompilation(text, new[] { C1, C2 }); 101var comp = CreateEmptyCompilation(text); 130var comp = CreateEmptyCompilation(text); 156var comp = CreateCompilation(text); 179var comp = CreateCompilation(text); 203var comp = CreateCompilation(text); 232var comp = CreateEmptyCompilation(text); 337var comp = CreateCompilation(text); 365var comp = CreateCompilation(text); 392var comp = CreateCompilation(text); 433var comp = CreateCompilation(text); 461var comp = CreateEmptyCompilation(text); 479var comp = CreateEmptyCompilation(text); 497var comp = CreateEmptyCompilation(text); 517var comp = CreateEmptyCompilation(text); 531var comp = CreateEmptyCompilation(text); 546var comp = CreateEmptyCompilation(text); 564var comp = CreateEmptyCompilation(text); 584var comp = CreateEmptyCompilation(text); 603var comp = CreateEmptyCompilation(text); 623var comp = CreateEmptyCompilation(text); 648var comp = CreateEmptyCompilation(text); 667var comp = CreateEmptyCompilation(text); 684var comp = CreateEmptyCompilation(text); 993var comp = CreateCompilation(text, new[] { C1, C2 }); 1013var comp = CreateCompilation(text, new[] { ClassAv1 }, assemblyName: "ClassB"); 1031var comp2 = CreateCompilation(text, new MetadataReference[] { ClassAv2, new CSharpCompilationReference(comp) }); 1064var comp = CreateCompilation(text, new[] 1087var comp2 = CreateCompilation(text, new MetadataReference[] 1127var comp = CreateCompilation(text, new[] { ClassAv2 }, assemblyName: "ClassB"); 1156var comp2 = CreateCompilation(text, new MetadataReference[] 1180var comp = CreateCompilation(text, new MetadataReference[] 1213var comp2 = CreateCompilation(text, new MetadataReference[] 1252var comp = CreateEmptyCompilation(text); 1277var comp = CreateEmptyCompilation(text); 1299var comp = CreateEmptyCompilation(text); 1318var comp = CreateEmptyCompilation(text); 1334var comp = CreateEmptyCompilation(text); 1378var comp = CreateEmptyCompilation(new[] { text1, text2 }); 1409var comp = CreateCompilation(tree); 1425var comp = CreateCompilation(tree); 1439var comp = CreateCompilation(Parse(text)); 1464var comp = CreateCompilation(Parse(text)); 1495var comp = CreateCompilation(Parse(text)); 1521var comp = CreateCompilation(text); 1537var comp = CreateCompilation(text); 1560var comp = CreateCompilation(text); 1613CSharpCompilation c1 = CreateCompilation(textA); 1614CSharpCompilation c2 = CreateCompilation(textB, new[] { new CSharpCompilationReference(c1) }); 1648var compilation1 = CreateCompilation(source1, assemblyName: "One"); 1651var compilation2 = CreateCompilation(source2, new[] { new CSharpCompilationReference(compilation1) }, assemblyName: "Two"); 1840var compilation1 = CreateCompilation(source1, assemblyName: "One"); 1843var compilation2 = CreateCompilation(source2, new[] { new CSharpCompilationReference(compilation1) }, assemblyName: "Two"); 1872var comp = CreateCompilation(Parse(text)); 1896var comp = CreateCompilation("", new[] { metadataRef }); 1915var compilation = CreateCompilation(source); 1930var compilation = CreateCompilation(source); 1947var compilation = CreateCompilation(source); 1970var compilation = CreateCompilation(source); 2006var compilation = CreateCompilation(source); 2028var comp = CreateCompilationWithMscorlib461(text); 2059var comp = CreateCompilation(text); 2093var comp = CreateCompilation(text); 2131var comp = CreateCompilation(text); 2164var comp = CreateCompilation(text); 2197var comp = CreateCompilation(text); 2230var comp = CreateCompilation(text); 2256var comp = CreateCompilation(text); 2281var comp = CreateCompilation(text, parseOptions: TestOptions.Regular11); 2318var comp = CreateCompilation(text, parseOptions: TestOptions.Regular12); 2369var comp = CreateCompilation(source); 2387var comp = CreateCompilation(source); 2404var comp = CreateCompilation(source);
Symbols\Source\ClsComplianceTests.cs (12)
644var compCompliant = CreateCompilationWithMscorlib46(source, new[] { libCompliant }, TestOptions.ReleaseDll); 652var compNotCompliant = CreateCompilationWithMscorlib46(source, new[] { libNotCompliant }, TestOptions.ReleaseDll); 2110var comp = CreateCompilationWithILAndMscorlib40(source, il); 3155var helper = CreateCompilationWithMscorlib461(""); 3179var comp = CreateCompilationWithMscorlib461(source); 3288var comp = CreateCompilation(source); 3314var comp = CreateEmptyCompilation(source, WinRtRefs, options: TestOptions.ReleaseWinMD); 3460var comp = CreateCompilation(source, new[] { libRef }); 3499var comp = CreateCompilation(new[] { tree1, tree2 }); 3866var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseModule); 3879var comp2 = CreateCompilation(source2, new[] { comp1.EmitToImageReference() }, TestOptions.ReleaseDll.WithConcurrentBuild(false)); 3890var comp3 = comp2.WithOptions(TestOptions.ReleaseModule.WithConcurrentBuild(false));
Symbols\Source\CompletionTests.cs (2)
32var comp = CreateEmptyCompilation(text, skipUsesIsNullable: true); 72var comp = CreateCompilation(text, skipUsesIsNullable: true);
Symbols\Source\CustomModifierCopyTests.cs (39)
49var comp = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 92var comp = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 143var comp = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 192var comp = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 254var comp = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 319var comp = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 355var comp = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 409var comp = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 518var comp = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 587var comp = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 634var comp = CreateCompilation(text); 690var comp = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 723var comp = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 764var comp = CreateCompilation(text, new MetadataReference[] { ilAssemblyReference }); 805var comp = CreateCompilation(text); 880var comp = CreateCompilationWithILAndMscorlib40(source, il, 914var comp = CreateCompilationWithILAndMscorlib40(source, il, targetFramework: TargetFramework.Standard); 958var comp = CreateEmptyCompilation(source, new[] { MscorlibRef, SystemCoreRef, ilRef }); 1002var comp1 = CreateEmptyCompilation(source1, new[] { MscorlibRef, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef }); 1034var comp2 = CreateEmptyCompilation(source2, new[] { MscorlibRef, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef }); 1058var comp3 = CreateEmptyCompilation(source3, new[] { MscorlibRef, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef }); 1079var comp4 = CreateEmptyCompilation(source4, new[] { MscorlibRef, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef }); 1132var comp1 = CreateEmptyCompilation(source1, new[] { MscorlibRef, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef }); 1156var comp2 = CreateEmptyCompilation(source2, new[] { MscorlibRef, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef }); 1170var comp3 = CreateEmptyCompilation(source3, new[] { MscorlibRef, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef }); 1279var comp1 = CreateEmptyCompilation(source1, new[] { MscorlibRef, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef }); 1320var comp2 = CreateEmptyCompilation(source2, new[] { MscorlibRef, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef }); 1348var comp3 = CreateEmptyCompilation(source3, new[] { MscorlibRef, SystemCoreRef, ilRef, ValueTupleRef, SystemRuntimeFacadeRef, CSharpRef }); 1395var comp = CreateEmptyCompilation(source, new[] { MscorlibRef, SystemCoreRef, ilRef }); 1435var comp = CreateEmptyCompilation(source, new[] { MscorlibRef, SystemCoreRef, ilRef }); 1480var comp = CreateEmptyCompilation(source, new[] { MscorlibRef, SystemCoreRef, ilRef }); 1524var comp = CreateEmptyCompilation(source, new[] { MscorlibRef, SystemCoreRef, ilRef }); 1579var comp = CreateEmptyCompilation(source, new[] { MscorlibRef, SystemCoreRef, ilRef }); 1633var comp = CreateEmptyCompilation(source, new[] { MscorlibRef, SystemCoreRef, ilRef }); 1683var comp = CreateEmptyCompilation(source, new[] { MscorlibRef, SystemCoreRef, ilRef }); 1768var comp = CreateEmptyCompilation(source, new[] { MscorlibRef, SystemCoreRef, ilRef }); 1885var comp = CreateEmptyCompilation(source, new[] { MscorlibRef, SystemCoreRef, ilRef }); 1982var comp = CreateEmptyCompilation(source, new[] { MscorlibRef, SystemCoreRef, ilRef }); 2084var comp = CreateEmptyCompilation(source, new[] { MscorlibRef, SystemCoreRef, ilRef });
Symbols\Source\DeclaringSyntaxNodeTests.cs (19)
32Assert.True(!symbol.GetSymbol().IsFromCompilation((CSharpCompilation)compilation) || symbol.IsImplicitlyDeclared, "non-implicitly declares source symbol should have declaring location"); 36Assert.True(symbol.GetSymbol().IsFromCompilation((CSharpCompilation)compilation) || symbol.GetSymbol() is MergedNamespaceSymbol, "symbol with declaration should be in source, except for merged namespaces"); 87Assert.True(!symbol.GetSymbol().IsFromCompilation((CSharpCompilation)compilation) || symbol.IsImplicitlyDeclared, "non-implicitly declares source symbol should have declaring location"); 91Assert.True(symbol.GetSymbol().IsFromCompilation((CSharpCompilation)compilation) || symbol.GetSymbol() is MergedNamespaceSymbol, "symbol with declaration should be in source, except for merged namespaces"); 112private void AssertDeclaringSyntaxNodes(Symbol symbol, CSharpCompilation compilation, params SyntaxNode[] expectedSyntaxNodes) 134private void CheckDeclaringSyntax<TNode>(CSharpCompilation comp, SyntaxTree tree, string name, SymbolKind kind) 149private void CheckLambdaDeclaringSyntax<TNode>(CSharpCompilation comp, SyntaxTree tree, string textToSearchFor) 258var comp = CreateCompilation(tree); 301var comp = CreateCompilation(tree); 338AssertDeclaringSyntaxNodes(((CSharp.Symbols.PublicModel.Symbol)localType).UnderlyingSymbol, (CSharpCompilation)model.Compilation, anonObjectCreation); 603var comp = CreateCompilation(tree); 638var comp = CreateCompilation(tree); 663var comp = CreateCompilation(tree); 689var comp = CreateCompilation(tree); 718var comp = CreateCompilation(tree); 736var comp0 = CreateCompilation(new[] { source0, source1, source2, source3 }); 746var comp1 = comp0.AddSyntaxTrees(source4); 751var comp2 = comp0.ReplaceSyntaxTree(source1, source4); 761var comp3 = comp2.RemoveSyntaxTrees(source0);
Symbols\Source\DelegateTests.cs (19)
29var comp = CreateEmptyCompilation(text); 54var comp = CreateEmptyCompilation( 70var comp = CreateCompilation(text); 87var comp = CreateCompilation(text); 105var comp = CreateCompilation(text); 126var comp = CreateCompilation(text); 154var comp = CreateCompilation(text); 201var comp = CreateCompilation(text); 227var comp = CreateCompilation(Parse(text)); 335var comp = CreateCompilation(text); 389var comp = CreateCompilation(text); 420var comp = CreateCompilation(text); 451var comp = CreateCompilation(text); 485var comp = CreateCompilation(text); 732var comp = CreateCompilation(source).VerifyDiagnostics(); 755var comp = CreateCompilation(source); 776var comp = CreateCompilationWithMscorlib461(source); 793var comp = CreateCompilationWithMscorlib461(source); 823var compilation = CreateCompilationWithMscorlib461(new SyntaxTree[] { tree }).VerifyDiagnostics();
Symbols\Source\EnumTests.cs (25)
80var comp = CreateCompilation(text); 152var comp = CreateCompilation(text); 162var comp = CreateCompilation(text); 172var comp = CreateCompilation(text); 184var comp = CreateCompilation(text); 204var comp = CreateCompilation(text); 215var comp = CreateCompilation(text); 235var comp = CreateCompilation(text); 270var comp = CreateCompilation(text); 289var comp1 = CreateCompilation(text); 327var comp = CreateCompilation(text); 397var comp = CreateCompilation(source); 469var comp = CreateCompilation(text); 489var comp = CreateCompilation(text); 568var comp = CreateCompilation(source).VerifyDiagnostics( 601var comp = CreateCompilation(source).VerifyDiagnostics( 693var comp = CreateCompilation(text); 709var comp = CreateCompilation(text); 722var comp = CreateCompilation(text); 750var comp = CreateCompilation(text); 781var comp = CreateCompilation(text); 933var compilation = CreateEmptyCompilation(text, new[] { MscorlibRef }); 992var comp = CreateCompilation(text); 1003private List<Symbol> VerifyEnumsValue(CSharpCompilation comp, string enumName, SpecialType underlyingType, params object[] expectedEnumValues) 1026private static Symbol GetSymbolByFullName(CSharpCompilation compilation, string memberName)
Symbols\Source\EventTests.cs (28)
40var comp = CreateCompilation(text); 58var comp = CreateCompilation(Parse(text)); 77var comp = CreateCompilation(text); 116var comp = CreateCompilation(text); 154var comp = CreateCompilation(text); 189var comp = CreateCompilation(text); 323var comp = CreateCompilation(text); 370var comp = CreateEmptyCompilation(source, new[] { MscorlibRef, SystemCoreRef }); 382var libComp = CreateEmptyCompilation(source, new[] { MscorlibRef }).VerifyDiagnostics( 399var libComp = CreateEmptyCompilation(source, references: new[] { MscorlibRef }).VerifyDiagnostics( 415var libComp = CreateCompilation(source: libText).VerifyDiagnostics(); 431var compilation = sourceModule.DeclaringCompilation; 460var libComp = CreateCompilation(source: libText); 477var compilation = module.DeclaringCompilation; 506var libComp = CreateCompilation(libText); 535var libComp = CreateCompilation(source: libText); 594var libComp = CreateCompilation(source: libText); 626var libComp = CreateCompilation(source: libText); 813var comp = (CSharpCompilation)compVerifier.Compilation; 827var compilation = CreateCompilation(source).VerifyDiagnostics( 843var compilation = CreateCompilation(source).VerifyDiagnostics( 1849var compilation = CreateCompilationWithILAndMscorlib40(csharpSource, ilSource); 2117var compilation2 = CreateCompilation(source2, new[] { reference1 }); 2252var comp = CreateCompilation(source, new[] { CompileIL(il) }); 2334var comp = CreateCompilation(source, new[] { CompileIL(il) }); 2377var comp = CreateCompilation(source); 2411var comp = CreateCompilation(source);
Symbols\Source\ExpressionBodiedMethodTests.cs (18)
59var comp = CreateCompilation(@" 70var comp = CreateCompilationWithMscorlib461(@" 87var comp = CreateCompilation(@" 102var comp = CreateCompilationWithMscorlib461(@" 116var comp = CreateCompilationWithMscorlib461(@" 133var comp = CreateCompilationWithMscorlib461(@" 151var comp = CreateCompilationWithMscorlib461(@" 162var comp = CreateCompilationWithMscorlib461(@" 179var comp = CreateCompilationWithMscorlib461(@" 199var comp = CreateCompilationWithMscorlib461(text); 220var comp = CreateCompilationWithMscorlib461(@" 234var comp = CreateCompilationWithMscorlib461(@" 244var comp = CreateCompilationWithMscorlib461(@" 257var comp = CreateCompilationWithMscorlib461(@" 310var comp = CreateCompilationWithMscorlib461(@" 353var comp = CreateCompilationWithMscorlib461(@" 379var comp = CreateCompilationWithMscorlib461(@" 392var comp = CreateCompilationWithMscorlib461(@"
Symbols\Source\ExpressionBodiedPropertyTests.cs (20)
22var comp = CreateCompilation(@" 33var comp = CreateCompilationWithMscorlib461(@" 48var comp = CreateCompilation(@" 63var comp = CreateCompilationWithMscorlib461(@" 77var comp = CreateCompilationWithMscorlib461(@" 94var comp = CreateCompilationWithMscorlib461(@" 112var comp = CreateCompilationWithMscorlib461(@" 236var comp = CreateCompilationWithMscorlib461(@" 254var comp = CreateCompilationWithMscorlib461(text); 284var comp = CreateCompilationWithMscorlib461(@" 336var comp = CreateCompilationWithMscorlib461(@" 349var comp = CreateCompilationWithMscorlib461(@" 362var comp = CreateCompilationWithMscorlib461(@" 412var comp = CreateCompilationWithMscorlib461(@" 458var comp = CreateCompilationWithMscorlib461(@" 481var comp = CreateCompilationWithMscorlib461(@" 495var comp = CreateCompilationWithMscorlib461(@" 518var comp = CreateCompilationWithMscorlib461(@" 545var comp = CreateCompilationWithMscorlib461(@" 573var comp = CreateCompilationWithMscorlib461(@"
Symbols\Source\ExternAliasTests.cs (19)
37var comp = CreateCompilation(src, assemblyName: "Goo1", options: TestOptions.ReleaseDll); 62var comp = CreateCompilation(src, assemblyName: "Goo2", options: TestOptions.ReleaseDll); 87var comp = CreateCompilation(src); 100var comp = CreateCompilationWithMscorlib461(src, options: TestOptions.DebugExe, parseOptions: TestOptions.Script); 110var comp = CSharpCompilation.CreateScriptCompilation( 139var comp = CreateCompilation(src); 159var comp = CreateCompilation(src); 187var comp = CreateCompilation(src); 214var comp = CreateCompilation(src, assemblyName: "Baz.dll", options: TestOptions.ReleaseDll); 265var comp = CreateCompilation(src); 289var comp = CreateCompilation(src); 316var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 351var comp = CreateCompilation(tree); 384var comp = CreateCompilation(text).AddReferences(Goo1); 395var comp1 = CreateCompilation("public class C { }", assemblyName: "A1"); 398var comp2 = CreateCompilation("public class D { }", assemblyName: "A2"); 402var comp3 = CreateCompilation(Enumerable.Range(1, numFiles).Select(x => "extern alias X;").ToArray(), new[] { ref1, ref2 }, assemblyName: "A3.dll"); 428var comp3 = CreateCompilation(Enumerable.Range(1, numFiles).Select(x => "extern alias X;").ToArray(), assemblyName: "A3.dll");
Symbols\Source\FieldTests.cs (16)
44var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 60var comp = CreateEmptyCompilation(text); 88var comp = CreateCompilation(text); 117var comp = CreateEmptyCompilation(text); 141var comp = CreateEmptyCompilation(text); 175var comp = CreateCompilation(text); 199var comp = CreateCompilation(text); 234var comp = CreateCompilation(Parse(text)); 254var comp = CreateCompilation(Parse(text)); 464var compilation = CreateCompilation(source); 495var comp = CreateCompilation(text); 515var comp = CreateCompilation(text); 532var compilation = CreateCompilation(source).VerifyDiagnostics(); 545var compilation = CreateCompilation(source).VerifyDiagnostics(); 553var comp = CreateCompilation(@" 574var comp = CreateCompilation(@"
Symbols\Source\FileModifierTests.cs (161)
35var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 55var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 81var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 114var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10); 148var comp = CreateCompilation(source); 169var comp = CreateCompilation(source); 189var comp = CreateCompilation(source); 219var comp = (CSharpCompilation)verifier.Compilation; 269var comp = (CSharpCompilation)verifier.Compilation; 316var comp = (CSharpCompilation)verifier.Compilation; 368var comp = (CSharpCompilation)verifier.Compilation; 407var comp = CreateCompilation(source); 444var comp = (CSharpCompilation)verifier.Compilation; 467var comp = CreateCompilation(new[] { source, source }); 488var comp = CreateCompilation(new[] { source, source }); 509var comp = CreateCompilation(new[] { source, source }); 540var comp = CreateCompilation(new[] { source1, source2 }); 564var comp = CreateCompilation(new[] { source, source }); 595var comp = CreateCompilation(new[] { source1, source2 }); 619var comp = CreateCompilation(new[] { source, source }); 650var comp = CreateCompilation(new[] { source1, source2 }); 674var comp = CreateCompilation(new[] { source, source }); 709var comp = CreateCompilation(new[] { (source1, "file1.cs"), (source2, "file2.cs") }); 744var comp = (CSharpCompilation)verifier.Compilation; 776var comp = (CSharpCompilation)verifier.Compilation; 807var comp = (CSharpCompilation)verifier.Compilation; 835var comp1 = CreateCompilation(testSource1, options: options, assemblyName: "filetypes"); 836var comp2 = CreateCompilation(testSource2, options: options, assemblyName: "filetypes"); 842var comp3 = CreateCompilation(testSource2, options: options.WithSourceReferenceResolver(resolver), assemblyName: "filetypes"); 877var comp = CreateCompilation(new[] { source1, source2 }, assemblyName: "comp"); 921var comp = CreateCompilation(new[] { source1, source2 }, assemblyName: "comp"); 959var comp = CreateCompilation(new[] { source1, source2 }, assemblyName: "comp"); 993var comp = CreateCompilation(new[] { source1, source2 }, assemblyName: "comp"); 1033var comp = CreateCompilation(new[] { (source1, "file1.cs"), (source2, "file1.cs") }); 1086var comp = CreateCompilation(SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.RegularPreview, path: $"path/to/My{badChar}File.cs", encoding: Encoding.Default)); 1113var comp = CreateCompilation(SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularPreview, path: "\uD800.cs")); 1151var comp = (CSharpCompilation)verifier.Compilation; 1210var comp = (CSharpCompilation)verifier.Compilation; 1218comp = (CSharpCompilation)verifier.Compilation; 1278var comp = CreateCompilation(new[] { source1 + main, source2 }); 1347var comp = (CSharpCompilation)verifier.Compilation; 1413var comp = (CSharpCompilation)verifier.Compilation; 1475var comp = (CSharpCompilation)verifier.Compilation; 1529var comp = CreateCompilation(new[] { (source1, "file1.cs"), (source2, "file2.cs") }); 1604var comp = CreateCompilation(new[] { (source1, "file1.cs"), (source2, "file2.cs") }); 1678var compilation = CreateCompilation(new[] { (source1, "file1.cs"), (source2, "file2.cs"), (source3, "file3.cs") }); 1728var compilation = CreateCompilation(new[] { (source1, "file1.cs"), (source2, "file2.cs"), (source3, "file3.cs") }); 1785var comp = CreateCompilation(new[] { (source1 + main, "file1.cs"), (source2, "file2.cs") }); 1857var comp = CreateCompilation(new[] { (source1 + main, "file1.cs"), (source2, "file2.cs") }, options: TestOptions.DebugExe); 2032var comp = CreateCompilation(source); 2049var comp = CreateCompilation(source); 2067var comp = CreateCompilation((source, "file1.cs")); 2088var comp = CreateCompilation(source); 2113var comp = CreateCompilation(source); 2138var comp = CreateCompilation(source); 2166var comp = CreateCompilation(source); 2207var comp = CreateCompilation(source); 2264var comp = CreateCompilation(source); 2292var comp = CreateCompilation(source); 2317var comp = CreateCompilation(source); 2346var comp = CreateCompilation(source); 2370var comp = CreateCompilation(source); 2391var comp = CreateCompilation(source); 2436var comp = CreateCompilation(source); 2481var comp = CreateCompilation(source); 2505var comp = CreateCompilation(source); 2525var comp = CreateCompilation(source); 2551var comp = CreateCompilation(source); 2592var comp = (CSharpCompilation)verifier.Compilation; 2632var comp = (CSharpCompilation)verifier.Compilation; 2656var comp = CreateCompilation(source); 2681var comp = CreateCompilation((source, "Program.cs")); 2714var comp = CreateCompilation(source); 2732var comp = CreateCompilation(source); 2753var comp = CreateCompilation(source); 2782var comp = CreateCompilation(new[] { (source1, "file1.cs"), (source2, "file2.cs") }); 2806var comp = CreateCompilation(new[] { (source1, "file1.cs"), (source2, "file2.cs") }); 2836var comp = CreateCompilation(new[] { (source1, "F1.cs") }, targetFramework: TargetFramework.Net70); 2866var comp = CreateCompilation(new[] { (source1, "F1.cs") }, targetFramework: TargetFramework.Net70); 2896var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 2935var comp = CreateCompilation(source); 2962var comp = CreateCompilation(source); 2995var comp = CreateCompilation(source); 3010var comp = CreateCompilation(source); 3034var comp = CreateCompilation(source); 3055var comp = CreateCompilation(source); 3078var comp = CreateCompilation(new[] { (source, "file1.cs"), (IsExternalInitTypeDefinition, "file2.cs") }); 3110var comp = CreateCompilation(source); 3130var comp = CreateCompilation(source); 3189var comp = CreateCompilation(new[] { (source1, "file1.cs"), (source2, "file2.cs") }); 3219var comp = CreateCompilation(source); 3257var comp = CreateCompilation(new[] { (source1, "file1.cs"), (source2, "file2.cs") }); 3325var compilation = CreateCompilation(new[] { (source, "file1.cs"), (IsExternalInitTypeDefinition, "file2.cs") }, options: TestOptions.DebugExe.WithUsings("NS")); 3354var compilation = CreateCompilation(new[] { (source, "file1.cs"), (main, "file2.cs") }); 3393var compilation = CreateCompilation(new[] { (source, "file1.cs"), (main, "file2.cs") }); 3428var compilation = CreateCompilation(new[] { (source, "file1.cs"), (main, "file2.cs") }); 3501var comp = (CSharpCompilation)verifier.Compilation; 3552var comp = (CSharpCompilation)verifier.Compilation; 3602var compilation = CreateCompilation(new[] { (source, "file.cs"), (main, "file2.cs") }); 3637var compilation = CreateCompilation(source); 3703var compilation = CreateCompilation(new[] { (source, "file1.cs"), (main, "file2.cs") }); 3769var compilation = CreateCompilation(source); 3810var compilation = CreateCompilation(new[] { (source, "file1.cs"), (main, "file2.cs") }); 3853var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 3880var compilation = CreateCompilation(new[] { (source, "file1.cs"), (main, "file2.cs") }, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 3970var comp = CreateCompilation(new[] { (source1, "file1.cs"), (source2, "file2.cs") }); 4011var comp = CreateCompilation(new[] { (source1, "file1.cs"), (source2, "file2.cs") }); 4035var comp = CreateCompilation(source); 4059var comp = CreateCompilation(new[] 4089var comp = CreateSubmission(source1, parseOptions: TestOptions.Script.WithLanguageVersion(LanguageVersion.Preview)); 4115var comp = CreateCompilation(source1); 4137var comp = CreateCompilation(source1); 4153var comp2 = CreateCompilation("", references: new[] { comp.EmitToImageReference() }); 4172var comp = CreateCompilation(source1); 4184var comp2 = CreateCompilation("", references: new[] { comp.EmitToImageReference() }); 4207var comp = CreateCompilation(source1); 4235var comp = CreateCompilation(new[] { (source1, "file1.cs"), (source2, "file2.cs") }); 4249var comp2 = CreateCompilation("", references: new[] { comp.EmitToImageReference() }); 4272var ref1 = CreateCompilation(source1, assemblyName: "ref1"); 4273var ref2 = CreateCompilation(source1, assemblyName: "ref2"); 4275var comp = CreateCompilation("", references: new[] 4304var comp = CreateCompilation(source1); 4330var comp = CreateCompilation(SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.RegularPreview, path: "path/to/SomeFile.cs")); 4355var comp = CreateCompilation(source1, targetFramework: TargetFramework.Mscorlib40); 4376var comp2 = CreateCompilation(source2, references: new[] { comp.ToMetadataReference() }, targetFramework: TargetFramework.Mscorlib461); 4404var comp = CreateCompilation(source); 4419var referencingMetadataComp = CreateCompilation("", new[] { comp.ToMetadataReference() }); 4428var referencingImageComp = CreateCompilation("", new[] { comp.EmitToImageReference() }); 4449var comp = CreateCompilation(source); 4472var comp = CreateCompilation(source); 4502var comp0 = CreateCompilation((fileTypeSource, filePath), options: TestOptions.SigningReleaseDll); 4522var comp1 = CreateCompilation( 4544var comp0 = CreateCompilation((fileTypeSource, filePath), options: TestOptions.SigningReleaseDll); 4561var comp1 = CreateCompilation( 4666var comp = CreateCompilation(new[] { (source1, "F1.cs"), (source2, "F2.cs") }); 4705var comp = CreateCompilation(new[] { (source1, "F1.cs"), (source2, "F2.cs") }); 4736var comp = CreateCompilation(new[] { (source1, "F1.cs"), (source2, "F2.cs") }); 4908var comp = CreateCompilation(new[] { (source1, "F1.cs"), (source2, "F2.cs") }, targetFramework: TargetFramework.Net70); 4947var comp = CreateCompilation(new[] { (source1, "F1.cs"), (source2, "F2.cs") }, targetFramework: TargetFramework.Net70); 4998var comp = CreateCompilation(new[] { (source1, "F1.cs"), (source2, "F2.cs") }, targetFramework: TargetFramework.Net70); 5072var comp = CreateCompilation(new[] { (source1, "File1.cs"), (source2, "File2.cs") }); 5107var comp1 = CreateCompilation(new[] { (source1, "File1.cs") }); 5110var comp2 = CreateCompilation(new[] { (source2, "File2.cs") }, references: new[] { useMetadataReference ? comp1.ToMetadataReference() : comp1.EmitToImageReference() }); 5155var comp = CreateCompilation(new[] { (source1, "File1.cs"), (source2, "File2.cs") });
Symbols\Source\LocalTests.cs (5)
32var compilation = CreateCompilation(sourceCode); 86var compilation = CreateCompilation(sourceCode); 111var compilation = CreateCompilation(sourceCode); 136var compilation = CreateCompilation(sourceCode); 159var compilation = CreateCompilation(sourceCode);
Symbols\Source\LocationTests.cs (1)
26var comp = CreateEmptyCompilation(text, new[] { MscorlibRef });
Symbols\Source\MethodTests.cs (66)
33var comp = CreateCompilation(text); 51var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 68var comp = CreateCompilation(source); 113var comp = CreateCompilation(text); 138var comp = CreateCompilation(text); 165var comp = CreateCompilation(text); 187var comp = CreateCompilation(text); 209var comp = CreateCompilation(text); 228var comp = CreateCompilation(text); 256var comp = CreateCompilation(text); 281var comp = CreateCompilation(text); 302var comp = CreateCompilation(text); 324var comp = CreateCompilation(text); 340var comp = CreateCompilation(text); 357var comp = CreateCompilation(text); 401var comp = CreateCompilationWithMscorlib461(text); 425var comp = CreateCompilation(text); 444var comp = CreateCompilation(text); 508var comp = CreateCompilation(new[] { text1, text2 }); 584var comp = CreateCompilationWithMscorlib461(new[] { text, text1, text2 }); 755var comp1 = CreateCompilationWithMscorlib461(text); 758var comp2 = CreateCompilationWithMscorlib461(new string[] { text1 }, new List<MetadataReference>() { compRef1 }, assemblyName: "Test2"); 764var comp = CreateCompilationWithMscorlib461(new string[] { text2 }, new List<MetadataReference>() { compRef1, compRef2 }, assemblyName: "Test3"); 954var comp = CreateCompilation(new[] { text, text1, text2 }); 1044var comp1 = CreateCompilation(text); 1047var comp2 = CreateCompilation(new string[] { text1 }, new List<MetadataReference>() { compRef1 }, assemblyName: "Test2"); 1053var comp = CreateCompilation(new string[] { text2 }, new List<MetadataReference>() { compRef1, compRef2 }, assemblyName: "Test3"); 1162var comp = CreateCompilation(new[] { text, text1, text2 }); 1256var comp = CreateCompilation(text); 1324var comp = CreateCompilation(text); 1352var comp = CreateCompilation(text); 1408var comp = CreateEmptyCompilation(text); 1426var comp = CreateCompilation(code); 1461var comp = CreateCompilation(text); 1499var comp = CreateCompilation(text); 1543var comp = CreateCompilation(text); 1564var comp = CreateCompilation(text); 1592var comp = CreateCompilation(text); 1617var comp = CreateCompilation(Parse(text)); 1662var comp = CreateCompilation(Parse(text)); 1705var comp = CreateCompilation(Parse(text)); 1751var comp = CreateCompilationWithMscorlib461(text); 1801var comp = CreateCompilation(Parse(text)); 1854var comp = CreateCompilation(Parse(text)); 1899var comp = CreateCompilation(text); 1919var comp = CreateCompilation(text); 1954var comp = CreateCompilation(text); 1998var comp = CreateCompilation(text); 2037var comp = CreateCompilation(text); 2065var comp = CreateCompilation(source); 2086var comp = CreateCompilation(source); 2129var comp = CreateCompilation(source); 2154var comp = CreateCompilation(source); 2310var compilation = CreateCompilation(source).VerifyDiagnostics(); 2323var compilation = CreateCompilation(source).VerifyDiagnostics(); 2336var compilation = CreateCompilation(source).VerifyDiagnostics(); 2351var compilation = CreateCompilation(source).VerifyDiagnostics(); 2372var compilation = CreateCompilation(source).VerifyDiagnostics(); 2387var compilation = CreateCompilation(source).VerifyDiagnostics( 2405var comp = CreateCompilation(source); 2421var comp = CreateCompilation(source); 2440var comp = CreateCompilation(source); 2459var comp = CreateCompilation(source); 2484var comp = CreateCompilation(source); 2534var comp = CreateCompilation(source); 2565var comp = CreateCompilation(source);
Symbols\Source\ModifierTests.cs (3)
47var comp = CreateCompilation(text); 111var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Script); 149var comp = CreateCompilation(source);
Symbols\Source\NamedTypeTests.cs (14)
26var compilation = CreateCompilation($"[System.CLSCompliant(false)] {type}"); 35var compilation = CreateCompilation($"[System.Runtime.InteropServices.TypeIdentifierAttribute] {type}"); 44var compilation = CreateCompilation($"[System.Runtime.InteropServices.TypeIdentifier] {type}"); 53var compilation = CreateCompilation(@$" 65var compilation = CreateCompilation(@$" 77var compilation = CreateCompilation(@$" 89var compilation = CreateCompilation(@$" 101var compilation = CreateCompilation(@$" 113var compilation = CreateCompilation(new[] 127var compilation = CreateCompilation(new[] 141var compilation = CreateCompilation(new[] 155var compilation = CreateCompilation(new[] 173var compilation = CreateCompilation(new[] 191var compilation = CreateCompilation(new[]
Symbols\Source\NullablePublicAPITests.cs (126)
42var comp = CreateCompilation(source, options: WithNullableEnable()); 82var comp = CreateCompilation(source, options: WithNullableEnable()); 427var comp1 = CreateCompilation(source, options: WithNullableEnable()); 434var comp2 = CreateCompilation(source, options: WithNullableDisable()); 441var comp3 = CreateCompilation(source, parseOptions: TestOptions.Regular7_3, skipUsesIsNullable: true); 464var comp4 = CreateCompilation("", references: new[] { comp1Emit }, options: WithNullableEnable()); 469var comp5 = CreateCompilation("", references: new[] { comp2Emit }, options: WithNullableDisable()); 473var comp6 = CreateCompilation("", references: new[] { comp1Emit }, parseOptions: TestOptions.Regular7_3); 477void verifyCompilation(CSharpCompilation compilation) 938var comp = CreateCompilation(source); 995var comp = CreateCompilation(source); 1030Func<CSharpCompilation, T[]> memberFunc, 1035var comp1 = CreateCompilation(source, options: WithNullableEnable()); 1039var comp2 = CreateCompilation(source, options: WithNullableDisable()); 1043var comp3 = CreateCompilation(source, parseOptions: TestOptions.Regular7_3, skipUsesIsNullable: true); 1050var comp4 = CreateCompilation("", references: new[] { comp1Emit }, options: WithNullableEnable()); 1055var comp5 = CreateCompilation("", references: new[] { comp2Emit }, options: WithNullableDisable()); 1059var comp6 = CreateCompilation("", references: new[] { comp1Emit }, parseOptions: TestOptions.Regular7_3); 1063void verifyCompilation(CSharpCompilation compilation) 1089var comp = CreateCompilation(source, options: WithNullableEnable()); 1117var comp = CreateCompilation(source, options: WithNullableEnable()); 1141var comp = CreateCompilation(source, options: WithNullableEnable()); 1253var comp = CreateCompilation(source, options: WithNullableEnable()); 1325var comp = CreateCompilation(source); 1354var comp = CreateCompilation(source, options: WithNullableEnable()); 1434var comp = CreateCompilation(source, options: WithNullableEnable()); 1466var comp = CreateCompilation(source); 1506var comp = CreateCompilation(source, options: WithNullableEnable()); 1559var comp = CreateCompilation(source, options: WithNullableEnable()); 1613var comp = CreateCompilation(source, options: WithNullableEnable()); 1653var comp = CreateCompilation(source, options: WithNullableEnable()); 1696var comp = CreateCompilation(source, options: WithNullableEnable()); 1739var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: featureFlagOff); 1767static bool isNullableAnalysisEnabled(CSharpCompilation comp) 1817var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular7_3, skipUsesIsNullable: true); 1844var comp = CreateCompilation(source, options: WithNullableEnable()); 1887var comp = CreateCompilation(source, options: WithNullableEnable()); 1929var comp = CreateCompilation(source, options: WithNullableEnable()); 1979var comp = CreateCompilation(source, options: WithNullableEnable()); 2040var comp = CreateCompilation(source, options: WithNullableEnable()); 2083var comp = CreateCompilation(source, options: WithNullableEnable()); 2126var comp = CreateCompilation(source, options: WithNullableEnable()); 2169var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable }, options: WithNullableEnable()); 2208var comp = CreateCompilation(source, options: WithNullableEnable().WithAllowUnsafe(true)); 2238var comp = CreateCompilation(source, options: WithNullableEnable()); 2276var comp = CreateCompilation(source, options: WithNullableEnable()); 2320var comp = CreateCompilation(source, options: WithNullableEnable()); 2361var comp = CreateCompilation(source, options: WithNullableEnable()); 2406var comp = CreateCompilation(source, options: WithNullableEnable()); 2446var comp = CreateCompilation(source, options: WithNullableEnable()); 2494var comp = CreateCompilation(source, options: WithNullableEnable()); 2536var comp = CreateCompilation(source, options: WithNullableEnable()); 2588var comp = CreateCompilation(source, options: WithNullableEnable()); 2623var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8.WithFeature("run-nullable-analysis", flagState)); 2657var comp = CreateCompilation(source, options: WithNullableEnable()); 2695var comp = CreateCompilation(source, options: WithNullableEnable()); 2727var comp = CreateCompilation(source, options: WithNullableEnable()); 2770var comp = CreateCompilation(source, options: WithNullableEnable()); 2819var comp = CreateCompilation(source, options: WithNullableEnable()); 2868var comp = CreateCompilation(source, options: WithNullableEnable()); 2905var comp = CreateCompilation(source, options: WithNullableEnable()); 2950var comp = CreateCompilation(source, options: WithNullableEnable()); 2992var comp = CreateCompilation(source, options: WithNullableEnable()); 3034var comp = CreateCompilation(source, options: WithNullableEnable()); 3082var comp = CreateCompilation(source, options: WithNullableEnable()); 3141var comp = CreateCompilation(source, options: WithNullableEnable()); 3186var comp = CreateCompilation(source, options: WithNullableEnable()); 3236var comp = CreateCompilation(source, options: WithNullableEnable()); 3303var comp = CreateCompilationWithIndexAndRangeAndSpan(source, options: WithNullableEnable()); 3352var comp = CreateCompilationWithIndexAndRangeAndSpan(source, options: WithNullableEnable()); 3396var comp = CreateCompilation(source); 3441var comp = CreateCompilation(source); 3478var comp = CreateCompilation(source, options: WithNullableEnable()); 3530var comp = CreateCompilation(source, options: WithNullableEnable()); 3591var comp = CreateCompilation(source, options: WithNullableEnable()); 3654var comp = CreateCompilation(source, options: WithNullableEnable()); 3677var comp = CreateCompilation(@" 3712var comp = CreateCompilation(@" 3759var comp = CreateCompilation(source, options: WithNullableEnable()); 3802var comp = CreateCompilation(source, options: WithNullableEnable()); 3844var comp = CreateCompilation(source, options: WithNullableEnable()); 3906var comp = CreateCompilation(source, options: WithNullableEnable()); 3962var comp = CreateCompilation(source, options: WithNullableEnable()); 4031var comp = CreateCompilation(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 4104var comp = CreateCompilation(source, options: WithNullableEnable()); 4170var comp = CreateCompilation(source, options: WithNullableEnable()); 4205var comp = CreateCompilation(source, options: WithNullableEnable()); 4239var comp = CreateCompilation(source); 4262var comp = CreateCompilation(source, options: WithNullableEnable()); 4296var comp = CreateCompilation(source, options: WithNullableEnable()); 4331var comp = CreateCompilation(source); 4361var comp = CreateCompilation(source); 4389var comp = CreateCompilation(source, options: WithNullableEnable()); 4417var comp = CreateCompilation(source); 4447var comp = CreateCompilation(source, options: WithNullableEnable()); 4477var comp = CreateCompilation(source, options: WithNullableEnable()); 4507var comp = CreateCompilation(source, options: WithNullableDisable()); 4539var comp = CreateCompilation(source, options: WithNullableDisable()); 4572var comp = CreateCompilation(source, options: WithNullableDisable()); 4600var comp = CreateCompilation(source, options: WithNullableDisable()); 4633var comp = CreateCompilation(source, options: WithNullableDisable()); 4664var comp = CreateCompilation(source, options: WithNullableDisable()); 4695var comp = CreateCompilation(source, options: WithNullableDisable()); 4725var comp = CreateCompilation(source); 4763var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9); 4810var comp = CreateCompilation(source, options: WithNullableEnable()); 4876var comp = CreateCompilation(source, options: WithNullableEnable()); 4896var comp = CreateCompilation(source, options: WithNullableEnable()); 4930var comp = CreateCompilation(code, options: TestOptions.ReleaseExe.WithNullableContextOptions(NullableContextOptions.Enable)); 4962var comp = CreateCompilation(source, targetFramework: TargetFramework.Minimal); 4997var comp = CreateCompilation(source, assemblyName: "comp", options: WithNullableEnable()); 5017var comp = CreateCompilation(@" 5062var comp = CreateCompilation(@"string s = """" switch { _ => string.Empty };", options: WithNullableEnable(TestOptions.ReleaseExe)); 5094var comp = CreateCompilation(source); 5126var comp = CreateCompilation(source); 5157var comp = CreateCompilation(source); 5184var comp = CreateCompilation(source, parseOptions: runNullableAnalysisAlways ? TestOptions.RegularPreview.WithFeature("run-nullable-analysis", "always") : TestOptions.RegularPreview); 5222var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithFeature("run-nullable-analysis", "never")); 5250var comp = CreateCompilation(source); 5273var comp = CreateCompilation(source); 5305var comp = CreateCompilation(source); 5328var comp = CreateCompilation(source); 5350var comp = CreateCompilation(source); 5387var comp = CreateCompilation(source); 5448var comp = CreateCompilation(source); 5526var comp = CreateCompilation(source);
Symbols\Source\PropertyTests.cs (40)
180var comp = CreateCompilation(text); 208var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 233var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 265var comp = CreateCompilation(text, parseOptions: TestOptions.Regular); 280var comp = CreateCompilation(text, parseOptions: TestOptions.Regular); 294var comp = CreateCompilation(text, parseOptions: TestOptions.Regular); 312var comp = CreateCompilation(text, parseOptions: TestOptions.Regular); 328var comp = CreateCompilation(text).VerifyDiagnostics( 357var comp = CreateCompilation(text); 390var comp = CreateCompilation(text); 448var comp = CreateCompilation(Parse(text)); 517var compilation = CompileWithCustomPropertiesAssembly(source); 622var compilation = CompileWithCustomPropertiesAssembly(source); 789var compilation = CompileWithCustomPropertiesAssembly(source, TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 1653var comp = CreateCompilation(Parse(text)); 1690var comp = CreateCompilation(Parse(text)); 1725var comp = CreateCompilation(Parse(text)); 1745var comp = CreateCompilation(Parse(text)); 1779var comp = CreateCompilationWithMscorlib461(text); 1816var comp = CreateCompilation(Parse(text)); 1867var compilation = CreateCompilation( 1922var comp = CreateCompilation(text); 1952var comp = CreateCompilation(text); 2048var compilation3 = CreateCompilation(source3, new[] { reference1 }); 2088var compilation2 = CreateCompilation(source2, new[] { reference1 }); 2106var compilation3 = CreateCompilationWithMscorlib40AndSystemCore(source3, new[] { reference1 }); 2228var compilation2 = CreateCompilation(source2, new[] { reference1 }); 2283var compilation2 = CreateCompilation(source2, new[] { reference1 }); 2319var compilation2 = CreateCompilation(source2, new[] { reference1 }); 2449var compilation2 = CreateCompilation(source2, new[] { reference1 }); 2579private CSharpCompilation CompileWithCustomPropertiesAssembly(string source, CSharpCompilationOptions options = null) 2604var refComp = CSharpCompilation.Create("DLL", 2611var comp = CreateCompilationWithMscorlib46("", new[] { mdRef }); 2696refComp = CSharpCompilation.Create("DLL", 2822var comp = CreateCompilation(libSrc, options: TestOptions.ReleaseDll); 2960var comp = CreateCompilation(source, parseOptions: TestOptions.Regular5); 2991var comp = CreateCompilation(source, parseOptions: TestOptions.Regular5); 3012var compilation = CreateCompilation(source).VerifyDiagnostics(); 3025var compilation = CreateCompilation(source).VerifyDiagnostics();
Symbols\Source\RecordTests.cs (26)
16private static CSharpCompilation CreateCompilation(CSharpTestSource source) 29var comp = CreateCompilation(@"record C(int x, string y);"); 47var comp = CreateCompilation(@"record C<T>(int x, T t = default);"); 67var comp = CreateCompilation(@" 99var comp = CreateCompilation(@" 147var comp = CreateCompilation("record C(int x, int y);"); 222var comp = CreateCompilation(@" 739var comp = CreateCompilation("record C(int x, int y);"); 784var comp = CreateCompilation(@" 838var comp = CreateCompilation(@" 854var comp = CreateCompilation(@" 866var comp = CreateCompilation(@" 878var comp = CreateCompilation(@" 1068var comp = CreateCompilation(@" 1119var comp = CreateCompilation(src); 1148var comp = CreateCompilation(src); 1214var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 1281var comp = CreateCompilation(src); 1301var comp = CreateCompilation(src); 1342var comp = CreateCompilation(src); 1352var comp2 = CreateCompilation(src2, 1428var comp = CreateCompilation(src); 1468var comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, 1560var comp = CreateCompilation(src); 1582var comp = CreateCompilation(src); 1604var comp = CreateCompilation(src);
Symbols\Source\SourcePlusMetadataTests.cs (18)
26var comp = CreateCompilation(text); 43var comp = CreateCompilation(text); 59var comp = CreateCompilation(text); 80var comp = CreateCompilation(text); 136var compilation = CreateCompilation(new string[] { text1, text2, text3 }); 187var compilation = CreateEmptyCompilation(text, new[] { MscorlibRef }); 191var comp2 = CSharpCompilation.Create("Compilation2", references: new MetadataReference[] { ref2, MscorlibRef }); 203var compilation = CreateEmptyCompilation(text, new[] { MscorlibRef }); 207var comp2 = CSharpCompilation.Create("Compilation2", references: new MetadataReference[] { ref2, MscorlibRef }); 230var compilation = CreateCompilation(text); 235var comp2 = CSharpCompilation.Create("Compilation2", references: new MetadataReference[] { ref2, MscorlibRef }); 249var comp = CreateCompilation(text); 268var comp1 = CreateCompilation(@"public class C { }", 273var comp2 = CreateCompilation(@"public class B { public static C GetC() { return new C(); } }", 279var comp3 = CreateCompilation(@"public class A { public static void Main() { object o = B.GetC(); } }",
Symbols\Source\TypeMapTests.cs (4)
53var comp = CreateEmptyCompilation(text); 111var comp = CreateCompilation(tree); 135var compilation = CreateCompilation(source); 177var compilation = CreateCompilation(source);
Symbols\Source\UpdatedContainingSymbolAndNullableAnntotationTests.cs (1)
32var comp = CreateCompilation(source, options: WithNullableEnable());
Symbols\Source\UsingAliasTests.cs (24)
32var comp = CreateCompilation(tree); 89var comp = CreateCompilation(tree); 149var comp = CreateCompilation(tree); 204var comp = CreateCompilation(tree); 269var comp = CreateCompilation(tree); 296var comp = CreateCompilation(tree); 342var comp = CreateCompilation(tree); 383var comp = CreateCompilation(tree); 404var comp = CreateCompilation(tree); 423var comp = CreateCompilation(tree); 442var comp = CreateCompilation(tree); 461var comp = CreateCompilation(tree); 480var comp = CreateCompilation(tree); 501var comp = CreateCompilation(tree); 522CSharpCompilation comp = CreateCompilation(syntaxTree); 543CSharpCompilation comp = CreateCompilation(syntaxTree); 563CSharpCompilation comp = CreateCompilation(syntaxTree); 582CSharpCompilation comp = CreateCompilation(syntaxTree); 602CSharpCompilation comp = CreateCompilation(syntaxTree); 626CSharpCompilation comp = CreateCompilation(syntaxTree); 649CSharpCompilation comp = CreateCompilation(syntaxTree); 666CSharpCompilation comp = CreateCompilation(syntaxTree); 687var compilation = CreateCompilation(text); 731var compilation = CreateCompilation(text, parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.Preview));
Symbols\StaticAbstractMembersInInterfacesTests.cs (573)
68var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 147private static void ValidateMethodModifiers_01(CSharpCompilation compilation1) 309var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 420var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 507var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 588var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 708var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 814var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 899var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 972var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1012var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1049var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1056private static void ValidatePartialSealedStatic_02(CSharpCompilation compilation1) 1105var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1126var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1143var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1180var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1217var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1258var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1319var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1370var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1425var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1483var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1538var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1610var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1668var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1729private static void ValidatePropertyModifiers_01(CSharpCompilation compilation1) 1995var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2106var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2175var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2256var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2358var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2474var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2535private static void ValidateEventModifiers_01(CSharpCompilation compilation1) 2809var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2922var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2992var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3075var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3178var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3292var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3368private static void ValidateOperatorModifiers_01(CSharpCompilation compilation1) 3530var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3635var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3722var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3800var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 3917var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4013var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4205var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4451var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4637var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4865var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4907var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4940var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 4973var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5009var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5047var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5067var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5109var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5151var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5184var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5226var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5268var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5298var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5334var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5370var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5385var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 5411var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5426var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, 5488var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5556var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5595var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5639var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5700var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5747var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5777var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5826var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5870var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5909var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5951var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 5978var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6023var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6068var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6092var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6116var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6162var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6207var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6228var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6260var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6335var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 6415var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6467var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 6523var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6598var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 6641var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6716var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 6782var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6857var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 6911var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 6986var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 7040var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7068var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7098var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7128var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7160var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7239var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7333var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7438var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7544var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7638var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7737var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7854var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 7974var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8071var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8168var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8249var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8338var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8390var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8502var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8506var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 8517var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 8550var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8587var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8591var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 8602var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 8672var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 8767var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9112var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9116var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 9127var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 9180var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9184var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 9209var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 9272var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9314var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9397var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9401var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 9412var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 9450var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9454var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 9465var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 9525var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9605var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9802var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9806var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 9817var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 9864var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 9868var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 9879var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 9948var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10077var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10291var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10411var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10534var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10817var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 10989var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11202var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11367var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11704var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 11997var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12181var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12185var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 12196var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 12244var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12248var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 12266var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 12331var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12335var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 12346var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 12381var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12385var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 12396var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 12438var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12442var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 12478var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 12551var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12555var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 12573var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 12638var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12642var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 12678var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 12738var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12742var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 12753var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 12817var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 12908var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13002var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13100var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13141var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13226var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13317var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13436var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13440var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 13451var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 13488var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13492var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 13503var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 13540var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13544var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 13558var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 13595var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13599var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 13610var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 13647var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13651var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 13662var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 13699var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13703var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 13714var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 13778var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13875var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 13970var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14017var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14146var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14150var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 14161var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 14195var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14199var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 14210var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 14244var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14248var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 14259var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 14296var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14300var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 14311var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 14401var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 14429var compilation2 = CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugDll, 14496var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 14519var compilation2 = CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugDll, 14595var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14657var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14748var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14752var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 14763var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 14797var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 14801var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 14812var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 14887var compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseExe, 14953var compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseExe, 15013var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15075var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15154var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15158var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 15169var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 15203var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15207var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 15218var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 15282var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithAllowUnsafe(true), 15347var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithAllowUnsafe(true), 15422var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15426var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll.WithAllowUnsafe(true), 15437var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll.WithAllowUnsafe(true), 15471var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15475var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll.WithAllowUnsafe(true), 15486var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll.WithAllowUnsafe(true), 15548var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15628var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15690var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15766var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15843var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15904var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15908var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 15922var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 15960var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 15964var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 15975var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 16007var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16011var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 16022var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 16059var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16121var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16177var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16194var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 16293var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 16354var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 16385var compilation2 = CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugDll, 16431var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 16472var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16557var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 16658var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16675var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 16746var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16761var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 16836var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16855var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 16918var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 16937var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 17000var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17019var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 17070var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17090var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 17145var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17164var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 17232var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17251var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 17322var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17348var compilation2 = CreateCompilation(source2, options: TestOptions.DebugExe, 17428var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17454var compilation2 = CreateCompilation(source2, options: TestOptions.DebugExe, 17606var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17749var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 17885var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 18028var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 18137var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 18284var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 18437var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 18623var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 18771var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 18775var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 18813var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 18899var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 18903var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 18957var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 19059var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19063var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 19074var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 19111var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19115var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 19126var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 19163var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19167var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 19178var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 19218var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19222var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 19233var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 19293var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19374var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19466var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19554var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19637var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19729var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19818var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19905var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19922var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 19977var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 19996var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 20062var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 20079var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 20142var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 20159var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 20270var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 20405var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 20483var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 20515var compilation2 = CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugDll, 20563var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 20595var compilation2 = CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugDll, 20653var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 20718var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 20788var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 20905var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 21016var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 21151var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 21270var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 21287var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 21330var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 21347var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 21433var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 21450var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 21553var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 21568var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 21674var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 21693var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 21783var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 21802var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 21885var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 21904var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 22042var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithAllowUnsafe(true), 22192var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithAllowUnsafe(true), 22262var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22307var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22378var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22458var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22520var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22596var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22677var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22748var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22752var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 22772var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 22810var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22814var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 22831var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 22866var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 22870var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 22881var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 22921var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 23016var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 23107var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 23195var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 23212var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 23374var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 23475var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 23513var compilation2 = CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugDll, 23543var compilation3 = CreateCompilationWithIL(source3, ilSource, options: TestOptions.DebugDll, 23605var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 23634var compilation2 = CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugDll, 23695var compilation3 = CreateCompilationWithIL(source3, ilSource, options: TestOptions.DebugDll, 23775var compilation4 = CreateCompilationWithIL(source4, ilSource, options: TestOptions.DebugDll, 23805var compilation5 = CreateCompilationWithIL(source5, ilSource, options: TestOptions.DebugDll, 23865var compilation6 = CreateCompilationWithIL(source6, ilSource, options: TestOptions.DebugDll, 23895var compilation7 = CreateCompilationWithIL(source7, ilSource, options: TestOptions.DebugDll, 23957var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 23986var compilation2 = CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugDll, 24047var compilation3 = CreateCompilationWithIL(source3, ilSource, options: TestOptions.DebugDll, 24127var compilation4 = CreateCompilationWithIL(source4, ilSource, options: TestOptions.DebugDll, 24157var compilation5 = CreateCompilationWithIL(source5, ilSource, options: TestOptions.DebugDll, 24217var compilation6 = CreateCompilationWithIL(source6, ilSource, options: TestOptions.DebugDll, 24247var compilation7 = CreateCompilationWithIL(source7, ilSource, options: TestOptions.DebugDll, 24338var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 24386var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 24575var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 24756var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 24773var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 24871var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 24886var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 24996var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25015var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 25066var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25086var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 25157var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25237var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25299var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25375var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25457var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25526var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25530var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 25553var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 25594var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25598var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 25615var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 25647var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25651var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 25662var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 25699var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25794var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25882var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 25899var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 26066var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 26168var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 26206var compilation2 = CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugDll, 26232var compilation3 = CreateCompilationWithIL(source3, ilSource, options: TestOptions.DebugDll, 26287var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 26316var compilation2 = CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugDll, 26345var compilation3 = CreateCompilationWithIL(source3, ilSource, options: TestOptions.DebugDll, 26418var compilation4 = CreateCompilationWithIL(source4, ilSource, options: TestOptions.DebugDll, 26444var compilation5 = CreateCompilationWithIL(source5, ilSource, options: TestOptions.DebugDll, 26471var compilation6 = CreateCompilationWithIL(source6, ilSource, options: TestOptions.DebugDll, 26501var compilation7 = CreateCompilationWithIL(source7, ilSource, options: TestOptions.DebugDll, 26561var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 26590var compilation2 = CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugDll, 26619var compilation3 = CreateCompilationWithIL(source3, ilSource, options: TestOptions.DebugDll, 26692var compilation4 = CreateCompilationWithIL(source4, ilSource, options: TestOptions.DebugDll, 26718var compilation5 = CreateCompilationWithIL(source5, ilSource, options: TestOptions.DebugDll, 26745var compilation6 = CreateCompilationWithIL(source6, ilSource, options: TestOptions.DebugDll, 26775var compilation7 = CreateCompilationWithIL(source7, ilSource, options: TestOptions.DebugDll, 26866var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 26914var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 27115var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 27421var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 27438var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 27536var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 27551var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 27662var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 27681var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 27732var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 27752var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 27891var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28034var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28143var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28300var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28418var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28422var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 28456var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 28519var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28523var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 28534var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 28571var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28575var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 28586var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 28650var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28767var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28869var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 28886var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 29009var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 29088var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 29120var compilation2 = CreateCompilationWithIL(source2, ilSource, options: TestOptions.DebugDll, 29182var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 29247var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 29363var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 29494var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 29511var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 29609var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 29628var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 29715var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 29734var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 29854var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithAllowUnsafe(true), 29921var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 29986var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30054var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30140var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30325var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30516var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30520var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 30531var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 30574var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30578var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 30589var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 30631var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30635var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 30660var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 30717var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30721var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 30732var compilation3 = CreateCompilation(source2 + source1, options: TestOptions.DebugDll, 30783var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 30987var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31038var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31082var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31136var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31196var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31244var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31287var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31341var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31390var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31463var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 31521var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 31574var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 31615var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31699var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 31711var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31771var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 31784var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 31834var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 31869var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 31903var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 32037var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugDll, 32085var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 32136var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 32180var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32214var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32268var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32309var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32344var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32385var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32427var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32473var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32515var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32551var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32593var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32615var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32655var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32693var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32725var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32763var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32795var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32833var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32865var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32903var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32935var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 32973var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33005var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33043var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33065var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33096var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 33132var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33163var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 33199var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33230var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 33266var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 33297var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, 33655var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugDll, 33660var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { compilation1.ToMetadataReference() }, 33665var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { compilation1.EmitToImageReference() }, 33712var compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugDll, 33717var compilation2 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { compilation1.ToMetadataReference() }, 33722var compilation3 = CreateCompilation(source2, options: TestOptions.DebugDll, references: new[] { compilation1.EmitToImageReference() },
Symbols\SymbolDistinguisherTests.cs (21)
34var comp = CreateCompilation(tree, new[] { libRef }, assemblyName: "Source"); 78var comp = CreateCompilation(Parse(source, "file2.cs"), new[] { libRef }, assemblyName: "Source"); 97var libComp = CreateCompilation(tree, assemblyName: "Metadata"); 99var comp = CreateCompilation(tree, new[] { libRef }, assemblyName: "Source"); 118var comp = CreateCompilation(tree, new[] { libRef }, assemblyName: "Source"); 137var libComp = CreateCompilation(tree, assemblyName: "Metadata"); 140var comp = CreateCompilation(tree, new[] { libRef }, assemblyName: "Source"); 159var comp = CreateCompilation(source, new[] { libRef }, assemblyName: "Source"); 183var comp = CreateCompilation(tree, new[] { libRef }, assemblyName: "Source"); 209var comp = CreateCompilation(tree, new[] { libRef }, assemblyName: "Source"); 234var comp = CreateCompilation(tree, new[] { libRef }, assemblyName: "Source", options: TestOptions.UnsafeReleaseDll); 259var comp = CreateCompilation(tree, new[] { libRef }, assemblyName: "Source"); 281var comp = CreateCompilation(tree, new[] { libRef }, assemblyName: "Source"); 298var comp = CreateCompilation("", new[] { libRef }, assemblyName: "Source"); 314var dummyComp = CreateEmptyCompilation("", assemblyName: "Error"); 697var compilation = CreateCompilation(source); 718var compilation = CreateCompilation(source); 738var compilation1 = CreateCompilation(source1); 743var compilation2 = CreateCompilation(source2, references: new[] { ref1 }); 776var comp0 = CreateCompilation(source0); 782var comp1 = CreateCompilation(Parse(source1), new[] { ref0 });
Symbols\SymbolEqualityTests.cs (20)
35var comp = CreateCompilation(src, options: WithNullableEnable()); 75var comp = CreateCompilation(src, options: WithNullableEnable()); 118var comp = CreateCompilation(src, options: WithNullableEnable()); 159var comp = CreateCompilation(src, options: WithNullableEnable()); 191var comp = CreateCompilation(source); 341var comp2 = (Compilation)CreateCompilation(source2, new[] { new CSharpCompilationReference((CSharpCompilation)comp1) }); 406var comp = CreateCompilation(source); 444var comp = CreateCompilation(source); 475var comp = CreateCompilation(source); 518var comp = CreateCompilation(source); 549var comp = CreateCompilation(source); 585var comp = CreateCompilation(source); 619var comp = CreateCompilation(source); 668var comp = CreateCompilation(source); 720var comp = CreateCompilation(source); 770var comp = CreateCompilation(source); 821var comp = CreateCompilation(source); 878var comp = CreateCompilation(source); 929var comp = CreateCompilation(source); 958var comp = CreateCompilation(source);
Symbols\SymbolErrorTests.cs (364)
72var comp = CreateCompilationWithILAndMscorlib40(source, il); 100var module1 = CreateCompilation(text1, options: TestOptions.ReleaseModule, assemblyName: name1); 102var module2 = CreateCompilation(text2, 107var comp = CreateCompilation(text, 143var comp = CreateCompilation(text, references: new MetadataReference[] { ref2 }, assemblyName: "Test3"); 194var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 216var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 234var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 292var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 490var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 513var comp = CreateCompilation(text); 540var comp = CreateCompilation(text); 562var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 590var comp = CreateCompilation(text); 617var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 638var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 666var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 683var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 700var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text); 723var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 783var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 1083var comp = CreateCompilation(text); 1455var comp = CreateCompilation(text).VerifyDiagnostics( 1492var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 1513var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 1531var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 1546var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text); 1560var comp = CreateCompilation(text); 1672var comp = CreateCompilation(text); 1955var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 1962var compilation = CreateCompilation( 1979var compilation = CreateCompilation( 2008var compilation = CreateCompilation( 2044var compilation = CreateCompilation( 2211var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 2232var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 2293var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 2319var comp = CreateCompilation(text); 2367var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 2452var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 2541var comp = CreateCompilation(Parse(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp5))); 2578var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 2613var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text); 2626var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text); 2641var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text); 2663var comp = CreateCompilation(text); 3066var comp = CreateCompilation(text); 3085var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 3138var comp = CreateCompilation(text).VerifyDiagnostics( 3158var c = CreateCompilation(text, options: TestOptions.ReleaseDll.WithAllowUnsafe(false)); 3312var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 3355var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 3451var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 3573var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 3596var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 3623var comp = CreateCompilation(text); 3655var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 3691var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 3728var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 3752var comp = CreateCompilation(text); 3777var comp = CreateCompilation(text); 3938var comp = CreateCompilation(text, new[] { ref1, ref2 }); 4308var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 4338var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text3, 4369var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 4746var comp = CreateCompilation(text); 4917var compilation = CreateCompilation(text); 4947var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 4967var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 5401var comp = CreateCompilation(text); 5469var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 5494var comp = CreateCompilation(text, new List<MetadataReference> { ref1, ref2 }); 5552var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, new List<MetadataReference> { ref1, ref2 }, 5587var comp = CreateCompilation(text, 5626var comp = CreateCompilation(text, 5653var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 5671var comp = CreateCompilation(text, 5714var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 5733var comp = CreateCompilation(text, 5774var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 5792var comp = CreateCompilation(text, 5835var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 5854var comp = CreateCompilation(text, 5895var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 5913var comp = CreateCompilation(text, 5952var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 5970var comp = CreateCompilation(text, 6011var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6029var comp = CreateCompilation(text, 6070var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6088var comp = CreateCompilation(text, 6135var comp = CreateCompilation(text, 6171var comp = CreateCompilation(text, 6207var comp = CreateCompilation(text, 6243var comp = CreateCompilation(text, 6267var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6286var comp = CreateCompilation(text, 6327var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6346var comp = CreateCompilation(text, 6389var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6408var comp = CreateCompilation(text, 6449var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6468var comp = CreateCompilation(text, 6511var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6533var comp = CreateCompilation(text, 6574var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6596var comp = CreateCompilation(text, 6637var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6659var comp = CreateCompilation(text, 6708var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6730var comp = CreateCompilation(text, 6771var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6793var comp = CreateCompilation(text, 6840var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6862var comp = CreateCompilation(text, 6927var comp = CreateCompilation(text, 7012var comp = CreateCompilation(text, 7087var comp = CreateCompilation(text, 7142var compilation = CreateCompilation(source, 7231var compilation = CreateCompilation("", 7265var forwardedTypes1 = CreateCompilation(forwardedTypesSource, options: TestOptions.ReleaseDll, assemblyName: "ForwardedTypes1"); 7268var forwardedTypes2 = CreateCompilation(forwardedTypesSource, options: TestOptions.ReleaseDll, assemblyName: "ForwardedTypes2"); 7306var compilation = CreateCompilation(forwardedTypesSource, 7448var comp = CreateCompilation(text); 7960var comp = CreateCompilation(text, targetFramework: TargetFramework.NetLatest); 8039var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 8060var comp = CreateCompilation(text).VerifyDiagnostics( 8196var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 8221var comp = CreateCompilation(source).VerifyDiagnostics( 8252var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 8269var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 8300var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 8401var comp = CreateCompilationWithILAndMscorlib40(text, s_typeWithMixedProperty); 8432var comp = CreateCompilationWithILAndMscorlib40(text, s_typeWithMixedProperty); 8464var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 8483var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 8504var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 8662var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 9147var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7); 9180var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7, targetFramework: TargetFramework.NetCoreApp); 9210var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 9233var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 9257var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 9282var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 9311var comp = CreateCompilation(text, targetFramework: TargetFramework.NetCoreApp).VerifyDiagnostics( 9332var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 9409var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 9632var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 9648var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 9730var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 9760var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 9777var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 9818var comp = CreateCompilation( 10098var compilation2 = CreateCompilation(source2, new[] { reference1 }); 10149var compilation2 = CreateCompilation(source2, new[] { reference1 }); 10193var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 10216var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 10236var comp = CreateCompilation(text); 10270var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 10290var comp = CreateCompilation(text); 10316var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 10386var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 10456var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 10479var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 10503var comp = CreateCompilation(text); 10533var comp = CreateCompilation(text); 10556var comp = CreateCompilation(text); 10581var comp = CreateCompilation(text); 10605var comp = CreateCompilation(text); 10636var comp = CreateCompilation(text); 10661var comp = CreateCompilation(text); 10680var comp = CreateCompilation(text); 10698var comp = CreateCompilation(text); 10717var comp = CreateCompilation(text); 10764var comp = CreateCompilation(text, parseOptions: TestOptions.RegularPreview); 10811var comp = CreateCompilation(text, parseOptions: TestOptions.Regular7); 10862var compilation2 = CreateCompilation(source2, new[] { reference1 }); 10891var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); 10944var comp = CreateCompilation(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp5)); 10980var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 11012var comp = CreateCompilation(text); 11076var comp = CreateCompilation(new[] { sourceA, sourceB }); 11092var comp = CreateCompilation(source); 11108var comp = CreateCompilation(source); 11162var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 11196var comp = CreateCompilation(text); 11228var compilation = CreateCompilation(text); 11255var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 11279var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 11372var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 11382var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 11409var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 11431var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 11451var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 11499var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 11548var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 11572var comp = CreateCompilation(source); 11652var compilation = CreateCompilation(text); 11687var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 11768var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 11821var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 11844var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 12022var comp = CreateCompilation(text); 12188var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 12321var comp = CreateCompilation(text); 12394var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 12506var comp = CreateCompilation(text); 12571var compilation2 = CreateCompilation(source2, new[] { reference1 }); 12598var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 12650var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 12671var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 12720var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 12777var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 12793var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 12809var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text); 13015var comp = CreateCompilation(text); 13080var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 13108var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 13132var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 13373var strictComp = CreateCompilation(text); 13378var regularComp = CreateCompilation(text, options: TestOptions.ReleaseDll.WithWarningLevel(4)); 13471var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 13503var comp = CreateCompilation(text); 13541var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 13784var comp = CreateCompilation(source); 13823var comp1 = CreateCompilation(text1); 13826var comp2 = CreateCompilation(text2, new MetadataReference[] { compRef1 }); 13873var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 13897var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 13915var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 13934var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 14074var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 14112var comp = CreateCompilation(text); 14145var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 14209var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 14522var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 14541var comp = CreateCompilation(text); 14678var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 14786var compilation = CreateCompilation(text); 14798var compilation = CreateCompilation( 14837var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 14845var compilation = CreateCompilation( 14910var compilation = CreateCompilation( 14954var compilation = CreateEmptyCompilation(source, new[] { Net40.References.mscorlib }); 14995var compilation = CreateCompilation(source); 15042var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 15051var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 15060var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 15076var comp = CreateCompilation(text); 15125var comp = CreateCompilation(text); 15443var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 15455var comp = CreateCompilation(text, options: TestOptions.ReleaseDll); 15468var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 15482var comp = CreateCompilation(text, options: TestOptions.UnsafeReleaseDll); 15771var comp = CreateCompilation(text).VerifyDiagnostics( 15856var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 15937var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 15961var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 16034var comp = CreateCompilation(text); 16098var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 16115var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 16130var compilation = CreateCompilation(text); 16206var comp1 = CreateCompilation(textdll); 16225var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 16240var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 16274var comp = CreateCompilation(textdll); 16302var comp = CreateCompilation(textdll); 16340var comp = CreateCompilation(textdll); 16342var comp1 = CreateCompilation(text, new[] { ref1 }); 16484var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 16543var comp = CreateCompilation(textdll); 16567var comp = CreateCompilation(text); 16889CSharpCompilation comp = CreateCompilation(text); 16914CSharpCompilation comp = CreateCompilation(text); 16949CSharpCompilation comp = CreateCompilation(text); 17042var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 17532var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 17555var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 17575var comp = CreateCompilation(text); 17609var comp = CreateCompilation(program); 17637var comp = CreateCompilation(new[] { text }, new List<MetadataReference> { ref1 }); 17675var comp = CreateCompilation(new[] { text }, new List<MetadataReference> { ref1 }); 17737var ref1 = CreateCompilation(sourceRef1, assemblyName: "Ref1").VerifyDiagnostics(); 17738var ref2 = CreateCompilation(sourceRef2, assemblyName: "Ref2").VerifyDiagnostics(); 17742var lib = CreateCompilation(tree, new MetadataReference[] 17818var ref1 = CreateCompilation(sourceRef1, assemblyName: "Ref1").VerifyDiagnostics(); 17819var ref2 = CreateCompilation(sourceRef2, assemblyName: "Ref2").VerifyDiagnostics(); 17823var lib = CreateCompilation(tree, new MetadataReference[] 17918var comp = CreateCompilation(new[] { text }, new List<MetadataReference> { ref1 }); 17944var compilation = CreateCompilation( 18021var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 18097var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 18349var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 18369var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 18390var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 18451var comp = CreateCompilation(source, options: TestOptions.DebugDll); 18479var comp = CreateCompilation(source, options: TestOptions.DebugDll); 18504var comp = CreateCompilation(source, options: TestOptions.DebugDll); 18529var comp = CreateCompilation(source, options: TestOptions.DebugDll); 18555var comp = CreateCompilation(source, options: TestOptions.DebugDll); 18575var comp = CreateCompilation(source, options: TestOptions.DebugDll); 18601var comp = CreateCompilation(source, options: TestOptions.DebugDll); 18624var comp = CreateCompilation(source, options: TestOptions.DebugDll); 18643var compilation = CreateCompilation( 18663var compilation = CreateCompilation( 18690var compilation = CreateCompilation( 18789var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 18813CSharpCompilation comp = CreateCompilation(text, targetFramework: TargetFramework.NetLatest); 19331var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 19358var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 19373var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, new ErrorDescription { Code = (int)ErrorCode.ERR_SingleTypeNameNotFound, Line = 3, Column = 22 }); 19405var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text); 19419var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 19441var comp = CreateCompilation(text).VerifyDiagnostics( 19535var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 19549var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 19567var comp = CreateCompilation(text); 20088var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 20117var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text); // no errors 20156var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 20196var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text); 20378var comp1 = CreateCompilation(@" 20383var comp2 = CreateCompilation(@" 20400var comp3 = CreateCompilation(source3, new[] { new CSharpCompilationReference(comp2) }, options: TestOptions.ReleaseDll); 20404var comp4 = CreateCompilation(source3, new[] { comp2.EmitToImageReference() }, options: TestOptions.ReleaseDll); 20458var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.Script, options: TestOptions.DebugExe); 20480var submission = CSharpCompilation.CreateScriptCompilation("s0.dll", SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.Script), new[] { MscorlibRef_v4_0_30316_17626, SystemCoreRef }); 20597var compilation = CreateCompilationWithILAndMscorlib40(userCode, forwardingIL, appendDefaultHeader: false); 20660var compilation = CreateCompilationWithILAndMscorlib40(userCode, forwardingIL, appendDefaultHeader: false); 20902var forwarderCompilation = CreateEmptyCompilation( 20920var userCompilation = CreateCompilation( 20967var forwarderCompilation = CreateEmptyCompilation( 20985var userCompilation = CreateCompilation( 21333var comp = CreateCompilation(text, parseOptions: TestOptions.Regular10); 21394var comp = CreateCompilation(text, parseOptions: TestOptions.Regular10); 21439var comp = CreateCompilation(text, parseOptions: TestOptions.Regular10); 21484var comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.WithWarningLevel(7)); 21562var comp1_v1 = CreateCompilation(source1_1, assemblyName: "Lib1"); 21574var comp2 = CreateCompilation(source2, references: new[] { comp1_v1.ToMetadataReference() }); 21578var comp3 = CreateCompilation(source1_1); 21595var comp1_v2 = CreateCompilation(source1_2, assemblyName: "Lib1", references: new[] { comp2Ref, comp3.ToMetadataReference() }); 21604var comp1_v3 = CreateCompilation(source1_3, assemblyName: "Lib1", references: new[] { comp2Ref }); 21622var comp1_v4 = CreateCompilation(source1_4, assemblyName: "Lib1", references: new[] { comp2Ref, comp3.ToMetadataReference() }); 21639var comp1_v5 = CreateCompilation(source1_5, assemblyName: "Lib1", references: new[] { comp2Ref }); 21660var comp1_v1 = CreateCompilation(source1_1, assemblyName: "Lib1"); 21669var comp2 = CreateCompilation(source2, references: new[] { comp1_v1.ToMetadataReference() }); 21673var comp3 = CreateCompilation(source1_1); 21690var comp1_v2 = CreateCompilation(source1_2, assemblyName: "Lib1", references: new[] { comp2Ref, comp3.ToMetadataReference() }); 21699var comp1_v3 = CreateCompilation(source1_3, assemblyName: "Lib1", references: new[] { comp2Ref }); 21717var comp1_v4 = CreateCompilation(source1_4, assemblyName: "Lib1", references: new[] { comp2Ref, comp3.ToMetadataReference() }); 21734var comp1_v5 = CreateCompilation(source1_5, assemblyName: "Lib1", references: new[] { comp2Ref }); 21763var comp1 = CreateCompilation(source1, assemblyName: "Lib1"); 21773var comp2 = CreateCompilation(source2, references: new[] { comp1.ToMetadataReference() }); 21802var comp2 = CreateCompilation(new[] { source1, source2 }); 21832var comp1 = CreateCompilation(source1, assemblyName: "Lib1"); 21846var comp2 = CreateCompilation(source2, references: new[] { comp1.ToMetadataReference() }); 21876var comp1 = CreateCompilation(source1, assemblyName: "Lib1"); 21896var comp2 = CreateCompilation(source2, references: new[] { comp1.ToMetadataReference() }); 21926var comp1 = CreateCompilation(source1, assemblyName: "Lib1"); 21943var comp2 = CreateCompilation(new[] { string.Format(source2, "TypeForwarded_2"), string.Format(source2, "TypeForwardedTo"), source3 }, references: new[] { comp1.ToMetadataReference() }); 21982var comp1 = CreateCompilation(source1, assemblyName: "Lib1"); 22004var comp2 = CreateCompilation(source2, references: new[] { comp1.ToMetadataReference() }); 22104var comp2 = CreateCompilationWithIL(source2, ilSsource1);
Symbols\SymbolExtensionTests.cs (6)
53var compilation = CreateCompilation(source); 99var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 117var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 135var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 154var compilation = CreateCompilation(source, options: TestOptions.DebugDll); 248var compilation = CreateCompilationWithIL(source, ilSource, options: TestOptions.ReleaseExe);
Symbols\TypedConstantTests.cs (1)
20private readonly CSharpCompilation _compilation;
Symbols\TypeResolutionTests.cs (18)
50var c1 = CSharpCompilation.Create("Test1", 64var c2 = CSharpCompilation.Create("Test2", 75var c3 = CSharpCompilation.Create("Test3", 88var c4 = CSharpCompilation.Create("Test4", 118var c = CSharpCompilation.Create("TypeSymbolFromReflectionType", 168var c1 = CSharpCompilation.Create("Asm1", syntaxTrees: new[] { SyntaxFactory.ParseSyntaxTree(code) }); 169var c2 = CSharpCompilation.Create("Asm2", syntaxTrees: new[] { SyntaxFactory.ParseSyntaxTree(code) }); 170var c3 = CSharpCompilation.Create("Asm3", 183var c1 = CSharpCompilation.Create("Asm1",
Symbols\TypeTests.cs (73)
39var compilation = CreateCompilation(code); 61var compilation = CreateCompilation(code); 85var comp = CreateCompilation(text); 124var comp = CreateCompilation(new[] { text, text1, text2, text3 }); 190var comp1 = CreateCompilation(text); 193var comp2 = CreateCompilation(new string[] { text1, text2 }, assemblyName: "Test1", 197var comp = CreateCompilation(text3, assemblyName: "Test2", 271var comp = CreateCompilation(text); 346var comp = CreateCompilation(new[] { text, text1, text2 }); 378var comp1 = CreateCompilation(text); 380var comp = CreateCompilation(text1, references: new List<MetadataReference> { compRef1 }, assemblyName: "Comp2"); 465var comp = CreateCompilation(text); 537var compilation = CreateEmptyCompilation(text, new[] { Net40.References.mscorlib }); 586var compilation = CreateCompilation(text); 668var comp = CreateCompilation(text); 707var compilation = CreateCompilation(text); 744var compilation = CreateCompilation(csharp, references: new[] { refAsm }); 764var compilation1 = CreateCompilation(referenceText, assemblyName: "A"); 767var compilation2 = CreateCompilation(referenceText, assemblyName: "B"); 782var compilation3 = CreateCompilation(testText, new[] { new CSharpCompilationReference(compilation1), new CSharpCompilationReference(compilation2) }); 815var main1 = CreateEmptyCompilation( 828var main2 = CreateEmptyCompilation( 849var comp = CreateCompilation(text); 902var comp = CreateCompilation(text, references: new[] { module1Ref }); 926var comp = CreateEmptyCompilation(text); 944var comp = CreateEmptyCompilation(code); 966var comp = CreateCompilation(text); 980var comp = CreateEmptyCompilation(code); 993var comp = CreateEmptyCompilation(code); 1016var comp = CreateCompilation(text); 1035var comp = CreateCompilation(text); 1060var comp = CreateCompilation(text); 1078var comp = CreateCompilation(text); 1100var comp = CreateCompilation(text); 1118var comp = CreateCompilation(text); 1139var comp = CreateCompilation(tree); 1153var comp = CreateCompilation(tree); 1178var comp = CreateCompilation(tree); 1197var comp = CreateCompilation(tree); 1235var comp = CreateCompilation(text); 1304var comp = CreateCompilation(text); 1385var comp = CreateCompilation(text); 1406var comp = CreateCompilation(text); 1413var compilation = CreateCompilation(@" 1453var comp = CreateCompilation(@"public void TopLevelMethod() {}"); 1476var comp = CreateCompilation(text); 1503var comp = CreateCompilation(text); 1610var comp = CreateCompilation(text); 1803var compilation = CreateCompilation(code); 1830var compilation = CreateCompilation(code); 1875var compilation = CreateCompilation(code); 1897var compilation = CreateCompilation(code); 1918var compilation = CreateCompilation(code); 1953var compilation = CreateCompilation(code); 1986var compilation = CreateCompilation(code); 2007var compilation = CreateCompilation(code); 2028var compilation = CreateCompilation(code); 2049var compilation = CreateCompilation(code); 2075var compilation = CreateCompilation(code); 2099var compilation = CreateCompilation(code); 2125var compilation = CreateCompilation(code); 2174var compilation = CreateCompilation(code); 2225var compilation = CreateCompilation(code); 2246var compilation = CreateCompilation(code); 2266var compilation = CreateCompilation(code); 2280var compilation = CreateCompilation(code); 2296var compilation = CreateCompilation(code); 2314var compilation = CreateCompilation(text); 2330var compilation = CreateCompilation(text); 2337var sourceComp = CreateCompilation(@" 2366var metadataComp = CreateCompilationWithIL("", ilSource: @" 2428var comp = CreateCompilation(new[] { source }); 2510var comp = CreateCompilation(source);
Symbols\TypeUnificationTests.cs (8)
46var comp = CreateCompilation(text); 130var comp = CreateCompilation(text); 203var comp = CreateCompilation(text); 245var comp = CreateCompilation(text); 296var comp = CreateCompilation(text); 333var comp = CreateCompilation(text); 366var comp = CreateCompilation(text); 417var comp = CreateCompilation(text);
Symbols\UnsignedRightShiftTests.cs (72)
109var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 389var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 493var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 521var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 617var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 892var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 922var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 948var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 970var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1007var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1048var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1160var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 1445var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1572var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 1853var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1883var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1909var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1931var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 1973var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 1990var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 1993var compilation2 = CreateCompilation(source1, options: TestOptions.DebugExe, references: new[] { compilation0.ToMetadataReference() }, 1999var compilation3 = CreateCompilation(source1, options: TestOptions.DebugExe, references: new[] { compilation0.EmitToImageReference() }, 2062var compilation1 = CreateCompilationWithIL(source1, ilSource, options: TestOptions.DebugExe, 2129var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2179var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2225var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 2242var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 2245var compilation2 = CreateCompilation(source1, options: TestOptions.DebugExe, references: new[] { compilation0.ToMetadataReference() }, 2251var compilation3 = CreateCompilation(source1, options: TestOptions.DebugExe, references: new[] { compilation0.EmitToImageReference() }, 2278var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); 2280var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, references: new[] { compilation0.ToMetadataReference() }, 2288var compilation3 = CreateCompilation(source1, options: TestOptions.DebugDll, references: new[] { compilation0.EmitToImageReference() }, 2318var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2367var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 2404var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2443var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2495var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugExe, 2538var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2593var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 2635var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2674var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, 2702var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2758var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2787var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2811var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2851var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2874var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2930var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2959var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 2983var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 3023var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.WithDocumentationMode(DocumentationMode.Diagnose)); 3112var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 3120var compilation2 = CreateCompilation(source1, options: TestOptions.DebugExe, 3206var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 3214var compilation2 = CreateCompilation(source1, options: TestOptions.DebugExe, 3300var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 3308var compilation2 = CreateCompilation(source1, options: TestOptions.DebugExe, 3394var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe, 3402var compilation2 = CreateCompilation(source1, options: TestOptions.DebugExe, 3428var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugDll, 3440var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 3445var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, references: new[] { reference }, 3480var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugDll, 3492var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 3497var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, references: new[] { reference }, 3532var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugDll, 3544var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 3549var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, references: new[] { reference }, 3584var compilation1 = CreateCompilation(source0 + source1, options: TestOptions.DebugDll, 3596var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll, 3601var compilation2 = CreateCompilation(source1, options: TestOptions.DebugDll, references: new[] { reference }, 3629var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll,
Symbols\UserDefinedOperatorErrorTests.cs (5)
100var comp = CreateCompilation(text); 157var comp = CreateCompilation(text); 196var comp = CreateCompilation(text); 270var comp = CreateCompilation(text); 304var comp = CreateCompilation(text);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (92)
Diagnostics\DiagnosticTest.cs (12)
110var comp = CreateCompilation(""); 147var comp = CreateCompilation(text); 170var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, 2432var compilation = CreateCompilation(text); 2457var compilation = CreateCompilation(text); 2573var compilation = CreateCompilation(source); 2613var compilation = CreateCompilation(source); 2644var compilation = CreateCompilation(source); 2689var compilation = CreateCompilation(source); 2723var compilation = CreateCompilation(source); 2744var compilation = CreateCompilation(source); 2874var ca = CreateCompilation(source, options: TestOptions.ReleaseDll.WithStrongNameProvider(new DesktopStrongNameProvider()).WithCryptoKeyContainer("bogus"));
Diagnostics\LineSpanDirectiveTests.cs (4)
135var comp = CreateCompilation(tree); 523var comp = CreateCompilation(source); 553var comp = CreateCompilation(source); 599var comp = CreateCompilation(source);
IncrementalParsing\IncrementalParsingTests.cs (1)
2896var comp = CSharpTestBase.CreateCompilation(SyntaxFactory.ParseSyntaxTree(String.Empty));
LexicalAndXml\PreprocessorTests.cs (2)
3890var comp = CSharpCompilation.Create("Test", syntaxTrees: new[] { tree });
LexicalAndXml\XmlDocCommentTests.cs (2)
41var comp = CreateCompilation(@" 3192var comp = CreateCompilation(new[] {
Parsing\FileModifierParsingTests.cs (1)
37var comp = CreateCompilation(tree);
Parsing\ParserRegressionTests.cs (1)
31var comp = CreateCompilation(@"
Parsing\ReadOnlyStructs.cs (6)
40var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), options: TestOptions.DebugDll); 77var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7), options: TestOptions.DebugDll); 105var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), options: TestOptions.DebugDll); 149var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), options: TestOptions.DebugDll.WithAllowUnsafe(true)); 182var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), options: TestOptions.DebugDll); 216var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), options: TestOptions.DebugDll);
Parsing\RecordParsing.cs (1)
336var comp = CreateCompilation(text).VerifyDiagnostics(
Parsing\RefReadonlyTests.cs (3)
45var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), options: TestOptions.UnsafeDebugDll); 90var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_1), options: TestOptions.UnsafeDebugDll); 188var comp = CreateCompilationWithMscorlib461(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef });
Parsing\RefStructs.cs (9)
38var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), options: TestOptions.DebugDll); 54var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7), options: TestOptions.DebugDll); 81var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest), options: TestOptions.DebugDll); 111var comp = CreateCompilation(text); 127var comp = CreateCompilation(@" 139var comp = CreateCompilation(@" 160var comp = CreateCompilation(@" 187var comp = CreateCompilation(@" 208var comp = CreateCompilation(@"
Parsing\UsingDirectiveParsingTests.cs (2)
3948var comp = CreateCompilation(text); 3993var comp = CreateCompilation(text);
Syntax\FieldAndValueKeywordTests.cs (45)
40var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 84var comp = CreateCompilation(source, parseOptions: TestOptions.Regular13); 107var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 132var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 170var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 198var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 216var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 234var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 253var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 281var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 308var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 325var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 352var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 379var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 406var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 433var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 460var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 477var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 494var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 511var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 527var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 543var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 567var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 584var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 601var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 636var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 661var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 700var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 738var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 774var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 810var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 846var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 879var comp = CreateCompilation(source, parseOptions: TestOptions.Regular13); 902var comp = CreateCompilation(source, parseOptions: TestOptions.Regular13); 926var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 960var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 989var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1016var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1062var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1110var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1140var comp = CreateCompilation(source); 1156var comp = CreateCompilation(source); 1175var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)); 1209var comp = CreateCompilation(sourceA); 1273static void verify(CSharpCompilation comp, bool synthesizeField)
Syntax\LambdaUtilitiesTests.cs (1)
43var compilation = CreateCompilationWithMscorlib461(new[] { tree }, new[] { SystemCoreRef });
Syntax\SyntaxTreeTests.cs (2)
96var compilation = CSharpCompilation.Create("test", new[] { tree }, TargetFrameworkUtil.GetReferences(TargetFramework.Standard), TestOptions.DebugDll);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (118)
CompilationTestUtils.cs (1)
442internal static void VerifyTypes(this CSharpCompilation compilation, SyntaxTree tree = null)
CompilingTestBase.cs (1)
25var compilation = CreateCompilation(program);
CSharpTestBase.cs (85)
889var compilation = CreateExperimentalCompilationWithMscorlib461(source, feature, references, options, parseOptions, assemblyName: GetUniqueName()); 1003var compilation = CreateCompilation(source, references, options, parseOptions, targetFramework, assemblyName: GetUniqueName()); 1117public static CSharpCompilation CreateCompilationWithIL( 1126public static CSharpCompilation CreateCompilationWithILAndMscorlib40( 1140public static CSharpCompilation CreateCompilationWithMscorlib40( 1148public static CSharpCompilation CreateCompilationWithMscorlib461( 1157public static CSharpCompilation CreateCompilationWithMscorlib461( 1166public static CSharpCompilation CreateCompilationWithMscorlib46( 1174internal static CSharpCompilation CreateExperimentalCompilationWithMscorlib461( 1184public static CSharpCompilation CreateCompilationWithWinRT( 1192public static CSharpCompilation CreateCompilationWithMscorlib461AndCSharp( 1200public static CSharpCompilation CreateCompilationWithMscorlib40AndSystemCore( 1208public static CSharpCompilation CreateCompilationWithMscorlib40AndSystemCore( 1216public static CSharpCompilation CreateCompilationWithCSharp( 1224public static CSharpCompilation CreateCompilationWithMscorlib40AndDocumentationComments( 1237public static CSharpCompilation CreateCompilationWithTasksExtensions( 1264public static CSharpCompilation CreateCompilation( 1277public static CSharpCompilation CreateEmptyCompilation( 1287private static CSharpCompilation CreateCompilationCore( 1313Func<CSharpCompilation> createCompilationLambda = () => CSharpCompilation.Create( 1324var compilation = createCompilationLambda(); 1343private static void ValidateCompilation(Func<CSharpCompilation> createCompilationLambda) 1349private static void VerifyUsedAssemblyReferences(Func<CSharpCompilation> createCompilationLambda) 1357var comp = createCompilationLambda(); 1374var comp2 = comp.RemoveAllReferences().AddReferences(used.Concat(comp.References.Where(r => r.Properties.Kind == MetadataImageKind.Module))); 1408internal static bool IsNullableEnabled(CSharpCompilation compilation) 1435public static CSharpCompilation CreateCompilation( 1443Func<CSharpCompilation> createCompilationLambda = () => CSharpCompilation.Create(identity.Name, options: options ?? TestOptions.ReleaseDll, references: references, syntaxTrees: trees); 1446var c = createCompilationLambda(); 1453public static CSharpCompilation CreateSubmissionWithExactReferences( 1458CSharpCompilation previous = null, 1462Func<CSharpCompilation> createCompilationLambda = () => CSharpCompilation.CreateScriptCompilation( 1476public static CSharpCompilation CreateSubmission( 1481CSharpCompilation previous = null, 1485Func<CSharpCompilation> createCompilationLambda = () => CSharpCompilation.CreateScriptCompilation( 1497public CompilationVerifier CompileWithCustomILSource(string cSharpSource, string ilSource, Action<CSharpCompilation> compilationVerifier = null, bool importInternals = true, string expectedOutput = null, TargetFramework targetFramework = TargetFramework.Standard) 1508var c = CreateCompilation(cSharpSource, options: compilationOptions, targetFramework: targetFramework); 1514var compilation = CreateCompilation(cSharpSource, new[] { reference }, compilationOptions, targetFramework: targetFramework); 1536var comp = CreateCompilation(source, options: TestOptions.ReleaseExe.WithAllowUnsafe(allowUnsafe)); 1540internal CompilationVerifier CompileAndVerifyException<T>(CSharpCompilation comp, string expectedMessage = null, Verification verify = default) where T : Exception 1648public Tuple<TNode, SemanticModel> GetBindingNodeAndModel<TNode>(CSharpCompilation compilation, int treeIndex = 0) where TNode : SyntaxNode 1656return GetBindingNodeAndModel<TNode>((CSharpCompilation)compilation, treeIndex); 1659public Tuple<IList<TNode>, SemanticModel> GetBindingNodesAndModel<TNode>(CSharpCompilation compilation, int treeIndex = 0, int which = -1) where TNode : SyntaxNode 1668public TNode GetBindingNode<TNode>(CSharpCompilation compilation, int treeIndex = 0) where TNode : SyntaxNode 1689public IList<TNode> GetBindingNodes<TNode>(CSharpCompilation compilation, int treeIndex = 0, int which = -1) where TNode : SyntaxNode 1732return GetBindingNodes<TNode>((CSharpCompilation)compilation, treeIndex, which); 1809internal static string GetDocumentationCommentText(CSharpCompilation compilation, params DiagnosticDescription[] expectedDiagnostics) 1814internal static string GetDocumentationCommentText(CSharpCompilation compilation, bool ensureEnglishUICulture, params DiagnosticDescription[] expectedDiagnostics) 1819internal static string GetDocumentationCommentText(CSharpCompilation compilation, string outputName = null, SyntaxTree filterTree = null, TextSpan? filterSpanWithinTree = null, bool ensureEnglishUICulture = false, params DiagnosticDescription[] expectedDiagnostics) 2023protected static (IOperation operation, SyntaxNode node) GetOperationAndSyntaxForTest<TSyntaxNode>(CSharpCompilation compilation) 2042protected static string GetOperationTreeForTest<TSyntaxNode>(CSharpCompilation compilation) 2049protected static string GetOperationTreeForTest(CSharpCompilation compilation, IOperation operation) 2062var compilation = CreateCompilation(testSrc, targetFramework: targetFramework, options: compilationOptions ?? TestOptions.ReleaseDll, parseOptions: parseOptions); 2066protected static IOperation VerifyOperationTreeForTest<TSyntaxNode>(CSharpCompilation compilation, string expectedOperationTree, Action<IOperation, Compilation, SyntaxNode> additionalOperationTreeVerifier = null) 2077protected static void VerifyOperationTreeForNode(CSharpCompilation compilation, SemanticModel model, SyntaxNode syntaxNode, string expectedOperationTree) 2082protected static void VerifyOperationTree(CSharpCompilation compilation, IOperation operation, string expectedOperationTree) 2089protected static void VerifyFlowGraphForTest<TSyntaxNode>(CSharpCompilation compilation, string expectedFlowGraph) 2098protected static void VerifyFlowGraph(CSharpCompilation compilation, SyntaxNode syntaxNode, string expectedFlowGraph) 2118CSharpCompilation compilation, 2130CSharpCompilation compilation, 2171var compilation = CreateCompilation( 2190var compilation = CreateCompilation( 2228var compilation = CreateCompilation( 2257protected static CSharpCompilation CreateCompilationWithSpan(CSharpTestSource tree, CSharpCompilationOptions options = null, CSharpParseOptions parseOptions = null) 2259var reference = CreateCompilation( 2265var comp = CreateCompilation( 2274protected static CSharpCompilation CreateCompilationWithMscorlibAndSpan(CSharpTestSource text, CSharpCompilationOptions options = null, CSharpParseOptions parseOptions = null) 2276var reference = CreateEmptyCompilation( 2283var comp = CreateEmptyCompilation( 2292protected static CSharpCompilation CreateCompilationWithMscorlibAndSpanSrc(string text, CSharpCompilationOptions options = null, CSharpParseOptions parseOptions = null) 2295var comp = CreateEmptyCompilation( 2306protected static CSharpCompilation CreateCompilationWithIndex(CSharpTestSource text, CSharpCompilationOptions options = null, CSharpParseOptions parseOptions = null) 2308var reference = CreateCompilation(TestSources.Index).VerifyDiagnostics(); 2317protected static CSharpCompilation CreateCompilationWithIndexAndRange(CSharpTestSource text, CSharpCompilationOptions options = null, CSharpParseOptions parseOptions = null) 2319var reference = CreateCompilation(new[] { TestSources.Index, TestSources.Range }).VerifyDiagnostics(); 2328protected static CSharpCompilation CreateCompilationWithIndexAndRangeAndSpan(CSharpTestSource text, CSharpCompilationOptions options = null, CSharpParseOptions parseOptions = null) 2330var reference = CreateCompilation(new[] { TestSources.Index, TestSources.Range, TestSources.Span }, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2339protected static CSharpCompilation CreateCompilationWithSpanAndMemoryExtensions(CSharpTestSource text, CSharpCompilationOptions options = null, CSharpParseOptions parseOptions = null, TargetFramework targetFramework = TargetFramework.NetCoreApp) 2347var reference = CreateCompilation(new[] { TestSources.Span, TestSources.MemoryExtensions }, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(); 2357protected static CSharpCompilation CreateCompilationWithIndexAndRangeAndSpanAndMemoryExtensions(CSharpTestSource text, CSharpCompilationOptions options = null, CSharpParseOptions parseOptions = null, TargetFramework targetFramework = TargetFramework.NetCoreApp) 2365var reference = CreateCompilation(new[] { TestSources.Index, TestSources.Range, TestSources.Span, TestSources.MemoryExtensions }, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
DiagnosticTestUtilities.cs (9)
37public static CSharpCompilation VerifyErrorsAndGetCompilationWithMscorlib(string text, params ErrorDescription[] expectedErrorDesp) 45protected internal static CSharpCompilation VerifyErrorsAndGetCompilationWithMscorlib(string[] srcs, params ErrorDescription[] expectedErrorDesp) 47var comp = CSharpTestBase.CreateCompilation(srcs, parseOptions: TestOptions.RegularPreview); 56protected internal static CSharpCompilation VerifyErrorsAndGetCompilationWithMscorlib(string text, IEnumerable<MetadataReference> refs, params ErrorDescription[] expectedErrorDesp) 64protected internal static CSharpCompilation VerifyErrorsAndGetCompilationWithMscorlib(List<string> srcs, IEnumerable<MetadataReference> refs, params ErrorDescription[] expectedErrorDesp) 75protected internal static CSharpCompilation VerifyErrorsAndGetCompilationWithMscorlib(SyntaxTree[] trees, IEnumerable<MetadataReference> refs, params ErrorDescription[] expectedErrorDesp) 83protected internal static CSharpCompilation VerifyErrorsAndGetCompilation(IEnumerable<SyntaxTree> synTrees, IEnumerable<MetadataReference> refs = null, params ErrorDescription[] expectedErrorDesp) 85var comp = CSharpCompilation.Create(assemblyName: "DiagnosticsTest", options: TestOptions.ReleaseDll, syntaxTrees: synTrees, references: refs);
Extensions.cs (11)
27public static AssemblySymbol GetReferencedAssemblySymbol(this CSharpCompilation compilation, MetadataReference reference) 32public static ModuleSymbol GetReferencedModuleSymbol(this CSharpCompilation compilation, MetadataReference reference) 93public static SourceAssemblySymbol SourceAssembly(this CSharpCompilation @this) 165public static Symbol GetMember(this CSharpCompilation compilation, string qualifiedName) 171public static T GetMember<T>(this CSharpCompilation compilation, string qualifiedName) where T : Symbol 225var members = GetMembers(((CSharpCompilation)compilation).GlobalNamespace, qualifiedName, out lastContainer); 738return ((CSharpCompilation)compilation).GetSpecialTypeMember(specialMember).GetPublicSymbol(); 743return ((CSharpCompilation)compilation).GetWellKnownType(type).GetPublicSymbol(); 777this CSharpCompilation comp, 786this CSharpCompilation comp, 800public static INamespaceSymbol CreateErrorNamespaceSymbol(this CSharpCompilation comp, NamespaceSymbol container, string name)
MetadataTestHelpers.cs (4)
43CSharpCompilation[] compilations = null, 52foreach (var c in compilations) 71var tc1 = CSharpCompilation.Create(assemblyName: "Dummy", options: options ?? TestOptions.ReleaseDll, syntaxTrees: new SyntaxTree[0], references: refs);
SemanticModelTestBase.cs (7)
96var compilation = CreateCompilation(source); 116var compilation = CreateCompilation(testSrc, parseOptions: parseOptions); 122var compilation = CreateExperimentalCompilationWithMscorlib461(testSrc, feature, parseOptions: parseOptions); 126protected CompilationUtils.SemanticInfoSummary GetSemanticInfoForTest<TNode>(CSharpCompilation compilation) where TNode : SyntaxNode 137var compilation = CreateCompilation(testSrc); 148var compilation = CreateCompilation(testSrc); 152internal AliasSymbol GetAliasInfoForTest(CSharpCompilation compilation)
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (47)
CodeGen\WinMdEventTests.cs (8)
31var comp = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseWinMD); 66var comp = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseWinMD); 108var comp = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseWinMD); 150var comp = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseWinMD); 623var comp1 = CreateEmptyCompilation(source1, WinRtRefs, TestOptions.ReleaseWinMD, TestOptions.Regular, "Lib"); 627var comp2 = CreateEmptyCompilation(source2, WinRtRefs.Concat(new MetadataReference[] { new CSharpCompilationReference(comp1), serializationRef, SystemXmlRef }), TestOptions.ReleaseExe); 648var comp = CreateEmptyCompilation(source, WinRtRefs, TestOptions.ReleaseWinMD, TestOptions.Regular7); 668var comp = CreateEmptyCompilation(source, WinRtRefs, TestOptions.ReleaseWinMD);
CodeGen\WinRTCollectionTests.cs (5)
48var comp = CreateEmptyCompilation(source, references: WinRtRefs); 354var comp = CreateEmptyCompilation(source, references: WinRtRefs); 1467var comp = CreateCompilationWithWinRT(source, references: LegacyRefs); 5693var comp = CreateCompilationWithWinRT(source, references: LegacyRefs, options: TestOptions.ReleaseExe); 7418var comp = CreateEmptyCompilation(source, references: WinRtRefs);
Metadata\WinMdDumpTest.cs (1)
444var comp = CreateEmptyCompilation("", references, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
Metadata\WinMdEventTests.cs (17)
307var dynamicCommon = CreateEmptyCompilation( 2745var comp = CreateCompilationWithWinRT(text); 2839var comp = CreateEmptyCompilation(source, WinRtRefs.Concat(new[] { ilRef })); 2914var comp = CreateEmptyCompilation(source, WinRtRefs, TestOptions.CreateTestOptions(kind, OptimizationLevel.Debug)); 2958var comp = CreateEmptyCompilation(source, WinRtRefs.Concat(new[] { ilRef }), TestOptions.CreateTestOptions(kind, OptimizationLevel.Debug)); 3027var comp = CreateEmptyCompilation(source, WinRtRefs.Concat(new[] { interfaceILRef, baseILRef }), TestOptions.CreateTestOptions(kind, OptimizationLevel.Debug)); 3093var comp = CreateEmptyCompilation(source, WinRtRefs.Concat(new[] { ilRef }), TestOptions.CreateTestOptions(kind, OptimizationLevel.Debug)); 3165var comp = CreateEmptyCompilation(source, WinRtRefs.Concat(new[] { ilRef })); 3192var comp = CreateEmptyCompilation(source, WinRtRefs.Concat(new[] { ilRef })); 3218var comp = CreateEmptyCompilation(source, WinRtRefs.Concat(new[] { interfaceILRef, baseILRef })); 3249var comp = CreateEmptyCompilation(source, WinRtRefs.Concat(new[] { interfaceILRef, baseILRef })); 3288var comp = CreateEmptyCompilation(source, WinRtRefs, TestOptions.CreateTestOptions(kind, OptimizationLevel.Debug)); 3322var comp = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseWinMD); 3499var compilation = CreateCompilationWithIL("", il, targetFramework: TargetFramework.Empty, references: WinRtRefs); 3556var comp = CreateEmptyCompilation("", WinRtRefs.Concat(new[] { ilRef }), TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 3569private static void VerifyWinRTEventShape(EventSymbol @event, CSharpCompilation compilation) 3602private static void VerifyNormalEventShape(EventSymbol @event, CSharpCompilation compilation)
Metadata\WinMdMetadataTests.cs (6)
44var comp = CreateCompilationWithWinRT(text); 66var comp = CreateCompilationWithWinRT(text); 87var comp = CreateCompilationWithWinRT(text); 108var comp = CreateCompilationWithWinRT(text); 127var comp = CreateCompilationWithWinRT(text); 169var comp = CreateCompilationWithWinRT(text);
PdbTests.cs (10)
21var comp = CSharpCompilation.Create("Compilation", options: TestOptions.ReleaseDll); 75var c = CSharpCompilation.Create("a", 91var c = CSharpCompilation.Create("a", 108var c = CSharpCompilation.Create("a", 120var comp = CSharpCompilation.Create("Compilation", null, null, ops);
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Diagnostics\CSharpDiagnosticPropertiesService.cs (1)
17private static readonly Compilation s_compilation = CSharpCompilation.Create("empty");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\CompilationExtensions.cs (1)
10=> ((CSharpCompilation)compilation).LanguageVersion;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSemanticFactsService.cs (1)
68var isLanguageVersionGreaterOrEqualToCSharp8 = (semanticModel.Compilation as CSharpCompilation)?.LanguageVersion >= LanguageVersion.CSharp8;
Workspace\LanguageServices\CSharpCompilationFactoryService.cs (2)
28return CSharpCompilation.Create( 35return CSharpCompilation.CreateScriptCompilation(
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (25)
CodeGeneration\AddImportsTests.cs (2)
835var compilation = CSharpCompilation
CodeGeneration\SyntaxGeneratorTests.cs (23)
29private readonly CSharpCompilation _emptyCompilation = CSharpCompilation.Create("empty", 43return CSharpCompilation.Create("test") 974var comp = CSharpCompilation.Create(null, [SyntaxFactory.ParseSyntaxTree(""" 2205var compilation = _emptyCompilation.AddSyntaxTrees(ParseSyntaxTree(""" 2219var compilation = _emptyCompilation.AddSyntaxTrees(ParseSyntaxTree(""" 2240var compilation = _emptyCompilation.AddSyntaxTrees(ParseSyntaxTree(""" 2261var compilation = _emptyCompilation.AddSyntaxTrees(ParseSyntaxTree(""" 2282var compilation = _emptyCompilation.AddSyntaxTrees(ParseSyntaxTree(""" 2303var compilation = _emptyCompilation.AddSyntaxTrees(ParseSyntaxTree(""" 2325var compilation = _emptyCompilation.AddSyntaxTrees(ParseSyntaxTree(""" 2343var compilation = _emptyCompilation.AddSyntaxTrees(ParseSyntaxTree(""" 2361var compilation = _emptyCompilation.AddSyntaxTrees(ParseSyntaxTree(""" 2389var compilation = _emptyCompilation.AddSyntaxTrees(ParseSyntaxTree(""" 2417var compilation = _emptyCompilation.AddSyntaxTrees(ParseSyntaxTree(""" 2444var compilation = _emptyCompilation.AddSyntaxTrees(ParseSyntaxTree(""" 2476var compilation = _emptyCompilation.AddSyntaxTrees(ParseSyntaxTree(""" 2530var compilation = _emptyCompilation.AddSyntaxTrees(ParseSyntaxTree(""" 2548var compilation = _emptyCompilation. 2581var compilation = _emptyCompilation.AddSyntaxTrees(ParseSyntaxTree(""" 3998var comp = CSharpCompilation.Create("test")
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (10)
Diagnostics\SuppressMessageAttributeWorkspaceTests.cs (1)
48return CSharpCompilation.Create("unconditionalsuppress",
Emit\CompilationOutputFilesTests.cs (1)
31var compilation = CSharpTestBase.CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, assemblyName: "lib");
Emit\CompilationOutputsTests.cs (1)
54var compilation = CSharpTestBase.CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, assemblyName: "lib");
Utilities\SymbolEquivalenceComparerTests.cs (7)
1739var a1 = (Compilation)CS.CSharpCompilation.Create("a", [CS.SyntaxFactory.ParseSyntaxTree(source)], references, CSharpDllOptions); 1740var a2 = (Compilation)CS.CSharpCompilation.Create("a", [CS.SyntaxFactory.ParseSyntaxTree(source)], references, CSharpDllOptions); 1742var b1 = (Compilation)CS.CSharpCompilation.Create("b", [CS.SyntaxFactory.ParseSyntaxTree(sourceV1)], references, CSharpSignedDllOptions); 1743var b2 = (Compilation)CS.CSharpCompilation.Create("b", [CS.SyntaxFactory.ParseSyntaxTree(sourceV2)], references, CSharpSignedDllOptions); 1744var b3 = (Compilation)CS.CSharpCompilation.Create("b", [CS.SyntaxFactory.ParseSyntaxTree(sourceV2)], references, CSharpSignedDllOptions); 1833var c1 = (Compilation)CS.CSharpCompilation.Create("comp1", Array.Empty<SyntaxTree>(), [NetFramework.mscorlib, r1]); 1834var c2 = (Compilation)CS.CSharpCompilation.Create("comp2", Array.Empty<SyntaxTree>(), [NetFramework.mscorlib, r2]);
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (42)
CSharpFunctionResolverTests.cs (39)
29var compilation = CreateCompilation(source); 410var compilationA = CreateCompilation(sourceA, assemblyName: nameA); 420var compilationB = CreateCompilation(sourceB, assemblyName: nameB, options: TestOptions.DebugExe, references: new[] { refA }); 458var compilation = CreateCompilation(source); 485var compilation = CreateCompilation(source); 512var compilation = CreateCompilation(source, options: TestOptions.UnsafeDebugDll); 537var compilation = CreateCompilation(source); 560var compilation = CreateCompilation(source); 595var compilation = CreateCompilation(source); 624var compilation = CreateCompilation(source); 661var compilation = CreateCompilation(source); 698var compilation = CreateCompilation(source); 745var compilation = CreateCompilation(source); 782var compilation = CreateCompilation(source); 827var compilation = CreateCompilation(source); 863var compilation = CreateCompilation(source); 907var compilation = CreateCompilation(source); 953var compilation = CreateCompilation(source); 1010var compilation = CreateCompilation(source); 1066var compilation = CreateCompilation(source); 1099var compilation = CreateCompilation(source); 1134var compilation = CreateCompilation(source); 1166var compilation = CreateCompilation(source); 1201var compilationA = CreateCompilation(sourceA); 1209var compilationB = CreateCompilation(sourceB, references: new[] { refA }); 1239var compilation = CreateCompilation(source); 1260var compilation = CreateCompilation(source); 1291var compilation = CreateCompilation(source); 1319var compilation = CreateCompilation(source); 1343var compilation = CreateCompilation(source); 1370var compilation = CreateCompilation(source); 1393var compilation = CreateCompilation(source); 1418var compilation = CreateCompilation(source, references: new[] { CSharpRef }); 1438var compilation = CreateCompilation(source); 1458var compilation = CreateCompilationWithMscorlib46(source); 1487var compilation = CreateCompilation(source); 1514var compilation = CreateCompilation(source); 1545var compilationB = CreateCompilation(sourceB, references: new[] { refA }); 1572var compilation = CreateCompilation(source);
VisualBasicFunctionResolverTests.cs (3)
120var compilation = CreateCompilation(source); 157var compilation = CreateCompilation(source); 188var compilation = CreateCompilation(source);
Microsoft.CodeAnalysis.Features.UnitTests (5)
EditAndContinue\EditAndContinueMethodDebugInfoReaderTests.cs (1)
64var compilation = CSharpTestBase.CreateCompilationWithMscorlib40AndSystemCore(tree, options: TestOptions.DebugDll);
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (4)
2484var compilationV1 = CSharpTestBase.CreateCompilation(sourceV1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, targetFramework: DefaultTargetFramework, assemblyName: "lib"); 3056var compilationA = CSharpTestBase.CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: DefaultTargetFramework, assemblyName: "A"); 3057var compilationB = CSharpTestBase.CreateCompilation(source1, options: TestOptions.DebugDll, targetFramework: DefaultTargetFramework, assemblyName: "B"); 3228var compilationV1 = CSharpTestBase.CreateCompilationWithMscorlib40(sourceV1, options: TestOptions.DebugDll, assemblyName: "lib");
Microsoft.CodeAnalysis.Rebuild (1)
CSharpCompilationFactory.cs (1)
50=> CSharpCompilation.Create(
Microsoft.CodeAnalysis.Rebuild.UnitTests (17)
CompilationOptionsReaderTests.cs (2)
44var compilation = CreateCompilation( 58var compilation = CreateCompilation(
CSharpDeterministicKeyBuilderTests.cs (11)
23public sealed class CSharpDeterministicKeyBuilderTests : DeterministicKeyBuilderTests<CSharpCompilation, CSharpCompilationOptions, CSharpParseOptions> 35protected override CSharpCompilation CreateCompilation(SyntaxTree[] syntaxTrees, MetadataReference[]? references = null, CSharpCompilationOptions? options = null) => 36CSharpCompilation.Create( 76var compilation = CSharpTestBase.CreateCompilation( 156var compilation = CSharpTestBase.CreateCompilation(source); 195var compilation = CSharpTestBase.CreateCompilation(syntaxTree); 218var compilation = CSharpTestBase.CreateCompilation( 417var compilation = CreateCompilation(new SyntaxTree[] { }, options: options); 425var utilCompilation = CSharpCompilation.Create( 429var compilation = CreateCompilation(
CSharpRebuildTests.cs (1)
22var original = CreateCompilation(
OptionRoundTripTests.cs (2)
39var original = CreateCompilation( 78var original = CreateCompilation(
RoundTripUtil.cs (1)
81if (typeof(TCompilation) == typeof(CSharpCompilation))
Microsoft.CodeAnalysis.Scripting.TestUtilities (2)
TestCompilationFactory.cs (2)
22return CSharpCompilation.Create( 40return CSharpCompilation.Create(
Microsoft.CodeAnalysis.Scripting.UnitTests (2)
ScriptOptionsTests.cs (2)
219var compilation = (CSharpCompilation)CSharpScript.Create(string.Empty, scriptOptions).GetCompilation();
Microsoft.CodeAnalysis.Test.Utilities (20)
AssemblyLoadTestFixture.cs (2)
530var analyzerDependencyCompilation = CSharpCompilation.Create(
CommonTestBase.cs (8)
260protected CSharp.CSharpCompilation CreateCSharpCompilation( 270protected CSharp.CSharpCompilation CreateCSharpCompilation( 314protected CSharp.CSharpCompilation CreateCSharpCompilation( 324protected CSharp.CSharpCompilation CreateCSharpCompilation( 335protected CSharp.CSharpCompilation CreateCSharpCompilation( 346private CSharp.CSharpCompilation CreateCSharpCompilation( 390var compilation = CSharp.CSharpCompilation.Create(assemblyName, new[] { tree }, references, compilationOptions);
Compilation\CompilationExtensions.cs (2)
508var compilation = CSharpCompilation.Create(
Mocks\Silverlight.cs (4)
85var mscorlibCompilation = CSharpCompilation.Create( 96var systemCompilation = CSharpCompilation.Create(
Mocks\StdOle.cs (2)
72var compilation = CSharpCompilation.Create(
TestBase.cs (2)
196var compilation = CSharpCompilation.Create("aacorlib.v15.0.3928.dll", new[] { syntaxTree }, null, compilationOptions);
Microsoft.CodeAnalysis.UnitTests (46)
AnalyzerAssemblyLoaderTests.cs (4)
1211var compilation = CSharpCompilation.Create( 1313var compilation = CSharpCompilation.Create(
Analyzers\AnalyzerFileReferenceTests.cs (2)
484var compilation = CSharpCompilation.Create($"generator_{targetFramework}",
CommonTypedConstantTests.cs (3)
21private readonly CSharp.CSharpCompilation _compilation; 29_compilation = (CSharp.CSharpCompilation)CSharp.CSharpCompilation.Create("class C {}");
CorLibTypesTests.cs (2)
67var comp = CSharp.CSharpCompilation.Create(
Diagnostics\AnalysisContextInfoTests.cs (1)
115return CSharpCompilation.Create(
Diagnostics\CompilationWithAnalyzersTests.cs (6)
28var c = CSharpCompilation.Create("c"); 39var c = CSharpCompilation.Create("c", options: s_dllWithMaxWarningLevel. 58var compilation = CSharpCompilation.Create("c", options: s_dllWithMaxWarningLevel);
Diagnostics\DiagnosticLocalizationTests.cs (2)
306var compilation = CSharp.CSharpCompilation.Create("test");
Diagnostics\OperationTests.cs (2)
275var compilation = CSharpCompilation.Create("c", new[] { tree });
Diagnostics\SuppressMessageAttributeCompilerTests.cs (2)
58var compRef = CSharpCompilation.Create("unconditionalsuppress", 79return CSharpCompilation.Create(
Diagnostics\SuppressMessageTargetSymbolResolverTests.cs (1)
1431return CSharpCompilation.Create(
Emit\EmitBaselineTests.cs (2)
26var compilation = CSharpCompilation.Create("test");
Emit\SemanticEditTests.cs (2)
21var c = CSharpCompilation.Create("name", references: new[] { TestReferences.NetFx.Minimal.mincorlib });
GivesAccessTo.cs (2)
44var csc = (Compilation)CSharpCompilation.Create("CS", new[] { csharpTree }, new MetadataReference[] { TestBase.MscorlibRef }); 47var csc2 = (Compilation)CSharpCompilation.Create("CS2", new[] { csharpTree2 }, new MetadataReference[] { TestBase.MscorlibRef });
IsSymbolAccessibleWithinTests.cs (1)
28var csc = CSharpCompilation.Create("CS", new[] { csharpTree }, new MetadataReference[] { TestBase.MscorlibRef }) as Compilation;
MetadataReferences\MetadataReferenceTests.cs (7)
339var c = CSharpCompilation.Create("cs"); 448r = CS.CSharpCompilation.Create("compilation name").ToMetadataReference(); 524var comparer = CommonReferenceManager<CS.CSharpCompilation, IAssemblySymbolInternal>.MetadataReferenceEqualityComparer.Instance; 539var c1a = CS.CSharpCompilation.Create("goo").ToMetadataReference(); 541var c2 = CS.CSharpCompilation.Create("goo").ToMetadataReference(); 571var comp = (Compilation)CS.CSharpCompilation.Create("goo",
Symbols\DocumentationCommentIdTests.cs (7)
21private CSharpCompilation CreateCompilation(string code) => 34var comp = CreateCompilation(code); 65var comp = CreateCompilation(code); 85var comp = CreateCSharpCompilation(code); 109var comp = CreateCSharpCompilation(code); 127var comp = CreateCSharpCompilation(""" 173var comp = CreateCSharpCompilation(text, compilationOptions: TestOptions.UnsafeDebugDll).VerifyDiagnostics();
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Attributes\InternalsVisibleToAndStrongNameTests.vb (2)
836Dim other As CSharp.CSharpCompilation = CSharp.CSharpCompilation.Create(
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (4)
Compilation\CompilationAPITests.vb (3)
1034Dim csComp = CS.CSharpCompilation.Create("CompilationVB") 1321Dim csComp = CS.CSharpCompilation.Create("CompilationCS") 1392Dim csComp = CS.CSharpCompilation.Create("CompilationVB")
Semantics\RequiredMembersTests.vb (1)
15Private Function CreateCSharpCompilationWithRequiredMembers(source As String) As CSharpCompilation
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (8)
VisualStudioMSBuildWorkspaceTests.cs (8)
1903var mtcomp = CS.CSharpCompilation.Create("MT", references: [mtref]); 1926var mtcomp = CS.CSharpCompilation.Create("MT", references: [mtref]); 1950var mtcomp = CS.CSharpCompilation.Create("MT", references: [mtref]); 1973var mtcomp = CS.CSharpCompilation.Create("MT", references: [mtref]);
Microsoft.CodeAnalysis.Workspaces.UnitTests (18)
Host\LanguageServices\TestCSharpCompilationFactoryServiceWithIncrementalGeneratorTracking.cs (2)
30return CSharpCompilation.Create( 37return CSharpCompilation.CreateScriptCompilation(
SymbolKeyTests.cs (1)
1482return CSharp.CSharpCompilation.Create("Test", syntaxTrees: [tree], references: references);
UtilityTest\DocumentationCommentIdTests.cs (13)
17private static CSharpCompilation CreateCSharpCompilation(string sourceText) 20return CSharpCompilation.Create("goo.exe").AddReferences(NetFramework.mscorlib).AddSyntaxTrees(syntaxTree); 63var compilation = CreateCSharpCompilation(@" 100var compilation = CreateCSharpCompilation(@" 142var compilation = CreateCSharpCompilation(@" 163var compilation = CreateCSharpCompilation(@" 180var compilation = CreateCSharpCompilation(@" 234var compilation = CreateCSharpCompilation(@" 255var compilation = CreateCSharpCompilation(@" 271var compilation = CreateCSharpCompilation(@" 287var compilation = CreateCSharpCompilation(@" 303var compilation = CreateCSharpCompilation(@" 321var compilation = CreateCSharpCompilation(@"
UtilityTest\XmlDocumentationProviderTests.cs (2)
38var compilation = CSharpCompilation.Create(nameof(XmlDocumentationProviderReturnsEntireMemberNode), references: [portableExecutableReference]);
Microsoft.Extensions.Logging.Generators (1)
LoggerMessageGenerator.Parser.cs (1)
594if (results.Count > 0 && _compilation is CSharpCompilation { LanguageVersion : LanguageVersion version and < LanguageVersion.CSharp8 })
Microsoft.Extensions.Options.SourceGeneration (2)
OptionsSourceGenContext.cs (1)
18IsLangVersion11AndAbove = ((CSharpCompilation)compilation).LanguageVersion >= Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp11;
Parser.cs (1)
151if (results.Count > 0 && _compilation is CSharpCompilation { LanguageVersion : LanguageVersion version and < LanguageVersion.CSharp8 })
Microsoft.Gen.Logging.Unit.Tests (1)
CompilationHelper.cs (1)
47return CSharpCompilation.Create(
Microsoft.VisualStudio.LanguageServices.CSharp (2)
ProjectSystemShim\TempPECompilerService.cs (2)
56var compilation = CSharpCompilation.Create(
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
ProjectSystemShim\VisualStudioCompilationOutputFilesTests.cs (2)
38var compilation = CSharpTestBase.CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.DebugDll, assemblyName: "lib"); 87var compilation = CSharpTestBase.CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, assemblyName: "lib");
Mvc.Analyzers.Test (1)
src\Shared\AnalyzerTesting\TestCompilation.cs (1)
13return CSharpCompilation.Create("Test",
Roslyn.VisualStudio.Next.UnitTests (1)
Remote\SnapshotSerializationTests.cs (1)
652var csharpOptions = CSharp.CSharpCompilation.Create("dummy").Options.WithNullableContextOptions(NullableContextOptions.Warnings).WithMetadataImportOptions(MetadataImportOptions.All);
SemanticSearch.BuildTask (2)
GenerateFilteredReferenceAssembliesTask.cs (2)
282var compilation = CSharpCompilation.Create("Metadata", references: [metadataRef]);
SemanticSearch.BuildTask.UnitTests (6)
GenerateFilteredReferenceAssembliesTaskTests.cs (6)
95var libSource = CreateCompilation(""" 123var c = CreateCompilation(""" 142var libSource = CreateCompilation(""" 168var c = CreateCompilation(""" 187var libSource = CreateCompilation(""" 210var c = CreateCompilation("""
StackDepthTest (2)
Program.cs (2)
81var comp = CSharpCompilation.Create("assemblyName", new SyntaxTree[] { tree }, references: new MetadataReference[] { reference }, options: options);
System.Text.Json.SourceGeneration (1)
Helpers\RoslynExtensions.cs (1)
19=> compilation is CSharpCompilation csc ? csc.LanguageVersion : null;
System.Text.RegularExpressions.Generator (2)
RegexGenerator.Parser.cs (1)
210var compilationData = compilation is CSharpCompilation { LanguageVersion: LanguageVersion langVersion, Options: CSharpCompilationOptions compilationOptions }
UpgradeToGeneratedRegexAnalyzer.cs (1)
245if (((CSharpCompilation)compilation).LanguageVersion <= (LanguageVersion)1000)
System.Windows.Forms.Design.Tests (2)
System\Resources\Tools\CodeDomCompileHelper.cs (2)
34CSharpCompilation compilation = CSharpCompilation.Create(
System.Windows.Forms.PrivateSourceGenerators.Tests (2)
EnumValidationTests.cs (2)
303CSharpCompilation compilation = CSharpCompilation.Create("original", new SyntaxTree[] { syntaxTree }, references, new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary));
VBCSCompiler.UnitTests (2)
AnalyzerConsistencyCheckerTests.cs (2)
65var comp = CSharpCompilation.Create(
WinShimmer (2)
Program.cs (2)
44var compilation = CSharpCompilation.Create(shimName)