Skip to content

Fix #3245: ensure transpile diagnostics only include syntactic and compiler options diagnostics - #3274

Merged
Mohamed Hegazy (mhegazy) merged 4 commits into
release-1.5from
filterTranspileDiagnostics
Jun 3, 2015
Merged

Mohamed Hegazy (mhegazy) merged 4 commits into
release-1.5from
filterTranspileDiagnostics

Conversation

@mhegazy

Copy link
Copy Markdown
Contributor

Also add correct handling to --newLine in transpile as well as unit tests

Comment thread src/compiler/program.ts Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a space: [] {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

@mhegazy

Copy link
Copy Markdown
Contributor Author

Ping 🔔 Cyrus Najmabadi (@CyrusNajmabadi) and Daniel Rosenwasser (@DanielRosenwasser) any more comments?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When this fails what do we see? Also just use a string literal here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it shows a message and the two codes.. not sure i see what else to put in htere..

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather you checked the sizes instead of diagnostics[i] &&, and that you always print out the entire results if something is wrong.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

size is checked in the next line.

Mohamed Hegazy (mhegazy) added a commit that referenced this pull request Jun 3, 2015
Fix #3245: ensure transpile diagnostics only include syntactic and compiler options diagnostics
@mhegazy
Mohamed Hegazy (mhegazy) merged commit 9b12fab into release-1.5 Jun 3, 2015
@mhegazy
Mohamed Hegazy (mhegazy) deleted the filterTranspileDiagnostics branch June 3, 2015 01:24
@microsoft Microsoft (microsoft) locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants