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