Exemple #1
0
 void PushAnonymousClassContext(TypeRef baseType)
 {
     ClassContexts.Push(new ClassContext()
     {
         Name = new QualifiedName(Name.AnonymousClassName),
         Base = baseType
     });
 }
Exemple #2
0
 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
     });
 }
Exemple #3
0
 void PushAnonymousClassContext(TypeRef baseType)
 {
     ClassContexts.Push(new ClassContext()
     {
         Name       = new QualifiedName(Name.AnonymousClassName),
         Base       = baseType,
         Attributes = PhpMemberAttributes.None,
     });
 }
Exemple #4
0
 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,
     });
 }