63 references to RetargetOptions
Microsoft.CodeAnalysis.CSharp (63)
Symbols\Retargeting\RetargetingAssemblySymbol.cs (2)
305return this.RetargetingTranslator.Retarget(underlying, RetargetOptions.RetargetPrimitiveTypesByName); 314yield return this.RetargetingTranslator.Retarget(underlying, RetargetOptions.RetargetPrimitiveTypesByName);
Symbols\Retargeting\RetargetingEventSymbol.cs (1)
53return this.RetargetingTranslator.Retarget(_underlyingEvent.TypeWithAnnotations, RetargetOptions.RetargetPrimitiveTypesByTypeCode);
Symbols\Retargeting\RetargetingFieldSymbol.cs (1)
62return this.RetargetingTranslator.Retarget(_underlyingField.GetFieldType(fieldsBeingBound), RetargetOptions.RetargetPrimitiveTypesByTypeCode);
Symbols\Retargeting\RetargetingMethodSymbol.cs (2)
136new TypeWithAnnotations.Boxed(this.RetargetingTranslator.Retarget(_underlyingMethod.ReturnTypeWithAnnotations, RetargetOptions.RetargetPrimitiveTypesByTypeCode, this.ContainingType)), 384builderArgument = this.RetargetingTranslator.Retarget(builderArgument, RetargetOptions.RetargetPrimitiveTypesByTypeCode);
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (7)
106return (object)underlying == null ? null : this.RetargetingTranslator.Retarget(underlying, RetargetOptions.RetargetPrimitiveTypesByTypeCode); // comes from field's signature. 262return this.RetargetingTranslator.Retarget(underlyingResult, RetargetOptions.RetargetPrimitiveTypesByName); 287acyclicBase = this.RetargetingTranslator.Retarget(underlyingBase, RetargetOptions.RetargetPrimitiveTypesByName); 333var declaredBase = (object)underlyingBase != null ? this.RetargetingTranslator.Retarget(underlyingBase, RetargetOptions.RetargetPrimitiveTypesByName) : null; 368return (object)coClass == null ? null : this.RetargetingTranslator.Retarget(coClass, RetargetOptions.RetargetPrimitiveTypesByName); 423builderType = this.RetargetingTranslator.Retarget(builderType, RetargetOptions.RetargetPrimitiveTypesByTypeCode); 432builderArgument = this.RetargetingTranslator.Retarget(builderArgument, RetargetOptions.RetargetPrimitiveTypesByTypeCode);
Symbols\Retargeting\RetargetingNamespaceSymbol.cs (2)
129builder.Add(this.RetargetingTranslator.Retarget(t, RetargetOptions.RetargetPrimitiveTypesByName)); 229return this.RetargetingTranslator.Retarget(underlying, RetargetOptions.RetargetPrimitiveTypesByName);
Symbols\Retargeting\RetargetingParameterSymbol.cs (1)
47new TypeWithAnnotations.Boxed(this.RetargetingModule.RetargetingTranslator.Retarget(_underlyingParameter.TypeWithAnnotations, RetargetOptions.RetargetPrimitiveTypesByTypeCode)),
Symbols\Retargeting\RetargetingPropertySymbol.cs (1)
69var type = this.RetargetingTranslator.Retarget(_underlyingProperty.TypeWithAnnotations, RetargetOptions.RetargetPrimitiveTypesByTypeCode);
Symbols\Retargeting\RetargetingSymbolTranslator.cs (44)
73RetargetingTranslator.Retarget(tupleErrorField.ContainingType, RetargetOptions.RetargetPrimitiveTypesByName), 77this.RetargetingTranslator.Retarget(tupleErrorField.TypeWithAnnotations, RetargetOptions.RetargetPrimitiveTypesByTypeCode), 105: CSharpSymbolVisitor<RetargetOptions, Symbol> 165return symbol.Accept(this, RetargetOptions.RetargetPrimitiveTypesByName); 172(type, translator) => translator.Retarget(type, RetargetOptions.RetargetPrimitiveTypesByTypeCode), this); 175public TypeSymbol Retarget(TypeSymbol symbol, RetargetOptions options) 180public TypeWithAnnotations Retarget(TypeWithAnnotations underlyingType, RetargetOptions options, NamedTypeSymbol asDynamicIfNoPiaContainingType = null) 205private NamedTypeSymbol RetargetNamedTypeDefinition(NamedTypeSymbol type, RetargetOptions options) 217if (options == RetargetOptions.RetargetPrimitiveTypesByTypeCode) 483public NamedTypeSymbol Retarget(NamedTypeSymbol type, RetargetOptions options) 538var newArg = Retarget(arg, RetargetOptions.RetargetPrimitiveTypesByTypeCode); // generic instantiation is a signature 698TypeWithAnnotations newElement = Retarget(oldElement, RetargetOptions.RetargetPrimitiveTypesByTypeCode); 721NamedTypeSymbol newModifierSymbol = Retarget(oldModifierSymbol, RetargetOptions.RetargetPrimitiveTypesByName); // should be retargeted by name 749TypeWithAnnotations newPointed = Retarget(oldPointed, RetargetOptions.RetargetPrimitiveTypesByTypeCode); 762var newReturn = Retarget(signature.ReturnTypeWithAnnotations, RetargetOptions.RetargetPrimitiveTypesByTypeCode); 778var newParameterType = Retarget(parameter.TypeWithAnnotations, RetargetOptions.RetargetPrimitiveTypesByTypeCode); 843return self.Retarget(nts, RetargetOptions.RetargetPrimitiveTypesByName); 855return self.Retarget(ts, RetargetOptions.RetargetPrimitiveTypesByName); 863static (ts, self) => self.Retarget(ts, RetargetOptions.RetargetPrimitiveTypesByName), 892var retargetedType = Retarget(containingType, RetargetOptions.RetargetPrimitiveTypesByName); 940var retargetedType = Retarget(containingType, RetargetOptions.RetargetPrimitiveTypesByName); 956var retargetedType = Retarget(containingType, RetargetOptions.RetargetPrimitiveTypesByName); 1004translator.Retarget(param.TypeWithAnnotations, RetargetOptions.RetargetPrimitiveTypesByTypeCode), 1025translator.Retarget(method.ReturnTypeWithAnnotations, RetargetOptions.RetargetPrimitiveTypesByTypeCode), 1078self.Retarget(param.TypeWithAnnotations, RetargetOptions.RetargetPrimitiveTypesByTypeCode), 1090Retarget(property.TypeWithAnnotations, RetargetOptions.RetargetPrimitiveTypesByTypeCode), 1112var targetType = Retarget(@event.TypeWithAnnotations, RetargetOptions.RetargetPrimitiveTypesByTypeCode); 1171newAttributeType = Retarget(oldAttributeType, RetargetOptions.RetargetPrimitiveTypesByTypeCode); 1226Retarget(oldConstantType, RetargetOptions.RetargetPrimitiveTypesByTypeCode); 1246newConstantValue = Retarget((TypeSymbol)oldConstantValue, RetargetOptions.RetargetPrimitiveTypesByTypeCode); 1317public override Symbol VisitModule(ModuleSymbol symbol, RetargetOptions options) 1324public override Symbol VisitNamespace(NamespaceSymbol symbol, RetargetOptions options) 1329public override Symbol VisitNamedType(NamedTypeSymbol symbol, RetargetOptions options) 1334public override Symbol VisitArrayType(ArrayTypeSymbol symbol, RetargetOptions options) 1339public override Symbol VisitPointerType(PointerTypeSymbol symbol, RetargetOptions options) 1344public override Symbol VisitFunctionPointerType(FunctionPointerTypeSymbol symbol, RetargetOptions argument) 1349public override Symbol VisitMethod(MethodSymbol symbol, RetargetOptions options) 1354public override Symbol VisitParameter(ParameterSymbol symbol, RetargetOptions options) 1359public override Symbol VisitField(FieldSymbol symbol, RetargetOptions options) 1364public override Symbol VisitProperty(PropertySymbol symbol, RetargetOptions argument) 1369public override Symbol VisitTypeParameter(TypeParameterSymbol symbol, RetargetOptions options) 1374public override Symbol VisitErrorType(ErrorTypeSymbol symbol, RetargetOptions options) 1379public override Symbol VisitEvent(EventSymbol symbol, RetargetOptions options) 1384public override Symbol VisitDynamicType(DynamicTypeSymbol symbol, RetargetOptions argument)
Symbols\Retargeting\RetargetingTypeParameterSymbol.cs (2)
104return this.RetargetingTranslator.Retarget(_underlyingTypeParameter.GetEffectiveBaseClass(inProgress), RetargetOptions.RetargetPrimitiveTypesByTypeCode); 109return this.RetargetingTranslator.Retarget(_underlyingTypeParameter.GetDeducedBaseType(inProgress), RetargetOptions.RetargetPrimitiveTypesByTypeCode);