aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * Add enum syntaxMartin Odersky2017-04-044-29/+115
| | | | | | | | Modify syntax.md and Tokens/Parser/untpd to support enums.
| * Fix mal-formatting.Martin Odersky2017-04-042-3/+5
| | | | | | | | Insert an empty line before "where" in an explanation.
* | Resize dottydoc menu button to 15pxFelix Mulder2017-04-061-1/+1
| |
* | Make dottydoc main page responsive (#2052)Herdy Handoko2017-04-063-33/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add CSS media queries to support off-canvas sidebar * Add sidebar toggle interactivity for small viewports * Re-add sidebar toggle support for desktop viewport widths * Widen sidebar in mobile viewport and removed extra padding in content body * Reduce sidebar width back to 250px on Desktop and Tablet viewports Tablet (576px <= x < 768px) viewport sidebar is now limited to 250px to follow Desktop viewports whilst still retaining its off-canvas behaviour like Mobile. Mobile viewport (x < 576px) still implements 60% sidebar width. * Refactor media queries to follow mobile-first strategy Instead of specifying specific styles at a viewport width range, e.g. Tablet (576px <= x < 768px), the CSS properties are arranged as such that default CSS properties applies to Mobile, with Tablet and Desktop styles defined within media queries. Mobile-first strategy will ensure more consistency as style resolution will go in one direction, e.g. from Mobile -> Tablet -> Desktop. * Move `div#entity-container` and `div#doc-page-container` further down The change above, in addition to qualifying `button#menu-toggle` with `div#content-wrapper` parent selector will make the existing CSS easier to refactor removing duplicates, and to swap it into CSS pre-processor languages such as SASS or Less. * Merge redundant `div#content-body` styles Two different `div#content-body` styles was defined, one with only `position: relative` and another with the complete styles. In addition, a `div#content-body` Tablet and Desktop padding style was moved into the relevant media query to make future changes more transparent. * Change `rgba(...)` properties to insert space and prefix decimals with `0` Within the CSS file, RGBA property declaration is inconsistent: some with space after comma and some without, some has leading `0` for decimals and some dont'. This change make sure that one style is followed (space after comma and always use the leading `0` in decimals). * Move hamburger menu to original location and restore hover styling Hamburger menu now stays in the content body as per original design. However to prevent overlap with body text, a permanent 30px left padding on the body container has been added. * Remove hamburger menu transformation into arrow on expansion As per PR review comments (https://github.com/lampepfl/dotty/pull/2052) the old hamburger menu style is restored by removing CSS transforms. * Change hamburger menu positioning to `absolute` As per PR review comments (https://github.com/lampepfl/dotty/pull/2052) the hamburger menu positioning is changed back to absolute, which also means the left padding on content body is no longer needed and can be removed.
* | Merge pull request #2025 from dotty-staging/fix-2024Nicolas Stucki2017-04-055-8/+25
|\ \ | | | | | | Fix #2024: TypeApply can be a final apply of a recursive method.
| * | Change -XemitTasty to -YemitTastyDmitry Petrashko2017-04-041-1/+1
| | |
| * | Remove name clash in test.Dmitry Petrashko2017-03-131-1/+1
| | |
| * | Check that #2024 is fixed.Dmitry Petrashko2017-03-081-0/+4
| | |
| * | Fix #2024: TypeApply can be a final apply of a recursive method.Dmitry Petrashko2017-03-081-0/+4
| | | | | | | | | | | | | | | nullary methods with type parameters were handled wrongly, which led to absence of type application and a cryptic error message.
| * | Add support for `-XemitTasty`.Dmitry Petrashko2017-03-082-7/+16
| | | | | | | | | | | | It saves tasty output near the class file output to a *.tasty-file.
* | | Merge pull request #2190 from dotty-staging/fix-robust-avoidanceGuillaume Martres2017-04-041-2/+8
|\ \ \ | | | | | | | | Make leak avoidance more robust
| * | | Make leak avoidance more robustMartin Odersky2017-04-041-2/+8
| | |/ | |/| | | | | | | | | | | | | If class files are missing, finding an underlying class reference might give a NoType. This caused an asInstanceOf to fail. We now handle that case gracefully.
* | | Merge pull request #2189 from dotty-staging/fix/privateleak-forcingGuillaume Martres2017-04-045-8/+48
|\ \ \ | | | | | | | | checkNoPrivateLeaks: Do not allow types to refer to leaky aliases
| * | | checkNoPrivateLeaks: Do not allow types to refer to leaky aliasesGuillaume Martres2017-04-045-8/+48
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `checkNoPrivateLeaks` can force a lot of things, this lead to hard-to-reproduce issues in unpickling because we called `checkNoPrivateLeaks` on the type parameters of a class before anything in the class was indexed. We fix this by making sure that `checkNoPrivateLeaks` never transforms type symbols, only term symbols, therefore we can unpickle type parameters without forcing too many things. tests/neg/leak-type.scala illustrates the new restriction that this necessitates.
* | | Merge pull request #2168 from allanrenucci/warningsGuillaume Martres2017-04-045-11/+10
|\ \ \ | |/ / |/| | Fixes `@unchecked` warnings
| * | Addresses review commentsAllan Renucci2017-04-044-10/+9
| | |
| * | Use `mapConserve` in `UntypedTreeMap`Allan Renucci2017-04-031-1/+1
| | |
| * | Fixes @unchecked warningsAllan Renucci2017-04-034-6/+6
| | |
* | | Merge pull request #2162 from abeln/infix-opDmitry Petrashko2017-04-042-3/+8
|\ \ \ | | | | | | | | Fix #1959: infix type operators in the REPL
| * | | Fix #1959: infix type operators in the REPLAbel Nieto2017-04-022-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge pull request #2149 from dotty-staging/fix/false-companion-2Dmitry Petrashko2017-04-041-5/+16
|\ \ \ \ | | | | | | | | | | Create dummy companions for classes without a real one
| * | | | Create dummy companions for classes without a real oneGuillaume Martres2017-03-291-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In #2139 I added code to create dummy companions for companion-less objects, but not for companion-less classes because I thought it wasn't needed. But it turns out that even if the classpath only has `Foo.class` and not `Foo$.class`, a module for `Foo` is entered by `initializeFromClassPath` when it calls `enterClassAndModule`, so we have to add dummy companions to classes. I don't have a test to illustrate this issue, but note that it fixes the incremental compilation bug demonstrated by https://github.com/dotty-staging/dotty/commits/incremental-compilation-bug. Note: I verified that adding a dummy companion to "class Foo" did not cause the backend to emit a Foo$.class, so this should have no visible impact.
* | | | | Merge pull request #2167 from dotty-staging/fix-copyDmitry Petrashko2017-04-041-19/+19
|\ \ \ \ \ | |_|_|/ / |/| | | | fix copy of flags for ModuleDef and refactor code
| * | | | fix copy of flags for ModuleDef and refactor codeliu fengyun2017-04-031-19/+19
|/ / / /
* | | | Merge pull request #2159 from dotty-staging/fix-hashcodeDmitry Petrashko2017-04-032-6/+7
|\ \ \ \ | | | | | | | | | | Make case class hashCode take class into account
| * \ \ \ Merge branch 'master' into fix-hashcodeFelix Mulder2017-04-0218-93/+298
| |\ \ \ \
| * | | | | Use full name of case classes for hashingMartin Odersky2017-03-311-2/+3
| | | | | |
| * | | | | Optimize hashCode computationMartin Odersky2017-03-312-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | Also, update check file.
| * | | | | Make case class hashCode take class into accountMartin Odersky2017-03-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, elements of the following classes had the same hash code: case class A() case class B() Now they are distinguished.
* | | | | | Merge pull request #2161 from dotty-staging/si4400Dmitry Petrashko2017-04-031-0/+35
|\ \ \ \ \ \ | | | | | | | | | | | | | | Test that SI-4400 stays fixed.
| * \ \ \ \ \ Merge branch 'master' into si4400Felix Mulder2017-04-0216-82/+254
| |\ \ \ \ \ \ | | | |/ / / / | | |/| | | |
| * | | | | | Test that SI-4400 stays fixed.Dmitry Petrashko2017-03-311-0/+35
| | | | | | |
* | | | | | | Merge pull request #2157 from dotty-staging/patmat-dead-codeFelix Mulder2017-04-021-109/+3
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | Remove dead code in pattern matching
| * | | | | | Remove unreachable `tupleExtractor` methodOlivier Blanvillain2017-03-301-22/+1
| | | | | | |
| * | | | | | Remove dead code from pattern matcherOlivier Blanvillain2017-03-301-87/+2
| | |/ / / / | |/| | | | | | | | | | | | | | | | Starting from unreachable case https://github.com/lampepfl/dotty/blob/f75caad00256db52bbd3310f245e51d23c2a76cc/compiler/src/dotty/tools/dotc/transform/PatternMatcher.scala#L1408
* | | | | | Merge pull request #2154 from dotty-staging/topic/fix-#2151Felix Mulder2017-03-319-61/+119
|\ \ \ \ \ \ | | | | | | | | | | | | | | Fix #2151: don't die for wrong number of typeargs applied
| * | | | | | Fix deadlock in `runAll`Felix Mulder2017-03-313-49/+51
| | | | | | |
| * | | | | | Improve summary report by dumping all to stdout on CIFelix Mulder2017-03-315-8/+41
| | | | | | |
| * | | | | | Make DiffUtil's rendering readable in logsFelix Mulder2017-03-313-3/+20
| | | | | | |
| * | | | | | Fix #2151: don't die for wrong number of typeargs appliedFelix Mulder2017-03-312-1/+7
| |/ / / / /
* | | | | | Merge pull request #2153 from dotty-staging/topic/dottest-usermanFelix Mulder2017-03-315-7/+129
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | Add documentation for new parallel testing suite
| * | | | | Add documentation for new parallel testing suiteFelix Mulder2017-03-305-7/+129
| | |_|/ / | |/| | |
* | | | | Merge pull request #2160 from dotty-staging/make-testing-more-robustFelix Mulder2017-03-311-3/+2
|\ \ \ \ \ | | | | | | | | | | | | Make testing more robust
| * | | | | Avoid NPE in ParallelTesting on junk filesMartin Odersky2017-03-311-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Emacs often produces temporary files in directories. These used to cause NPEs in the new testing framework. We now fix this by only compiling file names that designate source files.
* | | | | | Merge pull request #2158 from dotty-staging/fix-i2165odersky2017-03-314-22/+48
|\| | | | | | |_|/ / / |/| | | | Fix #2156
| * | | | Fix ClassfileParserMartin Odersky2017-03-312-11/+4
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | #2158 has uncovered flaws in the classfile parser. Matches that used to always miss led to code that made no sense. The function naming was terrible too, that's why nobody understood what was going on. `findSourceFile` to find the class file, seriously?
| * | | Fix a bug(I guess?) hidden by scalac sometimes not emitting outer checksDmitry Petrashko2017-03-301-2/+3
| | | |
| * | | Test that #2156 is fixedDmitry Petrashko2017-03-301-0/+37
| | | |
| * | | PatMat, Outerchecks: Check outers for selections from singleton type.Dmitry Petrashko2017-03-301-3/+4
| | | | | | | | | | | | | | | | | | | | Otherwise checks are done also on type projections. Same pitfall as https://issues.scala-lang.org/browse/SI-7214
| * | | PatMat: get rid of unnecessary forwarderDmitry Petrashko2017-03-301-8/+2
| | | |