andry-tino / Rosetta

Toolset for migrating your codebase from C# to TypeScript
http://antino-enlad.cloudapp.net:8080/job/Rosetta/
GNU General Public License v3.0
24 stars 9 forks source link

Add DisplayName in TypeReference helper #34

Open andry-tino opened 7 years ago

andry-tino commented 7 years ago

Base helper TypeReference has Name and FullName. Problem is that base level factories are using FullName which is good for ScriptSharp definitions, but not for normal translation.

  1. Add DisplayName to TypeReference.
  2. Have factories always use DisplayName when invoking TypeReference.
  3. Make DisplayName return Name in Rosetta.AST.Helpers.TypeReference.
  4. Make DisplayName return FullName in Rosetta.ScriptSharp.AST.Helpers.TypeReference.