-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Currently we treat each file that has MODULE defined as a class with the class name == _MODULE
- We want to add the option to detect Moonscript class and make it the package/module name>
- We need to support the syntax of Mooscript classes
- class example extends parent --> example::parent
- Fall back to a default class/package name (Preferred project name)
sub _SwitchModule
{
my $self = shift;
my $module = shift;
$self->{'_sCurrentModule'} = $module;
if (!exists $self->{'_hData'}->{'module'}->{$module})
{
push(@{$self->{'_hData'}->{'module'}->{'moduleorder'}}, $module);
$self->{'_hData'}->{'module'}->{$module} = {
modulename => $module, # Should default to project name.
inherits => [],
attributeorder => [],
subroutineorder => [],
};
}
return $self->{'_hData'}->{'module'}->{$module};
}
- Methods outside the class will be considered as private class methods :
# this should be considered as private method under example class
outsideMethod = () ->
class example extends parent
new: (...) =>
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request