Cci.ITypeReference Cci.ISignature.GetType(EmitContext context)
        {
            ByRefReturnErrorTypeSymbol byRefType = this.ReturnType as ByRefReturnErrorTypeSymbol;

            return(((PEModuleBuilder)context.Module).Translate(
                       (object)byRefType == null ? this.ReturnType : byRefType.ReferencedType,
                       syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNodeOpt,
                       diagnostics: context.Diagnostics));
        }
Example #2
0
        internal override bool Equals(TypeSymbol t2, bool ignoreCustomModifiers, bool ignoreDynamic)
        {
            if ((object)this == (object)t2)
            {
                return(true);
            }

            ByRefReturnErrorTypeSymbol other = t2 as ByRefReturnErrorTypeSymbol;

            return((object)other != null && _referencedType.Equals(other._referencedType, ignoreCustomModifiers, ignoreDynamic));
        }
Example #3
0
        internal override bool Equals(TypeSymbol t2, TypeCompareKind comparison)
        {
            if ((object)this == (object)t2)
            {
                return(true);
            }

            ByRefReturnErrorTypeSymbol other = t2 as ByRefReturnErrorTypeSymbol;

            return((object)other != null && _referencedType.Equals(other._referencedType, comparison) &&
                   ((comparison & TypeCompareKind.IgnoreCustomModifiersAndArraySizesAndLowerBounds) != 0 || _countOfCustomModifiersPrecedingByRef == other._countOfCustomModifiersPrecedingByRef));
        }
        internal override bool Equals(TypeSymbol t2, bool ignoreCustomModifiersAndArraySizesAndLowerBounds, bool ignoreDynamic)
        {
            if ((object)this == (object)t2)
            {
                return(true);
            }

            ByRefReturnErrorTypeSymbol other = t2 as ByRefReturnErrorTypeSymbol;

            return((object)other != null && _referencedType.Equals(other._referencedType, ignoreCustomModifiersAndArraySizesAndLowerBounds, ignoreDynamic) &&
                   (ignoreCustomModifiersAndArraySizesAndLowerBounds || _countOfCustomModifiersPrecedingByRef == other._countOfCustomModifiersPrecedingByRef));
        }