12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- import { ISourceCode } from '../interfaces/source-code/ISourceCode';
- export class SourceCode implements ISourceCode {
- /**
- * @type {string}
- */
- private readonly sourceCode: string;
- /**
- * @type {string}
- */
- private readonly sourceMap: string;
- /**
- * @param {string} sourceCode
- * @param {string} sourceMap
- */
- constructor (sourceCode: string, sourceMap: string) {
- this.sourceCode = sourceCode;
- this.sourceMap = sourceMap;
- }
- /**
- * @returns {string}
- */
- public getSourceCode (): string {
- return this.sourceCode;
- }
- /**
- * @returns {string}
- */
- public getSourceMap (): string {
- return this.sourceMap;
- }
- /**
- * @returns {string}
- */
- public toString (): string {
- return this.sourceCode;
- }
- }
|