/
smwwiki
/
OneScript_fork
Обзор
Документация
Войти
/
smwwiki
/
OneScript_fork
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/OneScript.Native/Compiler/NativeRuntimeAnnotationHandler.cs
33 строки
1 KB
EvilBeaver
Переделка итераторов на стиль ОСени и проверка при компиляции, а не при старте класса
19 янв 2024, 23:24
19 янв 2024, 23:24
d0d2a3b
Код
Авторство
О чём код?
/*---------------------------------------------------------- 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 System; using System.Collections.Generic; using OneScript.Language; using OneScript.Language.LexicalAnalysis; using OneScript.Language.SyntaxAnalysis; using OneScript.Language.SyntaxAnalysis.AstNodes; using OneScript.Localization; namespace OneScript.Native.Compiler { public class NativeRuntimeAnnotationHandler : SingleWordModuleAnnotationHandler { public static string NativeDirectiveName => "native"; public static string StackRuntimeDirectiveName => "stack"; private static readonly HashSet<string> Directives = new HashSet<string> { NativeDirectiveName, StackRuntimeDirectiveName }; public NativeRuntimeAnnotationHandler(IErrorSink errorSink) : base(Directives, errorSink) { } } }