/// <summary> /// Visit type members. /// </summary> /// <param name="x"></param> virtual public void VisitTypeDecl(TypeDecl x) { foreach (TypeMemberDecl t in x.Members) { VisitElement(t); } }
/// <summary> /// Gets type mask corresponding to <c>self</c> with <c>includesSubclasses</c> flag set whether type is not final. /// </summary> private TypeRefMask GetTypeCtxMask(AST.TypeDecl typeCtx) { if (typeCtx != null) { var typeIsFinal = (typeCtx.MemberAttributes & PhpMemberAttributes.Final) != 0; return(GetTypeMask(new ClassTypeRef(NameUtils.MakeQualifiedName(typeCtx)), !typeIsFinal)); } else { return(TypeRefMask.AnyType); } }