Alias would remove unnecessary repetitions and less relative paths make changes easier when moving around files. This commit cleans also up some relative paths ('../../../') by using the alias and orders imports. It updates both path alias in tsconfig and module alias in Vue CLI's bundler (vuejs/vue-cli#2398).
20 lines
817 B
TypeScript
20 lines
817 B
TypeScript
import { ICategoryCollectionParseContext } from '@/application/Parser/Script/ICategoryCollectionParseContext';
|
|
import { IScriptCompiler } from '@/application/Parser/Script/Compiler/IScriptCompiler';
|
|
import { ILanguageSyntax } from '@/domain/ScriptCode';
|
|
import { ScriptCompilerStub } from './ScriptCompilerStub';
|
|
import { LanguageSyntaxStub } from './LanguageSyntaxStub';
|
|
|
|
export class CategoryCollectionParseContextStub implements ICategoryCollectionParseContext {
|
|
public compiler: IScriptCompiler = new ScriptCompilerStub();
|
|
public syntax: ILanguageSyntax = new LanguageSyntaxStub();
|
|
|
|
public withCompiler(compiler: IScriptCompiler) {
|
|
this.compiler = compiler;
|
|
return this;
|
|
}
|
|
public withSyntax(syntax: ILanguageSyntax) {
|
|
this.syntax = syntax;
|
|
return this;
|
|
}
|
|
}
|