diff options
Diffstat (limited to 'src/bin/eolian_mono/eolian/mono/part_definition.hh')
-rw-r--r-- | src/bin/eolian_mono/eolian/mono/part_definition.hh | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/part_definition.hh b/src/bin/eolian_mono/eolian/mono/part_definition.hh index f3811b9..0b8dece 100644 --- a/src/bin/eolian_mono/eolian/mono/part_definition.hh +++ b/src/bin/eolian_mono/eolian/mono/part_definition.hh | |||
@@ -1,3 +1,18 @@ | |||
1 | /* | ||
2 | * Copyright 2019 by its authors. See AUTHORS. | ||
3 | * | ||
4 | * Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | * you may not use this file except in compliance with the License. | ||
6 | * You may obtain a copy of the License at | ||
7 | * | ||
8 | * http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | * | ||
10 | * Unless required by applicable law or agreed to in writing, software | ||
11 | * distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | * See the License for the specific language governing permissions and | ||
14 | * limitations under the License. | ||
15 | */ | ||
1 | #ifndef EOLIAN_MONO_PART_DEFINITION_HH | 16 | #ifndef EOLIAN_MONO_PART_DEFINITION_HH |
2 | #define EOLIAN_MONO_PART_DEFINITION_HH | 17 | #define EOLIAN_MONO_PART_DEFINITION_HH |
3 | 18 | ||
@@ -59,7 +74,7 @@ struct part_extension_method_definition_generator | |||
59 | << name_helpers::klass_full_concrete_or_interface_name(cls) | 74 | << name_helpers::klass_full_concrete_or_interface_name(cls) |
60 | << ", T> x=null) where T : " << name_helpers::klass_full_concrete_or_interface_name(cls) << "\n" | 75 | << ", T> x=null) where T : " << name_helpers::klass_full_concrete_or_interface_name(cls) << "\n" |
61 | << scope_tab << "{\n" | 76 | << scope_tab << "{\n" |
62 | << scope_tab << scope_tab << "return new " << bindableClass << "<" << part_klass_name << ">(\"" << part.name << "\" ,fac);\n" | 77 | << scope_tab << scope_tab << "return new " << bindableClass << "<" << part_klass_name << ">(\"" << part.name << "\", fac);\n" |
63 | << scope_tab << "}\n\n" | 78 | << scope_tab << "}\n\n" |
64 | ).generate(sink, attributes::unused, context)) | 79 | ).generate(sink, attributes::unused, context)) |
65 | return false; | 80 | return false; |