start a new line of code, inserting a line number if yyextra->sourceFileDef is true. If a definition starts at the current line, then the line number is linked to the documentation of that definition.
254{
255 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
256 if (yyextra->sourceFileDef && yyextra->lineNumbers)
257 {
258 const Definition *d = yyextra->sourceFileDef->getSourceDefinition(yyextra->yyLineNr);
The common base class of all entity definitions found in the sources.
259
261 {
262 yyextra->currentDefinition = d;
263 yyextra->currentMemberDef = yyextra->sourceFileDef->getSourceMember(yyextra->yyLineNr);
264
265 yyextra->classScope = d->
name();
267 lineAnchor.
sprintf(
"l%05d",yyextra->yyLineNr);
268 if (yyextra->currentMemberDef)
269 {
270 yyextra->code->writeLineNumber(yyextra->currentMemberDef->getReference(),
271 yyextra->currentMemberDef->getOutputFileBase(),
272 yyextra->currentMemberDef->anchor(),yyextra->yyLineNr,
273 !yyextra->includeCodeFragment);
275 }
276 else
277 {
281 !yyextra->includeCodeFragment);
283 }
284 }
285 else
286 {
288 !yyextra->includeCodeFragment);
289 }
290 }
virtual bool isLinkableInProject() const =0
virtual QCString getReference() const =0
virtual QCString getOutputFileBase() const =0
virtual const QCString & name() const =0
QCString & sprintf(const char *format,...)
static void setCurrentDoc(yyscan_t yyscanner, const QCString &anchor)
291
292 yyextra->code->startCodeLine(yyextra->yyLineNr);
293 yyextra->insideCodeLine = true;
294
295 if (yyextra->currentFontClass)
296 {
297 yyextra->code->startFontClass(yyextra->currentFontClass);
298 }
299}