Package com.google.gwt.core.ext.soyc.coderef

Examples of com.google.gwt.core.ext.soyc.coderef.ClassDescriptor


    for (SimpleSymbolData symbol : symbolTable.values()) {
      if (symbol.getClassName().endsWith("[]")) {
        // Arrays aren't stored, because they are not entities, ie definable piece of code
        continue;
      }
      ClassDescriptor classDescriptor = clsMap.get(symbol.getClassName());
      if (classDescriptor == null) {
        // Few classes in symbol maps are not presented in the new report. This is because, they
        // don't contribute to fragment size nor appear in the dependency graph.
        continue;
      }
      if (symbol.isClass()) {
        assertTrue(classDescriptor.getObfuscatedNames().contains(symbol.getSymbolName()));
      } else if (symbol.isField()) {
        assertTrue(classDescriptor.getField(symbol.getMemberName()).getObfuscatedNames()
            .contains(symbol.getSymbolName()));
      } else {
        // method
        MethodDescriptor mth = classDescriptor.getMethod(
            unSynthMethodSignature(symbol.getJsniIdent().split("::")[1]));
        assertTrue(mth.getObfuscatedNames().contains(symbol.getSymbolName()));
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.core.ext.soyc.coderef.ClassDescriptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.