MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / parseBlock

Method parseBlock

source/src/scriptinterpreter.h:724–736  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

722 }
723 else if (lines[next_index].substr(0, 7) == "else if")
724 {
725 std::string elif_line = lines[next_index];
726 size_t e_start_paren = elif_line.find('(');
727 if (e_start_paren == std::string::npos) { next_index++; break; }
728
729 int e_paren_count = 1;
730 size_t e_current_pos = e_start_paren + 1;
731 size_t e_end_paren = std::string::npos;
732 while (e_current_pos < elif_line.length())
733 {
734 if (elif_line[e_current_pos] == '(') e_paren_count++;
735 else if (elif_line[e_current_pos] == ')')
736 {
737 e_paren_count--;
738 if (e_paren_count == 0) { e_end_paren = e_current_pos; break; }
739 }

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected