-
Notifications
You must be signed in to change notification settings - Fork 245
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
feat(jsii): introduce submodules feature #1297
Merged
Merged
Changes from 2 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
6e08662
feat(jsii): introduce submodules feature
RomainMuller 8161f8f
Merge branch 'master' into rmuller/submodules
RomainMuller bfcdc22
address PR feedback
RomainMuller 814e395
submodule some declarations in jsii-calc.
RomainMuller 4cd2e17
Merge remote-tracking branch 'origin/master' into rmuller/submodules
RomainMuller bbb7406
Fix the python stuff
RomainMuller c8bfb68
Merge remote-tracking branch 'origin/master' into rmuller/submodules
RomainMuller eecc965
Fixup mktemp invokation for Linux
RomainMuller e0343da
specification addendum
RomainMuller bc8d3ba
Update docs/specifications/2-type-system.md
RomainMuller a396e82
typo
RomainMuller 8845523
Represent submodules in jsii-reflect
RomainMuller a96ad4e
de-namespacing
RomainMuller 54ab8da
Merge branch 'master' into rmuller/submodules
RomainMuller d46f8ac
undo import move in Python CodeGen
RomainMuller 570540f
undo namespacing changes in kernel tests, too.
RomainMuller 2d4aa0f
minor fixes
RomainMuller eec62fb
Fix bugs in compiler
RomainMuller 318c67e
Fixing stuff in the submodules
RomainMuller 9c7fe09
Fixup test
RomainMuller c8d7514
Merge remote-tracking branch 'origin/master' into rmuller/submodules
RomainMuller fd2d41a
fix test expectations
RomainMuller 72877ca
Fix path capitalization (MacOS case-insentive FS made this... tough)
RomainMuller 4f26cce
Merge branch 'master' into rmuller/submodules
RomainMuller 09b567b
Merge branch 'master' into rmuller/submodules
RomainMuller b42349d
Merge remote-tracking branch 'origin/master' into rmuller/submodules
RomainMuller File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
export interface Structure { | ||
readonly bool: boolean; | ||
} | ||
|
||
export enum Goodness { | ||
/** It's pretty good */ | ||
PRETTY_GOOD, | ||
/** It's really good */ | ||
REALLY_GOOD, | ||
/** It's amazingly good */ | ||
AMAZINGLY_GOOD | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,4 @@ | ||
export namespace nested_submodule { | ||
export namespace deeplyNested { | ||
export interface INamespaced { | ||
readonly definedAt: string; | ||
} | ||
} | ||
|
||
export class Namespaced implements deeplyNested.INamespaced { | ||
public readonly definedAt = __filename; | ||
|
||
private constructor() { } | ||
} | ||
} | ||
|
||
export * as child from './child'; | ||
export * from './my-class'; | ||
export * from './nested_submodule'; | ||
export * as back_references from './refers-to-parent'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { nested_submodule } from './nested_submodule'; | ||
import { Goodness } from './child'; | ||
import { AllTypes } from '..'; | ||
|
||
export class MyClass implements nested_submodule.deeplyNested.INamespaced { | ||
public readonly definedAt = __filename; | ||
public readonly goodness = Goodness.AMAZINGLY_GOOD; | ||
public allTypes?: AllTypes; | ||
|
||
public constructor() { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Goodness } from './child'; | ||
|
||
export namespace nested_submodule { | ||
export namespace deeplyNested { | ||
export interface INamespaced { | ||
readonly definedAt: string; | ||
} | ||
} | ||
|
||
export abstract class Namespaced implements deeplyNested.INamespaced { | ||
public readonly definedAt = __filename; | ||
public abstract readonly goodness: Goodness; | ||
|
||
private constructor() { } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { MyClass } from '..'; | ||
|
||
export interface MyClassReference { | ||
readonly reference: MyClass; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optimistic today, aren't we? :-D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.