public NonExternMethodSymbolNode(NodeFactory factory, MethodDesc method, bool isUnboxing) : base(isUnboxing ? UnboxingStubNode.GetMangledName(factory.NameMangler, method) : factory.NameMangler.GetMangledMethodName(method)) { _isUnboxing = isUnboxing; _method = method; }
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)); }
protected override sealed string GetNonImportedName(NameMangler nameMangler) => UnboxingStubNode.GetMangledName(nameMangler, Method);