288 references to In
GenerateDocumentationAndConfigFiles (2)
ILLink.RoslynAnalyzer (1)
Metrics (1)
Metrics.Legacy (1)
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.Analyzers (2)
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
Microsoft.CodeAnalysis.BannedApiAnalyzers (2)
Microsoft.CodeAnalysis.CodeStyle (1)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp (112)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (38)
CodeGen\CodeGenInParametersTests.cs (12)
4949RefKind.In,
4953RefKind.In,
5053RefKind.In,
5057RefKind.In,
5061RefKind.In,
5065RefKind.In,
5069RefKind.In,
5073RefKind.In,
5077RefKind.In,
5081RefKind.In,
5085RefKind.In,
5089RefKind.In,
CodeGen\CodeGenReadonlyStructTests.cs (18)
830Assert.Equal(RefKind.In, namedType.GetMethod("M1").ThisParameter.RefKind);
831Assert.Equal(RefKind.In, namedType.GetMethod("ToString").ThisParameter.RefKind);
847Assert.Equal(RefKind.In, namedType.GetMethod("M1").ThisParameter.RefKind);
848Assert.Equal(RefKind.In, namedType.GetMethod("ToString").ThisParameter.RefKind);
854Assert.Equal(RefKind.In, namedType.GetMethod("M1").ThisParameter.RefKind);
855Assert.Equal(RefKind.In, namedType.GetMethod("ToString").ThisParameter.RefKind);
861Assert.Equal(RefKind.In, namedType.GetMethod("M1").ThisParameter.RefKind);
862Assert.Equal(RefKind.In, namedType.GetMethod("ToString").ThisParameter.RefKind);
914Assert.Equal(RefKind.In, s1.GetMethod("M1").ThisParameter.RefKind);
915Assert.Equal(RefKind.In, s1.GetMethod("ToString").ThisParameter.RefKind);
1004Assert.Equal(RefKind.In, namedType.GetMethod("M1").ThisParameter.RefKind);
1005Assert.Equal(RefKind.In, namedType.GetMethod("ToString").ThisParameter.RefKind);
1011Assert.Equal(RefKind.In, namedType.GetMethod("M1").ThisParameter.RefKind);
1012Assert.Equal(RefKind.In, namedType.GetMethod("ToString").ThisParameter.RefKind);
1018Assert.Equal(RefKind.In, namedType.GetMethod("M1").ThisParameter.RefKind);
1019Assert.Equal(RefKind.In, namedType.GetMethod("ToString").ThisParameter.RefKind);
1025Assert.Equal(RefKind.In, namedType.GetMethod("M1").ThisParameter.RefKind);
1026Assert.Equal(RefKind.In, namedType.GetMethod("ToString").ThisParameter.RefKind);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (24)
Attributes\AttributeTests_RefReadOnly.cs (20)
42Assert.Equal(RefKind.In, parameter.RefKind);
68Assert.Equal(RefKind.In, parameter.RefKind);
124Assert.Equal(RefKind.In, parameter.RefKind);
154Assert.Equal(RefKind.In, parameter.RefKind);
206Assert.Equal(RefKind.In, parameter.RefKind);
233Assert.Equal(RefKind.In, parameter.RefKind);
277Assert.Equal(RefKind.In, parameter.RefKind);
406Assert.Equal(RefKind.In, parameter.RefKind);
426Assert.Equal(RefKind.In, parameter.RefKind);
478Assert.Equal(RefKind.In, parameter.RefKind);
505Assert.Equal(RefKind.In, parameter.RefKind);
522Assert.Equal(RefKind.In, parameter.RefKind);
565Assert.Equal(RefKind.In, parameter.RefKind);
602Assert.Equal(RefKind.In, parameter.RefKind);
626Assert.Equal(RefKind.In, parameter.RefKind);
690Assert.Equal(RefKind.In, parameter.RefKind);
729Assert.Equal(RefKind.In, parameter.RefKind);
757Assert.Equal(RefKind.In, parameter.RefKind);
823Assert.Equal(RefKind.In, parameter.RefKind);
1161Assert.Equal(RefKind.In, parameter.RefKind);
Microsoft.CodeAnalysis.CSharp.Features (3)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (47)
Semantics\RefFieldTests.cs (42)
10989VerifyParameterSymbol(parameters[0], "in R x3", RefKind.In, ScopedKind.None);
10990VerifyParameterSymbol(parameters[1], "scoped in R y3", RefKind.In, ScopedKind.ScopedRef);
11031VerifyParameterSymbol(comp.GetMember<PropertySymbol>("A.this[]").GetMethod.Parameters[0], "scoped in System.Object o", RefKind.In, ScopedKind.ScopedRef);
11094VerifyParameterSymbol(localFunctions[2].Parameters[0], "in System.Int32 x3", RefKind.In, ScopedKind.None);
11095VerifyParameterSymbol(localFunctions[2].Parameters[1], "scoped in System.Int32 y3", RefKind.In, ScopedKind.ScopedRef);
11100VerifyParameterSymbol(localFunctions[5].Parameters[0], "in R x6", RefKind.In, ScopedKind.None);
11101VerifyParameterSymbol(localFunctions[5].Parameters[1], "scoped in R y6", RefKind.In, ScopedKind.ScopedRef);
11167verifyParameter(delegateTypesAndLambdas[2], 0, "in System.Int32", "x3", RefKind.In, ScopedKind.None, false, false);
11168verifyParameter(delegateTypesAndLambdas[2], 1, "scoped in System.Int32", "y3", RefKind.In, ScopedKind.ScopedRef, false, false);
11174verifyParameter(delegateTypesAndLambdas[5], 0, "in R", "x6", RefKind.In, ScopedKind.None, false, false);
11175verifyParameter(delegateTypesAndLambdas[5], 1, "scoped in R", "y6", RefKind.In, ScopedKind.ScopedRef, false, false);
11310VerifyParameterSymbol(comp.GetMember<MethodSymbol>("Program.F6").Parameters[0], "scoped in R r", RefKind.In, ScopedKind.ScopedRef);
11426VerifyParameterSymbol(comp.GetMember<MethodSymbol>("Program.F5").Parameters[0], "in scoped s", RefKind.In, ScopedKind.None);
11427VerifyParameterSymbol(comp.GetMember<MethodSymbol>("Program.F7").Parameters[0], "scoped in scoped s", RefKind.In, ScopedKind.ScopedRef);
11540VerifyParameterSymbol(parameters[2], "in R c", RefKind.In, ScopedKind.None);
11620VerifyParameterSymbol(comp.GetMember<MethodSymbol>("S1.F2").ThisParameter, "in S1 this", RefKind.In, ScopedKind.ScopedRef);
11623VerifyParameterSymbol(comp.GetMember<MethodSymbol>("R1.F2").ThisParameter, "in R1 this", RefKind.In, ScopedKind.ScopedRef);
11625VerifyParameterSymbol(comp.GetMember<MethodSymbol>("S2.F1").ThisParameter, "in S2 this", RefKind.In, ScopedKind.ScopedRef);
11626VerifyParameterSymbol(comp.GetMember<MethodSymbol>("S2.F2").ThisParameter, "in S2 this", RefKind.In, ScopedKind.ScopedRef);
11628VerifyParameterSymbol(comp.GetMember<MethodSymbol>("R2.F1").ThisParameter, "in R2 this", RefKind.In, ScopedKind.ScopedRef);
11629VerifyParameterSymbol(comp.GetMember<MethodSymbol>("R2.F2").ThisParameter, "in R2 this", RefKind.In, ScopedKind.ScopedRef);
12018VerifyParameterSymbol(method.Parameters[1], "scoped in System.Int32 y", RefKind.In, ScopedKind.ScopedRef);
12052VerifyParameterSymbol(method.Parameters[1], "scoped in System.Int32 y", RefKind.In, ScopedKind.ScopedRef);
23814VerifyParameterSymbol(type.GetMethod("F3").Parameters[0], "in R<T> t3", RefKind.In, ScopedKind.None, expectedHasUnscopedRefAttribute: true);
24137VerifyParameterSymbol(baseType.GetMethod("F1A").Parameters[0], "in System.Int32 t1", RefKind.In, ScopedKind.None, expectedHasUnscopedRefAttribute: false);
24138VerifyParameterSymbol(baseType.GetMethod("F2A").Parameters[0], "scoped in System.Int32 t2", RefKind.In, ScopedKind.ScopedRef, expectedHasUnscopedRefAttribute: false);
24139VerifyParameterSymbol(baseType.GetMethod("F3A").Parameters[0], "in System.Int32 t3", RefKind.In, ScopedKind.None, expectedHasUnscopedRefAttribute: true);
24140VerifyParameterSymbol(baseType.GetMethod("F4A").Parameters[0], "in System.Int32 t4", RefKind.In, ScopedKind.None, expectedHasUnscopedRefAttribute: true);
24257VerifyParameterSymbol(comp.GetMember<MethodSymbol>("Program.F3").Parameters[0], "in R<T> r3", RefKind.In, ScopedKind.None, expectedHasUnscopedRefAttribute: true);
25211VerifyParameterSymbol(typeA.GetMethod("NoAttributes").Parameters[0], "in R x", RefKind.In, ScopedKind.None, expectedHasUnscopedRefAttribute: false);
25212VerifyParameterSymbol(typeA.GetMethod("ScopedRefOnly").Parameters[0], "scoped in R x", RefKind.In, ScopedKind.ScopedRef, expectedHasUnscopedRefAttribute: false);
25213VerifyParameterSymbol(typeA.GetMethod("UnscopedRefOnly").Parameters[0], "in R x", RefKind.In, ScopedKind.None, expectedHasUnscopedRefAttribute: true);
25214VerifyParameterSymbol(typeA.GetMethod("ScopedRefAndUnscopedRef").Parameters[0], "in R x", RefKind.In, ScopedKind.None, expectedHasUnscopedRefAttribute: true);
25270VerifyParameterSymbol(comp.GetMember<MethodSymbol>("S2.F2").ThisParameter, "in S2 this", RefKind.In, ScopedKind.ScopedRef);
25273VerifyParameterSymbol(comp.GetMember<MethodSymbol>("A.F5").Parameters[0], "in R r5", RefKind.In, ScopedKind.None);
25313VerifyParameterSymbol(comp.GetMember<MethodSymbol>("S2.F2").ThisParameter, "in S2 this", RefKind.In, ScopedKind.ScopedRef);
25316VerifyParameterSymbol(comp.GetMember<MethodSymbol>("A.F5").Parameters[0], "in R r5", RefKind.In, ScopedKind.None);
25349verifyParameter(delegateTypesAndLambdas[3], 0, "in R", "r4", RefKind.In, ScopedKind.None);
25399VerifyParameterSymbol(getFunctionPointerMethod(comp, "A.F4").Parameters[0], "in modreq(System.Runtime.InteropServices.InAttribute) R", RefKind.In, ScopedKind.None);
25471VerifyParameterSymbol(comp.GetMember<MethodSymbol>("Program.F4").Parameters[0], "in R r4", RefKind.In, ScopedKind.None, expectedHasUnscopedRefAttribute: true);
26087VerifyParameterSymbol(typeA.GetMethod("F3").Parameters[0], "in R x", RefKind.In, ScopedKind.None, expectedHasUnscopedRefAttribute: false);
26088VerifyParameterSymbol(typeA.GetMethod("F4").Parameters[0], "in R x", RefKind.In, ScopedKind.None, expectedHasUnscopedRefAttribute: true);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (13)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Microsoft.CodeAnalysis.Features (1)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (2)
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
Microsoft.CodeAnalysis.Workspaces (2)
Microsoft.Extensions.Logging.Generators (1)
Microsoft.Gen.Logging (1)
Microsoft.Interop.SourceGeneration (7)
Microsoft.VisualStudio.LanguageServices (1)
Roslyn.Diagnostics.Analyzers (5)
Roslyn.Diagnostics.CSharp.Analyzers (3)
Test.Utilities (1)
Text.Analyzers (2)