From c674fca7124ce4b8f9bd8b63ca590ae2a2526d76 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 31 Jul 2017 08:14:57 -0400 Subject: meta_abstraction, reduce side effect --- src/sdp/meta/metadoc_from_src.d | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'src') diff --git a/src/sdp/meta/metadoc_from_src.d b/src/sdp/meta/metadoc_from_src.d index ab7f883..8e9a8e4 100644 --- a/src/sdp/meta/metadoc_from_src.d +++ b/src/sdp/meta/metadoc_from_src.d @@ -1791,9 +1791,9 @@ template SiSUdocAbstraction() { } } void _start_block_(L,T,N)( - L line, + L line, return ref T type, - N obj_cite_number_poem + return ref N obj_cite_number_poem ) { debug(asserts) { static assert(is(typeof(line) == char[])); @@ -1958,7 +1958,7 @@ template SiSUdocAbstraction() { } } void _quote_block_(L,O,T)( - return ref L line, + L line, return ref O an_object, return ref T type ) { @@ -2001,7 +2001,7 @@ template SiSUdocAbstraction() { } } void _group_block_(L,O,T)( - return ref L line, + L line, return ref O an_object, return ref T type ) { @@ -2044,7 +2044,7 @@ template SiSUdocAbstraction() { } } void _block_block_(L,O,T)( - return ref L line, + L line, return ref O an_object, return ref T type ) { @@ -2087,12 +2087,12 @@ template SiSUdocAbstraction() { } } void _poem_block_(L,O,T,C,N,Ma)( - L line, - return ref O an_object, + L line, + return ref O an_object, return ref T type, - return ref C cntr, - N obj_cite_number_poem, - Ma dochead_make_aa, + return ref C cntr, + N obj_cite_number_poem, + Ma dochead_make_aa, ) { debug(asserts) { static assert(is(typeof(line) == char[])); @@ -2306,7 +2306,7 @@ template SiSUdocAbstraction() { } } void _code_block_(L,O,T)( - return ref L line, + L line, return ref O an_object, return ref T type ) { @@ -2353,7 +2353,7 @@ template SiSUdocAbstraction() { } } void _table_block_(L,O,T,Ma)( - return ref L line, + L line, return ref O an_object, return ref T type, return ref Ma dochead_make_aa @@ -2999,8 +2999,8 @@ template SiSUdocAbstraction() { } } auto _heading_make_set_(L,C,R,T)( - L line, - C line_occur, + L line, + C line_occur, return ref R heading_match_rgx, return ref T type ) { @@ -3062,7 +3062,7 @@ template SiSUdocAbstraction() { return line; } auto _heading_matched_(L,C,O,K,Lv,Lc,T,Me)( - return ref L line, + L line, return ref C line_occur, return ref O an_object, return ref K an_object_key, @@ -3217,7 +3217,7 @@ template SiSUdocAbstraction() { } } void _para_match_(L,O,K,I,B,T,C)( - return ref L line, + L line, // watch return ref O an_object, return ref K an_object_key, return ref I indent, -- cgit v1.2.3