1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 01:47:01 +03:00

Remove ty from Method and throw every part of a call signature into a list

This commit is contained in:
joshvera 2017-03-29 16:24:54 -04:00
parent 89f307edf0
commit b5f9938279
78 changed files with 290 additions and 190 deletions

View File

@ -89,10 +89,9 @@ algorithmWithTerms t1 t2 = maybe (linearly t1 t2) (fmap annotate) $ case (unwrap
S.Class <$> linearly identifierA identifierB
<*> byRWS clausesA clausesB
<*> byRWS expressionsA expressionsB
(S.Method identifierA receiverA tyA paramsA expressionsA, S.Method identifierB receiverB tyB paramsB expressionsB) -> Just $
(S.Method identifierA receiverA paramsA expressionsA, S.Method identifierB receiverB paramsB expressionsB) -> Just $
S.Method <$> linearly identifierA identifierB
<*> maybeLinearly receiverA receiverB
<*> maybeLinearly tyA tyB
<*> byRWS paramsA paramsB
<*> byRWS expressionsA expressionsB
(S.Function idA paramsA bodyA, S.Function idB paramsB bodyB) -> Just $

View File

@ -58,11 +58,11 @@ termAssignment source category children = case (category, children) of
(IncrementStatement, _) -> Just $ S.Leaf (toText source)
(DecrementStatement, _) -> Just $ S.Leaf (toText source)
(QualifiedIdentifier, _) -> Just $ S.Leaf (toText source)
(Method, [receiverParams, name, body]) -> Just (S.Method name (Just receiverParams) Nothing [] (toList (unwrap body)))
(Method, [receiverParams, name, body]) -> Just (S.Method name (Just receiverParams) [] (toList (unwrap body)))
(Method, [receiverParams, name, params, body])
-> Just (S.Method name (Just receiverParams) Nothing (toList (unwrap params)) (toList (unwrap body)))
-> Just (S.Method name (Just receiverParams) [params] (toList (unwrap body)))
(Method, [receiverParams, name, params, ty, body])
-> Just (S.Method name (Just receiverParams) (Just ty) (toList (unwrap params)) (toList (unwrap body)))
-> Just (S.Method name (Just receiverParams) [params, ty] (toList (unwrap body)))
_ -> Nothing
categoryForGoName :: Text -> Category

View File

@ -43,8 +43,8 @@ termAssignment _ category children
, Finally <- Info.category (extract finally)
-> Just $ S.Try [body] [catch] Nothing (Just finally)
(ArrayLiteral, _) -> Just $ S.Array Nothing children
(Method, [ identifier, params, exprs ]) -> Just $ S.Method identifier Nothing Nothing (toList (unwrap params)) (toList (unwrap exprs))
(Method, [ identifier, exprs ]) -> Just $ S.Method identifier Nothing Nothing [] (toList (unwrap exprs))
(Method, [ identifier, params, exprs ]) -> Just $ S.Method identifier Nothing [params] (toList (unwrap exprs))
(Method, [ identifier, exprs ]) -> Just $ S.Method identifier Nothing [] (toList (unwrap exprs))
(Class, [ identifier, superclass, definitions ]) -> Just $ S.Class identifier [superclass] (toList (unwrap definitions))
(Class, [ identifier, definitions ]) -> Just $ S.Class identifier [] (toList (unwrap definitions))
(Import, [ statements, identifier ] ) -> Just $ S.Import identifier (toList (unwrap statements))

View File

@ -67,15 +67,15 @@ termAssignment _ category children
(SingletonMethod, expr : methodName : rest)
| params : body <- rest
, Params <- Info.category (extract params)
-> Just $ S.Method methodName (Just expr) Nothing (toList (unwrap params)) body
-> Just $ S.Method methodName (Just expr) [params] body
| Identifier <- Info.category (extract methodName)
-> Just $ S.Method methodName (Just expr) Nothing [] rest
-> Just $ S.Method methodName (Just expr) [] rest
(Method, identifier : rest)
| params : body <- rest
, Params <- Info.category (extract params)
-> Just $ S.Method identifier Nothing Nothing (toList (unwrap params)) body
-> Just $ S.Method identifier Nothing [params] body
| otherwise
-> Just $ S.Method identifier Nothing Nothing [] rest
-> Just $ S.Method identifier Nothing [] rest
(Module, constant : body ) -> Just $ S.Module constant body
(Modifier Rescue, [lhs, rhs] ) -> Just $ S.Rescue [lhs] [rhs]
(Rescue, exceptions : exceptionVar : rest)

View File

@ -50,9 +50,12 @@ termAssignment _ category children =
, Finally <- Info.category (extract finally)
-> Just $ S.Try [body] [catch] Nothing (Just finally)
(ArrayLiteral, _) -> Just $ S.Array Nothing children
(Method, [ identifier, params, exprs ]) -> Just $ S.Method identifier Nothing Nothing (toList (unwrap params)) (toList (unwrap exprs))
(Method, [ identifier, exprs ]) -> Just $ S.Method identifier Nothing Nothing [] (toList (unwrap exprs))
(Class, identifier : rest) -> case Prologue.break (\x -> Info.category (extract x) == Other "class_body") rest of
(Method, children) -> case Prologue.break ((== ExpressionStatements) . Info.category . extract) children of
(prev, [body]) -> case span ((== Identifier) . Info.category . extract) prev of
([id], [callSignature]) -> Just $ S.Method id Nothing (toList (unwrap callSignature)) (toList (unwrap body))
_ -> Nothing -- No identifier found or callSignature found.
_ -> Nothing -- No body found.``
(Class, identifier : rest) -> case Prologue.break ((== Other "class_body") . Info.category . extract) rest of
(clauses, [ definitions ]) -> Just $ S.Class identifier clauses (toList (unwrap definitions))
_ -> Nothing
(Module, [ identifier, definitions ]) -> Just $ S.Module identifier (toList (unwrap definitions))

View File

@ -103,8 +103,8 @@ syntaxToTermField syntax = case syntax of
Fixed c -> childrenFields c
S.FunctionCall identifier typeParameters parameters -> [ "identifier" .= identifier ] <> [ "typeArguments" .= typeParameters] <> [ "parameters" .= parameters ]
S.Ternary expression cases -> [ "expression" .= expression ] <> [ "cases" .= cases ]
S.AnonymousFunction parameters c -> [ "parameters" .= parameters ] <> childrenFields c
S.Function identifier parameters c -> [ "identifier" .= identifier ] <> [ "parameters" .= parameters ] <> childrenFields c
S.AnonymousFunction callSignature c -> [ "callSignature" .= callSignature ] <> childrenFields c
S.Function identifier callSignature c -> [ "identifier" .= identifier ] <> [ "callSignature" .= callSignature ] <> childrenFields c
S.Assignment assignmentId value -> [ "identifier" .= assignmentId ] <> [ "value" .= value ]
S.OperatorAssignment identifier value -> [ "identifier" .= identifier ] <> [ "value" .= value ]
S.MemberAccess identifier value -> [ "identifier" .= identifier ] <> [ "value" .= value ]
@ -129,7 +129,7 @@ syntaxToTermField syntax = case syntax of
S.Try body catchExpression elseExpression finallyExpression -> [ "body" .= body ] <> [ "catchExpression" .= catchExpression ] <> [ "elseExpression" .= elseExpression ] <> [ "finallyExpression" .= finallyExpression ]
S.Array ty c -> [ "type" .= ty ] <> childrenFields c
S.Class identifier superclass definitions -> [ "identifier" .= identifier ] <> [ "superclass" .= superclass ] <> [ "definitions" .= definitions ]
S.Method identifier receiver ty parameters definitions -> [ "identifier" .= identifier ] <> [ "receiver" .= receiver ] <> [ "type" .= ty ] <> [ "parameters" .= parameters ] <> [ "definitions" .= definitions ]
S.Method identifier receiver callSignature definitions -> [ "identifier" .= identifier ] <> [ "receiver" .= receiver ] <> [ "callSignature" .= callSignature ] <> [ "definitions" .= definitions ]
S.If expression clauses -> [ "expression" .= expression ] <> childrenFields clauses
S.Module identifier definitions -> [ "identifier" .= identifier ] <> [ "definitions" .= definitions ]
S.Namespace identifier definitions -> [ "identifier" .= identifier ] <> [ "definitions" .= definitions ]

View File

@ -269,8 +269,8 @@ toTermName source term = case unwrap term of
S.Select clauses -> termNameFromChildren term clauses
S.Array ty _ -> maybe (termNameFromSource term) termNameFromSource ty
S.Class identifier _ _ -> toTermName' identifier
S.Method identifier (Just receiver) _ args _ -> termNameFromSource receiver <> "." <> toTermName' identifier <> paramsToArgNames args
S.Method identifier Nothing _ args _ -> toTermName' identifier <> paramsToArgNames args
S.Method identifier (Just receiver) args _ -> termNameFromSource receiver <> "." <> toTermName' identifier <> paramsToArgNames args
S.Method identifier Nothing args _ -> toTermName' identifier <> paramsToArgNames args
S.Comment a -> toS a
S.Commented _ _ -> termNameFromChildren term (toList $ unwrap term)
S.Module identifier _ -> toTermName' identifier

View File

@ -166,8 +166,8 @@ termToDiffInfo source term = case unwrap term of
toTermName :: forall leaf fields. DefaultFields fields => Int -> Source -> SyntaxTerm leaf fields -> Text
toTermName parentOffset parentSource term = case unwrap term of
S.Function identifier _ _ -> toTermName' identifier
S.Method identifier Nothing _ _ _ -> toTermName' identifier
S.Method identifier (Just receiver) _ _ _ -> case unwrap receiver of
S.Method identifier Nothing _ _ -> toTermName' identifier
S.Method identifier (Just receiver) _ _ -> case unwrap receiver of
S.Indexed [receiverParams] -> case unwrap receiverParams of
S.ParameterDecl (Just ty) _ -> "(" <> toTermName' ty <> ") " <> toTermName' identifier
_ -> toMethodNameWithReceiver receiver identifier

View File

@ -73,8 +73,8 @@ data Syntax a f
| Array (Maybe f) [f]
-- | A class with an identifier, superclass, and a list of definitions.
| Class f [f] [f]
-- | A method definition with an identifier, optional receiver, optional return type, params, and a list of expressions.
| Method f (Maybe f) (Maybe f) [f] [f]
-- | A method definition with an identifier, optional receiver, optional type arguments, params, optional return type, and a list of expressions.
| Method f (Maybe f) [f] [f]
-- | An if statement with an expression and maybe more expression clauses.
| If f [f]
-- | A module with an identifier, and a list of syntaxes.
@ -148,7 +148,7 @@ instance Listable2 Syntax where
\/ liftCons4 (liftTiers recur) (liftTiers recur) (liftTiers recur) (liftTiers recur) Try
\/ liftCons2 (liftTiers recur) (liftTiers recur) Syntax.Array
\/ liftCons3 recur (liftTiers recur) (liftTiers recur) Class
\/ liftCons5 recur (liftTiers recur) (liftTiers recur) (liftTiers recur) (liftTiers recur) Method
\/ liftCons4 recur (liftTiers recur) (liftTiers recur) (liftTiers recur) Method
\/ liftCons2 recur (liftTiers recur) If
\/ liftCons2 recur (liftTiers recur) Module
\/ liftCons2 recur (liftTiers recur) Namespace

View File

@ -10,7 +10,8 @@
(ParameterDecl
(Identifier)
(Identifier)))
(Identifier)
(ParameterDecl
(Identifier)
(Identifier))))+}
(Args
(ParameterDecl
(Identifier)
(Identifier)))
(Identifier)))+}

View File

@ -10,7 +10,8 @@
(ParameterDecl
(Identifier)
(Identifier)))
(Identifier)
(ParameterDecl
(Identifier)
(Identifier))))+}
(Args
(ParameterDecl
(Identifier)
(Identifier)))
(Identifier)))+}

View File

@ -10,7 +10,8 @@
(ParameterDecl
(Identifier)
(Identifier)))
(Identifier)
(ParameterDecl
(Identifier)
(Identifier))))-}
(Args
(ParameterDecl
(Identifier)
(Identifier)))
(Identifier)))-}

View File

@ -10,7 +10,8 @@
(ParameterDecl
(Identifier)
(Identifier)))
(Identifier)
(ParameterDecl
(Identifier)
(Identifier))))-}
(Args
(ParameterDecl
(Identifier)
(Identifier)))
(Identifier)))-}

View File

@ -11,8 +11,9 @@
{ (Identifier)
->(Identifier) }
(Identifier)))
(Identifier)
(ParameterDecl
{ (Identifier)
->(Identifier) }
(Identifier))))
(Args
(ParameterDecl
{ (Identifier)
->(Identifier) }
(Identifier)))
(Identifier)))

View File

@ -11,8 +11,9 @@
{ (Identifier)
->(Identifier) }
(Identifier)))
(Identifier)
(ParameterDecl
{ (Identifier)
->(Identifier) }
(Identifier))))
(Args
(ParameterDecl
{ (Identifier)
->(Identifier) }
(Identifier)))
(Identifier)))

View File

@ -10,7 +10,8 @@
(ParameterDecl
(Identifier)
(Identifier)))
(Identifier)
(ParameterDecl
(Identifier)
(Identifier))))
(Args
(ParameterDecl
(Identifier)
(Identifier)))
(Identifier)))

View File

@ -10,7 +10,8 @@
(ParameterDecl
(Identifier)
(Identifier)))
(Identifier)
(ParameterDecl
(Identifier)
(Identifier))))
(Args
(ParameterDecl
(Identifier)
(Identifier)))
(Identifier)))

View File

@ -6,16 +6,19 @@
(NumberLiteral))
(Method
(Identifier)
(Identifier)
(Params
(Identifier))
(Return
(Identifier)))
(Method
(Identifier)
(Identifier)
(Params
(Identifier))
(Return
(Identifier)))
(Method
(Identifier)
(Identifier)
(Params
(Identifier))
(Return
(Identifier)))))+}

View File

@ -3,16 +3,19 @@
(Identifier)
(Method
(Identifier)
(Identifier)
(Params
(Identifier))
(Return
(Identifier)))
(Method
(Identifier)
(Identifier)
(Params
(Identifier))
(Return
(Identifier)))
(Method
(Identifier)
(Identifier)
(Params
(Identifier))
(Return
(Identifier)))))+}

View File

@ -6,16 +6,19 @@
(NumberLiteral))
(Method
(Identifier)
(Identifier)
(Params
(Identifier))
(Return
(Identifier)))
(Method
(Identifier)
(Identifier)
(Params
(Identifier))
(Return
(Identifier)))
(Method
(Identifier)
(Identifier)
(Params
(Identifier))
(Return
(Identifier)))))-}

View File

@ -3,16 +3,19 @@
(Identifier)
(Method
(Identifier)
(Identifier)
(Params
(Identifier))
(Return
(Identifier)))
(Method
(Identifier)
(Identifier)
(Params
(Identifier))
(Return
(Identifier)))
(Method
(Identifier)
(Identifier)
(Params
(Identifier))
(Return
(Identifier)))))-}

View File

@ -3,17 +3,20 @@
(Identifier)
{+(Method
(Identifier)
(Identifier)
(Params
(Identifier))
(Return
(Identifier)))+}
{+(Method
(Identifier)
(Identifier)
(Params
(Identifier))
(Return
(Identifier)))+}
{+(Method
(Identifier)
(Identifier)
(Params
(Identifier))
(Return
(Identifier)))+}
{-(Assignment
@ -21,16 +24,19 @@
(NumberLiteral))-}
{-(Method
(Identifier)
(Identifier)
(Params
(Identifier))
(Return
(Identifier)))-}
{-(Method
(Identifier)
(Identifier)
(Params
(Identifier))
(Return
(Identifier)))-}
{-(Method
(Identifier)
(Identifier)
(Params
(Identifier))
(Return
(Identifier)))-}))

View File

@ -7,18 +7,21 @@
(Method
{ (Identifier)
->(Identifier) }
(Identifier)
(Params
(Identifier))
(Return
(Identifier)))
(Method
{ (Identifier)
->(Identifier) }
(Identifier)
(Params
(Identifier))
(Return
(Identifier)))
(Method
{ (Identifier)
->(Identifier) }
(Identifier)
(Params
(Identifier))
(Return
(Identifier)))))

View File

@ -6,16 +6,19 @@
(NumberLiteral))
(Method
(Identifier)
(Identifier)
(Params
(Identifier))
(Return
(Identifier)))
(Method
(Identifier)
(Identifier)
(Params
(Identifier))
(Return
(Identifier)))
(Method
(Identifier)
(Identifier)
(Params
(Identifier))
(Return
(Identifier)))))

View File

@ -3,16 +3,19 @@
(Identifier)
(Method
(Identifier)
(Identifier)
(Params
(Identifier))
(Return
(Identifier)))
(Method
(Identifier)
(Identifier)
(Params
(Identifier))
(Return
(Identifier)))
(Method
(Identifier)
(Identifier)
(Params
(Identifier))
(Return
(Identifier)))))

View File

@ -3,8 +3,9 @@
(Object
(Method
(Identifier)
(Identifier)
(Identifier)
(Params
(Identifier)
(Identifier))
(Return
(MathOperator
(Identifier)

View File

@ -3,8 +3,9 @@
(Object
(Method
(Identifier)
(Identifier)
(Identifier)
(Params
(Identifier)
(Identifier))
(Return
(MathOperator
(Identifier)

View File

@ -3,8 +3,9 @@
(Object
(Method
(Identifier)
(Identifier)
(Identifier)
(Params
(Identifier)
(Identifier))
(Return
(MathOperator
(Identifier)

View File

@ -3,8 +3,9 @@
(Object
(Method
(Identifier)
(Identifier)
(Identifier)
(Params
(Identifier)
(Identifier))
(Return
(MathOperator
(Identifier)

View File

@ -2,11 +2,14 @@
(ExpressionStatements
(Object
(Method
{ (Identifier) -> (Identifier) }
(Identifier)
(Identifier)
{ (Identifier)
->(Identifier) }
(Params
(Identifier)
(Identifier))
(Return
(MathOperator
(Identifier)
{ (Other "+") -> (Other "-") }
{ (Other "+")
->(Other "-") }
(Identifier)))))))

View File

@ -2,11 +2,14 @@
(ExpressionStatements
(Object
(Method
{ (Identifier) -> (Identifier) }
(Identifier)
(Identifier)
{ (Identifier)
->(Identifier) }
(Params
(Identifier)
(Identifier))
(Return
(MathOperator
(Identifier)
{ (Other "-") -> (Other "+") }
{ (Other "-")
->(Other "+") }
(Identifier)))))))

View File

@ -3,8 +3,9 @@
(Object
(Method
(Identifier)
(Identifier)
(Identifier)
(Params
(Identifier)
(Identifier))
(Return
(MathOperator
(Identifier)

View File

@ -3,8 +3,9 @@
(Object
(Method
(Identifier)
(Identifier)
(Identifier)
(Params
(Identifier)
(Identifier))
(Return
(MathOperator
(Identifier)

View File

@ -1,3 +1,4 @@
{+(Program
(Method
(Identifier)))+}
(Identifier)
(Params)))+}

View File

@ -1,6 +1,7 @@
{+(Program
(Method
(Identifier)
(KeywordParameter
(Identifier)
(Identifier))))+}
(Params
(KeywordParameter
(Identifier)
(Identifier)))))+}

View File

@ -1,3 +1,4 @@
{-(Program
(Method
(Identifier)))-}
(Identifier)
(Params)))-}

View File

@ -1,6 +1,7 @@
{-(Program
(Method
(Identifier)
(KeywordParameter
(Identifier)
(Identifier))))-}
(Params
(KeywordParameter
(Identifier)
(Identifier)))))-}

View File

@ -1,6 +1,8 @@
(Program
(Method
(Identifier)
{+(KeywordParameter
(Identifier)
(Identifier))+}))
{ (Params)
->(Params
(KeywordParameter
(Identifier)
(Identifier))) }))

View File

@ -1,6 +1,8 @@
(Program
(Method
(Identifier)
{-(KeywordParameter
(Identifier)
(Identifier))-}))
{ (Params
(KeywordParameter
(Identifier)
(Identifier)))
->(Params) }))

View File

@ -1,3 +1,4 @@
(Program
(Method
(Identifier)))
(Identifier)
(Params)))

View File

@ -1,6 +1,7 @@
(Program
(Method
(Identifier)
(KeywordParameter
(Identifier)
(Identifier))))
(Params
(KeywordParameter
(Identifier)
(Identifier)))))

View File

@ -1,3 +1,4 @@
{+(Program
(Method
(Identifier)))+}
(Identifier)
(Params)))+}

View File

@ -1,6 +1,7 @@
{+(Program
(Method
(Identifier)
(OptionalParameter
(Identifier)
(Identifier))))+}
(Params
(OptionalParameter
(Identifier)
(Identifier)))))+}

View File

@ -1,3 +1,4 @@
{-(Program
(Method
(Identifier)))-}
(Identifier)
(Params)))-}

View File

@ -1,6 +1,7 @@
{-(Program
(Method
(Identifier)
(OptionalParameter
(Identifier)
(Identifier))))-}
(Params
(OptionalParameter
(Identifier)
(Identifier)))))-}

View File

@ -1,6 +1,8 @@
(Program
(Method
(Identifier)
{+(OptionalParameter
(Identifier)
(Identifier))+}))
{ (Params)
->(Params
(OptionalParameter
(Identifier)
(Identifier))) }))

View File

@ -1,6 +1,8 @@
(Program
(Method
(Identifier)
{-(OptionalParameter
(Identifier)
(Identifier))-}))
{ (Params
(OptionalParameter
(Identifier)
(Identifier)))
->(Params) }))

View File

@ -1,3 +1,4 @@
(Program
(Method
(Identifier)))
(Identifier)
(Params)))

View File

@ -1,6 +1,7 @@
(Program
(Method
(Identifier)
(OptionalParameter
(Identifier)
(Identifier))))
(Params
(OptionalParameter
(Identifier)
(Identifier)))))

View File

@ -1,4 +1,5 @@
{+(Program
(Method
(Identifier)
(Identifier)))+}
(Params
(Identifier))))+}

View File

@ -1,6 +1,7 @@
{+(Program
(Method
(Identifier)
(Identifier)
(Identifier)
(Identifier)))+}
(Params
(Identifier)
(Identifier)
(Identifier))))+}

View File

@ -1,4 +1,5 @@
{-(Program
(Method
(Identifier)
(Identifier)))-}
(Params
(Identifier))))-}

View File

@ -1,6 +1,7 @@
{-(Program
(Method
(Identifier)
(Identifier)
(Identifier)
(Identifier)))-}
(Params
(Identifier)
(Identifier)
(Identifier))))-}

View File

@ -1,6 +1,7 @@
(Program
(Method
(Identifier)
(Identifier)
{+(Identifier)+}
{+(Identifier)+}))
(Params
(Identifier)
{+(Identifier)+}
{+(Identifier)+})))

View File

@ -1,6 +1,7 @@
(Program
(Method
(Identifier)
(Identifier)
{-(Identifier)-}
{-(Identifier)-}))
(Params
(Identifier)
{-(Identifier)-}
{-(Identifier)-})))

View File

@ -1,4 +1,5 @@
(Program
(Method
(Identifier)
(Identifier)))
(Params
(Identifier))))

View File

@ -1,6 +1,7 @@
(Program
(Method
(Identifier)
(Identifier)
(Identifier)
(Identifier)))
(Params
(Identifier)
(Identifier)
(Identifier))))

View File

@ -1,3 +1,4 @@
{+(Program
(Method
(Identifier)))+}
(Identifier)
(Params)))+}

View File

@ -1,5 +1,6 @@
{+(Program
(Method
(Identifier)
(KeywordParameter
(Identifier))))+}
(Params
(KeywordParameter
(Identifier)))))+}

View File

@ -1,3 +1,4 @@
{-(Program
(Method
(Identifier)))-}
(Identifier)
(Params)))-}

View File

@ -1,5 +1,6 @@
{-(Program
(Method
(Identifier)
(KeywordParameter
(Identifier))))-}
(Params
(KeywordParameter
(Identifier)))))-}

View File

@ -1,5 +1,7 @@
(Program
(Method
(Identifier)
{+(KeywordParameter
(Identifier))+}))
{ (Params)
->(Params
(KeywordParameter
(Identifier))) }))

View File

@ -1,5 +1,7 @@
(Program
(Method
(Identifier)
{-(KeywordParameter
(Identifier))-}))
{ (Params
(KeywordParameter
(Identifier)))
->(Params) }))

View File

@ -1,3 +1,4 @@
(Program
(Method
(Identifier)))
(Identifier)
(Params)))

View File

@ -1,5 +1,6 @@
(Program
(Method
(Identifier)
(KeywordParameter
(Identifier))))
(Params
(KeywordParameter
(Identifier)))))

View File

@ -1,4 +1,5 @@
{+(Program
(Method
(Identifier)
(Identifier)))+}
(Params
(Identifier))))+}

View File

@ -1,5 +1,6 @@
{+(Program
(Method
(Identifier)
(Identifier)
(HashSplatParameter)))+}
(Params
(Identifier)
(HashSplatParameter))))+}

View File

@ -1,4 +1,5 @@
{-(Program
(Method
(Identifier)
(Identifier)))-}
(Params
(Identifier))))-}

View File

@ -1,5 +1,6 @@
{-(Program
(Method
(Identifier)
(Identifier)
(HashSplatParameter)))-}
(Params
(Identifier)
(HashSplatParameter))))-}

View File

@ -1,5 +1,6 @@
(Program
(Method
(Identifier)
(Identifier)
{+(HashSplatParameter)+}))
(Params
(Identifier)
{+(HashSplatParameter)+})))

View File

@ -1,5 +1,6 @@
(Program
(Method
(Identifier)
(Identifier)
{-(HashSplatParameter)-}))
(Params
(Identifier)
{-(HashSplatParameter)-})))

View File

@ -1,4 +1,5 @@
(Program
(Method
(Identifier)
(Identifier)))
(Params
(Identifier))))

View File

@ -1,5 +1,6 @@
(Program
(Method
(Identifier)
(Identifier)
(HashSplatParameter)))
(Params
(Identifier)
(HashSplatParameter))))

View File

@ -1,5 +1,6 @@
{+(Program
(Method
(Identifier)
(Identifier)
(Params
(Identifier))
(Identifier)))+}

View File

@ -1,5 +1,6 @@
{-(Program
(Method
(Identifier)
(Identifier)
(Params
(Identifier))
(Identifier)))-}

View File

@ -2,5 +2,6 @@
(Method
{ (Identifier)
->(Identifier) }
{+(Identifier)+}
{+(Params
(Identifier))+}
{+(Identifier)+}))

View File

@ -2,5 +2,6 @@
(Method
{ (Identifier)
->(Identifier) }
{-(Identifier)-}
{-(Params
(Identifier))-}
{-(Identifier)-}))

View File

@ -1,5 +1,6 @@
(Program
(Method
(Identifier)
(Identifier)
(Params
(Identifier))
(Identifier)))