private LabelStatement TraverseLabel(LabelStatementSyntax lss) { LabelStatement labelStm = new LabelStatement(); labelStm.Name = lss.LabelToken.ValueText; return labelStm; }
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; }