13 references to IsVar
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Expressions.cs (1)
1879else if ((localSymbol as SourceLocalSymbol)?.IsVar == true && localSymbol.ForbiddenZone?.Contains(node) == true)
Binder\Binder_Patterns.cs (1)
891syntax: designation, localSymbol: localSymbol, localSymbol.IsVar ? BoundLocalDeclarationKind.WithInferredType : BoundLocalDeclarationKind.WithExplicitType, constantValueOpt: null, isNullableUnknown: false, type: declType.Type);
FlowAnalysis\DefiniteAssignment.cs (1)
2190if ((localSymbol as SourceLocalSymbol)?.IsVar == true && localSymbol.ForbiddenZone?.Contains(node.Syntax) == true)
FlowAnalysis\NullableWalker.cs (2)
2943if (local is SourceLocalSymbol { IsVar: true } && local.ForbiddenZone?.Contains(node.Syntax) == true) 10193else if (iterationVariable is SourceLocalSymbol { IsVar: true })
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenDeconstructTests.cs (1)
3588if (local.IsVar && local.Type.IsErrorType())
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\RefFieldTests.cs (7)
12951Assert.True(local.IsVar); 13015Assert.True(local.IsVar); 13091Assert.True(locals[i].IsVar); 13162Assert.True(local.IsVar); 14644Assert.True(local.IsVar); 26653Assert.True(local.IsVar); 26713Assert.True(local.IsVar);