Formatting

This commit is contained in:
Michael Miller 2019-12-08 15:11:23 -07:00
parent 0ae5cdc9ae
commit 4c9bbbe07b

View file

@ -2,17 +2,17 @@ module Spectator::Mocks
module TypeRegistry
extend self
alias Key = Tuple(String, Symbol)
alias Key = Tuple(String, Symbol)
@@entries = {} of Key => Deque(MethodStub)
def add(type_name : String, method_name : Symbol, source : Source, args : Arguments) : Nil
key = {type_name, method_name}
list = if @@entries.has_key?(key)
@@entries[key]
else
@@entries[key] = Deque(MethodStub).new
end
@@entries[key]
else
@@entries[key] = Deque(MethodStub).new
end
list << NilMethodStub.new(method_name, source, args)
end