Skip to content
Snippets Groups Projects
Commit 4e5c7b3a authored by Frederik Hennig's avatar Frederik Hennig
Browse files

a few minor fixes

parent 0657df2a
No related merge requests found
Pipeline #57801 passed with stages
in 52 seconds
...@@ -10,7 +10,8 @@ They take precedence in the following way: ...@@ -10,7 +10,8 @@ They take precedence in the following way:
- Project configuration overrides the default configuration - Project configuration overrides the default configuration
- Command line arguments override the project configuration - Command line arguments override the project configuration
- User configuration overrides all, but must not conflict with command-line arguments; otherwise, an error is thrown. - User configuration overrides default and project configuration,
and must not conflict with command-line arguments; otherwise, an error is thrown.
### Project Configuration via Configurator Script ### Project Configuration via Configurator Script
...@@ -21,7 +22,10 @@ A configurator module is a Python file defining the following function at the to ...@@ -21,7 +22,10 @@ A configurator module is a Python file defining the following function at the to
from pystencilssfg import SfgConfiguration from pystencilssfg import SfgConfiguration
def sfg_config() -> SfgConfiguration: def sfg_config() -> SfgConfiguration:
... # ...
return SfgConfiguration(
# ...
)
``` ```
The configuration module is passed to the code generation script via the command-line argument The configuration module is passed to the code generation script via the command-line argument
......
...@@ -232,7 +232,7 @@ class SfgMemberVariable(SrcObject, SfgClassMember): ...@@ -232,7 +232,7 @@ class SfgMemberVariable(SrcObject, SfgClassMember):
self, self,
name: str, name: str,
type: SrcType, type: SrcType,
visibility: SfgVisibility = SfgVisibility.DEFAULT, visibility: SfgVisibility = SfgVisibility.PRIVATE,
): ):
SrcObject.__init__(self, type, name) SrcObject.__init__(self, type, name)
SfgClassMember.__init__(self, visibility) SfgClassMember.__init__(self, visibility)
...@@ -243,7 +243,7 @@ class SfgMethod(SfgFunction, SfgClassMember): ...@@ -243,7 +243,7 @@ class SfgMethod(SfgFunction, SfgClassMember):
self, self,
name: str, name: str,
tree: SfgCallTreeNode, tree: SfgCallTreeNode,
visibility: SfgVisibility = SfgVisibility.DEFAULT, visibility: SfgVisibility = SfgVisibility.PUBLIC,
): ):
SfgFunction.__init__(self, name, tree) SfgFunction.__init__(self, name, tree)
SfgClassMember.__init__(self, visibility) SfgClassMember.__init__(self, visibility)
...@@ -255,7 +255,7 @@ class SfgConstructor(SfgClassMember): ...@@ -255,7 +255,7 @@ class SfgConstructor(SfgClassMember):
parameters: Sequence[SrcObject] = (), parameters: Sequence[SrcObject] = (),
initializers: Sequence[str] = (), initializers: Sequence[str] = (),
body: str = "", body: str = "",
visibility: SfgVisibility = SfgVisibility.DEFAULT, visibility: SfgVisibility = SfgVisibility.PUBLIC,
): ):
SfgClassMember.__init__(self, visibility) SfgClassMember.__init__(self, visibility)
self._parameters = tuple(parameters) self._parameters = tuple(parameters)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment