- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Question about implementing code completion
Mon, 2009-03-23, 12:16
Given the program:
object Main extends Application {
1 to 100 m
}
How can I read out a result from the compiler about the type off the
expression preceding the m (first letter to complete on)? If you
compile this, you get the sensible error that there is no member "m"
on Range.Inclusive, however using the -Ybrowse:typer on the compiler,
you can't extract the information about the type preceding the token
"m".
I am trying to implement code completion in NetBeans for Scala. Maybe
what I need to do is feed the compiler with the file excluding the
prefix off the completion ("m"), so I get the correct context and
Symbol for the 1 to 100 expression.