-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor unit test improvements. deferring overhaul to #5
- Loading branch information
Showing
3 changed files
with
35 additions
and
21 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
compiler-plugin/src/main/scala/org/canve/compilerPlugin/QualiferID.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.canve.compilerPlugin | ||
|
||
/* | ||
* Unique Symbol QualiferID, serializable | ||
*/ | ||
case class KindAndName(kind: String, name: String) | ||
|
||
case class QualifiedID(value: List[KindAndName]) { | ||
def pickle = value.map(kindAndName => "(" + kindAndName.kind + "|" + kindAndName.name + ")").mkString(".") | ||
} | ||
object QualifiedID { | ||
def unpickle(s: String) = | ||
QualifiedID(s.split('.').toList.map(pair => KindAndName(pair.takeWhile(_!='|').drop(1), pair.dropWhile(_!='|').drop(1).dropRight(1)))) | ||
} |
12 changes: 0 additions & 12 deletions
12
compiler-plugin/src/main/scala/org/canve/compilerPlugin/Serialization.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters