Search in sources :

Example 1 with Typedef

use of com.google.javascript.jscomp.newtypes.Typedef in project closure-compiler by google.

the class NTIScope method getNamespaceOrTypedefType.

@Override
public JSType getNamespaceOrTypedefType(String typeName) {
    Namespace ns = getNamespaceAfterFreezing(typeName);
    if (ns != null) {
        return ns.toJSType();
    }
    Typedef td = getTypedef(typeName);
    return td == null ? null : td.getType();
}
Also used : Typedef(com.google.javascript.jscomp.newtypes.Typedef) Namespace(com.google.javascript.jscomp.newtypes.Namespace) FunctionNamespace(com.google.javascript.jscomp.newtypes.FunctionNamespace)

Aggregations

FunctionNamespace (com.google.javascript.jscomp.newtypes.FunctionNamespace)1 Namespace (com.google.javascript.jscomp.newtypes.Namespace)1 Typedef (com.google.javascript.jscomp.newtypes.Typedef)1