48 references to Type
Microsoft.CodeAnalysis.CSharp (48)
Binder\Binder.ValueChecks.cs (1)
2513return property.Type.IsRefLikeOrAllowsRefLikeType();
Binder\Binder_Attributes.cs (1)
637namedArgumentType = propertySymbol.Type;
Binder\Binder_Await.cs (1)
394if (isCompletedProperty.Type.SpecialType != SpecialType.System_Boolean)
Binder\Binder_Expressions.cs (5)
5996if (propertySymbol.Type.IsValueType) 6001Error(diagnostics, ErrorCode.ERR_ValueTypePropertyInObjectInitializer, memberNameSyntax, propertySymbol, propertySymbol.Type); 8176resultType = ((PropertySymbol)symbolOpt).Type; 8688return new BoundPropertyAccess(node, receiver, initialBindingReceiverIsSubjectToCloning: ReceiverIsSubjectToCloning(receiver, propertySymbol), propertySymbol, autoPropertyAccessorKind: AccessorKind.Unknown, lookupResult, propertySymbol.Type, hasErrors: (hasErrors || hasError)); 9874property.Type,
Binder\Binder_Lookup.cs (1)
1741type = ((PropertySymbol)symbol).Type;
Binder\Binder_Patterns.cs (2)
366lengthAccess = new BoundPropertyAccess(node, receiverPlaceholder, initialBindingReceiverIsSubjectToCloning: ThreeState.False, lengthProperty, autoPropertyAccessorKind: AccessorKind.Unknown, LookupResultKind.Viable, lengthProperty.Type) { WasCompilerGenerated = true }; 1532PropertySymbol property => property.Type,
Binder\DecisionDagBuilder.cs (1)
328RoslynDebug.Assert(getLengthProperty.Type.SpecialType == SpecialType.System_Int32);
Binder\PatternExplainer.cs (2)
403var lengthTemp = new BoundDagTemp(lengthOrCount.Syntax, lengthOrCount.Property.Type, lengthOrCount); 573var subInput = new BoundDagTemp(e.Syntax, e.Property.Type, e);
BoundTree\Constructors.cs (1)
287type: indexer.Type,
Compiler\ClsComplianceChecker.cs (1)
725type = ((PropertySymbol)symbol).Type;
Compiler\MethodBodySynthesizer.cs (1)
205property.Type)
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
719return _comparer.Equals(property.Type, other.Type) &&
Emitter\Model\AttributeDataAdapter.cs (1)
171type = ((PropertySymbol)symbol).Type;
Emitter\Model\PropertySymbolAdapter.cs (1)
209return ((PEModuleBuilder)context.Module).Translate(AdaptedPropertySymbol.Type,
FlowAnalysis\NullableWalker.cs (1)
4567if (property.Type.SpecialType != SpecialType.System_Void)
FlowAnalysis\NullableWalker_Patterns.cs (1)
554addTemp(e, e.Property.Type);
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (2)
516if (!property.Type.Equals(returnType, TypeCompareKind.AllIgnoreOptions)) 519new CSDiagnosticInfo(ErrorCode.ERR_BadAsyncMethodBuilderTaskProperty, builderType, returnType, property.Type),
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (2)
153var outputTemp = new BoundDagTemp(p.Syntax, property.Type, p); 155return _factory.AssignmentExpression(output, _localRewriter.MakePropertyAccess(_factory.Syntax, input, property, LookupResultKind.Viable, property.Type, isLeftOfAssignment: false));
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (1)
118TypeSymbol type = indexer.Type;
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (1)
703propertySymbol.Type,
Lowering\LocalRewriter\LocalRewriter_PropertyAccess.cs (2)
86oldNodeOpt.Update(rewrittenReceiver, initialBindingReceiverIsSubjectToCloning: ThreeState.Unknown, property, autoPropertyAccessorKind: AccessorKind.Unknown, LookupResultKind.Viable, property.Type) : 87new BoundPropertyAccess(syntax, rewrittenReceiver, initialBindingReceiverIsSubjectToCloning: ThreeState.Unknown, property, autoPropertyAccessorKind: AccessorKind.Unknown, LookupResultKind.Viable, property.Type);
Operations\CSharpOperationFactory.cs (1)
2908createReceiver(), _semanticModel, nameSyntax, type: property.Type.GetPublicSymbol(), isImplicit: false);
Operations\CSharpOperationFactory_Methods.cs (1)
447type: property.Type.GetPublicSymbol(),
Symbols\Attributes\AttributeData.cs (2)
561if (property.TypeWithAnnotations.HasType && property.Type.SpecialType == SpecialType.System_String && 655if (member is PropertySymbol { Type: { SpecialType: SpecialType.System_String } })
Symbols\Compilation_WellKnownMembers.cs (1)
1092return property.Type;
Symbols\MemberSymbolExtensions.cs (1)
583return ((PropertySymbol)member).Type.ContainsTupleNames();
Symbols\Source\SourceMemberContainerSymbol.cs (4)
4696if (!equalityContract.Type.Equals(targetProperty.Type, TypeCompareKind.AllIgnoreOptions)) 4698if (!equalityContract.Type.IsErrorType()) 4700diagnostics.Add(ErrorCode.ERR_SignatureMismatchInRecord, equalityContract.GetFirstLocation(), equalityContract, targetProperty.Type);
Symbols\Source\SourcePropertySymbolBase.cs (3)
1033if (compilation.ShouldEmitNativeIntegerAttributes(Type)) 1804this.Type.CheckAllConstraints(DeclaringCompilation, conversions, Location, diagnostics); 1837var type = this.Type;
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (1)
68PropertySymbol property => property.Type,
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
77if (_equalityContract.IsStatic || !_equalityContract.Type.Equals(DeclaringCompilation.GetWellKnownType(WellKnownType.System_Type), TypeCompareKind.AllIgnoreOptions))
Symbols\TypeSymbol.cs (1)
2014interfaceMemberReturnType = property.Type;
Symbols\VarianceSafety.cs (1)
197property.Type,