Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pystencils-sfg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pycodegen
pystencils-sfg
Commits
2ba2fd8d
Commit
2ba2fd8d
authored
7 months ago
by
Frederik Hennig
Browse files
Options
Downloads
Patches
Plain Diff
Add `parameters` property to SfgClassComposer
parent
1a30d202
No related branches found
No related tags found
No related merge requests found
Pipeline
#70072
passed
7 months ago
Stage: Code Quality
Stage: Tests
Stage: Documentation
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pystencilssfg/composer/class_composer.py
+5
-0
5 additions, 0 deletions
src/pystencilssfg/composer/class_composer.py
with
5 additions
and
0 deletions
src/pystencilssfg/composer/class_composer.py
+
5
−
0
View file @
2ba2fd8d
...
@@ -8,6 +8,7 @@ from ..lang import (
...
@@ -8,6 +8,7 @@ from ..lang import (
VarLike
,
VarLike
,
ExprLike
,
ExprLike
,
asvar
,
asvar
,
SfgVar
,
)
)
from
..ir.source_components
import
(
from
..ir.source_components
import
(
...
@@ -82,6 +83,10 @@ class SfgClassComposer(SfgComposerMixIn):
...
@@ -82,6 +83,10 @@ class SfgClassComposer(SfgComposerMixIn):
else
:
else
:
self
.
_params
.
insert
(
at
,
asvar
(
param
))
self
.
_params
.
insert
(
at
,
asvar
(
param
))
@property
def
parameters
(
self
)
->
list
[
SfgVar
]:
return
self
.
_params
def
init
(
self
,
var
:
VarLike
|
str
):
def
init
(
self
,
var
:
VarLike
|
str
):
"""
Add an initialization expression to the constructor
'
s initializer list.
"""
"""
Add an initialization expression to the constructor
'
s initializer list.
"""
...
...
This diff is collapsed.
Click to expand it.
Frederik Hennig
@da15siwa
mentioned in commit
82997bed
·
7 months ago
mentioned in commit
82997bed
mentioned in commit 82997bedc617b08f12fc7c46a4bf0981e5c2fad4
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment