Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Cosmetics: use same order of method definitions
  • Loading branch information
lizmat committed Feb 10, 2016
1 parent b2e57f6 commit a68d91c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/Hash.pm
Expand Up @@ -35,6 +35,11 @@ my class Hash { # declared in BOOTSTRAP
)
}

method STORE_AT_KEY(\key, Mu \x --> Nil) {
nqp::findmethod(Map,'STORE_AT_KEY')(self,key,
nqp::p6scalarfromdesc($!descriptor) = x)
}

multi method ASSIGN-KEY(Hash:D: Str:D \key, Mu \assignval) is raw {
nqp::bindattr(self,Map,'$!storage',nqp::hash)
unless nqp::defined(nqp::getattr(self,Map,'$!storage'));
Expand Down Expand Up @@ -117,11 +122,6 @@ my class Hash { # declared in BOOTSTRAP
self.DUMP-OBJECT-ATTRS($attrs, :$indent-step, :%ctx);
}

method STORE_AT_KEY(\key, Mu \x --> Nil) {
nqp::findmethod(Map,'STORE_AT_KEY')(self,key,
nqp::p6scalarfromdesc($!descriptor) = x)
}

# introspection
method name() {
nqp::isnull($!descriptor) ?? Nil !! $!descriptor.name
Expand Down

0 comments on commit a68d91c

Please sign in to comment.