Welcome to mirror list, hosted at ThFree Co, Russian Federation.

SignatureVariable.Canon.cs « Canon « TypeSystem « Common « tools « coreclr « src - github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2e76e9eed0677f447060338519eb44d424cac9a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using Debug = System.Diagnostics.Debug;

namespace Internal.TypeSystem
{
    // Implements canonicalization of generic type parameters
    partial class SignatureTypeVariable
    {
        public override bool IsCanonicalSubtype(CanonicalFormKind policy)
        {
            Debug.Fail("IsCanonicalSubtype of an indefinite type");
            return false;
        }

        protected override TypeDesc ConvertToCanonFormImpl(CanonicalFormKind kind)
        {
            Debug.Fail("ConvertToCanonFormImpl for an indefinite type");
            return this;
        }
    }

    // Implements canonicalization of generic method parameters
    partial class SignatureMethodVariable
    {
        public override bool IsCanonicalSubtype(CanonicalFormKind policy)
        {
            Debug.Fail("IsCanonicalSubtype of an indefinite type");
            return false;
        }

        protected override TypeDesc ConvertToCanonFormImpl(CanonicalFormKind kind)
        {
            Debug.Fail("ConvertToCanonFormImpl for an indefinite type");
            return this;
        }
    }
}