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

Updated interface for dependency translation rules. No more duplicate… #3330

Merged
merged 1 commit into from
Jul 3, 2016

Conversation

sorig
Copy link
Member

@sorig sorig commented Jul 3, 2016

… imports.

Also adds documentation for translation rules.

elementTemplate = Template("$className")
if "DependencyListElementClass" in self.targetDict["Dependencies"]:
elementTemplate = Template(self.targetDict["Dependencies"]["DependencyListElementClass"])
translations = set(map(self.translateDependencyElement, dependencies))
Copy link
Member Author

Choose a reason for hiding this comment

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

@karlnapf Here I'm making sure that each translated dependency is unique. I.e. if two different dependencies (an enum and a class) result in the same import translation, then they're squashed.

@@ -0,0 +1,239 @@
/** Target files specify rules for translation from meta-language to a target
Copy link
Member

Choose a reason for hiding this comment

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

what type of file is this?
.js ?

Copy link
Member Author

Choose a reason for hiding this comment

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

JavaScript. JSON does not support comments, so syntax highlighters make this hard to read. I could also change to markdown and wrap this in a code segment?

Copy link
Member

Choose a reason for hiding this comment

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

Lets discuss tomorrow

@karlnapf
Copy link
Member

karlnapf commented Jul 3, 2016

Great!
Lets merge once travis is green

@karlnapf karlnapf merged commit 08da61f into shogun-toolbox:develop Jul 3, 2016
@sorig sorig deleted the fix_enum_include branch July 7, 2016 10:51
karasikov pushed a commit to karasikov/shogun that referenced this pull request Apr 15, 2017
Updated interface for dependency translation rules. No more duplicate…
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.

None yet

2 participants