-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read property '0' of null #1
Comments
It appears that you don't understand the purpose of this package. It was It is not using the TypeScript compiler at as it is trying to provide some Thanks for your interest, Matt On Wed, Dec 31, 2014 at 4:11 PM, cherrydev notifications@github.com wrote:
|
Yes, I understand that it is based off of ng-classify and I think it would be useful to provide the same functionality for Typescript. If you read the source of the ng-classify module (for example here) you'll see that it uses the coffeescript compiler service itself to parse the .coffee files to search for the appropriate classes rather than attempting to parse the files unassisted. This is analogous to what I'm suggesting. |
Okay, Sorry for jumping to the wrong conclusion. Yes, I 100% agree that this Matt On Wed, Dec 31, 2014 at 4:27 PM, cherrydev notifications@github.com wrote:
|
Even a trivial test of this plugin gives me the error:
At index.js:47:31
Looking at your source code, it appears that you're simply searching for text patterns, which I suspect is very limiting and fragile. If anyone is interested in continuing to develop and maintain this sort of functionality, I recommend that they investigate using the actual typescript compiler API, which has the ability to walk the parsed SyntaxTree and transform it. This API is used by the gulp-typescript and tslint modules if you're looking for examples, but is sadly lacking in real documentation or examples from MS. In addition both the "typescript.api" and "typescript-api" modules appear abandoned and are not up-to-date with the compiler apis. MS's "documentation" is simply this page.
The text was updated successfully, but these errors were encountered: