MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / containsLocation

Method containsLocation

front_end/core/sdk/Script.ts:393–398  ·  view source on GitHub ↗
(lineNumber: number, columnNumber: number)

Source from the content-addressed store, hash-verified

391 }
392
393 containsLocation(lineNumber: number, columnNumber: number): boolean {
394 const afterStart =
395 (lineNumber === this.lineOffset && columnNumber >= this.columnOffset) || lineNumber > this.lineOffset;
396 const beforeEnd = lineNumber < this.endLine || (lineNumber === this.endLine && columnNumber <= this.endColumn);
397 return afterStart && beforeEnd;
398 }
399
400 get frameId(): Protocol.Page.FrameId {
401 // TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration

Callers 2

rawLocationMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected