예제 #1
0
        static IUnresolvedMethod CreateDummyConstructor()
        {
            var m = new DefaultUnresolvedMethod
            {
                SymbolKind    = SymbolKind.Constructor,
                Name          = ".ctor",
                Accessibility = Accessibility.Public,
                IsSynthetic   = true,
                ReturnType    = KnownTypeReference.Void
            };

            m.Freeze();
            return(m);
        }
예제 #2
0
 public DefaultResolvedMethod(DefaultUnresolvedMethod unresolved, ITypeResolveContext parentContext)
     : this(unresolved, parentContext, unresolved.IsExtensionMethod)
 {
 }