63 references to CreateCompilationWithSpan
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (9)
CodeGen\CodeGenForEachTests.cs (1)
3298
var comp =
CreateCompilationWithSpan
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
CodeGen\CodeGenFunctionPointersTests.cs (6)
5017
var comp =
CreateCompilationWithSpan
(@"
10987
var comp =
CreateCompilationWithSpan
(source, parseOptions: TestOptions.Regular10, options: TestOptions.UnsafeReleaseExe);
10994
comp =
CreateCompilationWithSpan
(source, options: TestOptions.UnsafeReleaseExe);
11021
var comp =
CreateCompilationWithSpan
(source, parseOptions: TestOptions.Regular10, options: TestOptions.UnsafeReleaseExe);
11037
comp =
CreateCompilationWithSpan
(source, options: TestOptions.UnsafeReleaseExe);
11283
var comp =
CreateCompilationWithSpan
(@"
Emit\EmitMetadataTests.cs (2)
3399
CreateCompilationWithSpan
(source,
3436
CreateCompilationWithSpan
(source,
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
Semantics\PatternMatchingTests.cs (4)
8490
CreateCompilationWithSpan
(source, parseOptions: TestOptions.RegularPreview)
8519
CreateCompilationWithSpan
(source, parseOptions: TestOptions.RegularPreview)
10090
CreateCompilationWithSpan
(source, parseOptions: TestOptions.RegularPreview)
10119
CreateCompilationWithSpan
(source, parseOptions: TestOptions.RegularPreview)
Semantics\PatternMatchingTests2.cs (1)
3613
var comp =
CreateCompilationWithSpan
(source);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests_IConversionExpression.cs (2)
3434
var comp =
CreateCompilationWithSpan
(source);
3450
comp =
CreateCompilationWithSpan
(source, parseOptions: TestOptions.Regular12);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (47)
Semantics\DelegateTypeTests.cs (1)
12237
var comp =
CreateCompilationWithSpan
(source, options: TestOptions.ReleaseExe);
Semantics\IndexAndRangeTests.cs (2)
1907
var comp =
CreateCompilationWithSpan
(src);
2093
var comp =
CreateCompilationWithSpan
(src);
Semantics\NullableReferenceTypesTests.cs (2)
145048
var comp =
CreateCompilationWithSpan
(src + @"
145066
comp =
CreateCompilationWithSpan
(src + @"
Semantics\RefEscapingTests.cs (19)
47
var comp =
CreateCompilationWithSpan
(tree, TestOptions.UnsafeDebugDll);
2633
var comp =
CreateCompilationWithSpan
(tree, TestOptions.UnsafeDebugDll);
2666
var comp =
CreateCompilationWithSpan
(tree, TestOptions.UnsafeDebugDll);
2797
var comp =
CreateCompilationWithSpan
(tree, TestOptions.UnsafeDebugDll);
2918
var comp =
CreateCompilationWithSpan
(tree, TestOptions.UnsafeDebugDll);
2947
var comp =
CreateCompilationWithSpan
(tree, TestOptions.UnsafeDebugDll);
3041
var comp =
CreateCompilationWithSpan
(tree, TestOptions.UnsafeDebugDll);
3195
var comp =
CreateCompilationWithSpan
(tree, TestOptions.UnsafeDebugDll);
3277
var comp =
CreateCompilationWithSpan
(tree, TestOptions.UnsafeDebugDll);
3447
var comp =
CreateCompilationWithSpan
(tree, TestOptions.UnsafeDebugDll);
3784
var comp =
CreateCompilationWithSpan
(tree, TestOptions.UnsafeDebugDll);
3829
var comp =
CreateCompilationWithSpan
(tree, TestOptions.UnsafeDebugDll);
3994
var comp =
CreateCompilationWithSpan
(tree, TestOptions.UnsafeDebugDll);
4184
var comp =
CreateCompilationWithSpan
(tree, TestOptions.UnsafeDebugDll);
6860
var comp =
CreateCompilationWithSpan
(tree, TestOptions.UnsafeDebugDll);
9010
var comp =
CreateCompilationWithSpan
(source);
9040
var comp =
CreateCompilationWithSpan
(source);
10275
var comp =
CreateCompilationWithSpan
(tree, TestOptions.UnsafeDebugDll);
10362
var comp =
CreateCompilationWithSpan
(tree, TestOptions.UnsafeDebugDll);
Semantics\RefFieldTests.cs (9)
16916
var comp =
CreateCompilationWithSpan
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
30318
var comp =
CreateCompilationWithSpan
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
30374
var comp =
CreateCompilationWithSpan
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.UnsafeReleaseDll);
30406
var comp =
CreateCompilationWithSpan
(source, options: TestOptions.UnsafeReleaseDll);
30666
var comp =
CreateCompilationWithSpan
(source);
30692
var comp =
CreateCompilationWithSpan
(source);
30719
var comp =
CreateCompilationWithSpan
(source);
30744
var comp =
CreateCompilationWithSpan
(source);
30761
var comp =
CreateCompilationWithSpan
(source);
Semantics\SemanticErrorTests.cs (1)
24906
var comp =
CreateCompilationWithSpan
(source);
Semantics\SimpleLambdaParametersWithModifiersTests.cs (7)
212
var compilation =
CreateCompilationWithSpan
("""
240
var compilation =
CreateCompilationWithSpan
("""
268
var compilation =
CreateCompilationWithSpan
("""
299
var compilation =
CreateCompilationWithSpan
("""
334
var compilation =
CreateCompilationWithSpan
($$"""
1139
var compilation =
CreateCompilationWithSpan
($$"""
1168
var compilation =
CreateCompilationWithSpan
($$"""
Semantics\SpanStackSafetyTests.cs (3)
1827
CreateCompilationWithSpan
(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
1834
var comp =
CreateCompilationWithSpan
(source, parseOptions: TestOptions.Regular13);
1837
comp =
CreateCompilationWithSpan
(source);
Semantics\StructConstructorTests.cs (3)
3696
var comp =
CreateCompilationWithSpan
(source);
3745
var comp =
CreateCompilationWithSpan
(source);
3770
var comp =
CreateCompilationWithSpan
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));