Binder\Binder_Patterns.cs (6)
1024bool isExplicitNotNullTest = boundType.Type.SpecialType == SpecialType.System_Object;
1025return new BoundTypePattern(node, boundType, isExplicitNotNullTest, isUnionMatching: hasUnionMatching, inputType: unionMatchingInputType ?? inputType, boundType.Type, hasErrors);
1545return new BoundDeclarationPattern(node, boundDeclType, isVar: false, variableSymbol, variableAccess, isUnionMatching: hasUnionMatching, inputType: unionMatchingInputType ?? inputType, narrowedType: boundDeclType.Type, hasErrors);
1755narrowedType: boundDeclType?.Type ?? inputType.StrippedType(), hasErrors);
2408bool isExplicitNotNullTest = patternType.Type.SpecialType == SpecialType.System_Object;
2409return new BoundTypePattern(node, patternType, isExplicitNotNullTest, isUnionMatching: hasUnionMatching, inputType: unionMatchingInputType ?? inputType, patternType.Type, hasErrors);
Generated\BoundNodes.xml.Generated.cs (4)
1102if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(aliasOpt, this.AliasOpt) || boundContainingTypeOpt != this.BoundContainingTypeOpt || boundDimensionsOpt != this.BoundDimensionsOpt || typeWithAnnotations != this.TypeWithAnnotations || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
11238TypeSymbol? type = this.VisitType(node.Type);
12985updatedNode = node.Update(node.AliasOpt, boundContainingTypeOpt, boundDimensionsOpt, node.TypeWithAnnotations, node.Type);
15658new TreeDumperNode("type", node.Type, null),