The IterateSyntaxTreeForStringLiterals method has been commented out, disabling its execution.
The IterateSyntaxTreeForPragmas method has been uncommented and modified. The token variable now refers to pragmaSyntax and the IsAttributeNamePragmaToken method checks the PragmaContent of the token.
The AddToDictionaryIfLocalizedString method's parameter type has been changed from ISyntaxToken to PragmaSyntax. The TryToGetLocalizedStrings method now checks the PragmaContent of the token.
The pos variable in the AddToDictionaryIfLocalizedString method now gets its value from token.SourceText.GetLineSpan(token.Span).StartLinePosition.
The IsPragmaToken and IsStringToken methods' parameter type has been changed from ISyntaxToken to PragmaSyntax. The check for SyntaxKind.PragmaToken in IsPragmaToken has been commented out.
The IsStringToken method now checks if the SyntaxKind of the token is TypedStringDToken, TypedStringSToken, UntypedStringDToken, or UntypedStringSToken.
The CsOnlinerSourceBuilder and CsPlainSourceBuilder classes have been updated to include a foreach loop that iterates over the UsingDirectives of the fileSyntax object. This loop adds each UsingDirective to the source code with the appropriate namespace. The CsOnlinerSourceBuilder adds the namespace as is, while the CsPlainSourceBuilder prepends "Pocos." to the namespace.
The class_extended_by_known_type.g.cs and file_with_usings.g.cs files have been updated to include additional using directives. These directives import namespaces related to the Simatic.Ax.Stateframework, Simatic.Ax.StatePattern, and various FileWithUsings namespaces.
The class_extended_by_known_type.g.cs and file_with_usings.g.cs files have also been updated to include additional using directives under the Pocos namespace. These directives import the same namespaces as above, but under the Pocos namespace.
IterateSyntaxTreeForStringLiterals
method has been commented out, disabling its execution.IterateSyntaxTreeForPragmas
method has been uncommented and modified. Thetoken
variable now refers topragmaSyntax
and theIsAttributeNamePragmaToken
method checks thePragmaContent
of thetoken
.AddToDictionaryIfLocalizedString
method's parameter type has been changed fromISyntaxToken
toPragmaSyntax
. TheTryToGetLocalizedStrings
method now checks thePragmaContent
of thetoken
.pos
variable in theAddToDictionaryIfLocalizedString
method now gets its value fromtoken.SourceText.GetLineSpan(token.Span).StartLinePosition
.IsPragmaToken
andIsStringToken
methods' parameter type has been changed fromISyntaxToken
toPragmaSyntax
. The check forSyntaxKind.PragmaToken
inIsPragmaToken
has been commented out.IsStringToken
method now checks if theSyntaxKind
of thetoken
isTypedStringDToken
,TypedStringSToken
,UntypedStringDToken
, orUntypedStringSToken
.CsOnlinerSourceBuilder
andCsPlainSourceBuilder
classes have been updated to include a foreach loop that iterates over theUsingDirectives
of thefileSyntax
object. This loop adds eachUsingDirective
to the source code with the appropriate namespace. TheCsOnlinerSourceBuilder
adds the namespace as is, while theCsPlainSourceBuilder
prepends "Pocos." to the namespace.class_extended_by_known_type.g.cs
andfile_with_usings.g.cs
files have been updated to include additionalusing
directives. These directives import namespaces related to theSimatic.Ax.Stateframework
,Simatic.Ax.StatePattern
, and variousFileWithUsings
namespaces.class_extended_by_known_type.g.cs
andfile_with_usings.g.cs
files have also been updated to include additionalusing
directives under thePocos
namespace. These directives import the same namespaces as above, but under thePocos
namespace.