aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/printing
Commit message (Collapse)AuthorAgeFilesLines
* Fix type errorMartin Odersky2017-04-111-1/+1
|
* Names are no longer SeqsMartin Odersky2017-04-111-2/+3
| | | | | | | | Drop Seq implementation of name. This implementation was always problematic because it entailed potentially very costly conversions to toSimpleName. We now have better control over when we convert a name to a simple name.
* Make module var names semanticMartin Odersky2017-04-111-2/+1
|
* Make freshName semanticMartin Odersky2017-04-111-1/+1
|
* Get rid of ExpandedName flagMartin Odersky2017-04-111-2/+3
|
* Add Variant NameInfoMartin Odersky2017-04-111-5/+1
| | | | Plus further bug fixes.
* Bug fixesMartin Odersky2017-04-111-1/+2
| | | | nameddefaults.scala now compiles without crashing
* Explain skolem typesMartin Odersky2017-04-101-3/+11
| | | | | | | | | | Strictly speaking, all the info about a skolem type is printed, e.g. A(?2) But it's reassuring to have an explanation line like ?2 is an unknown value of type A
* Handle printing of term paramrefsMartin Odersky2017-04-102-6/+8
| | | | These were not printed before, fell back to toString method.
* PolishingsMartin Odersky2017-04-061-1/+1
|
* Handle hk lambdas in tastyMartin Odersky2017-04-061-1/+1
|
* Further refactoringsMartin Odersky2017-04-061-2/+2
| | | | | - Use TypeLambda instead of PolyType. - Further harmonize factory operations
* Rename PolyTypeTree -> LambdaTypeTreeMartin Odersky2017-04-061-2/+2
|
* Rename PolyParam --> TypeParamRefMartin Odersky2017-04-063-11/+11
|
* Remove parameter from lambda typeMartin Odersky2017-04-061-1/+1
|
* Get rid of Name parameter for LambdaType and ParamRefMartin Odersky2017-04-061-1/+1
| | | | Use an abstract type instead.
* ParamType refactoringsMartin Odersky2017-04-061-2/+2
| | | | Trying to bring PolyTypes closer to TypeLambdas
* Harmonize paramTypes and paramBoundsMartin Odersky2017-04-061-2/+2
| | | | | | MethodTypes have paramTypes whereas PolyTypes have paramBounds. We now harmonize by alling both paramInfos, and parameterizing types that will become common to both.
* Break out functionality from MethodTypeMartin Odersky2017-04-061-3/+3
| | | | | and generalize MethodParam to ParamRef, and TypeParamInfo to ParamInfo
* Encode variances in parameter namesMartin Odersky2017-04-061-4/+4
| | | | | | | | | | This leads to a slight overall simplification, harmonizes pickle format with internal representation, and makes MethodTypes and PolyTypes more similar to each other. I believe the change is useful as it is, but in particular it is a useful step for an eventual unification of MethodTypes and PolyTypes.
* Fix mal-formatting.Martin Odersky2017-04-041-2/+4
| | | | Insert an empty line before "where" in an explanation.
* New flag -Ydebug-alias to never follow aliases when printing typesGuillaume Martres2017-03-161-1/+1
|
* -Yplain-printer: do not print positions by defaultGuillaume Martres2017-03-121-1/+1
| | | | You can still have positions printed by explictly passing -Yprintpos
* Merge pull request #2045 from dotty-staging/fix-hlist-hmapodersky2017-03-091-1/+3
|\ | | | | Fix type inference for HLists and HMaps
| * Fix printing of refined applied typesMartin Odersky2017-02-281-1/+3
| | | | | | | | | | | | If an applied type has a refinement, it was printed before as one large refinement type including the type parameter bindings.
* | Message rendering: colorize positional splice, then splitFelix Mulder2017-03-011-2/+17
|/
* Merge pull request #1974 from dotty-staging/fix/ctx-captureodersky2017-02-212-0/+16
|\ | | | | Avoid accidental captures of Context
| * ImportInfo: removed ctx parameter from constructorGuillaume Martres2017-02-192-0/+16
| | | | | | | | | | ImportInfo#toString required the ctx parameter,so it was replaced by ImportInfo#toText.
* | Merge pull request #1984 from dotty-staging/fix-#1747-v2odersky2017-02-211-1/+2
|\ \ | |/ |/| Fix #1747: Improve error message for Scala/Java type mismatch
| * Tweak printing of polymrophic methodsMartin Odersky2017-02-141-1/+2
| | | | | | | | Omit the `=>' if a PolyType has a MethodType as result type.
* | 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