aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/ast/untpd.scala
Commit message (Collapse)AuthorAgeFilesLines
* Rename PolyTypeTree -> LambdaTypeTreeMartin Odersky2017-04-061-2/+2
|
* Merge pull request #1958 from dotty-staging/add-enumodersky2017-04-061-0/+9
|\ | | | | Add "enum" construct
| * Change handling of enum defs.Martin Odersky2017-04-041-3/+5
| | | | | | | | | | | | | | The previous scheme did not work because desugaring cannot deal with repeated expansions. We now sidestep the issue by doing the expansion in the parser. Luckily, positions work out perfectly, so that one can reconstruct the source precisely from the parsed untyped trees.
| * Add enum syntaxMartin Odersky2017-04-041-0/+7
| | | | | | | | Modify syntax.md and Tokens/Parser/untpd to support enums.
* | Merge pull request #2168 from allanrenucci/warningsGuillaume Martres2017-04-041-1/+1
|\ \ | |/ |/| Fixes `@unchecked` warnings
| * Use `mapConserve` in `UntypedTreeMap`Allan Renucci2017-04-031-1/+1
| |
* | Merge pull request #2162 from abeln/infix-opDmitry Petrashko2017-04-041-3/+3
|\ \ | | | | | | Fix #1959: infix type operators in the REPL
| * | Fix #1959: infix type operators in the REPLAbel Nieto2017-04-021-3/+3
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Infix type operators were broken in the REPL. The REPL uses fold methods from the untpd package, but those were skipping the operator subtree when folding over an InfixOp. Fix the issue by taking the operator into account. Tested: 1) Verified that only the REPL code uses the modified fold method. 2) Added repl test.
* / fix copy of flags for ModuleDef and refactor codeliu fengyun2017-04-031-19/+19
|/
* address review feedbackliu fengyun2017-03-071-0/+1
|
* Represent untyped operators as Ident instead of NameGuillaume Martres2017-02-051-10/+10
| | | | | | | | 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.
* fix incorrect flatten of thicket inside interpolated string in UntpdTreeMapliu fengyun2017-01-301-1/+1
|
* Fix toString in ImplicitFunction treeMartin Odersky2016-12-171-1/+1
|
* Create implicit closures to math expected implicit functionsMartin Odersky2016-12-171-3/+3
| | | | | When the expected type is an implicit function, create an implicit closure to match it.
* Cleanup of implicit modifiers schemeMartin Odersky2016-12-171-1/+1
| | | | | Implicit modifiers were quite irregular compared to the other ones. This commit does a cleanup.
* Add syntax for implicit functionsMartin Odersky2016-12-171-0/+4
|
* Move compiler and compiler tests to compiler dirFelix Mulder2016-11-221-0/+562