Lines Matching refs:decl
128 std::unique_ptr<ASTDeclaration> decl = this->directive();
129 if (decl) {
130 result.push_back(std::move(decl));
135 std::unique_ptr<ASTDeclaration> decl = this->declaration();
136 if (!decl) {
139 result.push_back(std::move(decl));
371 std::unique_ptr<ASTVarDeclarations> decl = this->varDeclarations();
372 if (!decl) {
375 for (const auto& var : decl->fVars) {
376 auto type = (const Type*) fTypes[decl->fType->fName];
379 this->error(decl->fPosition, "array size in struct field must be a constant");
387 fields.push_back(Type::Field(decl->fModifiers, var.fName, type));
389 this->error(decl->fPosition, "initializers are not permitted on struct fields");
767 auto decl = this->varDeclarations();
768 if (!decl) {
771 return std::unique_ptr<ASTStatement>(new ASTVarDeclarationStatement(std::move(decl)));
775 auto decl = this->varDeclarations();
776 if (!decl) {
780 std::move(decl)));
833 std::unique_ptr<ASTVarDeclarations> decl = this->varDeclarations();
834 if (!decl) {
837 decls.push_back(std::move(decl));