예제 #1
0
 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)));
 }
예제 #2
0
        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);
        }
예제 #3
0
 public static MessageContext Member(Global global, MemberRef memberRef)
 {
     return(Member(null, global, memberRef));
 }