• Home
  • Raw
  • Download

Lines Matching refs:ast

46 void enterScope(AST* /* ast */, Scope** scope, Scope* container) {
51 void leaveScope(AST* ast, Scope** scope) {
52 CHECK((*scope) != &ast->getRootScope());
56 ::android::Location convertYYLoc(const yy::parser::location_type& loc, const AST* ast) {
58 ::android::Position(ast->getCoordinator().makeRelative(*(loc.begin.filename)),
60 ::android::Position(ast->getCoordinator().makeRelative(*(loc.end.filename)),
214 const_cast<std::string *>(&ast->getFilename());
218 %parse-param { android::AST* const ast }
221 %lex-param { android::AST* const ast }
347 ast->setHeader($1);
353 : DOC_COMMENT { $$ = new DocComment($1, convertYYLoc(@1, ast), CommentType::DOC_MULTILINE); }
354 | MULTILINE_COMMENT { $$ = new DocComment($1, convertYYLoc(@1, ast), CommentType::MULTILINE); }
368 | doc_comments { ast->addUnhandledComment($1); $$ = $1; }
471 ast->addSyntaxError();
480 ast->addSyntaxError();
510 $$ = new Reference<Type>($1->string(), *$1, convertYYLoc(@1, ast));
514 $$ = new Reference<Type>($1->definedName(), $1, convertYYLoc(@1, ast));
521 if (!ast->setPackage($2)) {
535 ast->addSyntaxError();
542 if (!ast->addImport($2, convertYYLoc(@2, ast))) {
545 ast->addSyntaxError();
550 if (!ast->addImport($2, convertYYLoc(@2, ast))) {
553 ast->addSyntaxError();
593 if (!ast->addMethod($2, iface)) {
621 if (!ast->getRootScope().getDefinedTypes().empty()) {
674 bool isIBase = ast->package().package() == gIBaseFqName.package();
685 if (!ast->addImplicitImport(gIBaseFqName)) {
694 … superType = new Reference<Type>(gIBaseFqName.string(), gIBaseFqName, convertYYLoc(@$, ast));
705 if (*scope != &ast->getRootScope()) {
713 $2, ast->makeFullName($2, *scope), convertYYLoc(@2, ast),
714 *scope, *superType, ast->getFileHash());
716 enterScope(ast, scope, iface);
723 CHECK(ast->addAllReservedMethodsToInterface(iface));
725 leaveScope(ast, scope);
726 ast->addScopedType(iface, *scope);
742 $3, ast->makeFullName($3, *scope), convertYYLoc(@2, ast), *scope, *$2);
743 ast->addScopedType(typeDef, *scope);
769 Reference<LocalIdentifier>($1->string(), *$1, convertYYLoc(@1, ast)), $1->string());
774 Reference<Type>($1->string(), *$1, convertYYLoc(@1, ast)), $1->string(), $3);
809 ast->addSyntaxError();
835 convertYYLoc(@$, ast));
844 convertYYLoc(@$, ast));
850 ast->addSyntaxError();
858 convertYYLoc(@$, ast));
880 ast->addSyntaxError();
889 ast->addSyntaxError();
901 $$ = new NamedReference<Type>($2, *$1, convertYYLoc(@2, ast));
905 $$ = new NamedReference<Type>("", *$1, convertYYLoc(@1, ast));
912 ast->addSyntaxError();
927 $1, $2, ast->makeFullName($2, *scope), convertYYLoc(@2, ast), *scope);
928 enterScope(ast, scope, container);
935 leaveScope(ast, scope);
936 ast->addScopedType(container, *scope);
977 NamedReference<Type>* field = new NamedReference<Type>($2, *$1, convertYYLoc(@2, ast));
1027 ast->addSyntaxError();
1029 … storageType = new Reference<Type>(scalar->definedName(), scalar, convertYYLoc(@2, ast));
1033 $2, ast->makeFullName($2, *scope), convertYYLoc(@2, ast), *storageType, *scope);
1034 enterScope(ast, scope, enumType);
1041 leaveScope(ast, scope);
1042 ast->addScopedType(enumType, *scope);
1064 $$ = new EnumValue($1 /* name */, nullptr /* value */, convertYYLoc(@$, ast));
1068 $$ = new EnumValue($1 /* name */, $3 /* value */, convertYYLoc(@$, ast));
1087 ast->addSyntaxError();
1094 ast->addSyntaxError();
1106 $$ = new Reference<Type>($1->definedName(), $1, convertYYLoc(@1, ast));
1111 $1->setElementType(Reference<Type>($3->definedName(), $3, convertYYLoc(@3, ast)));
1112 $$ = new Reference<Type>($1->definedName(), $1, convertYYLoc(@1, ast));
1132 $$ = new Reference<Type>($1->definedName(), $1, convertYYLoc(@1, ast));
1137 $$ = new Reference<Type>("interface", gIBaseFqName, convertYYLoc(@1, ast));
1145 $$ = new Reference<Type>($1->definedName(), $1, convertYYLoc(@1, ast), true);