aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Decorators.scala
Commit message (Collapse)AuthorAgeFilesLines
* Move compiler and compiler tests to compiler dirFelix Mulder2016-11-221-185/+0
|
* Clean up in `messages.scala`Felix Mulder2016-11-021-1/+1
|
* Fix reporting of ErrorTypes in highlighted segmentsFelix Mulder2016-10-101-0/+4
|
* CleanupsMartin Odersky2016-10-021-4/+3
| | | | | Better comments and refactorings that move some things around so that less modules depend on Inliner.
* Make inline annotation @scala.inline.Martin Odersky2016-10-021-1/+1
| | | | | | | | | | | | | | | | | | Drop @dotty.annotation.inline. This will inline all @inline marked methods in Scala for which a body is known (i.e. that are either compiled in the same run or have Tasty trees available). Option -Yno-inline suppresses inlining. This is needed for the moment because some @inline methods access private members or members that are otherwise inaccessible at the call-site. Also fixes some problems in Inliner - make sure type arguments to inline calls re fully defined - don't forget recursive calls in typeMap - don't forget positions in treeMap - drop dead code dealing with outer.
* Fix some problems in InlinerMartin Odersky2016-10-021-4/+4
| | | | | | | | | | | | | | 1. Don't retypecheck the arguments of an inlined epressions. These might be very large (e.g. inlined track, or traceIndented in dotty)/ 2. Keep track of inlined calls in context instead of Inlined nodes. We only need the to compute the source file, the rest is irrelevant. 3. In Def bindings of inlined by-name parameters, change owner of right hand side. Otherwise we get incorrect owner chains. 4. In TreeTypeMap, treat Inlined in the same way as a block.
* Simplify enclosingInlinedsMartin Odersky2016-10-021-4/+3
| | | | | - represent directly as a list - can replace separate inlineCount
* Print inlining positions in error messagesMartin Odersky2016-10-021-2/+12
| | | | | Error messages now print the inlined positions as well as the position of the inlined call, recursively.
* New string infterpolatorsMartin Odersky2016-08-161-61/+13
| | | | | | Roll `sm` and `i` into one interpolator (also called `i`) Evolve `d` to `em` interpolator (for error messages) New interpolator `ex` with more explanations, replaces disambiguation.
* Move Mode to coreMartin Odersky2016-04-011-1/+0
| | | | | Mode is used from a lot of low-level code, does not just reflect Typer info. So it makes more sense top to place it in the core package.
* Fix miniphase assembly.Martin Odersky2015-08-151-1/+1
| | | | | | | | There were two architectural errors here, which confused TreeTransforms and MiniPhases and which caused "NotDefinedHere" on transformFollowing: 1. TreeTransforms should not have idx fields, MiniPhases have them.2 2. TreeTransformers initialize arrays of MiniPhases not TreeTransforms.
* Fix DenotationNotDefinedHere in pattern matcherMartin Odersky2015-05-211-1/+1
| | | | | This was uncovered by previous commit "Fix isSubType bug ...". Also removed two redundants ".fresh" calls in "fresh.addMode".
* Correct a large number of typos.Jason Zaugg2015-05-141-1/+1
| | | | | I scanned the main sources with IntellIJ's spell checker and corrected what showed up.
* Allow future defs when printing with i"...".Martin Odersky2015-04-131-1/+2
| | | | | | | We saw a failure of accessing a denotation outside its defined interval, which got triggered by i"...". This should never be the case. We should be more interested in what i"..." has to print. (V2, to see whether this builds with Travis now)
* More fixes to unpicklingMartin Odersky2015-03-181-1/+1
| | | | | | - treated nested Matches correctly - treat nested packages correctly - SELECT always needs to select with sig
* -Ylog:X now only log phase X, use -Ylog:X+ to also log phase X+1Guillaume Martres2014-12-181-6/+13
|
* Add missing and double symbol checking to TreeCheckerMartin Odersky2014-10-261-0/+5
| | | | | | | | TreeChecker now tests that a symbol does not have two definitions that define it, and that every reference to a symbol owner by a term is in the scope of a definition of that symbol. Both tests fail on several files for pattern matcher.
* Harden construction of i"..." stringsMartin Odersky2014-09-051-4/+9
| | | | | | | Catch exceptions and embed into string instead of passing exception on. Reason: i"" strings are for diagnostic output but may cause exceptions such as CyclicReferences, stale symbols and so on. We never want to crash the program with such an exception.
* Rename in Phase: name -> phaseNameMartin Odersky2014-08-181-1/+1
| | | | | Most transformations are subclasses of phase. Having a generic name like `name` in scope everywhere is therefore very risky.
* Disentangle phases from treetransformsMartin Odersky2014-08-091-1/+1
| | | | | | | | TreeTransforms are no longer phases. This allows to generate new transforms in prepare... methods without running into the problem that thee new transforms are undefined as phases. It also makes for a cleaner separation of concerns.
* Various cleanups and utility additionsMartin Odersky2014-07-171-2/+34
| | | | | | | - Some new functionality in tpd and in Symbols. - Added `sm` interpolator to print nicely. - Make use of nestedMap where possible. - Add IdentityDenotTransformer as a convencience class
* Add support for specifying 'all' for -Xprint, -Yskip, etcGuillaume Martres2014-04-211-2/+3
|
* move InfoString from ErrorReporting to Decorators andSamuel Gruetter2014-04-021-1/+32
| | | | remove all isSensical/SuppressedMessage logic from InfoString
* Adapting containsPhase to phase groupsMartin Odersky2014-03-311-2/+5
| | | | | A list of names contains a phasegroup if it contains any phase in the group.
* Small tweaks to typerMartin Odersky2013-12-161-0/+1
|
* Types refactoringsMartin Odersky2013-11-251-0/+6
| | | | | | - moving out type applicaton related operations to a decorator: TypeApplications - converting some set operations to list operations to make them replayable. - moving unused operations to Types.overflow
* widen if unstable prefixMartin Odersky2013-11-131-0/+7
|
* Bug fixes and improvements in error diagnostics.Martin Odersky2013-09-161-0/+1
| | | | Main refactoring: lub/glb moves to type comparers.
* More solid design of Namer with some Typer bits added.Martin Odersky2013-06-031-0/+32
|
* wip namer.Martin Odersky2013-05-281-0/+4
|
* NameTransformer.encode now goes from names to names.Martin Odersky2013-05-241-2/+0
| | | | Also, special treatment of <init>, which is not encoded.
* Refactored Printing architecture.Martin Odersky2013-05-171-1/+2
| | | | | Split printers into several files. Added refined printing of trees. Changed Showable and generalized printing under a precedence.
* Refactored Printers, Showable and Text into new package dotc.printing.Martin Odersky2013-05-141-1/+1
|
* Pretty-printing improvements.Martin Odersky2013-03-201-1/+5
|
* Polishing of scopes.Martin Odersky2013-03-061-3/+2
|
* Finished polishing of Types and TypeOps.Martin Odersky2013-03-061-0/+20
| | | | Manjor change is that splitArgs got eliminated and replaced by an optimized version of typeArgs.
* Cleanup of decoratorsMartin Odersky2013-02-271-2/+15
|
* Filling in all ???sMartin Odersky2013-02-271-2/+6
| | | | | | | Added reporters. Added context for signatures. Implemented method signatures via erasure. Refined derivedNameType handling.
* PreNames as a way to unify Names and Strings.Martin Odersky2013-02-151-1/+1
|
* Swiztched to name table, added StdNames and related definitions. Introduced ↵Martin Odersky2013-01-301-8/+5
| | | | LocalNames.
* Various additions to symbols, denotations, and elsewhereMartin Odersky2013-01-241-0/+13
|
* Initial commitMartin Odersky2012-12-061-0/+37