Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Renamed types that have the same name as a variable, but aren't directly related #67

Merged
merged 2 commits into from
Nov 23, 2019

Conversation

derekxu16
Copy link
Contributor

No description provided.

test/declaration_test.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@jacob314 jacob314 left a comment

Choose a reason for hiding this comment

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

lgtm
assuming the requested test to add passes.

whether types with names that conflict with variable names get renamed or get
merged with the variable.

Added --rename-conflicting-types flag
Made variables with the same name as types get merged into the types by
default
Separated handling of type names and value names in FacadeConverter
Comment on lines -1092 to -1094
declare type Y = X;

declare var Y: Y;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This alias doesn't work anymore since generateDartTypeName detects that Y is declared as an alias, so it ends up skipping the emission of class Y. This has been documented in #68.

Copy link
Contributor

@jacob314 jacob314 left a comment

Choose a reason for hiding this comment

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

lgtm

@derekxu16 derekxu16 merged commit fc55d7a into dart-archive:master Nov 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

3 participants