Skip to content

Feature/api interface#561

Merged
Perryvw merged 5 commits intomasterfrom
feature/api-interface
May 4, 2019
Merged

Feature/api interface#561
Perryvw merged 5 commits intomasterfrom
feature/api-interface

Conversation

@Perryvw
Copy link
Copy Markdown
Member

@Perryvw Perryvw commented May 4, 2019

Cleaned up visitorPattern interface in printer and transformer.

public transformSetAccessorDeclaration(
setAccessor: ts.SetAccessorDeclaration,
className: tstl.Identifier,
classDeclaration: ts.ClassLikeDeclaration
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Are you sure you want to remove the declaration parameter? I think there could be use cases were you would want to access it.

Or is it possible to access the ClassDeclaration via the SetAccessorDeclaration ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

setAccessor.parent should be the class declaration. I would also prefer to remove the className actually, but I'm not sure yet how exactly.

}

private joinChunks(separator: string, chunks: SourceChunk[]): SourceChunk[] {
protected isEmptyStatement(statement: tstl.Statement): boolean {
Copy link
Copy Markdown
Member

@lolleko lolleko May 4, 2019

Choose a reason for hiding this comment

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

Should probably name that isStatementEmpty

@Perryvw Perryvw merged commit 55da476 into master May 4, 2019
@Perryvw Perryvw deleted the feature/api-interface branch July 14, 2019 18:04
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.

3 participants