mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
724b14c053
commit_hash:fdb47c5cb1fc51f746b18a59c76737ddcdf33298
21 lines
478 B
Swift
21 lines
478 B
Swift
import CoreGraphics
|
|
import Foundation
|
|
import LayoutKit
|
|
import VGSL
|
|
|
|
extension Block {
|
|
func addingDebugInfo(context: DivBlockModelingContext) -> Block {
|
|
let debugParams = context.debugParams
|
|
guard debugParams.isDebugInfoEnabled,
|
|
let debugErrorCollector = context.debugErrorCollector else {
|
|
return self
|
|
}
|
|
|
|
return DebugBlock(
|
|
child: self,
|
|
errorCollector: debugErrorCollector,
|
|
showDebugInfo: debugParams.showDebugInfo
|
|
)
|
|
}
|
|
}
|