How do I find out what keyword has been used for declaring a local variable? how do I differentiate between the following:

```
var hi = "asdf";
string hi = "asdf";

```

Also, is there a comprehensive API documentation available for writing Roslyn diagnostics? Has anyone written a book on this yet?