Skip to content

Commit

Permalink
Return back debug schema prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
MatwayBurkow committed Mar 15, 2023
1 parent d7ce7cd commit ead528b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions debugWriter.mpl
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@ getDbgSchemaNameType: [

resultDBG "" = [
mplStruct.fields.size 0 > [0 mplStruct.fields.at.nameInfo processor.specialNames.emptyNameInfo = ~] && [
"object" toString @resultDBG set
"dict" toString @resultDBG set
] [
"list" toString @resultDBG set
"tuple" toString @resultDBG set
] if
] when
] when
Expand All @@ -280,6 +280,10 @@ getDebugType: [
refToVar: processor: block:;;;
result: hasSchemaName: refToVar @processor getDbgSchemaNameType;;
hasSchemaName ~ [
result.size 0 = ~ [
"." @result.cat
] when

dbgType: refToVar @processor getDbgType;
splitted: dbgType splitString;
splitted.success [
Expand All @@ -291,7 +295,7 @@ getDebugType: [
("Wrong dbgType name encoding" splitted.chars assembleString) assembleString @processor block compilerError
] if

splitted.chars assembleString !result
splitted.chars @result.catMany
] when

@result
Expand Down

0 comments on commit ead528b

Please sign in to comment.