Minor: fix typo

This commit is contained in:
Mikhail Glukhikh
2017-10-20 14:10:15 +03:00
parent fa03632197
commit 4b8c04a3d6
@@ -1263,11 +1263,11 @@ public class KotlinParsing extends AbstractKotlinParsing {
LOCAL(true, false), LOCAL(true, false),
SCRIPT_TOPLEVEL(true, true); SCRIPT_TOPLEVEL(true, true);
public final boolean desctructuringAllowed; public final boolean destructuringAllowed;
public final boolean accessorsAllowed; public final boolean accessorsAllowed;
PropertyParsingMode(boolean desctructuringAllowed, boolean accessorsAllowed) { PropertyParsingMode(boolean destructuringAllowed, boolean accessorsAllowed) {
this.desctructuringAllowed = desctructuringAllowed; this.destructuringAllowed = destructuringAllowed;
this.accessorsAllowed = accessorsAllowed; this.accessorsAllowed = accessorsAllowed;
} }
} }
@@ -1295,7 +1295,7 @@ public class KotlinParsing extends AbstractKotlinParsing {
if (multiDeclaration) { if (multiDeclaration) {
PsiBuilder.Marker multiDecl = mark(); PsiBuilder.Marker multiDecl = mark();
parseMultiDeclarationName(propertyNameFollow); parseMultiDeclarationName(propertyNameFollow);
errorIf(multiDecl, !mode.desctructuringAllowed, "Destructuring declarations are only allowed for local variables/values"); errorIf(multiDecl, !mode.destructuringAllowed, "Destructuring declarations are only allowed for local variables/values");
} }
else { else {
parseFunctionOrPropertyName(receiverTypeDeclared, "property", propertyNameFollow, /*nameRequired = */ true); parseFunctionOrPropertyName(receiverTypeDeclared, "property", propertyNameFollow, /*nameRequired = */ true);