212 references to CreateCompilationWithIndexAndRange
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (36)
CodeGen\CodeGenForEachTests.cs (1)
3317
var comp =
CreateCompilationWithIndexAndRange
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
CodeGen\IndexAndRangeTests.cs (35)
22
var comp =
CreateCompilationWithIndexAndRange
(
70
var comp =
CreateCompilationWithIndexAndRange
(
104
var comp =
CreateCompilationWithIndexAndRange
(src);
951
var comp =
CreateCompilationWithIndexAndRange
(src, TestOptions.ReleaseExe);
1578
var comp =
CreateCompilationWithIndexAndRange
(@"
2084
var comp =
CreateCompilationWithIndexAndRange
(@"
2175
var compilation =
CreateCompilationWithIndexAndRange
(@"
2221
var compilation =
CreateCompilationWithIndexAndRange
(@"
2242
var compilation =
CreateCompilationWithIndexAndRange
(@"
2279
var compilation =
CreateCompilationWithIndexAndRange
(@"
2316
var compilation =
CreateCompilationWithIndexAndRange
(@"
2357
var compilation =
CreateCompilationWithIndexAndRange
(@"
2377
var compilation =
CreateCompilationWithIndexAndRange
(@"
2410
var compilation =
CreateCompilationWithIndexAndRange
(@"
2430
var compilation =
CreateCompilationWithIndexAndRange
(@"
2463
var compilation =
CreateCompilationWithIndexAndRange
(@"
2482
var compilation =
CreateCompilationWithIndexAndRange
(@"
2575
var compilation =
CreateCompilationWithIndexAndRange
(@"
2600
var compilation =
CreateCompilationWithIndexAndRange
(@"
2664
var compilation =
CreateCompilationWithIndexAndRange
(@"
2728
CompileAndVerify(
CreateCompilationWithIndexAndRange
(@"
2744
CompileAndVerify(
CreateCompilationWithIndexAndRange
(@"
2774
CompileAndVerify(
CreateCompilationWithIndexAndRange
(@"
2803
CompileAndVerify(
CreateCompilationWithIndexAndRange
(@"
2832
CompileAndVerify(
CreateCompilationWithIndexAndRange
(@"
2862
CompileAndVerify(
CreateCompilationWithIndexAndRange
(@"
2891
CompileAndVerify(
CreateCompilationWithIndexAndRange
(@"
2923
CompileAndVerify(
CreateCompilationWithIndexAndRange
(@"
2955
CompileAndVerify(
CreateCompilationWithIndexAndRange
(@"
2990
CompileAndVerify(
CreateCompilationWithIndexAndRange
(@"
3007
CompileAndVerify(
CreateCompilationWithIndexAndRange
(@"
3024
CompileAndVerify(
CreateCompilationWithIndexAndRange
(@"
3045
CompileAndVerify(
CreateCompilationWithIndexAndRange
(@"
3068
CompileAndVerify(
CreateCompilationWithIndexAndRange
(@"
3088
CompileAndVerify(
CreateCompilationWithIndexAndRange
(@"
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (15)
CodeGen\IndexAndRangeTests.cs (15)
2158
var comp =
CreateCompilationWithIndexAndRange
(source);
2197
var comp =
CreateCompilationWithIndexAndRange
(source, parseOptions: useCsharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview);
2485
comp =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.Regular12);
2534
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
2658
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
2755
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
3284
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
3424
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
3545
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
4024
var comp =
CreateCompilationWithIndexAndRange
(source);
4051
var comp =
CreateCompilationWithIndexAndRange
(source);
4090
var comp =
CreateCompilationWithIndexAndRange
(source);
4120
var comp =
CreateCompilationWithIndexAndRange
(source);
4142
var comp =
CreateCompilationWithIndexAndRange
(source);
4497
var comp =
CreateCompilationWithIndexAndRange
(new[] { src, TestSources.GetSubArray });
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (62)
FlowAnalysis\FlowDiagnosticTests.cs (1)
2671
CreateCompilationWithIndexAndRange
(@"
Semantics\PatternMatchingTests_ListPatterns.cs (59)
452
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.Regular10);
465
compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.Regular11);
531
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
719
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
903
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
939
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns);
1003
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns);
1033
var compilation =
CreateCompilationWithIndexAndRange
(source);
1076
var compilation =
CreateCompilationWithIndexAndRange
(source);
1125
var compilation =
CreateCompilationWithIndexAndRange
(source);
1156
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns);
1180
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns);
1225
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns);
1325
var compilation =
CreateCompilationWithIndexAndRange
(source);
1481
var compilation =
CreateCompilationWithIndexAndRange
(source);
1568
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns);
1613
var compilation =
CreateCompilationWithIndexAndRange
(source, options: TestOptions.ReleaseExe);
1854
var compilation =
CreateCompilationWithIndexAndRange
(source);
1880
var compilation =
CreateCompilationWithIndexAndRange
(source);
1906
var compilation =
CreateCompilationWithIndexAndRange
(source);
1932
var compilation =
CreateCompilationWithIndexAndRange
(source);
1958
var compilation =
CreateCompilationWithIndexAndRange
(source);
1984
var compilation =
CreateCompilationWithIndexAndRange
(source);
2010
var compilation =
CreateCompilationWithIndexAndRange
(source);
2038
var compilation =
CreateCompilationWithIndexAndRange
(source);
2066
var compilation =
CreateCompilationWithIndexAndRange
(source);
2094
var compilation =
CreateCompilationWithIndexAndRange
(source);
2122
var compilation =
CreateCompilationWithIndexAndRange
(source);
2150
var compilation =
CreateCompilationWithIndexAndRange
(source);
2178
var compilation =
CreateCompilationWithIndexAndRange
(source);
2206
var compilation =
CreateCompilationWithIndexAndRange
(source);
2234
var compilation =
CreateCompilationWithIndexAndRange
(source);
2276
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
2310
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
2335
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
2439
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
2570
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
2981
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns);
3012
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
3841
var comp =
CreateCompilationWithIndexAndRange
(src);
3878
var comp =
CreateCompilationWithIndexAndRange
(src);
4467
var compilation =
CreateCompilationWithIndexAndRange
(source);
6337
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns);
6379
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns);
6439
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns);
6466
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns);
6524
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
6577
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
6613
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns);
6644
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns);
6699
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns);
6784
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns);
6815
var comp =
CreateCompilationWithIndexAndRange
(src);
6888
var comp =
CreateCompilationWithIndexAndRange
(src);
6941
var comp =
CreateCompilationWithIndexAndRange
(src);
6965
var comp =
CreateCompilationWithIndexAndRange
(src);
7037
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
7459
var compilation =
CreateCompilationWithIndexAndRange
(source, options: TestOptions.ReleaseExe);
7995
var compilation =
CreateCompilationWithIndexAndRange
(source);
Semantics\PatternMatchingTests_NullableTypes.cs (2)
635
var comp =
CreateCompilationWithIndexAndRange
(source);
665
var comp =
CreateCompilationWithIndexAndRange
([source, TestSources.GetSubArray]);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (48)
IOperation\IOperationTests_IArrayElementReferenceExpression.cs (10)
1708
var comp =
CreateCompilationWithIndexAndRange
(source);
1750
var comp =
CreateCompilationWithIndexAndRange
(source);
1837
var comp =
CreateCompilationWithIndexAndRange
(source);
1930
var comp =
CreateCompilationWithIndexAndRange
(source);
2053
var comp =
CreateCompilationWithIndexAndRange
(source);
2080
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
2122
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
2209
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
2302
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
2425
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
IOperation\IOperationTests_IBinaryOperatorExpression.cs (9)
8029
var compilation =
CreateCompilationWithIndexAndRange
(@"
8060
var compilation =
CreateCompilationWithIndexAndRange
(@"
8090
var compilation =
CreateCompilationWithIndexAndRange
(@"
8118
var compilation =
CreateCompilationWithIndexAndRange
(@"
8146
var compilation =
CreateCompilationWithIndexAndRange
(@"
8171
var compilation =
CreateCompilationWithIndexAndRange
(@"
8202
var compilation =
CreateCompilationWithIndexAndRange
(@"
8232
var compilation =
CreateCompilationWithIndexAndRange
(@"
8260
var compilation =
CreateCompilationWithIndexAndRange
(@"
IOperation\IOperationTests_IFromEndIndexOperation_IRangeOperation.cs (2)
33
var comp =
CreateCompilationWithIndexAndRange
(src);
208
var compilation =
CreateCompilationWithIndexAndRange
(source);
IOperation\IOperationTests_IImplicitIndexerReferenceExpression.cs (20)
41
var comp =
CreateCompilationWithIndexAndRange
(source);
85
var comp =
CreateCompilationWithIndexAndRange
(source);
174
var comp =
CreateCompilationWithIndexAndRange
(source);
269
var comp =
CreateCompilationWithIndexAndRange
(source);
394
var comp =
CreateCompilationWithIndexAndRange
(source);
423
var comp =
CreateCompilationWithIndexAndRange
(source);
467
var comp =
CreateCompilationWithIndexAndRange
(source);
556
var comp =
CreateCompilationWithIndexAndRange
(source);
651
var comp =
CreateCompilationWithIndexAndRange
(source);
776
var comp =
CreateCompilationWithIndexAndRange
(source);
814
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, IndexableAndSliceable });
858
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, IndexableAndSliceable });
947
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, IndexableAndSliceable });
1042
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, IndexableAndSliceable });
1167
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, IndexableAndSliceable });
1196
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, IndexableAndSliceable });
1240
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, IndexableAndSliceable });
1329
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, IndexableAndSliceable });
1424
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, IndexableAndSliceable });
1549
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, IndexableAndSliceable });
IOperation\IOperationTests_IIsPatternExpression.cs (4)
2150
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
2186
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
2228
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
2404
var comp =
CreateCompilationWithIndexAndRange
(source);
IOperation\IOperationTests_IUnaryOperatorExpression.cs (3)
3623
var compilation =
CreateCompilationWithIndexAndRange
(@"
3646
var compilation =
CreateCompilationWithIndexAndRange
(@"
3669
var compilation =
CreateCompilationWithIndexAndRange
(@"
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (49)
Semantics\ImplicitObjectCreationTests.cs (1)
2902
var comp =
CreateCompilationWithIndexAndRange
(source, options: TestOptions.DebugExe, parseOptions: ImplicitObjectCreationTestOptions);
Semantics\IndexAndRangeTests.cs (31)
77
var comp =
CreateCompilationWithIndexAndRange
(src);
79
comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.Regular7_3);
109
var comp =
CreateCompilationWithIndexAndRange
(src);
142
var comp =
CreateCompilationWithIndexAndRange
(src);
169
var comp =
CreateCompilationWithIndexAndRange
(src);
196
var comp =
CreateCompilationWithIndexAndRange
(src);
223
var comp =
CreateCompilationWithIndexAndRange
(src);
265
var comp =
CreateCompilationWithIndexAndRange
(src);
311
var comp =
CreateCompilationWithIndexAndRange
(src);
340
var comp =
CreateCompilationWithIndexAndRange
(src);
369
var comp =
CreateCompilationWithIndexAndRange
(src);
398
var comp =
CreateCompilationWithIndexAndRange
(src);
427
var comp =
CreateCompilationWithIndexAndRange
(src);
454
var comp =
CreateCompilationWithIndexAndRange
(src);
545
var comp =
CreateCompilationWithIndexAndRange
(@"
569
var comp =
CreateCompilationWithIndexAndRange
(@"
742
var comp =
CreateCompilationWithIndexAndRange
(@"
1325
var compilation =
CreateCompilationWithIndexAndRange
(@"
1368
var compilation =
CreateCompilationWithIndexAndRange
(@"
1411
var compilation =
CreateCompilationWithIndexAndRange
(@"
1439
var compilation =
CreateCompilationWithIndexAndRange
(@"
1482
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(expected);
1483
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics();
1510
CreateCompilationWithIndexAndRange
(@"
1541
CreateCompilationWithIndexAndRange
(@"
1629
var comp =
CreateCompilationWithIndexAndRange
(@"
1649
var comp =
CreateCompilationWithIndexAndRange
(@"
1669
CreateCompilationWithIndexAndRange
(@"
1690
var comp =
CreateCompilationWithIndexAndRange
(@"
1710
var comp =
CreateCompilationWithIndexAndRange
(@"
1730
CreateCompilationWithIndexAndRange
(@"
Semantics\NullableReferenceTypesTests.cs (17)
1635
CreateCompilationWithIndexAndRange
(text).VerifyDiagnostics();
4181
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4212
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4244
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4269
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4303
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4328
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4354
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4385
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4717
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4795
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4834
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4864
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4892
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
5173
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
131361
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
131382
var comp =
CreateCompilationWithIndexAndRange
(src, options: WithNullableEnable());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\SemanticModelAPITests.cs (2)
26
var comp =
CreateCompilationWithIndexAndRange
(@"
120
var comp =
CreateCompilationWithIndexAndRange
(@"