/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/compiler/test/expression_parser/utils/span.ts
16 строк
562 B
Kristiyan Kostadinov
refactor(compiler): consolidate error classes (#62160)
23 июн 2025, 15:25
23 июн 2025, 15:25
5e9707d
Код
Авторство
О чём код?
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {ParseSourceFile, ParseLocation, ParseSourceSpan} from '../../../src/parse_util'; /** Gets a fake `ParseSourceSpan` for testing purposes. */ export function getFakeSpan(fileName = 'test.html') { const file = new ParseSourceFile('', fileName); const location = new ParseLocation(file, 0, 0, 0); return new ParseSourceSpan(location, location); }