summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/parsers/type/function_type.cpp3
-rw-r--r--src/parsers/type/method_type.cpp1
2 files changed, 2 insertions, 2 deletions
diff --git a/src/parsers/type/function_type.cpp b/src/parsers/type/function_type.cpp
index 2b0bdb4..a379da6 100644
--- a/src/parsers/type/function_type.cpp
+++ b/src/parsers/type/function_type.cpp
@@ -39,11 +39,12 @@ void parseFunctionTypeNode(FunctionTypeNode *node)
"function return type",
node->parseChilds));
+ fillTypeAttributes(node);
+
if (!node->parseChilds)
return;
fillTypeName(node);
- fillTypeAttributes(node);
node->argTypes = static_cast<TreeListNode*>(createParseNode(
node,
TYPE_ARG_TYPES(node->gccNode),
diff --git a/src/parsers/type/method_type.cpp b/src/parsers/type/method_type.cpp
index 5fb61ce..1ed7f47 100644
--- a/src/parsers/type/method_type.cpp
+++ b/src/parsers/type/method_type.cpp
@@ -46,7 +46,6 @@ void parseMethodTypeNode(MethodTypeNode *node)
fillTypeName(node);
-
node->methodBaseType = static_cast<TypeNode*>(createParseNode(
node,
TYPE_METHOD_BASETYPE(node->gccNode),