diff options
author | michelou <michelou@epfl.ch> | 2011-07-20 21:52:50 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2011-07-20 21:52:50 +0000 |
commit | c0ddb8f941dcb4ec0ca0aae0739406352e17cdfa (patch) | |
tree | d2107fa9c923dbd53f1c17cd8d4b6159b15b7768 /src/compiler/scala/tools/nsc/backend/ScalaPrimitives.scala | |
parent | 628c0265aaeaab8ef84dfc623d45119972f83656 (diff) | |
download | scala-c0ddb8f941dcb4ec0ca0aae0739406352e17cdfa.tar.gz scala-c0ddb8f941dcb4ec0ca0aae0739406352e17cdfa.tar.bz2 scala-c0ddb8f941dcb4ec0ca0aae0739406352e17cdfa.zip |
4th round of clean ups (see r25293, r25285, r25...
4th round of clean ups (see r25293, r25285, r25292)
Diffstat (limited to 'src/compiler/scala/tools/nsc/backend/ScalaPrimitives.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/ScalaPrimitives.scala | 38 |
1 files changed, 14 insertions, 24 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/ScalaPrimitives.scala b/src/compiler/scala/tools/nsc/backend/ScalaPrimitives.scala index 0948e072b4..05571b2424 100644 --- a/src/compiler/scala/tools/nsc/backend/ScalaPrimitives.scala +++ b/src/compiler/scala/tools/nsc/backend/ScalaPrimitives.scala @@ -3,38 +3,28 @@ * @author Martin Odersky */ - package scala.tools.nsc package backend import scala.tools.nsc.backend.icode._ import scala.collection.{ mutable, immutable } -/** - * Scala primitive operations are represented as methods in Any and - * AnyVal subclasses. Here we demultiplex them by providing a mapping - * from their symbols to integers. Different methods exist for - * different value types, but with the same meaning (like plus, minus, - * etc.). They will all be mapped to the same int. +/** Scala primitive operations are represented as methods in `Any` and + * `AnyVal` subclasses. Here we demultiplex them by providing a mapping + * from their symbols to integers. Different methods exist for + * different value types, but with the same meaning (like plus, minus, + * etc.). They will all be mapped to the same int. * - * <p>Note: The three equal methods have the following semantics:</p> - * <ul> - * <li> - * <code>"=="</code> checks for null, and if non-null, calls - * <code>java.lang.Object.equals</code><br/> - * <code>(class: Any; modifier: final)</code>. Primitive: EQ - * </li> - * <li> - * <code>"eq"</code> usual reference comparison<br/> - * <code>(class: AnyRef; modifier: final)</code>. Primitive: ID - * </li> - * <li> - * <code>"equals"</code> user-defined equality (Java semantics)<br/> - * <code>(class: Object; modifier: none)</code>. Primitive: EQUALS - * </li> - * </ul> + * Note: The three equal methods have the following semantics: + * - `"=="` checks for `null`, and if non-null, calls + * `java.lang.Object.equals` + * `(class: Any; modifier: final)`. Primitive: `EQ` + * - `"eq"` usual reference comparison + * `(class: AnyRef; modifier: final)`. Primitive: `ID` + * - `"equals"` user-defined equality (Java semantics) + * `(class: Object; modifier: none)`. Primitive: `EQUALS` * - * Inspired from the scalac compiler. + * Inspired from the `scalac` compiler. */ abstract class ScalaPrimitives { val global: Global |