luau/tools/lldb_formatters.lldb
2023-10-20 13:36:26 -07:00

26 lines
1.4 KiB
Plaintext

type synthetic add -x "^Luau::detail::DenseHashTable<.*>$" -l lldb_formatters.DenseHashTableSyntheticChildrenProvider
type synthetic add -x "^Luau::DenseHashMap<.*>$" -l lldb_formatters.DenseHashMapSyntheticChildrenProvider
type synthetic add -x "^Luau::DenseHashSet<.*>$" -l lldb_formatters.DenseHashSetSyntheticChildrenProvider
type summary add -x "^Luau::DenseHashMap<.*>$" --summary-string "count = ${var.impl.count}"
type summary add -x "^Luau::DenseHashSet<.*>$" --summary-string "count = ${var.impl.count}"
type summary add "Luau::Symbol" -F lldb_formatters.luau_symbol_summary
type synthetic add -x "^Luau::Variant<.+>$" -l lldb_formatters.LuauVariantSyntheticChildrenProvider
type summary add -x "^Luau::Variant<.+>$" -F lldb_formatters.luau_variant_summary
type synthetic add -x "^Luau::AstArray<.+>$" -l lldb_formatters.AstArraySyntheticChildrenProvider
type summary add -x "^Luau::NotNull<.+>$" --summary-string "${*var.ptr}"
type summary add --summary-string "${var.line}:${var.column}" Luau::Position
type summary add --summary-string "${var.begin}-${var.end}" Luau::Location
type summary add --summary-string "${var.ty} (${var%S})" Luau::TypeId Luau::TypePackId
type summary add Luau::TypePath::Property -F lldb_formatters.luau_typepath_property_summary
type summary add --summary-string "[${var.index}]" Luau::TypePath::Index
type summary add -x "^Luau::TryPair<.+>$" --summary-string "(${var.first%T}, ${var.second%T})"