Example #1
0
 public override void VisitVariantSectionNode(VariantSectionNode node)
 {
     RecordTypeNode record = node.ParentNodeOfType<RecordTypeNode>();
     ITypeDeclaration typeDeclaration = record.ParentNodeOfType<ITypeDeclaration>();
     AddHit(node,
         AstNode.ToCode(typeDeclaration.FirstNameNode, record.RecordKeywordNode) + " ... " +
         AstNode.ToCode(node.CaseKeywordNode, node.OfKeywordNode));
     base.VisitVariantSectionNode(node);
 }
Example #2
0
 public VariantGroupNode(ListNode<DelimitedItemNode<AstNode>> valueListNode, Token colonNode, Token openParenthesisNode, ListNode<FieldDeclNode> fieldDeclListNode, VariantSectionNode variantSectionNode, Token closeParenthesisNode, Token semicolonNode)
 {
     _valueListNode = valueListNode;
     _colonNode = colonNode;
     _openParenthesisNode = openParenthesisNode;
     _fieldDeclListNode = fieldDeclListNode;
     _variantSectionNode = variantSectionNode;
     _closeParenthesisNode = closeParenthesisNode;
     _semicolonNode = semicolonNode;
 }
Example #3
0
 public virtual void VisitVariantSectionNode(VariantSectionNode node)
 {
     Visit(node.CaseKeywordNode);
     Visit(node.NameNode);
     Visit(node.ColonNode);
     Visit(node.TypeNode);
     Visit(node.OfKeywordNode);
     Visit(node.VariantGroupListNode);
 }
Example #4
0
 public RecordTypeNode(Token recordKeywordNode, ListNode<VisibilitySectionNode> contentListNode, VariantSectionNode variantSectionNode, Token endKeywordNode)
 {
     _recordKeywordNode = recordKeywordNode;
     _contentListNode = contentListNode;
     _variantSectionNode = variantSectionNode;
     _endKeywordNode = endKeywordNode;
 }