@Override protected void processTypeParameter(JvmTypeParameter typeParameter, LightweightTypeReference reference) { Maps2.putIntoListMap(typeParameter, boundByDefaultSource(reference), typeParameterMapping); }
protected void acceptType(XExpression expression, TypeData typeData) { Maps2.putIntoListMap(expression, typeData, ensureExpressionTypesMapExists()); }
public boolean addImport(JvmDeclaredType type) { if (plainImports.containsKey(type.getSimpleName()) || !needsImport(type)) return false; Maps2.putIntoListMap(type.getSimpleName(), type, plainImports); XImportDeclaration importDeclaration = XtypeFactory.eINSTANCE.createXImportDeclaration(); importDeclaration.setImportedType(type); addedImportDeclarations.add(importDeclaration); return true; }
Maps2.putIntoListMap(getExtensionSignature(desc), desc, extensionSignatures); } else { if (desc.getImplicitReceiver() != null) { Maps2.putIntoListMap(valid.getName(), valid, allElementsByName);
LightweightTypeReference resolvedConstraint = lightweightReference.accept( substitutor, substitutor.createVisiting(pendingParameter)); Maps2.putIntoListMap(pendingParameter, boundByConstraint(resolvedConstraint, pendingParameter), result); } else { LightweightTypeReference lightweightReference = getOwner().newReferenceToObject(); Maps2.putIntoListMap(pendingParameter, boundByConstraint(lightweightReference, pendingParameter), result);
public RewritableImportSection(XtextResource resource, IImportsConfiguration importsConfiguration, XImportSection originalImportSection, String lineSeparator, ImportSectionRegionUtil regionUtil, IValueConverter<String> nameConverter) { this.importsConfiguration = importsConfiguration; this.resource = resource; this.lineSeparator = lineSeparator; this.regionUtil = regionUtil; this.nameValueConverter = nameConverter; this.implicitlyImportedPackages = importsConfiguration.getImplicitlyImportedPackages(resource); this.importRegion = regionUtil.computeRegion(resource); if (originalImportSection != null) { for (XImportDeclaration originalImportDeclaration : originalImportSection.getImportDeclarations()) { this.originalImportDeclarations.add(originalImportDeclaration); JvmDeclaredType importedType = originalImportDeclaration.getImportedType(); if (originalImportDeclaration.isStatic()) { String memberName = originalImportDeclaration.getMemberName(); if (originalImportDeclaration.isExtension()) { Maps2.putIntoSetMap(importedType, memberName, staticExtensionImports); } else { Maps2.putIntoSetMap(importedType, memberName, staticImports); } } else if (importedType != null) { Maps2.putIntoListMap(importedType.getSimpleName(), importedType, plainImports); } } } }
Maps2.putIntoListMap(otherHandle, copyBoundTypeArgument(currentUnbound, boundTypeArgument), ensureTypeParameterHintsMapExists()); Maps2.putIntoListMap(handle, boundTypeArgument, ensureTypeParameterHintsMapExists()); } else { throw new IllegalStateException("Cannot add hints if the reference was already resolved");