parse_Request_Response method
dynamic
parse_Request_Response()
Implementation
dynamic parse_Request_Response() {
var $$;
switch (_getState(_transitions13)) {
case 0:
case 2:
var startPos0 = _startPos;
_startPos = _cursor;
switch (_getState(_transitions45)) {
case 0:
var startPos1 = _startPos;
_startPos = _cursor;
$$ = _parse_Request_Line();
_startPos = startPos1;
break;
case 1:
case 3:
while (true) {
var startPos2 = _startPos;
_startPos = _cursor;
$$ = _parse_Status_Line();
_startPos = startPos2;
if (success) break;
var startPos3 = _startPos;
_startPos = _cursor;
$$ = _parse_Request_Line();
_startPos = startPos3;
break;
}
break;
case 2:
$$ = null;
success = false;
break;
}
if (!success && _cursor > _testing) {
_failure(_expect57);
}
if (success) {
final $1 = $$;
final $start = startPos0;
var pos0 = _startPos, offset = $start;
{
///CODE_START
$$ = data;
///CODE_END
}
}
_startPos = startPos0;
break;
case 1:
$$ = null;
success = false;
break;
}
if (!success && _cursor > _testing) {
_failure(_expect57);
}
return $$;
}