mirror of https://gitlab.com/basile.b/dexed.git
fields members name are cached
This commit is contained in:
parent
bb311ce049
commit
945212f4c9
|
|
@ -54,9 +54,16 @@ private struct TodoItem
|
||||||
* Enumerates the possible fields of _a TODO comment_.
|
* Enumerates the possible fields of _a TODO comment_.
|
||||||
* They must match the published member of the widget-side class TTodoItem.
|
* They must match the published member of the widget-side class TTodoItem.
|
||||||
*/
|
*/
|
||||||
private enum TodoField {filename, line, text, category, assignee, priority, status}
|
private static enum TodoField {filename, line, text, category, assignee, priority, status}
|
||||||
|
private static string[TodoField] fFieldNames;
|
||||||
private string[TodoField] fFields;
|
private string[TodoField] fFields;
|
||||||
|
|
||||||
|
static this()
|
||||||
|
{
|
||||||
|
foreach(member; EnumMembers!TodoField)
|
||||||
|
fFieldNames[member] = to!string(member);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a TODO item with its fields.
|
* Constructs a TODO item with its fields.
|
||||||
* Params:
|
* Params:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue