Package com.puppetlabs.xtext.dommodel.formatter.comments

Examples of com.puppetlabs.xtext.dommodel.formatter.comments.ICommentContainerInformation$JavaLikeMLCommentContainer


      // rip text from the nodes
      CharSequence result = CharSequences.empty();
      for(INode n : nodes)
        result = CharSequences.concatenate(result, n.getText());

      ICommentContainerInformation in = (nodes.size() == 1 && nodes.get(0).getGrammarElement() == ga.getML_COMMENTRule())
          ? commentConfiguration.getContainerInformation(CommentType.Multiline)
          : (commentConfiguration.getContainerInformation(CommentType.SingleLine));

      CommentProcessor cpr = new CommentProcessor();
      CommentText comment = cpr.separateCommentFromContainer(result, in, "\n"); // TODO: cheating on line separator
View Full Code Here

TOP

Related Classes of com.puppetlabs.xtext.dommodel.formatter.comments.ICommentContainerInformation$JavaLikeMLCommentContainer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.