syside.FormatOptions
- class FormatOptions
Initialization
- property null_expression: syside.FormatPreserved[syside.NullFormat]
Controls
NullExpressionformatting:null: always formatted asnullbrackets: always formatted as()
- property literal_real: syside.FloatFormat
Controls
LiteralRealformatting. Only applies to those numbers that are not in the source text.
- property strip_unnecessary_quotes: bool
Controls identifier formatting. If true, strips quotes from identifiers if the name doesn’t have restricted characters
- property sequence_expression_trailing_comma: syside.OptionalToken
Controls
SequenceExpressiontrailing comma formatting.
- property operator_break: syside.OperatorBreak
Controls binary operator placement on line breaks.
after: operators are placed on the same line as the LHS expressionbefore: operators are placed on the same line as the RHS expression
- property comment_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
commentkeyword formatting:always:commentwill always be printedas-needed:commentwill only be printed as needed
- property comment_about_break: syside.OptionalKw
Controls line break preceding
aboutinComment:always: about list is always on a new lineas-needed: printer tries to fit about list on the previous line
- property markdown_comments: bool
Controls
CommentandDocumentationbody formatting. If true, trailing whitespace is preserved on each line but last.
- property textual_representation_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
repkeyword formatting:always:repwill always be printedas-needed:repwill only be printed as needed
- property textual_representation_language_break: syside.OptionalKw
Controls line break preceding
languageinTextualRepresentation:always: language is always on a new lineas-needed: printer tries to fit language on the previous line
- property empty_namespace_brackets: syside.FormatPreserved[syside.AlwaysNever]
Controls formatting of empty children blocks:
always: empty blocks are always formatted as{}never: empty blocks are always formatted as a trailing;
- property merge_declaration_disjoining: bool
Controls disjoining formatting in type declarations. If true, all disjoinings are merged into a single group. Requires KerML.
- property merge_unioning: bool
Controls unioning formatting in type declarations. If true, all unionings are merged into a single group. Requires KerML.
- property merge_intersecting: bool
Controls intersecting formatting in type declarations. If true, all intersectings are merged into a single group. Requires KerML.
- property merge_differencing: bool
Controls differencing formatting in type declarations. If true, all differencings are merged into a single group. Requires KerML.
- property merge_feature_chaining: bool
Controls feature chaining formatting in feature declarations. If true, all feature chainings are merged into a single group. Requires KerML.
- property merge_declaration_type_featuring: bool
Controls type featuring formatting in feature declarations. If true, all type featurings are merged into a single group. Requires KerML.
- property declaration_specialization: syside.FormatPreserved[syside.KwToken]
Controls specialization formatting.
- property declaration_conjugation: syside.FormatPreserved[syside.KwToken]
Controls conjugation formatting. Requires KerML.
- property declaration_subsetting: syside.FormatPreserved[syside.KwToken]
Controls subsetting formatting.
- property declaration_subclassification: syside.FormatPreserved[syside.KwToken]
Controls subclassification formatting.
- property declaration_redefinition: syside.FormatPreserved[syside.KwToken]
Controls redefinition formatting.
- property declaration_reference_subsetting: syside.FormatPreserved[syside.KwToken]
Controls reference subsetting formatting in feature declarations.
- property declaration_cross_subsetting: syside.FormatPreserved[syside.KwToken]
Controls cross subsetting formatting in feature declarations.
- property declaration_feature_typing: syside.FormatPreserved[syside.KwToken]
Controls feature typing formatting.
- property declaration_conjugated_port_typing: syside.FormatPreserved[syside.KwToken]
Controls conjugated port typing formatting in port declarations.
- property feature_value_equals: syside.FormatPreserved[syside.OptionalKw]
Controls feature value equals token formatting whenever it can be omitted:
as-needed:=will only be printed if it is required by the grammaralways:=will be always printed when it is acceptable by the grammar
- property feature_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
featurekeyword formatting in KerML:always:featurekeyword is always printedas-needed:featurekeyword is printed only when required by the grammar
- property public_keyword: syside.FormatPreserved[syside.AlwaysNever]
Controls
publickeyword formatting:always:publicwill always be printednever:publicwill never be printed
- property specialization_keyword_specialization: syside.FormatPreserved[syside.OptionalKw]
Controls
specializationkeyword formatting in specialization members:always:specializationwill always be printed.as-needed:specializationwill be printed only if required by the grammar
- property specialization_keyword_subclassification: syside.FormatPreserved[syside.OptionalKw]
Controls
specializationkeyword formatting in subclassification members:always:specializationwill always be printed.as-needed:specializationwill be printed only if required by the grammar
- property specialization_keyword_feature_typing: syside.FormatPreserved[syside.OptionalKw]
Controls
specializationkeyword formatting in feature typing members:always:specializationwill always be printed.as-needed:specializationwill be printed only if required by the grammar
- property specialization_keyword_subsetting: syside.FormatPreserved[syside.OptionalKw]
Controls
specializationkeyword formatting in subsetting members:always:specializationwill always be printed.as-needed:specializationwill be printed only if required by the grammar
- property specialization_keyword_redefinition: syside.FormatPreserved[syside.OptionalKw]
Controls
specializationkeyword formatting in redefinition members:always:specializationwill always be printed.as-needed:specializationwill be printed only if required by the grammar
- property conjugation_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
conjugationkeyword formatting in conjugation members:always:conjugationwill always be printed.as-needed:conjugationwill be printed only if required by the grammar
- property disjoining_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
disjoiningkeyword formatting in disjoining members:always:disjoiningwill always be printed.as-needed:disjoiningwill be printed only if required by the grammar
- property inverting_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
invertingkeyword formatting in inverting members:always:invertingwill always be printed.as-needed:invertingwill be printed only if required by the grammar
- property featuring_of_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
ofkeyword formatting in type featuring members:always:ofwill always be printed.as-needed:ofwill be printed only if required by the grammar
- property dependency_from_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
fromkeyword formatting in dependencies:always:fromwill always be printed.as-needed:fromwill be printed only if required by the grammar
- property invariant_true_keyword: syside.FormatPreserved[syside.AlwaysNever]
Controls
truekeyword formatting in invariants:never:trueis never printedalways:trueis always printed if invariant is not negated
- property multiplicity_placement: syside.MultiPlacement
Controls multiplicity placement in type declarations:
first: multiplicity is printed before any specializationsfirst-specialization: multiplicity is printed after the first specializationlast: multiplicity is printed after all specializations
- property metadata_feature_keyword: syside.FormatPreserved[syside.KwToken]
Controls metadata feature keyword used.
- property metadata_body_feature_keyword: syside.FormatPreserved[syside.AlwaysNever]
Controls
feature(KerML) andref(SysML) keyword formatting in metadata features:always: keywords are always printednever: keywords are never printed
- property metadata_body_feature_redefines: syside.FormatPreserved[syside.OptionalKwToken]
Controls first feature redefinition formatting inside MetadataFeature bodies:
keyword:redefinesis printedtoken::>>is printednone: nothing is printed
- property binary_allocation_usages: syside.FormatPreserved[syside.AlwaysNever]
Controls allocation usage ends formatting:
always: binary ends are printed as binary declarationnever: binary ends are printed as nary declaration
- property binary_connectors: syside.FormatPreserved[syside.AlwaysNever]
Controls connector ends formatting:
always: binary ends are printed as binary declarationnever: binary ends are printed as nary declaration
- property binary_connectors_from_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
fromkeyword formatting in binary connectors:always:fromis always printedas-needed:fromis only printed when required by the grammar
- property binary_binding_connectors: syside.FormatPreserved[syside.AlwaysNever]
Controls binding connector ends formatting:
always: binary ends are printed as binary declarationnever: binary ends are printed as nary declaration
- property binary_binding_connector_of_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
ofkeyword formatting in binary binding connectors:always:ofis always printedas-needed:ofis only printed when required by the grammar
- property binary_successions: syside.FormatPreserved[syside.AlwaysNever]
Controls succession ends formatting:
always: binary ends are printed as binary declarationnever: binary ends are printed as nary declaration
- property binary_succession_first_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
firstkeyword formatting in binary successions:always:firstis always printedas-needed:firstis only printed when required by the grammar
- property item_flow_from_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
fromkeyword formatting in item flows:always:fromis always printedas-needed:fromis only printed when required by the grammar
- property succession_item_flow_from_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
fromkeyword formatting in succession item flows:always:fromis always printedas-needed:fromis only printed when required by the grammar
- property flow_connection_usage_from_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
fromkeyword formatting in flow connection usages:always:fromis always printedas-needed:fromis only printed when required by the grammar
- property succession_flow_connection_usage_from_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
fromkeyword formatting in succession flow connection usages:always:fromis always printedas-needed:fromis only printed when required by the grammar
- property ordered_nonunique_priority: syside.FormatPreserved[syside.MultiOrder]
Controls
orderedandnonuniqueprint order:ordered:orderedis printed firstnonunique:nonuniqueis printed first
- property enum_member_keyword: syside.FormatPreserved[syside.AlwaysNever]
Controls
enumkeyword formatting inside enum definitions:always:enumis always printednever:enumis never printed
- property occurrence_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
occurrencekeyword formatting in occurrence usages and definitions:always:occurrenceis always printedas-needed:occurrenceis only printed when required by the grammar
- property binding_connector_as_usage_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
bindingformatting in binding connectors as usages:always:bindingis always printedas-needed:bindingis only printed when required by the grammar
- property succession_as_usage_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
successionformatting in successions as usages:always:successionis always printedas-needed:successionis only printed when required by the grammar
- property assert_constraint_usage_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
constraintformatting in assert constraint usages:always:constraintis always printedas-needed:constraintis only printed when required by the grammar
- property event_occurrence_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
occurrencekeyword formatting in event occurrence usages:always:occurrenceis always printedas-needed:occurrenceis only printed when required by the grammar
- property exhibit_state_usage_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
stateformatting in exhibit state usages:always:stateis always printedas-needed:stateis only printed when required by the grammar
- property include_use_case_usage_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
use caseformatting in include use case usages:always:use caseis always printedas-needed:use caseis only printed when required by the grammar
- property perform_action_usage_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
actionformatting in perform action usages:always:actionis always printedas-needed:actionis only printed when required by the grammar
- property satisfy_requirement_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
requirementformatting in satisfy requirement usages:always:requirementis always printedas-needed:requirementis only printed when required by the grammar
- property satisfy_requirement_assert_keyword: syside.FormatPreserved[syside.AlwaysNever]
Controls
assertformatting in satisfy requirement usages:always:assertis always printednever:assertis never printed
- property allocation_usage_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
allocationformatting in allocation usages:always:allocationis always printedas-needed:allocationis only printed when required by the grammar
- property connection_usage_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
connectionformatting in connection usages:always:connectionis always printedas-needed:connectionis only printed when required by the grammar
- property binary_connection_usages: syside.FormatPreserved[syside.AlwaysNever]
Controls connection usage ends formatting:
always: binary ends are printed as binary declarationnever: binary ends are printed as nary declaration
- property binary_interface_usages: syside.FormatPreserved[syside.AlwaysNever]
Controls interface usage ends formatting:
always: binary ends are printed as binary declarationnever: binary ends are printed as nary declaration
- property interface_usage_connect_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
connectformatting in interface usages:always:connectis always printedas-needed:connectis only printed when required by the grammar
- property action_node_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
actionformatting in action nodes:always:actionis always printedas-needed:actionis printed only if required by the grammar
- property while_loop_parenthesize_condition: syside.OptionalToken
Controls
while (...)while loop action condition expression formatting:always: expression is printed with parenthesesnever: expression is printed without parentheseson-break: expression is printed with parentheses only if it breaks
- property while_loop_parenthesize_until: syside.OptionalToken
Controls
until (...)while loop action condition expression formatting:always: expression is printed with parenthesesnever: expression is printed without parentheseson-break: expression is printed with parentheses only if it breaks
- property if_parenthesize_condition: syside.OptionalToken
Controls
if (...)condition expression formatting:always: expression is printed with parenthesesnever: expression is printed without parentheseson-break: expression is printed with parentheses only if it breaks
- property transition_usage_parenthesize_guard: syside.OptionalToken
Controls
if (...)condition expression in transition usages formatting:always: expression is printed with parenthesesnever: expression is printed without parentheseson-break: expression is printed with parentheses only if it breaks
- property element_filter_parenthesize: syside.OptionalToken
Controls
filter (...)condition expression in element filter memberships formatting:always: expression is printed with parenthesesnever: expression is printed without parentheseson-break: expression is printed with parentheses only if it breaks
- property transition_usage_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
transitionformatting in transition usages:always:transitionis always printed if permitted by the grammaras-needed:transitionis only printed if required by the grammar
- property transition_usage_first_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
firstformatting in transition usages:always:firstis always printed if permitted by the grammaras-needed:firstis only printed if required by the grammar
- property framed_concern_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
concernformatting in framed concern usages:always:concernis always printedas-needed:concernis only printed if required by the grammar
- property reference_usage_keyword: syside.FormatPreserved[syside.OptionalKw]
Controls
refformatting in reference usages:always:refis always printedas-needed:refis only printed if required by the grammar
- property attribute_usage_reference_keyword: syside.FormatPreserved[syside.AlwaysNever]
Controls
refformatting in attribute usages:always:refis always printednever:refis never printed
- property event_occurrence_reference_keyword: syside.FormatPreserved[syside.AlwaysNever]
Controls
refformatting in event occurrence usages:always:refis always printednever:refis never printed
- property port_usage_reference_keyword: syside.FormatPreserved[syside.AlwaysNever]
Controls
refformatting in attribute usages:always:refis always printednever:refis never printed
- property connection_usage_reference_keyword: syside.FormatPreserved[syside.AlwaysNever]
Controls
refformatting in connection usages:always:refis always printednever:refis never printed
- property connector_as_usage_reference_keyword: syside.FormatPreserved[syside.AlwaysNever]
Controls
refformatting in connector as usages:always:refis always printednever:refis never printed
- property exhibit_state_reference_keyword: syside.FormatPreserved[syside.AlwaysNever]
Controls
refformatting in exhibit state usages:always:refis always printednever:refis never printed
- property include_use_case_reference_keyword: syside.FormatPreserved[syside.AlwaysNever]
Controls
refformatting in include use case usages:always:refis always printednever:refis never printed
- property perform_action_reference_keyword: syside.FormatPreserved[syside.AlwaysNever]
Controls
refformatting in perform action usages:always:refis always printednever:refis never printed
- property interface_port_keyword: syside.FormatPreserved[syside.AlwaysNever]
Controls
portformatting of default interface ends:always:portis always printednever:portis never printed