1 implementation of TypeOperand
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
7148public ITypeSymbol TypeOperand { get; }
30 references to TypeOperand
ConfigurationSchemaGenerator (2)
RuntimeSource\Configuration.Binder\Parser\ConfigurationBinder.cs (2)
173type = typeOfOperation?.TypeOperand; 228type = typeOfOperation?.TypeOperand;
ILLink.RoslynAnalyzer (1)
TrimAnalysis\TrimAnalysisVisitor.cs (1)
194return SingleValueExtensions.FromTypeSymbol(typeOfOperation.TypeOperand) ?? TopValue;
Microsoft.CodeAnalysis (2)
Generated\Operations.Generated.cs (1)
2054/// Represents an operation that gets <see cref="System.Type" /> for the given <see cref="TypeOperand" />.
Operations\ControlFlowGraphBuilder.cs (1)
7212return new TypeOfOperation(operation.TypeOperand, semanticModel: null, operation.Syntax, operation.Type, IsImplicit(operation));
Microsoft.CodeAnalysis.Analyzers (2)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (1)
577typeOfOperation.TypeOperand is { } typeOfType)
src\roslyn\src\RoslynAnalyzers\Microsoft.CodeAnalysis.BannedApiAnalyzers\Core\SymbolIsBannedAnalyzerBase.cs (1)
150VerifyType(context.ReportDiagnostic, typeOfOperation.TypeOperand, context.Operation.Syntax);
Microsoft.CodeAnalysis.CodeStyle (2)
src\roslyn\src\Analyzers\Core\Analyzers\ConvertTypeofToNameof\AbstractConvertTypeOfToNameOfDiagnosticAnalyzer.cs (2)
62if (typeofOperation.TypeOperand is IErrorTypeSymbol) 65if (typeofOperation.TypeOperand is not INamedTypeSymbol namedType)
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (2)
Microsoft.NetCore.Analyzers\InteropServices\CSharpDisableRuntimeMarshalling.Fixer.cs (2)
103else if (operation.Arguments[0].Value is ITypeOfOperation { TypeOperand.IsUnmanagedType: true } typeOf) 132type = typeOf.TypeOperand;
Microsoft.CodeAnalysis.Features (2)
src\roslyn\src\Analyzers\Core\Analyzers\ConvertTypeofToNameof\AbstractConvertTypeOfToNameOfDiagnosticAnalyzer.cs (2)
62if (typeofOperation.TypeOperand is IErrorTypeSymbol) 65if (typeofOperation.TypeOperand is not INamedTypeSymbol namedType)
Microsoft.CodeAnalysis.NetAnalyzers (10)
Microsoft.NetCore.Analyzers\InteropServices\DisableRuntimeMarshallingAnalyzer.DelegateInteropUsageAnalyzer.cs (1)
59if (operation.Arguments.Length == 2 && operation.Arguments.GetArgumentForParameterAtIndex(1) is { Value: ITypeOfOperation { TypeOperand: INamedTypeSymbol { TypeKind: TypeKind.Delegate } delegateType } } arg)
Microsoft.NetCore.Analyzers\InteropServices\DisableRuntimeMarshallingAnalyzer.DisabledRuntimeMarshallingAssemblyAnalyzer.cs (1)
92"SizeOf" => invocation.TargetMethod.IsGenericMethod || (invocation.Arguments.Length > 0 && invocation.Arguments.GetArgumentForParameterAtIndex(0).Value is ITypeOfOperation { TypeOperand.IsUnmanagedType: true }),
Microsoft.NetCore.Analyzers\Runtime\DetectPreviewFeatureAnalyzer.cs (1)
827ITypeOfOperation typeOfOperation => typeOfOperation.TypeOperand,
Microsoft.NetCore.Analyzers\Security\DataSetDataTableInSerializableObjectGraphAnalyzer.cs (5)
187(typeOfOperation.TypeOperand, (IOperation)typeOfOperation) 205.Select(t => (t.TypeOperand!, (IOperation)t)); 227(typeOfOperation.TypeOperand, (IOperation)typeOfOperation) 263.Select(t => (t.TypeOperand!, (IOperation)t)); 273.Select(t => (t.TypeOperand!, (IOperation)t));
Microsoft.NetCore.Analyzers\Security\UseAutoValidateAntiforgeryToken.cs (1)
188.Select(s => s.TypeOperand)
Microsoft.NetCore.Analyzers\Usage\PreferGenericOverloads.cs (1)
170.Select(t => t.TypeOperand)
Microsoft.Extensions.Configuration.Binder.SourceGeneration (2)
Parser\ConfigurationBinder.cs (2)
173type = typeOfOperation?.TypeOperand; 228type = typeOfOperation?.TypeOperand;
Microsoft.Interop.ComInterfaceGenerator (1)
Analyzers\RuntimeComApiUsageWithSourceGeneratedComAnalyzer.cs (1)
237ITypeOfOperation typeOf => (typeOf.TypeOperand, ((TypeOfExpressionSyntax)typeOf.Syntax).Type.GetLocation()),
Microsoft.Interop.LibraryImportGenerator (3)
Analyzers\CustomMarshallerAttributeAnalyzer.cs (2)
659ITypeSymbol managedTypeInAttribute = managedTypeOfOp.TypeOperand; 679ITypeSymbol? marshallerTypeInAttribute = marshallerTypeOfOp.TypeOperand;
Analyzers\NativeMarshallingAttributeAnalyzer.cs (1)
103(INamedTypeSymbol?)typeOfOp.TypeOperand);
Roslyn.Diagnostics.Analyzers (1)
AbstractDoNotCopyValue.cs (1)
1237CheckTypeSymbolInUnsupportedContext(operation, operation.TypeOperand);