void PushAnonymousClassContext(TypeRef baseType) { ClassContexts.Push(new ClassContext() { Name = new QualifiedName(Name.AnonymousClassName), Base = baseType }); }
void PushClassContext(string name, TypeRef baseType) { ClassContexts.Push(new ClassContext() { Name = new QualifiedName(new Name(name), namingContext.CurrentNamespace.HasValue ? namingContext.CurrentNamespace.Value.Namespaces : Name.EmptyNames), Base = baseType }); }
void PushAnonymousClassContext(TypeRef baseType) { ClassContexts.Push(new ClassContext() { Name = new QualifiedName(Name.AnonymousClassName), Base = baseType, Attributes = PhpMemberAttributes.None, }); }
void PushClassContext(string name, TypeRef baseType, PhpMemberAttributes attrs) { ClassContexts.Push(new ClassContext() { Name = new QualifiedName(new Name(name), namingContext.CurrentNamespace.HasValue ? namingContext.CurrentNamespace.Value.Namespaces : Name.EmptyNames), Base = baseType, Attributes = attrs, }); }