ResolveExportResult copy ( Node sourceNode , Binding . CreatedBy createdBy ) { checkNotNull ( sourceNode ) ; if ( binding == null ) { return this ; } return new ResolveExportResult ( binding . copy ( sourceNode , createdBy ) , state ) ; }
Creates a new result that has the given node for the source of the binding and given type of binding .