public virtual bool CheckAccessibility (InterfaceMemberBase member) { if (parameter_type == null) return true; return member.IsAccessibleAs (parameter_type); }
public void UpdateName (InterfaceMemberBase member) { SetMemberName (SetupName (prefix, member, Location)); }
public override bool CheckAccessibility (InterfaceMemberBase member) { return true; }
static MemberName SetupName (string prefix, InterfaceMemberBase member, Location loc) { return new MemberName (member.MemberName.Left, prefix + member.ShortName, member.MemberName.ExplicitInterface, loc); }
public AbstractPropertyEventMethod (InterfaceMemberBase member, string prefix, Attributes attrs, Location loc) : base (member.Parent, SetupName (prefix, member, loc), attrs) { this.prefix = prefix; }
public MethodData (InterfaceMemberBase member, Modifiers modifiers, MethodAttributes flags, IMethodData method, MethodBuilder builder, MethodSpec parent_method) : this (member, modifiers, flags, method) { this.builder = builder; this.parent_method = parent_method; }
public MethodData (InterfaceMemberBase member, Modifiers modifiers, MethodAttributes flags, IMethodData method) { this.member = member; this.modifiers = modifiers; this.flags = flags; this.method = method; }
/// <summary> /// Performs checks for an explicit interface implementation. First it /// checks whether the `interface_type' is a base inteface implementation. /// Then it checks whether `name' exists in the interface type. /// </summary> public bool VerifyImplements (InterfaceMemberBase mb) { var ifaces = spec.Interfaces; if (ifaces != null) { foreach (TypeSpec t in ifaces){ if (t == mb.InterfaceType) return true; } } Report.SymbolRelatedToPreviousError (mb.InterfaceType); Report.Error (540, mb.Location, "`{0}': containing type does not implement interface `{1}'", mb.GetSignatureForError (), TypeManager.CSharpName (mb.InterfaceType)); return false; }