@Override public void addDiagnostic(AbstractDiagnostic diagnostic) { resolvedTypes.addDiagnostic(diagnostic); }
@Override public void addDiagnostic(AbstractDiagnostic diagnostic) { getParent().addDiagnostic(diagnostic); }
@Override public void addDiagnostic(AbstractDiagnostic diagnostic) { getParent().addDiagnostic(diagnostic); }
protected void mergeQueuedDiagnostics(ResolvedTypes parent) { Collection<AbstractDiagnostic> diagnostics = super.getQueuedDiagnostics(); for(AbstractDiagnostic diagnostic: diagnostics) { parent.addDiagnostic(diagnostic); } }
@Override protected JvmTypeReference handleReentrantInvocation(XComputedTypeReferenceImplCustom context) { resolvedTypes.addDiagnostic(new EObjectDiagnosticImpl( Severity.WARNING, IssueCodes.TOO_LITTLE_TYPE_INFORMATION, "Cannot infer type from recursive usage. Type 'Object' is used.", typeResolver.getSourceElement(operation), null, -1, null)); AnyTypeReference result = resolvedTypes.getReferenceOwner().newAnyTypeReference(); return typeResolver.toJavaCompliantTypeReference(result, session); } }
@Override protected JvmTypeReference handleReentrantInvocation(XComputedTypeReferenceImplCustom context) { EObject sourceElement = getSourceElement(member); EStructuralFeature feature = sourceElement.eClass().getEStructuralFeature("name"); resolvedTypes.addDiagnostic(new EObjectDiagnosticImpl( Severity.WARNING, IssueCodes.TOO_LITTLE_TYPE_INFORMATION, "Cannot infer type from recursive usage. Type 'Object' is used.", sourceElement, feature, -1, null)); AnyTypeReference result = resolvedTypes.getReferenceOwner().newAnyTypeReference(); return toJavaCompliantTypeReference(result, session); }
@Override /* @Nullable */ protected JvmTypeReference doGetTypeReference(XComputedTypeReferenceImplCustom context) { try { resolvedTypes.addDiagnostic(new EObjectDiagnosticImpl( Severity.ERROR, IssueCodes.TOO_LITTLE_TYPE_INFORMATION, "Cannot infer type", typeResolver.getSourceElement(member), null, -1, null)); return TypesFactory.eINSTANCE.createJvmAnyTypeReference(); } finally { context.unsetTypeProviderWithoutNotification(); } } }
if (!inheritedParameterType.isAssignableFrom(parameterType)) { XtendParameter xtendParameter = (XtendParameter) typeResolver.getSourceElement(parameter); resolvedTypes.addDiagnostic(new EObjectDiagnosticImpl( Severity.ERROR, org.eclipse.xtend.core.validation.IssueCodes.DISPATCH_FUNCTIONS_INVALID_PARAMETER_TYPE,
protected void addLocalToCurrentScope(QualifiedName elementName, JvmIdentifiableElement element, boolean raiseIssueIfShadowing) { if (getResolver().isDisallowedName(elementName)) { resolvedTypes.addDiagnostic(new EObjectDiagnosticImpl( Severity.ERROR, IssueCodes.VARIABLE_NAME_DISALLOWED, resolvedTypes.addDiagnostic(new EObjectDiagnosticImpl( getSeverity(IssueCodes.VARIABLE_NAME_DISCOURAGED), IssueCodes.VARIABLE_NAME_DISCOURAGED, IEObjectDescription existingElement = featureScopeSession.getLocalElement(elementName); if (existingElement != null) { resolvedTypes.addDiagnostic(new EObjectDiagnosticImpl( Severity.ERROR, IssueCodes.VARIABLE_NAME_SHADOWING,