aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2017-07-25 04:02:26 -0400
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:14 -0400
commit737b165990168fdfc3911d542ec741e6a8b7a1c3 (patch)
tree0a6a58dc0db314f7c83faed2086515afc7073aea /src
parentmeta_abstraction, reduce side effect (diff)
meta_abstraction, mark some functions pure
Diffstat (limited to 'src')
-rw-r--r--src/sdp/meta/metadoc_from_src.d12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sdp/meta/metadoc_from_src.d b/src/sdp/meta/metadoc_from_src.d
index 8e9a8e4..0484cae 100644
--- a/src/sdp/meta/metadoc_from_src.d
+++ b/src/sdp/meta/metadoc_from_src.d
@@ -74,7 +74,7 @@ template SiSUdocAbstraction() {
int[] dom_collapsed = [ 0, 0, 0, 0, 0, 0, 0, 0, 0,];
int[] dom_collapsed_buffer = [ 0, 0, 0, 0, 0, 0, 0, 0, 0,];
enum DomTags { none, open, close, close_and_open, open_still, }
- auto obj_heading_ancestors(O)(
+ pure auto obj_heading_ancestors(O)(
O obj,
string[] lv_ancestors_txt,
) {
@@ -127,7 +127,7 @@ template SiSUdocAbstraction() {
}
return obj;
}
- auto obj_dom_set_markup_tags(O)(
+ pure auto obj_dom_set_markup_tags(O)(
O obj,
int[] dom,
int lev
@@ -171,7 +171,7 @@ template SiSUdocAbstraction() {
obj.dom_markedup = dom.dup;
return obj;
}
- auto obj_dom_set_collapsed_tags(O)(
+ pure auto obj_dom_set_collapsed_tags(O)(
O obj,
int[] dom,
int lev
@@ -3489,7 +3489,7 @@ template SiSUdocAbstraction() {
}
/+ abstraction functions ↑ +/
/+ ↓ abstraction function emitters +/
- struct OCNemitter {
+ pure struct OCNemitter {
int obj_cite_number, obj_cite_number_;
int ocn_emitter(int ocn_status_flag)
in { assert(ocn_status_flag <= 3); }
@@ -5366,7 +5366,7 @@ template SiSUdocAbstraction() {
}
/+ abstraction functions emitters ↑ +/
/+ ↓ abstraction functions assertions +/
- auto assertions_doc_structure(O,Lv)(
+ pure void assertions_doc_structure(O,Lv)(
O an_object,
Lv lv
) {
@@ -5545,7 +5545,7 @@ template SiSUdocAbstraction() {
break;
}
}
- auto assertions_flag_types_block_status_none_or_closed(T)(T type) {
+ pure void assertions_flag_types_block_status_none_or_closed(T)(T type) {
debug(asserts) {
static assert(is(typeof(type) == int[string]));
}