Ejemplo n.º 1
0
        private LabelStatement TraverseLabel(LabelStatementSyntax lss)
        {
            LabelStatement labelStm = new LabelStatement();

            labelStm.Name = lss.LabelToken.ValueText;

            return labelStm;
        }
Ejemplo n.º 2
0
        private LabelStatement TraverseLabelStatements(LabeledStatementSyntax lss)
        {
            LabelStatement retLabelStatement = new LabelStatement();

            if (lss.HasLeadingTrivia)
            {
                SetOuterComments(retLabelStatement, lss.GetLeadingTrivia().ToFullString());
            }

            if (lss.HasTrailingTrivia)
            {
                SetInnerComments(retLabelStatement, lss.GetTrailingTrivia().ToFullString());
            }

            retLabelStatement.Name = lss.Identifier.ValueText;
            return retLabelStatement;
        }