20 references to Typeof
Microsoft.CodeAnalysis.CSharp (20)
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (12)
342var boundType = _bound.Typeof(arrayType.ElementType); 377return ExprFactory("TypeAs", Visit(node.Operand), _bound.Typeof(node.Type)); 641var e2 = ExprFactory(node.Checked && SyntaxFacts.IsCheckedOperator(method.Name) ? "ConvertChecked" : "Convert", e1, _bound.Typeof(resultType), _bound.MethodInfo(method)); 677return ExprFactory(isChecked ? "ConvertChecked" : "Convert", expr, _bound.Typeof(type)); 690unquoted = _bound.Call(_bound.MethodInfo(method), createDelegate, _bound.Typeof(delegateType), receiver); 697unquoted = _bound.StaticCall(_bound.SpecialType(SpecialType.System_Delegate), "CreateDelegate", _bound.Typeof(delegateType), receiver, _bound.MethodInfo(method)); 745return ExprFactory("TypeIs", Visit(operand), _bound.Typeof(node.TargetType.Type)); 768_bound.Typeof(_typeMap.SubstituteType(p.Type).Type), _bound.Literal(p.Name)); 791return VisitObjectCreationContinued(ExprFactory("New", _bound.Typeof(node.Type)), node.InitializerExpressionOpt); 816var parameter = ExprFactory("Parameter", _bound.Typeof(fromType), _bound.Literal(parameterName)); 969return ExprFactory("New", _bound.Typeof(node.Type)); 1103_bound.Typeof(node.Type));
Lowering\LocalRewriter\LocalRewriter_Event.cs (1)
300BoundExpression eventInfo = _factory.New(ctor, _factory.Typeof(node.Event.ContainingType), _factory.Literal(node.Event.MetadataName));
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (3)
105_factory.Typeof(resultType), 227loweredReceiver = _factory.Typeof(((BoundTypeExpression)loweredReceiver).Type); 341var loweredReceiver = _factory.Typeof(type);
Lowering\SyntheticBoundNodeFactory.cs (3)
1182return Typeof(WellKnownType(type)); 1197return Typeof(type.Type); 1208return Typeof(this.CompilationState.DynamicOperationContextType);
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
173F.CloseMethod(F.Block(F.Return(F.Typeof(ContainingType))));