Create new compilation unit from given code.
Inserts "_CURSOR_" at given offset.
Inserts "_CURSOR_" at given offset.
_CURSOR_ hints to the presentation compiler that this file is being edited with the cursor at that offset. This hint helps completions amongst other things.
Construct new presentation compiler with given classpath and scalac flags.
Build semanticdb document from this snippet of code.
Build semanticdb document from this snippet of code.
an instance of scalac interactive global.
the code to be compiled.
the name of the source file.
max number of milliseconds to allow the presentation compiler to typecheck this file.
configuration options to influence how the document is built. Must start with -P:semanticdb: prefix, for example "-P:semanticdb:symbols:all".
Exception
note that this method can fail in many different ways
with exceptions, including but not limited to tokenize/parse/type
errors.