2007-02-02 17:25:09 +00:00
|
|
|
/******************************************************************************
|
|
|
|
* Copyright (c) 2002 - 2006 IBM Corporation.
|
|
|
|
* All rights reserved. This program and the accompanying materials
|
|
|
|
* are made available under the terms of the Eclipse Public License v1.0
|
|
|
|
* which accompanies this distribution, and is available at
|
|
|
|
* http://www.eclipse.org/legal/epl-v10.html
|
|
|
|
*
|
|
|
|
* Contributors:
|
|
|
|
* IBM Corporation - initial API and implementation
|
|
|
|
*****************************************************************************/
|
|
|
|
package com.ibm.wala.cast.js.ssa;
|
|
|
|
|
2007-02-09 15:34:25 +00:00
|
|
|
import java.util.Collection;
|
|
|
|
import java.util.Collections;
|
2007-02-02 17:25:09 +00:00
|
|
|
|
2007-02-09 15:34:25 +00:00
|
|
|
import com.ibm.wala.cast.js.types.JavaScriptTypes;
|
|
|
|
import com.ibm.wala.types.TypeReference;
|
2007-02-02 17:25:09 +00:00
|
|
|
|
|
|
|
class Util {
|
2007-02-09 15:34:25 +00:00
|
|
|
private static final Collection<TypeReference> TYPE_ERROR_EXCEPTIONS = Collections.unmodifiableCollection(Collections
|
|
|
|
.singleton(JavaScriptTypes.TypeError));
|
2007-02-02 17:25:09 +00:00
|
|
|
|
2007-02-09 15:34:25 +00:00
|
|
|
public static Collection<TypeReference> typeErrorExceptions() {
|
2007-02-02 17:25:09 +00:00
|
|
|
return TYPE_ERROR_EXCEPTIONS;
|
|
|
|
}
|
|
|
|
|
2007-02-09 15:34:25 +00:00
|
|
|
public static Collection<TypeReference> noExceptions() {
|
|
|
|
return Collections.emptySet();
|
2007-02-02 17:25:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|