112 references to UnscopedRefAttributeDefinition
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (15)
RefStructInterfacesTests.cs (15)
2216
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
2280
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
2720
var comp = CreateCompilation(new[] { sourceA,
UnscopedRefAttributeDefinition
});
2756
var comp = CreateCompilation(new[] { sourceA,
UnscopedRefAttributeDefinition
});
2795
var comp = CreateCompilation(new[] { sourceA,
UnscopedRefAttributeDefinition
});
2831
var comp = CreateCompilation(new[] { sourceA,
UnscopedRefAttributeDefinition
});
2865
var comp = CreateCompilation(new[] { sourceA,
UnscopedRefAttributeDefinition
});
2902
var comp = CreateCompilation(new[] { sourceA,
UnscopedRefAttributeDefinition
});
2975
var verifier = CompileAndVerify(new[] { source,
UnscopedRefAttributeDefinition
}, expectedOutput: (tS1IsClass == ThreeState.True || tS2IsClass == ThreeState.True ? null : "12"), verify: Verification.Fails);
3038
CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
}).VerifyDiagnostics(
3069
CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
}).VerifyDiagnostics(
3102
CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
}).VerifyDiagnostics(
3600
CreateCompilationWithMscorlibAndSpan(new[] { text,
UnscopedRefAttributeDefinition
}).VerifyDiagnostics();
3635
CreateCompilationWithMscorlibAndSpan(new[] { text,
UnscopedRefAttributeDefinition
}).VerifyDiagnostics(
3676
CreateCompilationWithMscorlibAndSpan(new[] { text,
UnscopedRefAttributeDefinition
}).VerifyDiagnostics();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (96)
Semantics\DelegateTypeTests.cs (1)
14226
var comp = CreateCompilation(
UnscopedRefAttributeDefinition
, targetFramework: TargetFramework.Net60, assemblyName: attributeAssemblyName);
Semantics\DynamicTests.cs (5)
1574
CompileAndVerify(new[] { source,
UnscopedRefAttributeDefinition
}, new[] { CSharpRef },
1596
CompileAndVerify(new[] { source,
UnscopedRefAttributeDefinition
}, new[] { CSharpRef },
1616
CompileAndVerify(new[] { source,
UnscopedRefAttributeDefinition
}, new[] { CSharpRef },
1641
CompileAndVerify(new[] { source,
UnscopedRefAttributeDefinition
}, targetFramework: TargetFramework.Net70,
1669
CompileAndVerify(new[] { source,
UnscopedRefAttributeDefinition
}, new[] { CSharpRef },
Semantics\RecordStructTests.cs (1)
7979
var comp = CreateCompilationWithMscorlibAndSpan(new[] { text,
UnscopedRefAttributeDefinition
}, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
Semantics\RefEscapingTests.cs (8)
1418
var comp = CreateCompilationWithMscorlibAndSpan(new[] { source,
UnscopedRefAttributeDefinition
});
1927
var comp = CreateCompilationWithMscorlibAndSpan(new[] { text,
UnscopedRefAttributeDefinition
}, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
4074
var comp = CreateCompilationWithSpan([code,
UnscopedRefAttributeDefinition
], TestOptions.UnsafeDebugDll, TestOptions.Regular11);
4118
var comp = CreateCompilationWithSpan([code,
UnscopedRefAttributeDefinition
], TestOptions.UnsafeDebugDll, TestOptions.Regular11);
4896
CreateCompilationWithMscorlibAndSpan(new[] { text,
UnscopedRefAttributeDefinition
}, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
4908
CreateCompilationWithMscorlibAndSpan(new[] { text,
UnscopedRefAttributeDefinition
}, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion)).VerifyDiagnostics(
8345
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
8372
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
Semantics\RefFieldTests.cs (77)
2439
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
}, targetFramework: TargetFramework.Net70);
4693
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
4763
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
4815
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
4854
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
4899
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
5179
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
8480
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
}, targetFramework: TargetFramework.Net70);
9699
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
}, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70);
9746
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
}, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
9794
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
}, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
9816
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
}, targetFramework: TargetFramework.Net70);
11063
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
}, parseOptions: TestOptions.Regular10);
11091
comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
16202
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
16328
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
16371
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
16442
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
17203
var comp = CreateCompilation(new[] { sourceA, sourceB1,
UnscopedRefAttributeDefinition
});
17206
comp = CreateCompilation(new[] { sourceA, sourceB2,
UnscopedRefAttributeDefinition
});
17209
comp = CreateCompilation(new[] { sourceB2, sourceA,
UnscopedRefAttributeDefinition
});
18799
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
}, targetFramework: TargetFramework.Net70);
18827
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
}, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugDll);
22339
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
22366
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
22385
var comp = CreateCompilation(new[] { sourceA,
UnscopedRefAttributeDefinition
});
22445
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
22484
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
22503
var comp = CreateCompilation(new[] { sourceA,
UnscopedRefAttributeDefinition
});
22549
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
, IsExternalInitTypeDefinition });
22580
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
22684
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
}, targetFramework: TargetFramework.Net60);
22769
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
22799
var comp = CreateCompilation(new[] { sourceA,
UnscopedRefAttributeDefinition
});
22864
var comp = CreateCompilation(new[] { sourceA,
UnscopedRefAttributeDefinition
}, targetFramework: TargetFramework.Mscorlib40);
22952
comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
}, targetFramework: TargetFramework.Net70);
22977
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
22995
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
23025
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
23339
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
23372
var comp = CreateCompilation(new[] { sourceA,
UnscopedRefAttributeDefinition
});
23445
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
23511
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
23681
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
23709
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
23740
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
23778
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
23819
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
23863
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
23893
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
23929
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
24018
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
24143
var comp = CreateCompilation(new[] { sourceA,
UnscopedRefAttributeDefinition
});
24181
comp = CreateCompilation(new[] { sourceB,
UnscopedRefAttributeDefinition
}, references: new[] { refA });
24635
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
}, targetFramework: TargetFramework.Net50, options: TestOptions.ReleaseDll);
24826
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
}, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
24993
var comp = CreateCompilation(new[] { sourceA,
UnscopedRefAttributeDefinition
});
25023
var comp = CreateCompilation(new[] { sourceA,
UnscopedRefAttributeDefinition
});
25165
comp = CreateCompilation(new[] { sourceB2,
UnscopedRefAttributeDefinition
}, references: new[] { refA }, parseOptions: TestOptions.Regular);
25296
comp = CreateCompilation(new[] { sourceB,
UnscopedRefAttributeDefinition
}, references: new[] { refA });
25385
var comp = CreateCompilation(new[] { sourceA,
UnscopedRefAttributeDefinition
}, parseOptions: TestOptions.Regular);
25432
var comp = CreateCompilation(new[] { sourceA,
UnscopedRefAttributeDefinition
});
25824
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
25930
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
}, targetFramework: TargetFramework.Net60);
25963
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
26155
var verifier = CompileAndVerify(new[] { source,
UnscopedRefAttributeDefinition
}, expectedOutput: "12", verify: Verification.Fails);
26198
CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
}).VerifyDiagnostics(
26231
CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
}).VerifyDiagnostics(
26265
CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
}).VerifyDiagnostics(
26299
var verifier = CompileAndVerify(new[] { source,
UnscopedRefAttributeDefinition
}, expectedOutput: "12", verify: Verification.Fails);
26340
CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
}).VerifyDiagnostics(
26373
CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
}).VerifyDiagnostics(
26781
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
}, options: TestOptions.ReleaseDll);
26833
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
}, options: TestOptions.ReleaseDll);
26885
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
}, options: TestOptions.ReleaseDll);
28508
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
}, targetFramework: TargetFramework.Net70);
30047
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});
Semantics\RefLocalsAndReturnsTests.cs (1)
585
var comp = CreateCompilationWithMscorlibAndSpan(new[] { source,
UnscopedRefAttributeDefinition
}, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
Semantics\SpanStackSafetyTests.cs (2)
529
var comp = CreateCompilationWithMscorlibAndSpan(new[] { text,
UnscopedRefAttributeDefinition
}, parseOptions: TestOptions.Regular10);
548
comp = CreateCompilationWithMscorlibAndSpan(new[] { text,
UnscopedRefAttributeDefinition
});
Semantics\Utf8StringsLiteralsTests.cs (1)
3794
var comp = CreateCompilation(new[] { source + HelpersSource,
UnscopedRefAttributeDefinition
}, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugDll);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
SymbolDisplay\SymbolDisplayTests.cs (1)
8844
var comp = CreateCompilation(new[] { source,
UnscopedRefAttributeDefinition
});