예제 #1
0
 public string VisitAttribute(NegatedDeclarationCondition a)
 {
     throw new NotImplementedException();
 }
		public virtual void VisitAttribute(NegatedDeclarationCondition a)
		{
			a.FirstCondition.Accept(this);
		}
			public override void VisitAttribute(NegatedDeclarationCondition a)
			{
				
			}
예제 #4
0
        void DeclarationCondition(DBlockNode module)
        {
            var sl = la.Location;

            var c = Condition(module);

            c.Location = sl;
            c.EndLocation = t.EndLocation;

            bool allowElse = laKind != Colon;

            var metaBlock = AttributeTrail(module, c, true) as AttributeMetaDeclaration;

            if (allowElse && metaBlock == null)
            {
                SynErr(t.Kind, "Wrong meta block type. (see DeclarationCondition();)");
                return;
            }
            else if (allowElse && laKind == Else)
            {
                Step();

                c = new NegatedDeclarationCondition(c);

                BlockAttributes.Push(c);
                if (laKind == OpenCurlyBrace) {
                    metaBlock.OptionalElseBlock = new ElseMetaDeclarationBlock {
                        Location = t.Location,
                        BlockStartLocation = la.Location
                    };
                    ClassBody (module, true, false);
                } else if (laKind == Colon) {
                    metaBlock.OptionalElseBlock = new ElseMetaDeclarationSection {
                        Location = t.Location,
                        EndLocation =la.EndLocation };
                    Step ();
                    return;
                }
                else
                {
                    metaBlock.OptionalElseBlock = new ElseMetaDeclaration { Location = t.Location };
                    DeclDef(module);
                }
                BlockAttributes.Pop();

                metaBlock.OptionalElseBlock.EndLocation = t.EndLocation;
            }
        }
예제 #5
0
 public override void VisitAttribute(NegatedDeclarationCondition a)
 {
 }
예제 #6
0
 public ulong VisitAttribute(NegatedDeclarationCondition a)
 {
     return(1000213 + Accept(a.FirstCondition) << 1);
 }
예제 #7
0
 public CompletionItemKind VisitAttribute(NegatedDeclarationCondition a)
 {
     throw new NotImplementedException();
 }