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.
232{
233 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
234 if (yyextra->sourceFileDef && yyextra->lineNumbers)
235 {
236 const Definition *d = yyextra->sourceFileDef->getSourceDefinition(yyextra->yyLineNr);
The common base class of all entity definitions found in the sources.
237
239 {
240 yyextra->currentDefinition = d;
241 yyextra->currentMemberDef = yyextra->sourceFileDef->getSourceMember(yyextra->yyLineNr);
242 yyextra->classScope = d->
name();
244 lineAnchor.
sprintf(
"l%05d",yyextra->yyLineNr);
245 if (yyextra->currentMemberDef)
246 {
247 yyextra->code->writeLineNumber(yyextra->currentMemberDef->getReference(),
248 yyextra->currentMemberDef->getOutputFileBase(),
249 yyextra->currentMemberDef->anchor(),yyextra->yyLineNr,
250 !yyextra->includeCodeFragment);
252 }
253 else
254 {
258 !yyextra->includeCodeFragment);
260 }
261 }
262 else
263 {
265 !yyextra->includeCodeFragment);
266 }
267 }
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)
268
269 yyextra->code->startCodeLine(yyextra->yyLineNr);
270 yyextra->insideCodeLine=true;
271
272 if (yyextra->currentFontClass)
273 {
274 yyextra->code->startFontClass(yyextra->currentFontClass);
275 }
276}