/
EvilBeaver
/
OneScript
Обзор
Документация
Войти
/
EvilBeaver
/
OneScript
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
v2.0.0-alpha-2
src/OneScript.Compiler.Legacy/LexicalAnalysis/SourceCodeExtensions.cs
25 строк
806 B
EvilBeaver
Вынес компоненты старого компилятора в отдельную сборку. Вдруг пригодится.
30 янв 2021, 20:24
30 янв 2021, 20:24
cabb440
Код
Авторство
О чём код?
/*---------------------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. ----------------------------------------------------------*/ using OneScript.Language; using OneScript.Language.LexicalAnalysis; namespace OneScript.Compiler.Legacy.LexicalAnalysis { public static class SourceCodeExtensions { public static ErrorPositionInfo GetErrorPosition(this ILexemGenerator lexer) { return lexer.Iterator.GetErrorPosition(); } public static ErrorPositionInfo GetErrorPosition(this ILexer lexer) { return lexer.Iterator.GetErrorPosition(); } } }