forked from JetBrains/android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test: AidlParserTest Fixes: 164526282 Change-Id: Ifba7ddf20f83846ec482c11b859cb2cccba10be0 GitOrigin-RevId: 038f6042d0b1a4061924250606e15eb9cd68d074
- Loading branch information
1 parent
aa5e98a
commit b0ac8aa
Showing
5 changed files
with
88 additions
and
18 deletions.
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
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
7 changes: 7 additions & 0 deletions
7
android-lang/testData/lang/aidl/parser/IWorkManagerImplCallback.aidl
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,7 @@ | ||
// IWorkManagerImplCallback.aidl | ||
package com.google; | ||
|
||
oneway interface IWorkManagerImplCallback { | ||
void onSuccess(); | ||
void onFailure(String error); | ||
} |
43 changes: 43 additions & 0 deletions
43
android-lang/testData/lang/aidl/parser/IWorkManagerImplCallback.txt
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,43 @@ | ||
FILE | ||
PsiComment(AidlTokenTypes.COMMENT)('// IWorkManagerImplCallback.aidl') | ||
AidlPackageImpl("com.google") | ||
PsiElement(AidlTokenTypes.PACKAGE_KEYWORD)('package') | ||
AidlQualifiedNameImpl("com.google") | ||
AidlNameComponentImpl("com") | ||
PsiElement(AidlTokenTypes.IDENTIFIER)('com') | ||
PsiElement(AidlTokenTypes.DOT)('.') | ||
AidlNameComponentImpl("google") | ||
PsiElement(AidlTokenTypes.IDENTIFIER)('google') | ||
PsiElement(AidlTokenTypes.SEMICOLON)(';') | ||
AidlBodyImpl(BODY) | ||
AidlInterfaceDeclarationImpl("IWorkManagerImplCallback" as in "com.google.IWorkManagerImplCallback") | ||
PsiElement(AidlTokenTypes.ONEWAY_KEYWORD)('oneway') | ||
PsiElement(AidlTokenTypes.INTERFACE_KEYWORD)('interface') | ||
AidlDottedNameImpl("IWorkManagerImplCallback") | ||
AidlNameComponentImpl("IWorkManagerImplCallback") | ||
PsiElement(AidlTokenTypes.IDENTIFIER)('IWorkManagerImplCallback') | ||
PsiElement(AidlTokenTypes.LBRACE)('{') | ||
AidlMethodDeclarationImpl("onSuccess") | ||
AidlTypeElementImpl(TYPE_ELEMENT) | ||
PsiElement(AidlTokenTypes.VOID_KEYWORD)('void') | ||
AidlNameComponentImpl("onSuccess") | ||
PsiElement(AidlTokenTypes.IDENTIFIER)('onSuccess') | ||
PsiElement(AidlTokenTypes.LPAREN)('(') | ||
PsiElement(AidlTokenTypes.RPAREN)(')') | ||
PsiElement(AidlTokenTypes.SEMICOLON)(';') | ||
AidlMethodDeclarationImpl("onFailure") | ||
AidlTypeElementImpl(TYPE_ELEMENT) | ||
PsiElement(AidlTokenTypes.VOID_KEYWORD)('void') | ||
AidlNameComponentImpl("onFailure") | ||
PsiElement(AidlTokenTypes.IDENTIFIER)('onFailure') | ||
PsiElement(AidlTokenTypes.LPAREN)('(') | ||
AidlParameterImpl("error") | ||
AidlTypeElementImpl("String") | ||
AidlQualifiedNameImpl("String") | ||
AidlNameComponentImpl("String") | ||
PsiElement(AidlTokenTypes.IDENTIFIER)('String') | ||
AidlNameComponentImpl("error") | ||
PsiElement(AidlTokenTypes.IDENTIFIER)('error') | ||
PsiElement(AidlTokenTypes.RPAREN)(')') | ||
PsiElement(AidlTokenTypes.SEMICOLON)(';') | ||
PsiElement(AidlTokenTypes.RBRACE)('}') |
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