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