Skip to content

change names for library and class files #626

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

Merged
merged 3 commits into from
Jul 8, 2015
Merged

change names for library and class files #626

merged 3 commits into from
Jul 8, 2015

Conversation

keertip
Copy link
Collaborator

@keertip keertip commented Jul 8, 2015

@sethladd

closes #585

@@ -507,7 +507,7 @@ class Library extends ModelElement {

String get path => _library.definingCompilationUnit.name;

String get nameForFile => name.replaceAll(':', '-');
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not a huge fan of this change. If I see a variable called "fileName", I'm going to assume it's the filename. As it stands, it's really just the part of the filename before the suffix.

I used nameForFile to make that clearer. There's probably a better name, but I think fileName promises too much.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

changing this to dirName and adding a fileName that returns libName-library.html to make this clear.

Copy link
Contributor

Choose a reason for hiding this comment

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

dirName is much better name than nameForFile :)

@sethladd
Copy link
Contributor

sethladd commented Jul 8, 2015

Thanks @keertip ! Left a few comments.

@sethladd
Copy link
Contributor

sethladd commented Jul 8, 2015

lgtm thank!

keertip added a commit that referenced this pull request Jul 8, 2015
change names for library and class files
@keertip keertip merged commit ef5c4bf into dart-lang:master Jul 8, 2015
@keertip keertip deleted the names branch July 8, 2015 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possible clash with index.html and a top-level name index
2 participants