-
Notifications
You must be signed in to change notification settings - Fork 26.2k
feat(compiler): add support for the typeof
keyword in template expressions
#58183
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
Conversation
52e611b
to
ada8636
Compare
@@ -436,18 +452,6 @@ function isIdentifierStart(code: number): boolean { | |||
); | |||
} | |||
|
|||
export function isIdentifier(input: string): boolean { |
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.
This function was unused.
ada8636
to
da0b23f
Compare
da0b23f
to
7da26d8
Compare
7da26d8
to
9aa8ff2
Compare
@@ -99,6 +111,10 @@ export class Token { | |||
return this.type == TokenType.Keyword && this.strValue == 'this'; | |||
} | |||
|
|||
isKeywordTypeof(): boolean { | |||
return this.type == TokenType.Keyword && this.strValue == 'typeof'; |
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.
These should be triple equals.
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.
none of the method above use ===
, should we update them too ?
This is how random discussions in the Angular team Slack turn into PRs like that 🔥 |
…essions. This commit adds the support for `typeof` in template expressions like interpolation, bindings, control flow blocks etc.
207a73a
to
992769f
Compare
packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/operators.ts
Show resolved
Hide resolved
This PR was merged into the repository by commit 0c9d721. The changes were merged into the following branches: main |
…ate expressions. (angular#58183)" This reverts commit 0c9d721. This breaks CI jobs in `main`, and sync into google3. PR was green and presubmit too; so I'm suspecting some rebase conflicts with other changes being merged at the same time.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
…essions. (angular#58183) This commit adds the support for `typeof` in template expressions like interpolation, bindings, control flow blocks etc. PR Close angular#58183
This commit adds the support for
typeof
in template expressions like interpolations, bindings, control flow blocks etc.