Home
last modified time | relevance | path

Searched refs:Declarator (Results 1 – 25 of 42) sorted by relevance

12

/external/javassist/src/main/javassist/compiler/
DSymbolTable.java19 import javassist.compiler.ast.Declarator;
33 public Declarator lookup(String name) { in lookup()
34 Declarator found = (Declarator)get(name); in lookup()
41 public void append(String name, Declarator value) { in append()
DParser.java44 Declarator d; in parseMember1()
47 d = new Declarator(VOID, 0); in parseMember1()
75 Declarator d) throws CompileError in parseField()
104 ASTList mods, Declarator d) in parseMethod1()
183 private Declarator parseFormalType(SymbolTable tbl) throws CompileError { in parseFormalType()
188 return new Declarator(t, dim); in parseFormalType()
193 return new Declarator(name, dim); in parseFormalType()
204 private Declarator parseFormalParam(SymbolTable tbl) in parseFormalParam()
207 Declarator d = parseFormalType(tbl); in parseFormalParam()
480 Declarator d = parseFormalParam(tbl2); in parseTry()
[all …]
DJvstCodeGen.java514 Declarator decl in recordParams()
515 = new Declarator(CLASS, MemberResolver.javaToJvmName(target), in recordParams()
559 Declarator decl in recordVar()
560 = new Declarator(exprType, className, arrayDim, in recordVar()
590 Declarator decl in recordVariable()
591 = new Declarator(type, cname, dim, varNo, new Symbol(varName)); in recordVariable()
DMemberCodeGen.java221 Declarator decl = (Declarator)p.getLeft(); in atTryStmnt()
326 atNewArrayExpr2(type, sizeExpr, Declarator.astToClassName(classname, '/'), init); in atNewArrayExpr()
1108 params[i++] = resolver.lookupClass((Declarator)plist.head()); in makeParamList()
DMemberResolver.java326 return lookupClass(Declarator.astToClassName(name, '.'), false); in lookupClassByName()
333 public CtClass lookupClass(Declarator decl) throws CompileError { in lookupClass()
DJavac.java131 Declarator d = fd.getDeclarator(); in compileField()
161 Declarator r = md.getReturn(); in compileMethod()
/external/javassist/src/main/javassist/compiler/ast/
DDeclarator.java24 public class Declarator extends ASTList implements TokenId { class
30 public Declarator(int type, int dim) { in Declarator() method in Declarator
38 public Declarator(ASTList className, int dim) { in Declarator() method in Declarator
48 public Declarator(int type, String jvmClassName, int dim, in Declarator() method in Declarator
59 public Declarator make(Symbol sym, int dim, ASTree init) { in make()
60 Declarator d = new Declarator(this.varType, this.arrayDim + dim); in make()
DVariable.java24 protected Declarator declarator;
26 public Variable(String sym, Declarator d) { in Variable()
31 public Declarator getDeclarator() { return declarator; } in getDeclarator()
DFieldDecl.java27 public Declarator getDeclarator() { return (Declarator)tail().head(); } in getDeclarator()
DMethodDecl.java34 public Declarator getReturn() { return (Declarator)tail().head(); } in getReturn()
DVisitor.java32 public void atDeclarator(Declarator n) throws CompileError {} in atDeclarator()
/external/clang/lib/Sema/
DSemaType.cpp48 static bool isOmittedBlockReturnType(const Declarator &D) { in isOmittedBlockReturnType()
49 if (D.getContext() != Declarator::BlockLiteralContext || in isOmittedBlockReturnType()
138 Declarator &declarator;
159 TypeProcessingState(Sema &sema, Declarator &declarator) in TypeProcessingState()
168 Declarator &getDeclarator() const { in getDeclarator()
318 static DeclaratorChunk *maybeMovePastReturnType(Declarator &declarator, in maybeMovePastReturnType()
387 Declarator &declarator = state.getDeclarator(); in distributeObjCPointerTypeAttr()
444 Declarator &declarator = state.getDeclarator(); in distributeObjCPointerTypeAttrFromDeclarator()
505 Declarator &declarator = state.getDeclarator(); in distributeFunctionTypeAttr()
538 Declarator &declarator = state.getDeclarator(); in distributeFunctionTypeAttrToInnermost()
[all …]
/external/clang/include/clang/Basic/
DDeclNodes.td38 def Declarator : DDecl<Value, 1>;
39 def Field : DDecl<Declarator>;
42 def MSProperty : DDecl<Declarator>;
43 def Function : DDecl<Declarator>, DeclContext;
48 def Var : DDecl<Declarator>;
54 def NonTypeTemplateParm : DDecl<Declarator>;
/external/clang/include/clang/Parse/
DParser.h1231 bool isStartOfFunctionDefinition(const ParsingDeclarator &Declarator);
1244 void ParseKNRParamDeclarations(Declarator &D);
1362 ParsedType ParseObjCTypeName(ObjCDeclSpec &DS, Declarator::TheContext Ctx,
1571 Declarator &D);
1572 void ParseDirectNewDeclarator(Declarator &D);
1807 Decl *ParseDeclarationAfterDeclarator(Declarator &D,
1809 bool ParseAsmAttributesAfterDeclarator(Declarator &D);
1811 Declarator &D,
1841 Declarator::TheContext Context);
2031 Declarator::TheContext Context
[all …]
/external/clang/lib/Parse/
DParseDecl.cpp44 Declarator::TheContext Context, in ParseTypeName()
61 Declarator DeclaratorInfo(DS, Context); in ParseTypeName()
126 Declarator *D) { in ParseGNUAttributes()
341 Declarator *D) { in ParseGNUAttributeArgs()
1564 return Context == Declarator::MemberContext && getLangOpts().CPlusPlus11 && in MightBeDeclarator()
1568 return Context == Declarator::MemberContext || getLangOpts().CPlusPlus; in MightBeDeclarator()
1594 return Context == Declarator::MemberContext || in MightBeDeclarator()
1595 (getLangOpts().CPlusPlus && Context == Declarator::FileContext); in MightBeDeclarator()
1698 ParsingDeclarator D(*this, DS, static_cast<Declarator::TheContext>(Context)); in ParseDeclGroup()
1745 if (Context == Declarator::FileContext) { in ParseDeclGroup()
[all …]
DRAIIObjectsForParser.h200 class ParsingDeclarator : public Declarator {
205 : Declarator(DS, C), ParsingRAII(P, &DS.getDelayedDiagnosticPool()) { in ParsingDeclarator()
209 return static_cast<const ParsingDeclSpec&>(Declarator::getDeclSpec()); in getDeclSpec()
217 Declarator::clear(); in clear()
DParseObjc.cpp394 Declarator &D, in addContextSensitiveTypeNullability()
1162 Declarator::TheContext Context) { in ParseObjCTypeQualifierList()
1163 assert(Context == Declarator::ObjCParameterContext || in ParseObjCTypeQualifierList()
1164 Context == Declarator::ObjCResultContext); in ParseObjCTypeQualifierList()
1169 Context == Declarator::ObjCParameterContext); in ParseObjCTypeQualifierList()
1246 Declarator &D) { in takeDeclAttributes()
1264 Declarator::TheContext context, in ParseObjCTypeName()
1266 assert(context == Declarator::ObjCParameterContext || in ParseObjCTypeName()
1267 context == Declarator::ObjCResultContext); in ParseObjCTypeName()
1269 (context == Declarator::ObjCParameterContext)); in ParseObjCTypeName()
[all …]
DParser.cpp743 return ParseDeclaration(Declarator::FileContext, DeclEnd, attrs); in ParseExternalDeclaration()
753 return ParseDeclaration(Declarator::FileContext, DeclEnd, attrs); in ParseExternalDeclaration()
764 return ParseDeclaration(Declarator::FileContext, DeclEnd, attrs); in ParseExternalDeclaration()
773 return ParseDeclaration(Declarator::FileContext, DeclEnd, attrs); in ParseExternalDeclaration()
788 ParseExplicitInstantiation(Declarator::FileContext, in ParseExternalDeclaration()
830 bool Parser::isStartOfFunctionDefinition(const ParsingDeclarator &Declarator) { in isStartOfFunctionDefinition() argument
831 assert(Declarator.isFunctionDeclarator() && "Isn't a function declarator"); in isStartOfFunctionDefinition()
837 Declarator.getFunctionTypeInfo().isKNRPrototype()) in isStartOfFunctionDefinition()
923 Decl *TheDecl = ParseLinkage(DS, Declarator::FileContext); in ParseDeclOrFunctionDefInternal()
927 return ParseDeclGroup(DS, Declarator::FileContext); in ParseDeclOrFunctionDefInternal()
[all …]
DParseExprCXX.cpp1062 Declarator D(DS, Declarator::LambdaExprContext); in ParseLambdaExpressionAfterIntroducer()
1298 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseCXXCasts()
1603 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseCXXTypeConstructExpression()
1709 Declarator DeclaratorInfo(DS, Declarator::ConditionContext); in ParseCXXCondition()
2338 Declarator D(DS, Declarator::ConversionIdContext); in ParseUnqualifiedIdOperator()
2631 Declarator DeclaratorInfo(DS, Declarator::CXXNewContext); in ParseCXXNewExpression()
2743 void Parser::ParseDirectNewDeclarator(Declarator &D) { in ParseDirectNewDeclarator()
2793 Declarator &D) { in ParseExpressionListOrTypeId()
3100 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseCXXAmbiguousParenExpression()
DParseTemplate.cpp189 if (Context == Declarator::MemberContext) { in ParseSingleDeclarationAfterTemplate()
229 ParsingDeclarator DeclaratorInfo(*this, DS, (Declarator::TheContext)Context); in ParseSingleDeclarationAfterTemplate()
250 if (Context != Declarator::FileContext) { in ParseSingleDeclarationAfterTemplate()
541 Declarator::TemplateTypeArgContext).get(); in ParseTypeParameter()
674 Declarator ParamDecl(DS, Declarator::TemplateParamContext); in ParseNonTypeTemplateParameter()
725 Declarator &D) { in DiagnoseMisplacedEllipsisInDeclarator()
1178 Declarator::TemplateTypeArgContext); in ParseTemplateArgument()
DParseExpr.cpp925 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseCastExpression()
1123 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseCastExpression()
1707 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseExprAfterUnaryExprOrTypeTrait()
2262 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseParenExpression()
2696 Declarator DeclaratorInfo(DS, Declarator::BlockLiteralContext); in ParseBlockId()
2734 Declarator ParamInfo(DS, Declarator::BlockLiteralContext); in ParseBlockLiteralExpression()
DParseDeclCXX.cpp544 if (getLangOpts().CPlusPlus11 && Context == Declarator::MemberContext && in ParseUsingDeclaration()
625 ? Declarator::AliasTemplateContext in ParseUsingDeclaration()
626 : Declarator::AliasDeclContext, in ParseUsingDeclaration()
963 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseBaseTypeSpecifier()
1064 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseBaseTypeSpecifier()
1948 void Parser::HandleMemberFunctionDeclDelays(Declarator& DeclaratorInfo, in HandleMemberFunctionDeclDelays()
2077 Declarator &DeclaratorInfo, VirtSpecifiers &VS, ExprResult &BitfieldSize, in ParseCXXMemberDeclaratorBeforeInitializer()
2148 Declarator &D, in MaybeParseAndDiagnoseDeclSpecAfterCXX11VirtSpecifierSeq()
2332 Declarator::MemberContext, DeclEnd, AS, AccessAttrs))); in ParseCXXClassMemberDeclaration()
2369 Declarator::MemberContext, TemplateInfo, UsingLoc, DeclEnd, AS))); in ParseCXXClassMemberDeclaration()
[all …]
/external/clang/include/clang/AST/
DTemplateBase.h376 TypeSourceInfo *Declarator; member
382 TemplateArgumentLocInfo(TypeSourceInfo *TInfo) : Declarator(TInfo) {} in TemplateArgumentLocInfo()
397 return Declarator; in getAsTypeSourceInfo()
/external/clang/include/clang/Sema/
DSema.h1273 TypeSourceInfo *GetTypeForDeclarator(Declarator &D, Scope *S);
1274 TypeSourceInfo *GetTypeForDeclaratorCast(Declarator &D, QualType FromTy);
1275 TypeSourceInfo *GetTypeSourceInfoForDeclarator(Declarator &D, QualType T,
1280 DeclarationNameInfo GetNameForDeclarator(Declarator &D);
1311 TypeResult ActOnTypeName(Scope *S, Declarator &D);
1631 Decl *ActOnDeclarator(Scope *S, Declarator &D);
1633 NamedDecl *HandleDeclarator(Scope *S, Declarator &D,
1657 NamedDecl* ActOnTypedefDeclarator(Scope* S, Declarator& D, DeclContext* DC,
1662 NamedDecl *ActOnVariableDeclarator(Scope *S, Declarator &D, DeclContext *DC,
1673 NamedDecl* ActOnFunctionDeclarator(Scope* S, Declarator& D, DeclContext* DC,
[all …]
DDeclSpec.h48 class Declarator; variable
1514 Declarator &TheDeclarator,
1579 class Declarator {
1668 Declarator(const DeclSpec &ds, TheContext C) in Declarator() function
1678 ~Declarator() { in ~Declarator()
2056 return const_cast<Declarator*>(this)->getFunctionTypeInfo(); in getFunctionTypeInfo()
2217 Declarator D;
2220 : D(DS, Declarator::MemberContext), BitfieldSize(nullptr) { } in FieldDeclarator()

12