MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / PAR_syntax_error

Function PAR_syntax_error

src/jrd/par.cpp:1657–1676  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1655
1656
1657void PAR_syntax_error(CompilerScratch* csb, const TEXT* string)
1658{
1659/**************************************
1660 *
1661 * P A R _ s y n t a x _ e r r o r
1662 *
1663 **************************************
1664 *
1665 * Functional description
1666 * Post a syntax error message.
1667 *
1668 **************************************/
1669
1670 csb->csb_blr_reader.seekBackward(1);
1671
1672 // BLR syntax error: expected @1 at offset @2, encountered @3
1673 PAR_error(csb, Arg::Gds(isc_syntaxerr) << Arg::Str(string) <<
1674 Arg::Num(csb->csb_blr_reader.getOffset()) <<
1675 Arg::Num(csb->csb_blr_reader.peekByte()));
1676}
1677
1678
1679void PAR_warning(const Arg::StatusVector& v)

Callers 15

parseMethod · 0.85
parseMethod · 0.85
parseParametersMethod · 0.85
parseMethod · 0.85
parseWindowMethod · 0.85
parseMapFunction · 0.85
PAR_blrFunction · 0.85
PAR_validation_blrFunction · 0.85
PAR_marksFunction · 0.85
PAR_parseFunction · 0.85
par_planFunction · 0.85
PAR_parseRecordSourceFunction · 0.85

Calls 7

GdsClass · 0.85
StrClass · 0.85
NumClass · 0.85
seekBackwardMethod · 0.80
peekByteMethod · 0.80
PAR_errorFunction · 0.70
getOffsetMethod · 0.45

Tested by

no test coverage detected