NewClassBuilder creates a new ClassBuilder with the specified name This is the entry point for building JavaScript classes
(name string)
| 144 | // NewClassBuilder creates a new ClassBuilder with the specified name |
| 145 | // This is the entry point for building JavaScript classes |
| 146 | func NewClassBuilder(name string) *ClassBuilder { |
| 147 | return &ClassBuilder{ |
| 148 | name: name, |
| 149 | methods: make([]MethodEntry, 0), |
| 150 | accessors: make([]AccessorEntry, 0), |
| 151 | properties: make([]PropertyEntry, 0), |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | // ============================================================================= |
| 156 | // CLASSBUILDER FLUENT API METHODS |
no outgoing calls