Last change
on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[6a3a178] | 1 | /**
|
---|
| 2 | * Copyright 2019 The AMP HTML Authors. All Rights Reserved.
|
---|
| 3 | *
|
---|
| 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
---|
| 5 | * you may not use this file except in compliance with the License.
|
---|
| 6 | * You may obtain a copy of the License at
|
---|
| 7 | *
|
---|
| 8 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 9 | *
|
---|
| 10 | * Unless required by applicable law or agreed to in writing, software
|
---|
| 11 | * distributed under the License is distributed on an "AS IS" BASIS,
|
---|
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
---|
| 13 | * See the License for the specific language governing permissions and
|
---|
| 14 | * limitations under the License.
|
---|
| 15 | */
|
---|
| 16 | import type { SourceMapSegmentObject } from './types';
|
---|
| 17 | /**
|
---|
| 18 | * A "leaf" node in the sourcemap tree, representing an original, unmodified
|
---|
| 19 | * source file. Recursive segment tracing ends at the `OriginalSource`.
|
---|
| 20 | */
|
---|
| 21 | export default class OriginalSource {
|
---|
| 22 | content: string | null;
|
---|
| 23 | filename: string;
|
---|
| 24 | constructor(filename: string, content: string | null);
|
---|
| 25 | /**
|
---|
| 26 | * Tracing a `SourceMapSegment` ends when we get to an `OriginalSource`,
|
---|
| 27 | * meaning this line/column location originated from this source file.
|
---|
| 28 | */
|
---|
| 29 | traceSegment(line: number, column: number, name: string): SourceMapSegmentObject;
|
---|
| 30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.