コード例 #1
0
 protected override NamedTypeSymbol WithTupleDataCore(TupleExtraData newData)
 => throw new NotImplementedException();
コード例 #2
0
 protected override NamedTypeSymbol WithTupleDataCore(TupleExtraData newData)
 => throw ExceptionUtilities.Unreachable;
コード例 #3
0
        internal ConstructedNamedTypeSymbol(NamedTypeSymbol constructedFrom, ImmutableArray <TypeWithAnnotations> typeArgumentsWithAnnotations, bool unbound = false, TupleExtraData tupleData = null)
            : base(newContainer: constructedFrom.ContainingSymbol,
                   map: new TypeMap(constructedFrom.ContainingType, constructedFrom.OriginalDefinition.TypeParameters, typeArgumentsWithAnnotations),
                   originalDefinition: constructedFrom.OriginalDefinition,
                   constructedFrom: constructedFrom, unbound: unbound, tupleData: tupleData)
        {
            _typeArgumentsWithAnnotations = typeArgumentsWithAnnotations;
            _constructedFrom = constructedFrom;

            Debug.Assert(constructedFrom.Arity == typeArgumentsWithAnnotations.Length);
            Debug.Assert(constructedFrom.Arity != 0);
        }
コード例 #4
0
ファイル: ErrorTypeSymbol.cs プロジェクト: metascheme/roslyn
 protected override NamedTypeSymbol WithTupleDataCore(TupleExtraData newData)
 {
     return(new ConstructedErrorTypeSymbol(_constructedFrom, _typeArgumentsWithAnnotations, tupleData: newData));
 }
コード例 #5
0
 protected override NamedTypeSymbol WithTupleDataCore(TupleExtraData newData)
 {
     return(new UnboundArgumentErrorTypeSymbol(_name, _errorInfo, newData));
 }
コード例 #6
0
 protected override NamedTypeSymbol WithTupleDataCore(TupleExtraData newData)
 {
     return(new NoPiaIllegalGenericInstantiationSymbol(_exposingModule, _underlyingSymbol));
 }
コード例 #7
0
 protected override NamedTypeSymbol WithTupleDataCore(TupleExtraData newData)
 {
     return(new RetargetingNamedTypeSymbol(_retargetingModule, _underlyingType, newData));
 }
コード例 #8
0
        public RetargetingNamedTypeSymbol(RetargetingModuleSymbol retargetingModule, NamedTypeSymbol underlyingType, TupleExtraData tupleData = null)
            : base(underlyingType, tupleData)
        {
            Debug.Assert((object)retargetingModule != null);
            Debug.Assert(!(underlyingType is RetargetingNamedTypeSymbol));

            _retargetingModule = retargetingModule;
        }
コード例 #9
0
 protected override NamedTypeSymbol WithTupleDataCore(TupleExtraData newData)
 {
     return(new NoPiaMissingCanonicalTypeSymbol(_embeddingAssembly, _fullTypeName, _guid, _scope, _identifier, newData));
 }