Home
last modified time | relevance | path

Searched refs:ClassTy (Results 1 – 25 of 41) sorted by relevance

12

/external/turbine/java/com/google/turbine/types/
DCanonicalize.java31 import com.google.turbine.type.Type.ClassTy;
32 import com.google.turbine.type.Type.ClassTy.SimpleClassTy;
79 public static ClassTy canonicalizeClassTy( in canonicalizeClassTy()
84 ClassTy classTy) { in canonicalizeClassTy()
112 return canonicalizeClassTy(base, (ClassTy) type); in canonicalize()
120 private ClassTy canon(ClassSymbol base, ClassTy ty) { in canon()
126 Iterator<ClassTy.SimpleClassTy> it = ty.classes().iterator(); in canon()
127 Collection<ClassTy.SimpleClassTy> lexicalBase = lexicalBase(ty.classes().get(0).sym(), base); in canon()
128 ClassTy canon = in canon()
130 ? ClassTy.create(lexicalBase) in canon()
[all …]
DErasure.java26 import com.google.turbine.type.Type.ClassTy;
27 import com.google.turbine.type.Type.ClassTy.SimpleClassTy;
39 return eraseClassTy((Type.ClassTy) ty); in erase()
67 public static Type.ClassTy eraseClassTy(Type.ClassTy ty) { in eraseClassTy()
68 ImmutableList.Builder<Type.ClassTy.SimpleClassTy> classes = ImmutableList.builder(); in eraseClassTy()
69 for (Type.ClassTy.SimpleClassTy c : ty.classes()) { in eraseClassTy()
76 return ClassTy.create(classes.build()); in eraseClassTy()
/external/turbine/javatests/com/google/turbine/lower/
DLowerSignatureTest.java28 import com.google.turbine.type.Type.ClassTy;
29 import com.google.turbine.type.Type.ClassTy.SimpleClassTy;
43 Type.ClassTy type = in simple()
44 ClassTy.create( in simple()
57 ClassTy.create( in inner()
72 Type.ClassTy type = in genericEnclosing()
73 ClassTy.create( in genericEnclosing()
77 ImmutableList.of(ClassTy.OBJECT), in genericEnclosing()
81 ImmutableList.of(ClassTy.OBJECT), in genericEnclosing()
95 ClassTy.create( in innerDefaultPackage()
[all …]
DLowerTest.java46 import com.google.turbine.type.Type.ClassTy;
47 import com.google.turbine.type.Type.ClassTy.SimpleClassTy;
85 ClassTy.create( in hello()
94 Type.ClassTy xtnds = Type.ClassTy.OBJECT; in hello()
101 ClassTy.create( in hello()
129 ClassTy.create( in hello()
140 ClassTy.create( in hello()
167 Type.ClassTy.asNonParametricClassTy(new ClassSymbol("test/Test$Inner")), in hello()
201 Type.ClassTy.OBJECT, in hello()
/external/turbine/java/com/google/turbine/binder/
DTypeBinder.java47 import com.google.turbine.tree.Tree.ClassTy;
184 Type.ClassTy.create( in bind()
186 Type.ClassTy.SimpleClassTy.create( in bind()
188 ImmutableList.of(Type.ClassTy.asNonParametricClassTy(owner)), in bind()
192 superClassType = Type.ClassTy.OBJECT; in bind()
193 interfaceTypes.add(Type.ClassTy.asNonParametricClassTy(ClassSymbol.ANNOTATION)); in bind()
202 superClassType = Type.ClassTy.OBJECT; in bind()
209 superClassType = Type.ClassTy.OBJECT; in bind()
215 for (Tree.ClassTy i : base.decl().impls()) { in bind()
314 Type.ClassTy.asNonParametricClassTy(base.owner()), in enclosingInstanceParameter()
[all …]
DConstBinder.java46 import com.google.turbine.type.Type.ClassTy;
47 import com.google.turbine.type.Type.ClassTy.SimpleClassTy;
222 return ((ClassTy) type).sym(); in bindRepeatable()
259 if (((Type.ClassTy) base.type()).sym().equals(ClassSymbol.STRING)) { in fieldValue()
301 return bindClassType((ClassTy) type); in bindType()
335 private ClassTy bindClassType(ClassTy type) { in bindClassType()
336 ClassTy classTy = type; in bindClassType()
343 return ClassTy.create(classes.build()); in bindClassType()
DHierarchyBinder.java34 import com.google.turbine.tree.Tree.ClassTy;
88 for (Tree.ClassTy i : decl.impls()) { in bind()
113 private ClassSymbol resolveClass(Tree.ClassTy ty) { in resolveClass()
117 for (Tree.ClassTy curr = ty; curr != null; curr = curr.base().orElse(null)) { in resolveClass()
138 private ClassSymbol resolveNext(ClassTy ty, ClassSymbol sym, Tree.Ident bit) { in resolveNext()
DDisambiguateTypeAnnotations.java41 import com.google.turbine.type.Type.ClassTy;
42 import com.google.turbine.type.Type.ClassTy.SimpleClassTy;
205 ClassTy classTy = (ClassTy) type; in addAnnotationsToType()
209 return Type.ClassTy.create( in addAnnotationsToType()
DCanonicalTypeBinder.java32 import com.google.turbine.type.Type.ClassTy;
45 ClassTy superClassType = null; in bind()
53 (ClassTy) base.superClassType()); in bind()
60 base.source(), base.decl().position(), env, base.owner(), (ClassTy) i); in bind()
/external/turbine/javatests/com/google/turbine/binder/bytecode/
DBytecodeBoundClassTest.java35 import com.google.turbine.type.Type.ClassTy;
63 assertThat(((ClassTy) rawInterfaces.interfaceTypes().get(0)).sym()) in interfaceTypes()
65 assertThat(getLast(((ClassTy) rawInterfaces.interfaceTypes().get(0)).classes()).targs()) in interfaceTypes()
69 assertThat(((ClassTy) genericInterfaces.interfaceTypes().get(0)).sym()) in interfaceTypes()
71 assertThat(getLast(((ClassTy) genericInterfaces.interfaceTypes().get(0)).classes()).targs()) in interfaceTypes()
74 ((ClassTy) in interfaceTypes()
75 getLast(((ClassTy) genericInterfaces.interfaceTypes().get(0)).classes()) in interfaceTypes()
/external/turbine/java/com/google/turbine/parse/
DParser.java38 import com.google.turbine.tree.Tree.ClassTy;
225 ImmutableList.Builder<ClassTy> interfaces = ImmutableList.builder(); in interfaceDeclaration()
241 Optional.<ClassTy>empty(), in interfaceDeclaration()
260 Optional.<ClassTy>empty(), in annotationDeclaration()
261 ImmutableList.<ClassTy>of(), in annotationDeclaration()
270 ImmutableList.Builder<ClassTy> interfaces = ImmutableList.builder(); in enumDeclaration()
287 Optional.<ClassTy>empty(), in enumDeclaration()
462 new ClassTy( in enumMembers()
464 Optional.<ClassTy>empty(), in enumMembers()
499 ClassTy xtnds = null; in classDeclaration()
[all …]
DConstExpressionParser.java29 import com.google.turbine.tree.Tree.ClassTy;
234 private static ClassTy asClassTy(int pos, ImmutableList<Tree.Ident> names) { in asClassTy()
235 ClassTy cty = null; in asClassTy()
237 cty = new ClassTy(pos, Optional.ofNullable(cty), bit, ImmutableList.of(), ImmutableList.of()); in asClassTy()
/external/turbine/javatests/com/google/turbine/model/
DConstTest.java25 import com.google.turbine.type.Type.ClassTy;
75 new TurbineClassValue(ClassTy.asNonParametricClassTy(new ClassSymbol("test/Clazz"))), in equalsTest()
76 new TurbineClassValue(ClassTy.asNonParametricClassTy(new ClassSymbol("test/Clazz")))) in equalsTest()
78 new TurbineClassValue(ClassTy.asNonParametricClassTy(new ClassSymbol("test/Other"))), in equalsTest()
79 new TurbineClassValue(ClassTy.asNonParametricClassTy(new ClassSymbol("test/Other")))) in equalsTest()
/external/turbine/java/com/google/turbine/type/
DType.java69 abstract class ClassTy implements Type { class
75 public static final ClassTy OBJECT = asNonParametricClassTy(ClassSymbol.OBJECT);
78 public static final ClassTy STRING = asNonParametricClassTy(ClassSymbol.STRING);
81 public static ClassTy asNonParametricClassTy(ClassSymbol i) { in asNonParametricClassTy()
93 public static ClassTy create(Iterable<SimpleClassTy> classes) { in create()
/external/turbine/java/com/google/turbine/lower/
DLowerSignature.java39 import com.google.turbine.type.Type.ClassTy;
40 import com.google.turbine.type.Type.ClassTy.SimpleClassTy;
59 return classTySig((Type.ClassTy) ty); in signature()
87 private ClassTySig classTySig(ClassTy t) { in classTySig()
217 xtnd = classTySig((ClassTy) info.superClassType()); in classSignature()
221 impl.add(classTySig((ClassTy) i)); in classSignature()
256 for (SimpleClassTy s : ((ClassTy) ty).classes()) { in needsSig()
310 && env.get(((ClassTy) type).sym()).kind() == TurbineTyKind.INTERFACE; in isInterface()
DLower.java73 import com.google.turbine.type.Type.ClassTy;
74 import com.google.turbine.type.Type.ClassTy.SimpleClassTy;
299 exceptions.add(sig.descriptor(((ClassTy) Erasure.erase(e, tenv)).sym())); in lowerMethod()
695 && env.get(((ClassTy) type).sym()).kind() == TurbineTyKind.INTERFACE; in isInterface()
728 lowerClassTypeTypeAnnotations((ClassTy) type, path); in lowerTypeAnnotations()
787 private void lowerClassTypeTypeAnnotations(ClassTy type, TypePath path) { in lowerClassTypeTypeAnnotations()
/external/turbine/javatests/com/google/turbine/binder/
DClassPathBinderTest.java44 import com.google.turbine.type.Type.ClassTy;
100 assertThat(((ClassTy) getOnlyElement(c.interfaceTypes())).sym()) in interfaces()
104 ClassTy listInterface = in interfaces()
105 (ClassTy) in interfaces()
107 .filter(i -> ((ClassTy) i).sym().equals(new ClassSymbol("java/util/List"))) in interfaces()
/external/turbine/java/com/google/turbine/tree/
DTree.java253 public static class ClassTy extends Type { class in Tree
254 private final Optional<ClassTy> base;
258 public ClassTy( in ClassTy() method in Tree.ClassTy
260 Optional<ClassTy> base, in ClassTy()
285 public Optional<ClassTy> base() { in base()
719 private final ImmutableList<ClassTy> exntys;
730 ImmutableList<ClassTy> exntys, in MethDecl()
777 public ImmutableList<ClassTy> exntys() { in exntys()
851 private final Optional<ClassTy> xtnds;
852 private final ImmutableList<ClassTy> impls;
[all …]
/external/turbine/java/com/google/turbine/binder/bound/
DSourceTypeBoundClass.java30 import com.google.turbine.type.Type.ClassTy;
102 return ((ClassTy) superClassType).sym(); in superclass()
110 result.add(((ClassTy) type).sym()); in interfaces()
/external/turbine/java/com/google/turbine/binder/bytecode/
DBytecodeBinder.java54 static Type.ClassTy bindClassTy(Sig.ClassTySig sig, Function<String, TyVarSymbol> scope) { in bindClassTy()
57 List<Type.ClassTy.SimpleClassTy> classes = new ArrayList<>(); in bindClassTy()
68 classes.add(Type.ClassTy.SimpleClassTy.create(sym, tyArgs.build(), ImmutableList.of())); in bindClassTy()
71 return Type.ClassTy.create(classes); in bindClassTy()
DBytecodeBoundClass.java56 import com.google.turbine.type.Type.ClassTy;
261 private final Supplier<ClassTy> superClassType =
263 new Supplier<ClassTy>() {
265 public ClassTy get() {
270 return ClassTy.asNonParametricClassTy(superclass());
278 public ClassTy superClassType() { in superClassType()
293 result.add(ClassTy.asNonParametricClassTy(sym));
/external/llvm/lib/CodeGen/AsmPrinter/
DCodeViewDebug.h243 codeview::TypeIndex lowerType(const DIType *Ty, const DIType *ClassTy);
252 const DIType *ClassTy,
284 const DIType *ClassTy = nullptr);
DCodeViewDebug.cpp276 const DIType *ClassTy) { in recordTypeIndexForDINode() argument
277 auto InsertResult = TypeIndices.insert({{Node, ClassTy}, TI}); in recordTypeIndexForDINode()
928 TypeIndex CodeViewDebug::lowerType(const DIType *Ty, const DIType *ClassTy) { in lowerType() argument
947 if (ClassTy) { in lowerType()
950 return lowerTypeMemberFunction(cast<DISubroutineType>(Ty), ClassTy, in lowerType()
1301 const DIType *ClassTy, in lowerTypeMemberFunction() argument
1304 TypeIndex ClassType = getTypeIndex(ClassTy); in lowerTypeMemberFunction()
1746 const DIType *ClassTy = ClassTyRef.resolve(); in getTypeIndex() local
1755 auto I = TypeIndices.find({Ty, ClassTy}); in getTypeIndex()
1760 TypeIndex TI = lowerType(Ty, ClassTy); in getTypeIndex()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/AsmPrinter/
DCodeViewDebug.h330 codeview::TypeIndex lowerType(const DIType *Ty, const DIType *ClassTy);
344 const DIType *ClassTy,
377 const DIType *ClassTy = nullptr);
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-c-test/
Ddebuginfo.c62 LLVMMetadataRef ClassTy = declare_objc_class(DIB, File); in llvm_test_dibuilder() local
66 "", 0, File, 1, ClassTy, in llvm_test_dibuilder()

12