|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
462 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | MIT License http://www.opensource.org/licenses/mit-license.php
|
|---|
| 3 | Author Tobias Koppers @sokra
|
|---|
| 4 | */
|
|---|
| 5 |
|
|---|
| 6 | "use strict";
|
|---|
| 7 |
|
|---|
| 8 | /** @typedef {import("../Source").RawSourceMap} RawSourceMap */
|
|---|
| 9 |
|
|---|
| 10 | /**
|
|---|
| 11 | * @param {RawSourceMap} sourceMap source map
|
|---|
| 12 | * @param {number} index index
|
|---|
| 13 | * @returns {string | undefined | null} name
|
|---|
| 14 | */
|
|---|
| 15 | const getName = (sourceMap, index) => {
|
|---|
| 16 | if (index < 0) return null;
|
|---|
| 17 | const { names } = sourceMap;
|
|---|
| 18 | return names[index];
|
|---|
| 19 | };
|
|---|
| 20 |
|
|---|
| 21 | module.exports = getName;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.