Migration to expect/actual: change some comments in compiler

This commit is contained in:
Mikhail Glukhikh
2017-09-15 13:50:21 +03:00
parent fcc84d00c3
commit d3082b0e62
3 changed files with 4 additions and 4 deletions
@@ -167,7 +167,7 @@ public class BodyResolver {
@NotNull ClassConstructorDescriptor descriptor
) {
if (descriptor.isExpect() || isEffectivelyExternal(descriptor)) {
// For header and external classes, we do not resolve constructor delegation calls because they are prohibited
// For expected and external classes, we do not resolve constructor delegation calls because they are prohibited
return DataFlowInfo.Companion.getEMPTY();
}
@@ -185,8 +185,8 @@ public class ValueArgumentsToParametersMapper {
if (nameReference != null) {
if (candidate instanceof MemberDescriptor && ((MemberDescriptor) candidate).isExpect() &&
candidate.getContainingDeclaration() instanceof ClassDescriptor) {
// We do not allow named arguments for members of header classes until we're able to use both
// headers and platform definitions when compiling platform code
// We do not allow named arguments for members of expected classes until we're able to use both
// expected and actual definitions when compiling platform code
report(NAMED_ARGUMENTS_NOT_ALLOWED.on(nameReference, EXPECTED_CLASS_MEMBER));
}
else if (!candidate.hasStableParameterNames()) {
@@ -194,7 +194,7 @@ public class RecursiveDescriptorComparator {
}
}
// 'header' declarations do not belong to the platform-specific module, even though they participate in the analysis
// 'expected' declarations do not belong to the platform-specific module, even though they participate in the analysis
if (descriptor instanceof MemberDescriptor && ((MemberDescriptor) descriptor).isExpect() &&
module.getCapability(MultiTargetPlatform.CAPABILITY) != MultiTargetPlatform.Common.INSTANCE) return false;