1 import CssSyntaxError from './css-syntax-error';
2 import PreviousMap from './previous-map';
3 import LazyResult from './lazy-result';
4 import postcss from './postcss';
5 import Result from './result';
6 export default class Input implements postcss.Input {
8 * The absolute path to the CSS source file defined with the "from" option.
12 * The unique ID of the CSS source. Used if "from" option is not provided
13 * (because PostCSS does not know the file path).
17 * Represents the input source map passed from a compilation step before
18 * PostCSS (e.g., from the Sass compiler).
23 * Represents the source CSS.
25 constructor(css: string | {
27 } | LazyResult | Result, opts?: {
32 * The CSS source identifier. Contains input.file if the user set the "from"
33 * option, or input.id if they did not.
36 error(message: string, line: number, column: number, opts?: {
40 * Reads the input source map.
41 * @returns A symbol position in the input source (e.g., in a Sass file
42 * that was compiled to CSS before being passed to PostCSS):
44 origin(line: number, column: number): postcss.InputOrigin;
45 private mapResolve(file);