示例#1
0
 public override object VisitDynamicType(DynamicTypeSymbol symbol, StringBuilder builder)
 {
     // NOTE: Unlike dev11, roslyn allows "dynamic" in parameter types.  However, it still
     // does not allow direct references to "dynamic" (because "dynamic" is only a candidate
     // in type-only contexts).  Therefore, if you ask the dynamic type for its doc comment
     // ID, it should return null.
     return(DefaultVisit(symbol, builder));
 }
            public override object VisitDynamicType(DynamicTypeSymbol symbol, StringBuilder builder)
            {
                // NOTE: this is a change from dev11, which did not allow dynamic in parameter types.
                // If we wanted to be really conservative, we would actually visit the symbol for
                // System.Object.  However, the System.Object type must always have exactly this
                // doc comment ID, so the hassle seems unjustifiable.
                builder.Append("System.Object");

                return(null);
            }
 public override Symbol VisitDynamicType(DynamicTypeSymbol symbol)
 {
     return(_systemObject);
 }
 public override Symbol VisitDynamicType(DynamicTypeSymbol symbol)
 {
     return(_otherAssembly.GetSpecialType(SpecialType.System_Object));
 }
示例#5
0
 public virtual void VisitDynamicType(DynamicTypeSymbol symbol)
 {
     DefaultVisit(symbol);
 }
示例#6
0
 public virtual TResult VisitDynamicType(DynamicTypeSymbol symbol, TArgument argument)
 {
     return(DefaultVisit(symbol, argument));
 }
示例#7
0
 public virtual TResult VisitDynamicType(DynamicTypeSymbol symbol)
 {
     return(DefaultVisit(symbol));
 }
示例#8
0
        internal override object VisitDynamicType(DynamicTypeSymbol symbol, ArrayBuilder <SymbolDescriptionPart> builder)
        {
            AddKeyword(SyntaxKind.DynamicKeyword, builder);

            return(null);
        }
 internal override Microsoft.Cci.IReference VisitDynamicType(DynamicTypeSymbol symbol, bool a)
 {
     throw new NotImplementedException();
 }
示例#10
0
 internal override Microsoft.Cci.IReference VisitDynamicType(DynamicTypeSymbol symbol, bool a)
 {
     throw new NotImplementedException();
 }
        internal override object VisitDynamicType(DynamicTypeSymbol symbol, ArrayBuilder<SymbolDescriptionPart> builder)
        {
            AddKeyword(SyntaxKind.DynamicKeyword, builder);

            return null;
        }
 public override Symbol VisitDynamicType(DynamicTypeSymbol symbol, RetargetOptions argument)
 {
     // TODO(cyrusn): What's the right thing to do here?
     return(symbol);
 }