Various fixes after udpate to stc v6 #304
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.