aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/ao_abstract_doc_source.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2017-02-18 12:16:33 -0500
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:14 -0400
commitd582b4a66f5fc746b4d1e2935c5400df072df055 (patch)
tree207644c2a7d2ef798840281cb3f61982583d71aa /src/sdp/ao_abstract_doc_source.d
parent0.13.1 defaults renamed & reorganized (diff)
0.13.2 ref scope (return)
Diffstat (limited to 'src/sdp/ao_abstract_doc_source.d')
-rw-r--r--src/sdp/ao_abstract_doc_source.d156
1 files changed, 78 insertions, 78 deletions
diff --git a/src/sdp/ao_abstract_doc_source.d b/src/sdp/ao_abstract_doc_source.d
index a0dccbe..0775daf 100644
--- a/src/sdp/ao_abstract_doc_source.d
+++ b/src/sdp/ao_abstract_doc_source.d
@@ -88,8 +88,8 @@ template SiSUdocAbstraction() {
int[] dom_collapsed_buffer = [ 0, 0, 0, 0, 0, 0, 0, 0, 0,];
enum DomTags { none, open, close, close_and_open, open_still, }
void heading_ancestors(O)(
- auto ref O obj,
- ref string[] lv_ancestors,
+ auto return ref O obj,
+ return ref string[] lv_ancestors,
) {
switch (obj.heading_lev_markup) {
case 0:
@@ -1594,9 +1594,9 @@ template SiSUdocAbstraction() {
an_object.remove("bookindex_nugget");
}
auto _common_reset_(L,O,T)(
- ref L line_occur,
- ref O an_object,
- ref T type
+ return ref L line_occur,
+ return ref O an_object,
+ return ref T type
) {
debug(asserts){
static assert(is(typeof(line_occur) == int[string]));
@@ -1610,8 +1610,8 @@ template SiSUdocAbstraction() {
object_reset(an_object);
}
void _check_ocn_status_(L,T)(
- L line,
- ref T type
+ L line,
+ return ref T type
) {
debug(asserts){
static assert(is(typeof(line) == char[]));
@@ -1659,9 +1659,9 @@ template SiSUdocAbstraction() {
}
}
void _start_block_(L,T,N)(
- L line,
- ref T type,
- N obj_cite_number_poem
+ L line,
+ return ref T type,
+ N obj_cite_number_poem
) {
debug(asserts){
static assert(is(typeof(line) == char[]));
@@ -1809,9 +1809,9 @@ template SiSUdocAbstraction() {
}
}
void _code_block_(L,O,T)(
- ref L line,
- ref O an_object,
- ref T type
+ return ref L line,
+ return ref O an_object,
+ return ref T type
) {
debug(asserts){
static assert(is(typeof(line) == char[]));
@@ -1872,11 +1872,11 @@ template SiSUdocAbstraction() {
return btm[abr];
}
void _biblio_block_(
- char[] line,
- ref int[string] type,
- ref int bib_entry,
- ref string biblio_entry_str_json,
- ref string[] biblio_arr_json
+ char[] line,
+ return ref int[string] type,
+ return ref int bib_entry,
+ return ref string biblio_entry_str_json,
+ return ref string[] biblio_arr_json
) {
mixin SiSUbiblio;
auto jsn = BibJsnStr();
@@ -1996,11 +1996,11 @@ template SiSUdocAbstraction() {
//
void _poem_block_(L,O,T,C,N,Ma)(
L line,
- ref O an_object,
- ref T type,
- ref C cntr,
- N obj_cite_number_poem,
- Ma dochead_make_aa,
+ return ref O an_object,
+ return ref T type,
+ return ref C cntr,
+ N obj_cite_number_poem,
+ Ma dochead_make_aa,
) {
debug(asserts){
static assert(is(typeof(line) == char[]));
@@ -2197,9 +2197,9 @@ template SiSUdocAbstraction() {
}
}
void _group_block_(L,O,T)(
- ref L line,
- ref O an_object,
- ref T type
+ return ref L line,
+ return ref O an_object,
+ return ref T type
) {
debug(asserts){
static assert(is(typeof(line) == char[]));
@@ -2238,9 +2238,9 @@ template SiSUdocAbstraction() {
}
}
void _block_block_(L,O,T)(
- ref L line,
- ref O an_object,
- ref T type
+ return ref L line,
+ return ref O an_object,
+ return ref T type
) {
debug(asserts){
static assert(is(typeof(line) == char[]));
@@ -2279,9 +2279,9 @@ template SiSUdocAbstraction() {
}
}
void _quote_block_(L,O,T)(
- ref L line,
- ref O an_object,
- ref T type
+ return ref L line,
+ return ref O an_object,
+ return ref T type
) {
debug(asserts){
static assert(is(typeof(line) == char[]));
@@ -2320,9 +2320,9 @@ template SiSUdocAbstraction() {
}
}
void _table_block_(L,O,T)(
- ref L line,
- ref O an_object,
- ref T type
+ return ref L line,
+ return ref O an_object,
+ return ref T type
) {
debug(asserts){
static assert(is(typeof(line) == char[]));
@@ -2363,15 +2363,15 @@ template SiSUdocAbstraction() {
void _block_flag_line_empty_(B)(
B bookindex_extract_hash,
char[] line,
- ref string[string] an_object,
- ref ObjGenericComposite[] the_document_body_section,
- ref string[][string][string] bookindex_unordered_hashes,
- ref int obj_cite_number,
- ref ObjGenericComposite _comp_obj_heading,
- ref int cntr,
- ref int[string] type,
- string[string] obj_cite_number_poem,
- string[string][string] dochead_make_aa,
+ return ref string[string] an_object,
+ return ref ObjGenericComposite[] the_document_body_section,
+ return ref string[][string][string] bookindex_unordered_hashes,
+ return ref int obj_cite_number,
+ return ref ObjGenericComposite _comp_obj_heading,
+ return ref int cntr,
+ return ref int[string] type,
+ string[string] obj_cite_number_poem,
+ string[string][string] dochead_make_aa,
) {
// line.empty, post contents, empty variables ---------------
assert(
@@ -2583,10 +2583,10 @@ template SiSUdocAbstraction() {
}
auto _book_index_(L,I,O,T,B)(
L line,
- ref I book_idx_tmp,
- ref O an_object,
- ref T type,
- B opt_action_bool,
+ return ref I book_idx_tmp,
+ return ref O an_object,
+ return ref T type,
+ B opt_action_bool,
) {
debug(asserts){
static assert(is(typeof(line) == char[]));
@@ -2641,9 +2641,9 @@ template SiSUdocAbstraction() {
auto _heading_found_(L,X,H,R,T)(
L line,
X dochead_make_identify_unmarked_headings,
- ref H heading_match_str,
- ref R heading_match_rgx,
- ref T type
+ return ref H heading_match_str,
+ return ref R heading_match_rgx,
+ return ref T type
) {
debug(asserts){
static assert(is(typeof(line) == char[]));
@@ -2733,8 +2733,8 @@ template SiSUdocAbstraction() {
auto _heading_make_set_(L,C,R,T)(
L line,
C line_occur,
- ref R heading_match_rgx,
- ref T type
+ return ref R heading_match_rgx,
+ return ref T type
) {
debug(asserts){
static assert(is(typeof(line) == char[]));
@@ -2793,14 +2793,14 @@ template SiSUdocAbstraction() {
}
}
auto _heading_matched_(L,C,O,K,Lv,Lc,T,Me)(
- ref L line,
- ref C line_occur,
- ref O an_object,
- ref K an_object_key,
- ref Lv lv,
- ref Lc collapsed_lev,
- ref T type,
- ref Me dochead_meta_aa,
+ return ref L line,
+ return ref C line_occur,
+ return ref O an_object,
+ return ref K an_object_key,
+ return ref Lv lv,
+ return ref Lc collapsed_lev,
+ return ref T type,
+ return ref Me dochead_meta_aa,
) {
debug(asserts){
static assert(is(typeof(line) == char[]));
@@ -2947,13 +2947,13 @@ template SiSUdocAbstraction() {
}
}
auto _para_match_(L,O,K,I,B,T,C)(
- ref L line,
- ref O an_object,
- ref K an_object_key,
- ref I indent,
- ref B bullet,
- ref T type,
- ref C line_occur,
+ return ref L line,
+ return ref O an_object,
+ return ref K an_object_key,
+ return ref I indent,
+ return ref B bullet,
+ return ref T type,
+ return ref C line_occur,
) {
debug(asserts){
static assert(is(typeof(line) == char[]));
@@ -3413,12 +3413,12 @@ template SiSUdocAbstraction() {
return heading_toc_;
};
auto table_of_contents_gather_headings(O,Ma,Ts,Ta,X,Toc)(
- O obj_,
- Ma dochead_make_aa,
- Ts segment_anchor_tag_that_object_belongs_to,
- Ta _anchor_tag,
- ref X lev4_subtoc,
- Toc the_table_of_contents_section,
+ O obj_,
+ Ma dochead_make_aa,
+ Ts segment_anchor_tag_that_object_belongs_to,
+ Ta _anchor_tag,
+ return ref X lev4_subtoc,
+ Toc the_table_of_contents_section,
)
in {
debug(asserts){
@@ -4456,8 +4456,8 @@ template SiSUdocAbstraction() {
/+ +/
struct Bibliography {
public JSONValue[] _bibliography_(Bi,BJ)(
- ref Bi biblio_unsorted_incomplete,
- ref BJ bib_arr_json
+ return ref Bi biblio_unsorted_incomplete,
+ return ref BJ bib_arr_json
)
in {
debug(asserts){
@@ -4488,8 +4488,8 @@ template SiSUdocAbstraction() {
return biblio_sorted__;
}
final private JSONValue[] _biblio_unsorted_complete_(Bi,BJ)(
- Bi biblio_unordered,
- ref BJ bib_arr_json
+ Bi biblio_unordered,
+ return ref BJ bib_arr_json
) {
debug(asserts){
static assert(is(typeof(biblio_unordered) == string[]));