Exemplo n.º 1
0
 def __init__(
     self,
     callFrames: Union['CallFrame', dict],
     reason: Union['str', dict],
     data: Union['dict', dict, None] = None,
     hitBreakpoints: Union['[]', dict, None] = None,
     asyncStackTrace: Union['Runtime.StackTrace', dict, None] = None,
     asyncStackTraceId: Union['Runtime.StackTraceId', dict, None] = None,
     asyncCallStackTraceId: Union['Runtime.StackTraceId', dict,
                                  None] = None,
 ):
     if isinstance(callFrames, dict):
         callFrames = CallFrame(**callFrames)
     self.callFrames = callFrames
     if isinstance(reason, dict):
         reason = str(**reason)
     self.reason = reason
     if isinstance(data, dict):
         data = dict(**data)
     self.data = data
     if isinstance(hitBreakpoints, dict):
         hitBreakpoints = [](**hitBreakpoints)
     self.hitBreakpoints = hitBreakpoints
     if isinstance(asyncStackTrace, dict):
         asyncStackTrace = Runtime.StackTrace(**asyncStackTrace)
     self.asyncStackTrace = asyncStackTrace
     if isinstance(asyncStackTraceId, dict):
         asyncStackTraceId = Runtime.StackTraceId(**asyncStackTraceId)
     self.asyncStackTraceId = asyncStackTraceId
     if isinstance(asyncCallStackTraceId, dict):
         asyncCallStackTraceId = Runtime.StackTraceId(
             **asyncCallStackTraceId)
     self.asyncCallStackTraceId = asyncCallStackTraceId
Exemplo n.º 2
0
 def __init__(
     self,
     scriptId: Union['Runtime.ScriptId', dict],
     url: Union['str', dict],
     startLine: Union['int', dict],
     startColumn: Union['int', dict],
     endLine: Union['int', dict],
     endColumn: Union['int', dict],
     executionContextId: Union['Runtime.ExecutionContextId', dict],
     hash: Union['str', dict],
     executionContextAuxData: Union['dict', dict, None] = None,
     sourceMapURL: Union['str', dict, None] = None,
     hasSourceURL: Union['bool', dict, None] = None,
     isModule: Union['bool', dict, None] = None,
     length: Union['int', dict, None] = None,
     stackTrace: Union['Runtime.StackTrace', dict, None] = None,
 ):
     if isinstance(scriptId, dict):
         scriptId = Runtime.ScriptId(**scriptId)
     self.scriptId = scriptId
     if isinstance(url, dict):
         url = str(**url)
     self.url = url
     if isinstance(startLine, dict):
         startLine = int(**startLine)
     self.startLine = startLine
     if isinstance(startColumn, dict):
         startColumn = int(**startColumn)
     self.startColumn = startColumn
     if isinstance(endLine, dict):
         endLine = int(**endLine)
     self.endLine = endLine
     if isinstance(endColumn, dict):
         endColumn = int(**endColumn)
     self.endColumn = endColumn
     if isinstance(executionContextId, dict):
         executionContextId = Runtime.ExecutionContextId(
             **executionContextId)
     self.executionContextId = executionContextId
     if isinstance(hash, dict):
         hash = str(**hash)
     self.hash = hash
     if isinstance(executionContextAuxData, dict):
         executionContextAuxData = dict(**executionContextAuxData)
     self.executionContextAuxData = executionContextAuxData
     if isinstance(sourceMapURL, dict):
         sourceMapURL = str(**sourceMapURL)
     self.sourceMapURL = sourceMapURL
     if isinstance(hasSourceURL, dict):
         hasSourceURL = bool(**hasSourceURL)
     self.hasSourceURL = hasSourceURL
     if isinstance(isModule, dict):
         isModule = bool(**isModule)
     self.isModule = isModule
     if isinstance(length, dict):
         length = int(**length)
     self.length = length
     if isinstance(stackTrace, dict):
         stackTrace = Runtime.StackTrace(**stackTrace)
     self.stackTrace = stackTrace
Exemplo n.º 3
0
 def __init__(
     self,
     frameId: Union['FrameId', dict],
     parentFrameId: Union['FrameId', dict],
     stack: Union['Runtime.StackTrace', dict, None] = None,
 ):
     if isinstance(frameId, dict):
         frameId = FrameId(**frameId)
     self.frameId = frameId
     if isinstance(parentFrameId, dict):
         parentFrameId = FrameId(**parentFrameId)
     self.parentFrameId = parentFrameId
     if isinstance(stack, dict):
         stack = Runtime.StackTrace(**stack)
     self.stack = stack
Exemplo n.º 4
0
 def __init__(
     self,
     scriptId: Union['Runtime.ScriptId', dict],
     url: Union['str', dict],
     startLine: Union['int', dict],
     startColumn: Union['int', dict],
     endLine: Union['int', dict],
     endColumn: Union['int', dict],
     executionContextId: Union['Runtime.ExecutionContextId', dict],
     hash: Union['str', dict],
     executionContextAuxData: Union['dict', dict, None] = None,
     isLiveEdit: Union['bool', dict, None] = None,
     sourceMapURL: Union['str', dict, None] = None,
     hasSourceURL: Union['bool', dict, None] = None,
     isModule: Union['bool', dict, None] = None,
     length: Union['int', dict, None] = None,
     stackTrace: Union['Runtime.StackTrace', dict, None] = None,
     codeOffset: Union['int', dict, None] = None,
     scriptLanguage: Union['Debugger.ScriptLanguage', dict, None] = None,
     debugSymbols: Union['Debugger.DebugSymbols', dict, None] = None,
     embedderName: Union['str', dict, None] = None,
 ):
     if isinstance(scriptId, dict):
         scriptId = Runtime.ScriptId(**scriptId)
     self.scriptId = scriptId
     if isinstance(url, dict):
         url = str(**url)
     self.url = url
     if isinstance(startLine, dict):
         startLine = int(**startLine)
     self.startLine = startLine
     if isinstance(startColumn, dict):
         startColumn = int(**startColumn)
     self.startColumn = startColumn
     if isinstance(endLine, dict):
         endLine = int(**endLine)
     self.endLine = endLine
     if isinstance(endColumn, dict):
         endColumn = int(**endColumn)
     self.endColumn = endColumn
     if isinstance(executionContextId, dict):
         executionContextId = Runtime.ExecutionContextId(
             **executionContextId)
     self.executionContextId = executionContextId
     if isinstance(hash, dict):
         hash = str(**hash)
     self.hash = hash
     if isinstance(executionContextAuxData, dict):
         executionContextAuxData = dict(**executionContextAuxData)
     self.executionContextAuxData = executionContextAuxData
     if isinstance(isLiveEdit, dict):
         isLiveEdit = bool(**isLiveEdit)
     self.isLiveEdit = isLiveEdit
     if isinstance(sourceMapURL, dict):
         sourceMapURL = str(**sourceMapURL)
     self.sourceMapURL = sourceMapURL
     if isinstance(hasSourceURL, dict):
         hasSourceURL = bool(**hasSourceURL)
     self.hasSourceURL = hasSourceURL
     if isinstance(isModule, dict):
         isModule = bool(**isModule)
     self.isModule = isModule
     if isinstance(length, dict):
         length = int(**length)
     self.length = length
     if isinstance(stackTrace, dict):
         stackTrace = Runtime.StackTrace(**stackTrace)
     self.stackTrace = stackTrace
     if isinstance(codeOffset, dict):
         codeOffset = int(**codeOffset)
     self.codeOffset = codeOffset
     if isinstance(scriptLanguage, dict):
         scriptLanguage = Debugger.ScriptLanguage(**scriptLanguage)
     self.scriptLanguage = scriptLanguage
     if isinstance(debugSymbols, dict):
         debugSymbols = Debugger.DebugSymbols(**debugSymbols)
     self.debugSymbols = debugSymbols
     if isinstance(embedderName, dict):
         embedderName = str(**embedderName)
     self.embedderName = embedderName