Home
last modified time | relevance | path

Searched refs:declaredType (Results 1 – 16 of 16) sorted by relevance

/external/guava/guava/src/com/google/common/base/
DThrowables.java73 Throwable throwable, Class<X> declaredType) throws X { in throwIfInstanceOf() argument
75 if (declaredType.isInstance(throwable)) { in throwIfInstanceOf()
76 throw declaredType.cast(throwable); in throwIfInstanceOf()
102 @Nullable Throwable throwable, Class<X> declaredType) throws X { in propagateIfInstanceOf() argument
104 throwIfInstanceOf(throwable, declaredType); in propagateIfInstanceOf()
183 @Nullable Throwable throwable, Class<X> declaredType) throws X { in propagateIfPossible() argument
184 propagateIfInstanceOf(throwable, declaredType); in propagateIfPossible()
/external/guava/android/guava/src/com/google/common/base/
DThrowables.java73 Throwable throwable, Class<X> declaredType) throws X { in throwIfInstanceOf() argument
75 if (declaredType.isInstance(throwable)) { in throwIfInstanceOf()
76 throw declaredType.cast(throwable); in throwIfInstanceOf()
102 @NullableDecl Throwable throwable, Class<X> declaredType) throws X { in propagateIfInstanceOf() argument
104 throwIfInstanceOf(throwable, declaredType); in propagateIfInstanceOf()
183 @NullableDecl Throwable throwable, Class<X> declaredType) throws X { in propagateIfPossible() argument
184 propagateIfInstanceOf(throwable, declaredType); in propagateIfPossible()
/external/dagger2/java/dagger/internal/codegen/langmodel/
DDaggerTypes.java105 DeclaredType declaredType = MoreTypes.asDeclared(type); in unwrapTypeOrDefault() local
106 TypeElement typeElement = MoreElements.asType(declaredType.asElement()); in unwrapTypeOrDefault()
111 return getOnlyElement(declaredType.getTypeArguments(), defaultType); in unwrapTypeOrDefault()
207 public Void visitDeclared(DeclaredType declaredType, Void p) { in checkTypePresent()
208 declaredType.getTypeArguments().forEach(t -> t.accept(this, p)); in checkTypePresent()
236 public Boolean visitDeclared(DeclaredType declaredType, Void p) { in hasTypeVariable() argument
237 return declaredType.getTypeArguments().stream().anyMatch(type -> type.accept(this, p)); in hasTypeVariable()
/external/dagger2/java/dagger/internal/codegen/
DProducesMethodValidator.java122 DeclaredType declaredType = MoreTypes.asDeclared(type); in unwrapListenableFuture() local
123 if (declaredType.getTypeArguments().isEmpty()) { in unwrapListenableFuture()
127 return Optional.of((TypeMirror) getOnlyElement(declaredType.getTypeArguments())); in unwrapListenableFuture()
DKeyVariableNamer.java53 public Void visitDeclared(DeclaredType declaredType, StringBuilder builder) {
54 TypeElement element = MoreTypes.asTypeElement(declaredType);
62 declaredType.getTypeArguments().iterator();
DBindingFactory.java476 DeclaredType declaredType, Optional<TypeMirror> resolvedType) { in membersInjectionBinding() argument
478 if (!declaredType.getTypeArguments().isEmpty() && resolvedType.isPresent()) { in membersInjectionBinding()
482 types.isSameType(types.erasure(resolved), types.erasure(declaredType)), in membersInjectionBinding()
485 types.erasure(declaredType)); in membersInjectionBinding()
486 declaredType = resolved; in membersInjectionBinding()
489 injectionSiteFactory.getInjectionSites(declaredType); in membersInjectionBinding()
496 Key key = keyFactory.forMembersInjectedType(declaredType); in membersInjectionBinding()
497 TypeElement typeElement = MoreElements.asType(declaredType.asElement()); in membersInjectionBinding()
DTypeProtoConverter.java68 DeclaredType declaredType = MoreTypes.asDeclared(type); in toProto() local
69 TypeMirror enclosingType = declaredType.getEnclosingType(); in toProto()
77 declaredType.getTypeArguments().stream() in toProto()
DMembersInjectionValidator.java122 public Boolean visitDeclared(DeclaredType declaredType, Void p) {
123 for (TypeMirror arg : declaredType.getTypeArguments()) {
DMethodSignatureFormatter.java53 Formatter<ExecutableElement> typedFormatter(DeclaredType declaredType) { in typedFormatter() argument
59 MoreTypes.asExecutable(types.asMemberOf(declaredType, method)), in typedFormatter()
DInjectionSiteFactory.java95 ImmutableSortedSet<InjectionSite> getInjectionSites(DeclaredType declaredType) { in getInjectionSites() argument
99 for (Optional<DeclaredType> currentType = Optional.of(declaredType); in getInjectionSites()
DModuleValidator.java261 public Void visitDeclared(DeclaredType declaredType, Void aVoid) { in validateReferencedSubcomponents()
262 TypeElement attributeType = MoreTypes.asTypeElement(declaredType); in validateReferencedSubcomponents()
/external/guava/guava/src/com/google/common/io/
DCloser.java166 public <X extends Exception> RuntimeException rethrow(Throwable e, Class<X> declaredType) in rethrow() argument
171 Throwables.propagateIfPossible(e, declaredType); in rethrow()
/external/guava/android/guava/src/com/google/common/io/
DCloser.java166 public <X extends Exception> RuntimeException rethrow(Throwable e, Class<X> declaredType) in rethrow() argument
171 Throwables.propagateIfPossible(e, declaredType); in rethrow()
/external/turbine/javatests/com/google/turbine/lower/testdata/
Dgenericexn.test6 Throwable throwable, Class<X> declaredType) throws X {
/external/angle/third_party/glslang/src/hlsl/
DhlslGrammar.cpp364 TType declaredType; in acceptDeclaration() local
377 … if (! acceptFullySpecifiedType(declaredType, nodeList, declarator.attributes, forbidDeclarators)) in acceptDeclaration()
398 … parseContext.transferTypeAttributes(token.loc, declarator.attributes, declaredType, true); in acceptDeclaration()
404 declarator.function = new TFunction(fullName, declaredType); in acceptDeclaration()
431 parseContext.transferTypeAttributes(token.loc, declarator.attributes, declaredType); in acceptDeclaration()
434 …if (declaredType.getQualifier().storage == EvqTemporary && parseContext.symbolTable.atGlobalLevel(… in acceptDeclaration()
435 declaredType.getQualifier().storage = EvqUniform; in acceptDeclaration()
444 variableType.shallowCopy(declaredType); in acceptDeclaration()
450 variableType.copyArrayInnerSizes(declaredType.getArraySizes()); in acceptDeclaration()
508 …if (declaredType.getQualifier().storage == EvqGlobal && !parseContext.symbolTable.atGlobalLevel())… in acceptDeclaration()
/external/deqp-deps/glslang/hlsl/
DhlslGrammar.cpp364 TType declaredType; in acceptDeclaration() local
377 … if (! acceptFullySpecifiedType(declaredType, nodeList, declarator.attributes, forbidDeclarators)) in acceptDeclaration()
398 … parseContext.transferTypeAttributes(token.loc, declarator.attributes, declaredType, true); in acceptDeclaration()
404 declarator.function = new TFunction(fullName, declaredType); in acceptDeclaration()
431 parseContext.transferTypeAttributes(token.loc, declarator.attributes, declaredType); in acceptDeclaration()
434 …if (declaredType.getQualifier().storage == EvqTemporary && parseContext.symbolTable.atGlobalLevel(… in acceptDeclaration()
435 declaredType.getQualifier().storage = EvqUniform; in acceptDeclaration()
444 variableType.shallowCopy(declaredType); in acceptDeclaration()
450 variableType.copyArrayInnerSizes(declaredType.getArraySizes()); in acceptDeclaration()
508 …if (declaredType.getQualifier().storage == EvqGlobal && !parseContext.symbolTable.atGlobalLevel())… in acceptDeclaration()