aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/printing
Commit message (Collapse)AuthorAgeFilesLines
* Add checks for synthetic functions and erased functions.Nicolas Stucki2017-02-131-2/+1
| | | | | | | | * Add `isSyntheticFunction` checks for synthetic functions such as FuntionN for N > 22 and ImplicitFunctionN for N >= 0. * Add `erasedFunctionClass` to get the erased verion of synthetic functions. * Change the semantics of `isFunctionClass` to return true if it is any kind of FunctionN or ImplicitFunctionN.
* Merge pull request #1941 from dotty-staging/fix/infix-posodersky2017-02-081-1/+1
|\ | | | | Better positions for infix operations
| * Represent untyped operators as Ident instead of NameGuillaume Martres2017-02-051-1/+1
| | | | | | | | | | | | | | | | This has two advantages: - We can distinguish BackquotedIdent from Ident, allowing the user to use a defined "type `&`", see testcase. - We get better positions for the operators. This is useful in IDEs, for example to get the type at point.
* | Implement SearchResult.showMartin Odersky2017-02-082-1/+23
|/
* fix #1626: inconsistent names in -Xprintliu fengyun2017-02-022-1/+7
|
* Merge pull request #1775 from dotty-staging/add-implicit-funtypesodersky2016-12-181-3/+4
|\ | | | | Add implicit function types
| * Refactor function operations in DefinitionsMartin Odersky2016-12-171-3/+4
| | | | | | | | | | | | | | | | | | Also: show implicit function types correctly. Also: refine applications of implicit funcitons - don't do it for closure trees - don't do it after typer.
* | Make errors are not swept under the carpetMartin Odersky2016-12-172-2/+5
|/ | | | | | | | | Typer#ensureReported's comment outlines an example where errors could go unreported, resulting in error trees after typer without any reported error messages. This commit makes sure that at least one error is reported if a tree node has an error type. Fixes #1802.
* Better printing of import symbolsMartin Odersky2016-12-011-5/+3
| | | | | Had duplications of `import` before. Also: add import info when printing contexts.
* -Ytest-pickler: homogenize template body output orderGuillaume Martres2016-11-221-1/+14
|
* Move compiler and compiler tests to compiler dirFelix Mulder2016-11-2210-0/+2129