Exemplo n.º 1
0
 public NonExternMethodSymbolNode(NodeFactory factory, MethodDesc method, bool isUnboxing)
     : base(isUnboxing ? UnboxingStubNode.GetMangledName(factory.NameMangler, method) :
            factory.NameMangler.GetMangledMethodName(method))
 {
     _isUnboxing = isUnboxing;
     _method     = method;
 }
Exemplo n.º 2
0
        public NonExternMethodSymbolNode(NodeFactory factory, MethodDesc method, bool isUnboxing)
            : base(isUnboxing ? UnboxingStubNode.GetMangledName(factory.NameMangler, method) :
                   factory.NameMangler.GetMangledMethodName(method))
        {
            _isUnboxing = isUnboxing;
            _method     = method;

            // Ensure all method bodies are fully canonicalized or not at all.
            Debug.Assert(!method.IsCanonicalMethod(CanonicalFormKind.Any) || (method.GetCanonMethodTarget(CanonicalFormKind.Specific) == method));
            Debug.Assert(!method.IsCanonicalMethod(CanonicalFormKind.Universal) || (method.GetCanonMethodTarget(CanonicalFormKind.Universal) == method));
        }
Exemplo n.º 3
0
 protected override sealed string GetNonImportedName(NameMangler nameMangler) => UnboxingStubNode.GetMangledName(nameMangler, Method);