Skip to content
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

Patch (Refactoring) #8

Closed
GoogleCodeExporter opened this issue Mar 14, 2016 · 3 comments
Closed

Patch (Refactoring) #8

GoogleCodeExporter opened this issue Mar 14, 2016 · 3 comments

Comments

@GoogleCodeExporter
Copy link

- Removed all references to System.Collections (ArrayList).
- Dictionary initialization with C# 3.0 syntax (we already rely on C# 3.0 as 
we're using "var" so that's a non-issue in terms of dependencies).
- Pair structure was used to store tokens in a dirty way (it used the first 
string to store whether it's a text token or a tag. I used an enum instead to 
hold that value. I considered KeyValuePair<TokenType,string> too but decided 
against it as Token structure more clearly describes intent).

Original issue reported on code.google.com by mehi.afs...@gmail.com on 29 Dec 2009 at 9:37

Attachments:

@GoogleCodeExporter
Copy link
Author

I really like this change -- much cleaner code! Folding it in now. The .patch 
file
was not in subversion format, which made it a bit awkward, and I had to do it 
by hand
-- can you check to make sure I did it right? The tests pass...

Original comment by wump...@gmail.com on 30 Dec 2009 at 2:15

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Looks fine to me. You can now remove the unnecessary `using 
System.Collections;` 
directive.

Yeah, it was GNU diff from the original Markdown.cs and mine. I couldn't submit 
a 
subversion patch since I cannot checkout the repository (Google Code blocks all 
IPs in 
our country and for some reason svn didn't work over my HTTP proxy so I had to 
manually 
browse the source and save it with a browser over an HTTP proxy). 

Original comment by mehi.afs...@gmail.com on 30 Dec 2009 at 2:38

@GoogleCodeExporter
Copy link
Author

excellent, thanks for the contribution!

Original comment by wump...@gmail.com on 30 Dec 2009 at 7:24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant