Skip to content

Commit

Permalink
Rename Reference#isReference to isReferenceToken.
Browse files Browse the repository at this point in the history
  • Loading branch information
skinny85 committed Mar 14, 2019
1 parent b96ed0d commit 4d1884a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/cdk/lib/reference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class Reference extends Token {
/**
* Check whether this is actually a Reference
*/
public static isReference(x: Token): x is Reference {
public static isReferenceToken(x: Token): x is Reference {
return (x as any).consumeFromStack !== undefined;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/cdk/lib/stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ export class Stack extends Construct {
protected prepare() {
// References
for (const ref of this.node.findReferences()) {
if (Reference.isReference(ref)) {
if (Reference.isReferenceToken(ref)) {
ref.consumeFromStack(this);
}
}
Expand Down

0 comments on commit 4d1884a

Please sign in to comment.