2 ms·
That might work...but does it work in practice (i.e. do you have an example where this is being used?). It is how the Delphi compiler works in the IDE. I used
by barrkel 13y ago
That might work...but does it work in practice (i.e. do you have an example where this is being used?).
It is how the Delphi compiler works in the IDE. I used to work for Borland, then Embarcadero, on the compiler front end.
When the compiler is running for code completion (kibitz mode, it calls it), it does a lot less work. No codegen, no type analysis of function bodies (begin / end blocks are entirely skipped), unless the cursor location is discovered to be inside a function body, whereupon the it rewinds and does more complete analysis. Normally takes no more than a few milliseconds to finish.