fix(tests): correctly serialize param name
This commit is contained in:
@@ -186,7 +186,7 @@ class MidasAstJsonSerializer(
|
|||||||
|
|
||||||
def _serialize_func_arg(self, arg: FunctionType.Argument) -> dict:
|
def _serialize_func_arg(self, arg: FunctionType.Argument) -> dict:
|
||||||
return {
|
return {
|
||||||
"name": arg.name,
|
"name": arg.name.lexeme if arg.name is not None else None,
|
||||||
"type": arg.type.accept(self),
|
"type": arg.type.accept(self),
|
||||||
"required": arg.required,
|
"required": arg.required,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user