Skip to content

Commit

Permalink
Fill gaps in Ammonite API page
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarchambault committed Apr 12, 2019
1 parent 91a053f commit 58f7e27
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions docs/pages/api-ammonite.md
Expand Up @@ -138,24 +138,39 @@ repl.lastException // last thrown exception, or null if none were thrown

### Command history

???
```scala
repl.history // current session history
repl.fullHistory // shared history
```

### Refresh compiler instance

???
```scala
repl.newCompiler()
```

### Get compiler instance

???
```scala
repl.compiler // has type scala.tools.nsc.Global
```

### Get current imports

???
```scala
repl.imports
```

### Evaluate code

???
```scala
repl.load("val a = 2")
```

### Byte code of REPL inputs

???
```scala
repl.sess.frames.flatMap(_.classloader.newFileDict).toMap
// Map[String, Array[Byte]], keys: class names, values: byte code
```

0 comments on commit 58f7e27

Please sign in to comment.