/art/test/048-reflect-v8/src/ |
AnnotationTestHelpers.java | 38 public static String asString(Annotation[] annos) { 41 if (annos == null) { 43 } else if (annos.length == 0) { 46 for (int i = 0; i < annos.length; ++i) { 47 msg += asString(annos[i]); 49 if (i != annos.length - 1) {
|
/external/turbine/java/com/google/turbine/type/ |
Type.java | 128 private final ImmutableList<AnnoInfo> annos; field in class:Type.ClassTy.SimpleClassTy 131 ClassSymbol sym, ImmutableList<Type> targs, ImmutableList<AnnoInfo> annos) { 136 this.annos = annos; 150 public ImmutableList<AnnoInfo> annos() { method in class:Type.ClassTy.SimpleClassTy 151 return annos; 160 private final ImmutableList<AnnoInfo> annos; field in class:Type.ArrayTy 162 public ArrayTy(Type elem, ImmutableList<AnnoInfo> annos) { 164 this.annos = annos; 178 public ImmutableList<AnnoInfo> annos() { method in class:Type.ArrayTy 187 private final ImmutableList<AnnoInfo> annos; field in class:Type.TyVar 210 public ImmutableList<AnnoInfo> annos() { method in class:Type.TyVar 219 private final ImmutableList<AnnoInfo> annos; field in class:Type.PrimTy 237 public ImmutableList<AnnoInfo> annos() { method in class:Type.PrimTy [all...] |
/external/turbine/java/com/google/turbine/parse/ |
Parser.java | 91 ImmutableList.Builder<Anno> annos = ImmutableList.builder(); local 97 pkg = Optional.of(packageDeclaration(annos.build())); 98 annos = ImmutableList.builder(); 143 decls.add(annotationDeclaration(access, annos.build())); 145 annos = ImmutableList.builder(); 147 annos.add(annotation()); 152 decls.add(classDeclaration(access, annos.build())); 154 annos = ImmutableList.builder(); 157 decls.add(interfaceDeclaration(access, annos.build())); 159 annos = ImmutableList.builder() 268 ImmutableList.Builder<Anno> annos = ImmutableList.builder(); local 354 ImmutableList.Builder<Anno> annos = ImmutableList.builder(); local 730 ImmutableList<Anno> annos = maybeAnnos(); local 781 ImmutableList.Builder<Anno> annos = ImmutableList.builder(); local [all...] |
/art/test/948-change-annotations/src/ |
Main.java | 64 private static Annotation[] sortedAnno(Annotation[] annos) { 65 Arrays.sort(annos, Comparator.comparing((v) -> v.toString())); 66 return annos;
|
/art/test/005-annotations/src/android/test/anno/ |
TestAnnotations.java | 46 Annotation[] annos; local 49 annos = clazz.getAnnotations(); 51 "(" + annos.length + "):"); 52 printAnnotationArray("", annos); 56 annos = c.getDeclaredAnnotations(); 58 printAnnotationArray(" ", annos); 67 annos = m.getDeclaredAnnotations(); 69 printAnnotationArray(" ", annos); 78 annos = f.getDeclaredAnnotations(); 80 printAnnotationArray(" ", annos); 241 Annotation[] annos = m.getDeclaredAnnotations(); local [all...] |
/external/turbine/java/com/google/turbine/tree/ |
Tree.java | 79 private final ImmutableList<Anno> annos; field in class:Tree.Type 81 public Type(int position, ImmutableList<Anno> annos) { 83 this.annos = annos; 86 public ImmutableList<Anno> annos() { method in class:Tree.Type 87 return annos; 104 int position, ImmutableList<Anno> annos, Optional<Type> upper, Optional<Type> lower) { 105 super(position, annos); 143 public ArrTy(int position, ImmutableList<Anno> annos, Type elem) { 144 super(position, annos); 612 private final ImmutableList<Anno> annos; field in class:Tree.VarDecl 646 public ImmutableList<Anno> annos() { method in class:Tree.VarDecl 666 private final ImmutableList<Anno> annos; field in class:Tree.MethDecl 709 public ImmutableList<Anno> annos() { method in class:Tree.MethDecl 800 private final ImmutableList<Anno> annos; field in class:Tree.TyDecl 843 public ImmutableList<Anno> annos() { method in class:Tree.TyDecl 876 private final ImmutableList<Anno> annos; field in class:Tree.TyParam 904 public ImmutableList<Anno> annos() { method in class:Tree.TyParam 912 private final ImmutableList<Anno> annos; field in class:Tree.PkgDecl 934 public ImmutableList<Anno> annos() { method in class:Tree.PkgDecl [all...] |
Pretty.java | 77 printAnnos(wildTy.annos()); 93 if (!arrTy.annos().isEmpty()) { 95 printAnnos(arrTy.annos()); 119 printAnnos(classTy.annos()); 269 printAnnos(varDecl.annos()); 279 private void printAnnos(ImmutableList<Anno> annos) { 280 for (Tree.Anno anno : annos) { 288 for (Tree.Anno anno : methDecl.annos()) { 366 for (Tree.Anno anno : tyDecl.annos()) { 493 printAnnos(tyParam.annos()); [all...] |
/external/annotation-tools/annotation-file-utilities/tests/system-test/ |
Makefile | 41 diff -u expected-annos.jaif out2.jaif > out2.diff 56 CLASSPATH=`pwd`/out1 ${ANNCAT} --index expected-annos.jaif --out --class out3/annotations/tests/AnnotationTest.class --to out4.class 67 diff -u expected-annos.jaif out5.jaif > out5.diff
|
/external/turbine/java/com/google/turbine/types/ |
Erasure.java | 58 return new Type.ArrayTy(erase(ty.elementType(), tenv), ty.annos()); 67 classes.add(new Type.ClassTy.SimpleClassTy(c.sym(), ImmutableList.of(), c.annos()));
|
Canonicalize.java | 77 return new Type.ArrayTy(canonicalize(env, base, arrayTy.elementType()), arrayTy.annos()); 267 return new ArrayTy(elem, arrayTy.annos()); 299 simples.add(new SimpleClassTy(simple.sym(), args.build(), simple.annos())); 321 args.add(new ClassTy.SimpleClassTy(s.sym(), canonicalize(s.targs(), base, env), s.annos()));
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/ |
RobolectricTestRunner.java | 453 Annotation[] annos = method.getDeclaringClass().getAnnotations(); 454 strictI18n = lookForI18nAnnotations(strictI18n, annos); 457 annos = method.getAnnotations(); 458 strictI18n = lookForI18nAnnotations(strictI18n, annos); 484 * @param annos 487 private boolean lookForI18nAnnotations(boolean strictI18n, Annotation[] annos) { 488 for ( int i = 0; i < annos.length; i++ ) { 489 String name = annos[i].annotationType().getName(); 506 Annotation[] annos = method.getDeclaredAnnotations(); 507 for( Annotation anno: annos ){ [all...] |
/external/turbine/java/com/google/turbine/binder/ |
ConstBinder.java | 79 ImmutableList<AnnoInfo> annos = local 98 bindAnnotationMetadata(base.kind(), annos), 99 annos, 140 ImmutableList<AnnoInfo> annos = constEvaluator.evaluateAnnotations(base.annotations()); local 141 return new ParamInfo(bindType(base.type()), base.name(), annos, base.access()); 297 return new TyVar(tyVar.sym(), constEvaluator.evaluateAnnotations(tyVar.annos())); 303 bindType(arrayTy.elementType()), constEvaluator.evaluateAnnotations(arrayTy.annos())); 336 c.sym(), bindTypes(c.targs()), constEvaluator.evaluateAnnotations(c.annos())));
|
DisambiguateTypeAnnotations.java | 196 return new Type.PrimTy(primTy.primkind(), appendAnnotations(primTy.annos(), extra)); 201 new SimpleClassTy(base.sym(), base.targs(), appendAnnotations(base.annos(), extra)); 209 return new ArrayTy(addAnnotationsToType(arrayTy.elementType(), extra), arrayTy.annos()); 212 return new Type.TyVar(tyVar.sym(), appendAnnotations(tyVar.annos(), extra)); 223 ImmutableList<AnnoInfo> annos, ImmutableList<AnnoInfo> extra) { 224 return ImmutableList.<AnnoInfo>builder().addAll(annos).addAll(extra).build();
|
TypeBinder.java | 160 ImmutableList<AnnoInfo> annotations = bindAnnotations(enclosingScope, base.decl().annos()); 390 ImmutableList<AnnoInfo> annotations = bindAnnotations(scope, tree.annos()); 458 bindAnnotations(scope, p.annos()), /*synthetic*/ 500 ImmutableList<AnnoInfo> annotations = bindAnnotations(scope, t.annos()); 538 ImmutableList<AnnoInfo> annotations = bindAnnotations(scope, decl.annos()); 631 ImmutableList<AnnoInfo> annos = bindAnnotations(scope, flat.get(annoIdx).annos()); local 635 return bindClassTyRest(scope, flat, names, result, (ClassSymbol) sym, annos); 640 return new Type.TyVar((TyVarSymbol) sym, annos); 664 annotations = bindAnnotations(scope, curr.annos()); [all...] |
CompUnitPreprocessor.java | 95 if (!unit.pkg().get().annos().isEmpty()) { 196 pkgDecl.annos(),
|
/external/turbine/javatests/com/google/turbine/lower/ |
IntegrationTestSupport.java | 245 for (List<AnnotationNode> annos : parameters) { 246 sortAnnotations(annos); 250 private static void sortTypeAnnotations(List<TypeAnnotationNode> annos) { 251 if (annos == null) { 254 annos.sort( 261 private static void sortAnnotations(List<AnnotationNode> annos) { 262 if (annos == null) { 265 annos.sort( 334 for (List<AnnotationNode> annos : parameterAnnotations) { 335 addTypesInAnnotations(types, annos); [all...] |
/prebuilts/ndk/r16/sources/third_party/shaderc/third_party/spirv-tools/source/opt/ |
def_use_manager.cpp | 88 std::vector<ir::Instruction*> annos; local 90 if (!uses) return annos; 93 annos.push_back(c.inst); 96 return annos;
|
/external/tensorflow/tensorflow/contrib/py2tf/converters/ |
for_loops.py | 28 from tensorflow.contrib.py2tf.pyct.static_analysis.annos import NodeAnno
|
break_statements.py | 26 from tensorflow.contrib.py2tf.pyct.static_analysis.annos import NodeAnno
|
continue_statements.py | 24 from tensorflow.contrib.py2tf.pyct.static_analysis.annos import NodeAnno
|
/external/annotation-tools/annotation-file-utilities/src/annotator/find/ |
Insertion.java | 406 String annos = local 411 decorateType(astPath, annos, outerType, outerPath); 477 type.addAnnotation(annos); 485 String annos, Type type, ASTPath outerPath) { 486 // type.addAnnotation(annos); // TODO 552 type.addAnnotation(annos);
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/bytecode/ |
ShadowWrangler.java | 318 Annotation[] annos = method.getAnnotations(); local 319 for (int i = 0; i < annos.length; i++) { 320 String name = annos[i].annotationType().getName(); 323 Method m = (annos[i]).getClass().getMethod("i18nSafe"); 324 return (Boolean) m.invoke(annos[i]);
|
/external/annotation-tools/scene-lib/src/annotations/io/ |
IndexFileWriter.java | 82 Collection<Annotation> annos) { 84 for (Annotation a : annos) { 153 private void printAnnotations(Collection<? extends Annotation> annos) { 154 for (Annotation tla : annos) {
|
/external/tensorflow/tensorflow/contrib/py2tf/pyct/static_analysis/ |
live_values.py | 30 from tensorflow.contrib.py2tf.pyct.static_analysis.annos import NodeAnno
|
/external/turbine/java/com/google/turbine/lower/ |
Lower.java | 609 lowerTypeAnnotations(((TyVar) type).annos(), path); 621 lowerTypeAnnotations(((Type.PrimTy) type).annos(), path); 631 private void lowerTypeAnnotations(ImmutableList<AnnoInfo> annos, TypePath path) { 632 for (AnnoInfo anno : groupRepeated(env, annos)) { 665 lowerTypeAnnotations(arrayTy.annos(), path); 673 lowerTypeAnnotations(simple.annos(), path);
|