1 /** 2 * Модуль содержит методы для генерации кода 3 * 4 * Copyright: (c) 2015-2017, Milofon Project. 5 * License: Subject to the terms of the BSD license, as written in the included LICENSE.txt file. 6 * Author: <m.galanin@milofon.org> Maksim Galanin 7 * Date: 2018-02-11 8 */ 9 10 module dango.system.traits; 11 12 private 13 { 14 import std.traits; 15 } 16 17 18 /** 19 * Проверка на публичность методов 20 * Params: 21 * C = Объект 22 * N = Наименование метода 23 */ 24 template IsPublicMember(C, string N) 25 { 26 enum access = __traits(getProtection, __traits(getMember, C, N)); 27 enum IsPublicMember = access == "public"; 28 }