SeedV / SeedLang

An embeddable and visualizable scripting engine for .Net and Unity.
https://seedv.github.io/SeedLang/
Apache License 2.0
9 stars 1 forks source link

Remove the Range abstract class #175

Closed codingpotato closed 2 years ago

codingpotato commented 2 years ago

Also change the TextPosition from struct to sealed class, because the objects of TextPosition could be shared without copy. It might increase the performance a little.

Also changed GetHashCode() methods of TextPosition and TextRange based on the discussion of: https://stackoverflow.com/questions/263400/what-is-the-best-algorithm-for-overriding-gethashcode