(str, source, filename)
| 10 | const points = ['.a', 'color', '.b', 'display', 'float']; |
| 11 | |
| 12 | function getOriginalPosition(str, source, filename) { |
| 13 | let index = source.indexOf(str); |
| 14 | let line = null; |
| 15 | let column = null; |
| 16 | |
| 17 | if (index !== -1) { |
| 18 | var lines = source.substr(0, index).split('\n'); |
| 19 | line = lines.length; |
| 20 | column = lines.pop().length; |
| 21 | } |
| 22 | |
| 23 | return { |
| 24 | source: filename || '<unknown>', |
| 25 | line, |
| 26 | column, |
| 27 | name: null |
| 28 | }; |
| 29 | } |
| 30 | |
| 31 | function getGeneratedPosition(str, source) { |
| 32 | const index = source.indexOf(str); |
no outgoing calls
no test coverage detected
searching dependent graphs…