bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { return(other is AliasNamespaceReference anr && this.identifier == anr.identifier); }
public bool EqualsForInterning(ISupportsInterning other) { throw new NotImplementedException(); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { GetClassTypeReference o = other as GetClassTypeReference; return o != null && name == o.name && nameSpace == o.nameSpace && typeParameterCount == o.typeParameterCount; }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { ConstantIdentifierReference cir = other as ConstantIdentifierReference; return cir != null && this.identifier == cir.identifier && this.typeArguments == cir.typeArguments; }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { ConstantUnaryOperator uop = other as ConstantUnaryOperator; return uop != null && this.operatorType == uop.operatorType && this.expression == uop.expression; }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { PrimitiveConstantExpression scv = other as PrimitiveConstantExpression; return(scv != null && type == scv.type && value == scv.value); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { CSharpConstantValue cv = other as CSharpConstantValue; return cv != null && expression == cv.expression && parentUsingScope == cv.parentUsingScope && parentTypeDefinition == cv.parentTypeDefinition; }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { return(other is UnresolvedAttributeBlob o && attributeType == o.attributeType && ctorParameterTypes == o.ctorParameterTypes && BlobReader.BlobEquals(blob, o.blob)); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { // compare everything except for the IsFrozen flag return(other is DefaultUnresolvedParameter p && type == p.type && name == p.name && defaultValue == p.defaultValue && region == p.region && (flags & ~1) == (p.flags & ~1) && ListEquals(attributes, p.attributes)); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { var scv = other as IntConstantValue; return(scv != null && value == scv.value); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { ConstantArrayCreation cac = other as ConstantArrayCreation; return(cac != null && this.elementType == cac.elementType && this.arrayElements == cac.arrayElements); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { return(other is SimpleTypeOrNamespaceReference o && this.identifier == o.identifier && this.typeArguments == o.typeArguments && this.lookupMode == o.lookupMode); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { return(this == other); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { MemberReferenceSpec o = other as MemberReferenceSpec; return(o != null && symbolKind == o.symbolKind && typeReference == o.typeReference && name == o.name && parameterTypes == o.parameterTypes); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { DefaultParameter p = other as DefaultParameter; return p != null && type == p.type && attributes == p.attributes && defaultValue == p.defaultValue && region == p.region && flags == p.flags; }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { AttributeTypeReference atr = other as AttributeTypeReference; return(atr != null && this.withoutSuffix == atr.withoutSuffix && this.withSuffix == atr.withSuffix); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { NestedTypeReference o = other as NestedTypeReference; return(o != null && declaringTypeRef == o.declaringTypeRef && name == o.name && additionalTypeParameterCount == o.additionalTypeParameterCount); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { return(false); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { DefaultMemberReference o = other as DefaultMemberReference; return o != null && entityType == o.entityType && typeReference == o.typeReference && name == o.name && parameterTypes == o.parameterTypes; }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { PointerTypeReference o = other as PointerTypeReference; return(o != null && this.elementType == o.elementType); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { PrimitiveConstantExpression scv = other as PrimitiveConstantExpression; return scv != null && type == scv.type && value == scv.value; }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { GetClassTypeReference o = other as GetClassTypeReference; return(o != null && assembly == o.assembly && name == o.name && nameSpace == o.nameSpace && typeParameterCount == o.typeParameterCount); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { ConstantCheckedExpression cce = other as ConstantCheckedExpression; return cce != null && this.expression == cce.expression && this.checkForOverflow == cce.checkForOverflow; }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { return(other is SimpleConstantValue scv && type == scv.type && value == scv.value); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { ConstantConditionalOperator coo = other as ConstantConditionalOperator; return coo != null && this.condition == coo.condition && this.trueExpr == coo.trueExpr && this.falseExpr == coo.falseExpr; }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { ByReferenceTypeReference brt = other as ByReferenceTypeReference; return(brt != null && this.elementType == brt.elementType); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { ParameterizedTypeReference o = other as ParameterizedTypeReference; if (o != null && genericType == o.genericType && typeArguments.Length == o.typeArguments.Length) { for (int i = 0; i < typeArguments.Length; i++) { if (typeArguments[i] != o.typeArguments[i]) return false; } return true; } return false; }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { GetClassTypeReference o = other as GetClassTypeReference; return(o != null && assembly == o.assembly && fullTypeName == o.fullTypeName && isReferenceType == o.isReferenceType); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { SimpleConstantValue scv = other as SimpleConstantValue; return scv != null && type == scv.type && value == scv.value; }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { TypeOfConstantExpression o = other as TypeOfConstantExpression; return o != null && type == o.type; }
public override ISupportsInterning Intern(ISupportsInterning obj) { return(obj); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { AssemblyReferenceSpec o = other as AssemblyReferenceSpec; return(o != null && shortName == o.shortName); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { UnresolvedSecurityAttribute attr = other as UnresolvedSecurityAttribute; return(attr != null && index == attr.index && secDecl == attr.secDecl); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { GetClassTypeReference o = other as GetClassTypeReference; return o != null && assembly == o.assembly && fullTypeName == o.fullTypeName; }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { IncrementConstantValue o = other as IncrementConstantValue; return(o != null && baseValue == o.baseValue && incrementAmount == o.incrementAmount); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { SimpleConstantValue scv = other as SimpleConstantValue; return(scv != null && type == scv.type && value == scv.value); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { ConstantDefaultValue o = other as ConstantDefaultValue; return(o != null && this.type == o.type); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { DefaultAttribute a = other as DefaultAttribute; return a != null && attributeType == a.attributeType && positionalArguments == a.positionalArguments && namedArguments == a.namedArguments && region == a.region; }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { AttributeTypeReference atr = other as AttributeTypeReference; return atr != null && this.withoutSuffix == atr.withoutSuffix && this.withSuffix == atr.withSuffix; }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { PointerTypeReference o = other as PointerTypeReference; return o != null && this.elementType == o.elementType; }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { IncrementConstantValue o = other as IncrementConstantValue; return o != null && baseValue == o.baseValue && incrementAmount == o.incrementAmount; }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { DefaultUnresolvedAttribute o = other as DefaultUnresolvedAttribute; return o != null && attributeType == o.attributeType && constructorParameterTypes == o.constructorParameterTypes && positionalArguments == o.positionalArguments && ListEquals(namedArguments ?? EmptyList<KeyValuePair<IMemberReference, IConstantValue>>.Instance, o.namedArguments ?? EmptyList<KeyValuePair<IMemberReference, IConstantValue>>.Instance); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { ConstantCast cast = other as ConstantCast; return cast != null && this.targetType == cast.targetType && this.expression == cast.expression; }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { DefaultAssemblyReference o = other as DefaultAssemblyReference; return(o != null && shortName == o.shortName); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { ConstantMemberReference cmr = other as ConstantMemberReference; return cmr != null && this.targetType == cmr.targetType && this.targetExpression == cmr.targetExpression && this.memberName == cmr.memberName && this.typeArguments == cmr.typeArguments; }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { NestedTypeReference o = other as NestedTypeReference; return o != null && declaringTypeRef == o.declaringTypeRef && name == o.name && additionalTypeParameterCount == o.additionalTypeParameterCount; }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { ConstantDefaultValue o = other as ConstantDefaultValue; return o != null && this.type == o.type; }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { return false; }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { ConstantBinaryOperator bop = other as ConstantBinaryOperator; return bop != null && this.operatorType == bop.operatorType && this.left == bop.left && this.right == bop.right; }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { DefaultMemberReference o = other as DefaultMemberReference; return(o != null && entityType == o.entityType && typeReference == o.typeReference && name == o.name && parameterTypes == o.parameterTypes); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { ConstantArrayCreation cac = other as ConstantArrayCreation; return cac != null && this.elementType == cac.elementType && this.arrayElements == cac.arrayElements; }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { AliasNamespaceReference anr = other as AliasNamespaceReference; return(anr != null && this.identifier == anr.identifier); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { UnresolvedAttributeBlob o = other as UnresolvedAttributeBlob; return o != null && attributeType == o.attributeType && ctorParameterTypes == o.ctorParameterTypes && BlobReader.BlobEquals(blob, o.blob); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { ArrayTypeReference o = other as ArrayTypeReference; return(o != null && elementType == o.elementType && dimensions == o.dimensions); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { AliasNamespaceReference anr = other as AliasNamespaceReference; return anr != null && this.identifier == anr.identifier; }
/// <summary> /// Interns the specified object. /// /// If the object is freezable, it will be frozen. /// </summary> public abstract ISupportsInterning Intern(ISupportsInterning obj);
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { ArrayTypeReference o = other as ArrayTypeReference; return o != null && elementType == o.elementType && dimensions == o.dimensions; }
/// <summary> /// Interns the specified object. /// /// If the object is freezable, it will be frozen. /// </summary> public T Intern <T>(T obj) where T : class, ISupportsInterning { ISupportsInterning input = obj; return((T)Intern(input)); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { // compare everything except for the IsFrozen flag DefaultUnresolvedParameter p = other as DefaultUnresolvedParameter; return p != null && type == p.type && name == p.name && defaultValue == p.defaultValue && region == p.region && (flags & ~1) == (p.flags & ~1) && ListEquals(attributes, p.attributes); }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { DefaultExplicitInterfaceImplementation o = other as DefaultExplicitInterfaceImplementation; return(InterfaceType == o.InterfaceType && MemberName == o.MemberName); }