public static MessageContext Member(MessageContext parent, Global global, MemberRef memberRef) { return(new MessageContext (parent, memberRef.Loc, sb => CSTWriter.WithAppend(sb, global, WriterStyle.Debug, memberRef.Append))); }
public override CST.InvalidInfo ImplementableMemberRef(MessageContext ctxt, CST.RootEnvironment rootEnv, CST.MemberRef memberRef) { if (memberRef.DefiningType.Style(rootEnv) is CST.DelegateTypeStyle && memberRef.Name.Equals(".ctor", StringComparison.Ordinal)) { // SPECIAL CASE: Delegates are constructed by runtime, so assume .ctor is implementable return(null); } return(null); }
public static MessageContext Member(Global global, MemberRef memberRef) { return(Member(null, global, memberRef)); }