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.cpp47 static bool isOmittedBlockReturnType(const Declarator &D) { in isOmittedBlockReturnType()
48 if (D.getContext() != Declarator::BlockLiteralContext || in isOmittedBlockReturnType()
131 Declarator &declarator;
152 TypeProcessingState(Sema &sema, Declarator &declarator) in TypeProcessingState()
161 Declarator &getDeclarator() const { in getDeclarator()
310 static DeclaratorChunk *maybeMovePastReturnType(Declarator &declarator, in maybeMovePastReturnType()
372 Declarator &declarator = state.getDeclarator(); in distributeObjCPointerTypeAttr()
426 Declarator &declarator = state.getDeclarator(); in distributeObjCPointerTypeAttrFromDeclarator()
487 Declarator &declarator = state.getDeclarator(); in distributeFunctionTypeAttr()
520 Declarator &declarator = state.getDeclarator(); in distributeFunctionTypeAttrToInnermost()
[all …]
/external/clang/include/clang/Basic/
DDeclNodes.td37 def Declarator : DDecl<Value, 1>;
38 def Field : DDecl<Declarator>;
41 def MSProperty : DDecl<Declarator>;
42 def Function : DDecl<Declarator>, DeclContext;
47 def Var : DDecl<Declarator>;
53 def NonTypeTemplateParm : DDecl<Declarator>;
/external/clang/include/clang/Parse/
DParser.h1209 bool isStartOfFunctionDefinition(const ParsingDeclarator &Declarator);
1221 void ParseKNRParamDeclarations(Declarator &D);
1290 ParsedType ParseObjCTypeName(ObjCDeclSpec &DS, Declarator::TheContext Ctx,
1498 Declarator &D);
1499 void ParseDirectNewDeclarator(Declarator &D);
1728 Decl *ParseDeclarationAfterDeclarator(Declarator &D,
1730 bool ParseAsmAttributesAfterDeclarator(Declarator &D);
1732 Declarator &D,
1762 Declarator::TheContext Context);
1952 Declarator::TheContext Context
[all …]
/external/clang/lib/Parse/
DParseDecl.cpp42 Declarator::TheContext Context, in ParseTypeName()
59 Declarator DeclaratorInfo(DS, Context); in ParseTypeName()
125 Declarator *D) { in ParseGNUAttributes()
340 Declarator *D) { in ParseGNUAttributeArgs()
1498 return Context == Declarator::MemberContext && getLangOpts().CPlusPlus11 && in MightBeDeclarator()
1502 return Context == Declarator::MemberContext || getLangOpts().CPlusPlus; in MightBeDeclarator()
1528 return Context == Declarator::MemberContext || in MightBeDeclarator()
1529 (getLangOpts().CPlusPlus && Context == Declarator::FileContext); in MightBeDeclarator()
1632 ParsingDeclarator D(*this, DS, static_cast<Declarator::TheContext>(Context)); in ParseDeclGroup()
1679 if (Context == Declarator::FileContext) { in ParseDeclGroup()
[all …]
DRAIIObjectsForParser.h194 class ParsingDeclarator : public Declarator {
199 : Declarator(DS, C), ParsingRAII(P, &DS.getDelayedDiagnosticPool()) { in ParsingDeclarator()
203 return static_cast<const ParsingDeclSpec&>(Declarator::getDeclSpec()); in getDeclSpec()
211 Declarator::clear(); in clear()
DParser.cpp709 return ParseDeclaration(Declarator::FileContext, DeclEnd, attrs); in ParseExternalDeclaration()
719 return ParseDeclaration(Declarator::FileContext, DeclEnd, attrs); in ParseExternalDeclaration()
730 return ParseDeclaration(Declarator::FileContext, DeclEnd, attrs); in ParseExternalDeclaration()
739 return ParseDeclaration(Declarator::FileContext, DeclEnd, attrs); in ParseExternalDeclaration()
754 ParseExplicitInstantiation(Declarator::FileContext, in ParseExternalDeclaration()
796 bool Parser::isStartOfFunctionDefinition(const ParsingDeclarator &Declarator) { in isStartOfFunctionDefinition() argument
797 assert(Declarator.isFunctionDeclarator() && "Isn't a function declarator"); in isStartOfFunctionDefinition()
803 Declarator.getFunctionTypeInfo().isKNRPrototype()) in isStartOfFunctionDefinition()
889 Decl *TheDecl = ParseLinkage(DS, Declarator::FileContext); in ParseDeclOrFunctionDefInternal()
893 return ParseDeclGroup(DS, Declarator::FileContext); in ParseDeclOrFunctionDefInternal()
[all …]
DParseObjc.cpp783 Declarator::TheContext Context) { in ParseObjCTypeQualifierList()
784 assert(Context == Declarator::ObjCParameterContext || in ParseObjCTypeQualifierList()
785 Context == Declarator::ObjCResultContext); in ParseObjCTypeQualifierList()
790 Context == Declarator::ObjCParameterContext); in ParseObjCTypeQualifierList()
844 Declarator &D) { in takeDeclAttributes()
862 Declarator::TheContext context, in ParseObjCTypeName()
864 assert(context == Declarator::ObjCParameterContext || in ParseObjCTypeName()
865 context == Declarator::ObjCResultContext); in ParseObjCTypeName()
867 (context == Declarator::ObjCParameterContext)); in ParseObjCTypeName()
887 Declarator declarator(declSpec, context); in ParseObjCTypeName()
[all …]
DParseExprCXX.cpp1060 Declarator D(DS, Declarator::LambdaExprContext); in ParseLambdaExpressionAfterIntroducer()
1298 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseCXXCasts()
1588 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseCXXTypeConstructExpression()
1694 Declarator DeclaratorInfo(DS, Declarator::ConditionContext); in ParseCXXCondition()
2330 Declarator D(DS, Declarator::ConversionIdContext); in ParseUnqualifiedIdOperator()
2623 Declarator DeclaratorInfo(DS, Declarator::CXXNewContext); in ParseCXXNewExpression()
2735 void Parser::ParseDirectNewDeclarator(Declarator &D) { in ParseDirectNewDeclarator()
2785 Declarator &D) { in ParseExpressionListOrTypeId()
3092 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseCXXAmbiguousParenExpression()
DParseTemplate.cpp177 if (Context == Declarator::MemberContext) { in ParseSingleDeclarationAfterTemplate()
217 ParsingDeclarator DeclaratorInfo(*this, DS, (Declarator::TheContext)Context); in ParseSingleDeclarationAfterTemplate()
238 if (Context != Declarator::FileContext) { in ParseSingleDeclarationAfterTemplate()
529 Declarator::TemplateTypeArgContext).get(); in ParseTypeParameter()
663 Declarator ParamDecl(DS, Declarator::TemplateParamContext); in ParseNonTypeTemplateParameter()
713 Declarator &D) { in DiagnoseMisplacedEllipsisInDeclarator()
1158 Declarator::TemplateTypeArgContext); in ParseTemplateArgument()
DParseExpr.cpp899 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseCastExpression()
1082 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseCastExpression()
1633 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseExprAfterUnaryExprOrTypeTrait()
2176 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseParenExpression()
2605 Declarator DeclaratorInfo(DS, Declarator::BlockLiteralContext); in ParseBlockId()
2646 Declarator ParamInfo(DS, Declarator::BlockLiteralContext); in ParseBlockLiteralExpression()
DParseDeclCXX.cpp538 if (getLangOpts().CPlusPlus11 && Context == Declarator::MemberContext && in ParseUsingDeclaration()
617 ? Declarator::AliasTemplateContext in ParseUsingDeclaration()
618 : Declarator::AliasDeclContext, in ParseUsingDeclaration()
955 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseBaseTypeSpecifier()
1056 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseBaseTypeSpecifier()
1902 void Parser::HandleMemberFunctionDeclDelays(Declarator& DeclaratorInfo, in HandleMemberFunctionDeclDelays()
2031 Declarator &DeclaratorInfo, VirtSpecifiers &VS, ExprResult &BitfieldSize, in ParseCXXMemberDeclaratorBeforeInitializer()
2102 Declarator &D, in MaybeParseAndDiagnoseDeclSpecAfterCXX11VirtSpecifierSeq()
2287 ParseDeclarationStartingWithTemplate(Declarator::MemberContext, DeclEnd, in ParseCXXClassMemberDeclaration()
2324 ParseUsingDeclaration(Declarator::MemberContext, TemplateInfo, in ParseCXXClassMemberDeclaration()
[all …]
/external/clang/include/clang/Sema/
DSema.h1183 TypeSourceInfo *GetTypeForDeclarator(Declarator &D, Scope *S);
1184 TypeSourceInfo *GetTypeForDeclaratorCast(Declarator &D, QualType FromTy);
1185 TypeSourceInfo *GetTypeSourceInfoForDeclarator(Declarator &D, QualType T,
1190 DeclarationNameInfo GetNameForDeclarator(Declarator &D);
1221 TypeResult ActOnTypeName(Scope *S, Declarator &D);
1497 Decl *ActOnDeclarator(Scope *S, Declarator &D);
1499 NamedDecl *HandleDeclarator(Scope *S, Declarator &D,
1523 NamedDecl* ActOnTypedefDeclarator(Scope* S, Declarator& D, DeclContext* DC,
1528 NamedDecl *ActOnVariableDeclarator(Scope *S, Declarator &D, DeclContext *DC,
1539 NamedDecl* ActOnFunctionDeclarator(Scope* S, Declarator& D, DeclContext* DC,
[all …]
DDeclSpec.h52 class Declarator; variable
1484 Declarator &TheDeclarator,
1549 class Declarator {
1632 Declarator(const DeclSpec &ds, TheContext C) in Declarator() function
1641 ~Declarator() { in ~Declarator()
2017 return const_cast<Declarator*>(this)->getFunctionTypeInfo(); in getFunctionTypeInfo()
2169 Declarator D;
2172 : D(DS, Declarator::MemberContext), BitfieldSize(nullptr) { } in FieldDeclarator()
/external/clang/include/clang/AST/
DTemplateBase.h379 TypeSourceInfo *Declarator; member
385 TemplateArgumentLocInfo(TypeSourceInfo *TInfo) : Declarator(TInfo) {} in TemplateArgumentLocInfo()
400 return Declarator; in getAsTypeSourceInfo()

12