• Home
  • Raw
  • Download

Lines Matching refs:sourcePosition

19 export function sourcePositionToStringKey(sourcePosition): string {
20 if (!sourcePosition) return "undefined";
21 if (sourcePosition.inliningId && sourcePosition.scriptOffset)
22 return "SP:" + sourcePosition.inliningId + ":" + sourcePosition.scriptOffset;
23 if (sourcePosition.bytecodePosition)
24 return "BCP:" + sourcePosition.bytecodePosition;
160 for (const [nodeId, sourcePosition] of Object.entries<SourcePosition>(map)) { constant
161 if (sourcePosition == undefined) {
162 console.log("Warning: undefined source position ", sourcePosition, " for nodeId ", nodeId);
164 const inliningId = sourcePosition.inliningId;
168 this.sources[sourceId].sourcePositions.push(sourcePosition);
170 this.nodePositionMap[nodeId] = sourcePosition;
171 let key = sourcePositionToStringKey(sourcePosition);
225 addInliningPositions(sourcePosition, locations) {
226 let inlining = this.inliningsMap.get(sourcePositionToStringKey(sourcePosition));
236 getInliningForPosition(sourcePosition) {
237 return this.inliningsMap.get(sourcePositionToStringKey(sourcePosition));
255 const sourcePosition = list[i] constant
256 const position = sourcePosition.scriptOffset;
259 return sourcePosition;
270 const sourcePosition = list[i] constant
271 if (start <= sourcePosition.scriptOffset && sourcePosition.scriptOffset < end) {
272 res.push(sourcePosition);
278 getInlineStack(sourcePosition) {
279 if (!sourcePosition) {
283 let cur = sourcePosition;
422 addAnyPositionToLine(lineNumber: number | String, sourcePosition: AnyPosition) {
428 if (!A.includes(sourcePosition)) A.push(sourcePosition);