Exemplo n.º 1
0
 public override void VisitAttribute(PragmaAttribute a)
 {
     if (a.Arguments != null &&
         a.Arguments.Length > 0 &&
         IsIncompleteExpression(a.Arguments[a.Arguments.Length - 1]))
     {
         prv  = new PragmaCompletionProvider(a, cdgen);
         halt = true;
     }
     else
     {
         base.VisitAttribute(a);
     }
 }
		public virtual void VisitAttribute(PragmaAttribute pragma)
		{
			if (pragma.Arguments != null && pragma.Arguments.Length != 0)
				foreach (var arg in pragma.Arguments)
					arg.Accept(this);
		}
Exemplo n.º 3
0
 public string VisitAttribute(PragmaAttribute attr)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 4
0
 public AbstractType VisitAttribute(PragmaAttribute attr)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 5
0
 public PragmaCompletionProvider(PragmaAttribute attr, ICompletionDataGenerator gen) : base(gen)
 {
     Attribute = attr;
 }
Exemplo n.º 6
0
		PragmaAttribute _Pragma()
		{
			Expect(Pragma);
			var s = new PragmaAttribute { Location = t.Location };
			LastParsedObject = s;
			if (Expect(OpenParenthesis))
			{
				if (Expect(Identifier))
					s.Identifier = t.Value;

				var l = new List<IExpression>();
				while (laKind == Comma)
				{
					Step();
					l.Add(AssignExpression());
				}
				if (l.Count > 0)
					s.Arguments = l.ToArray();

				if (Expect(CloseParenthesis))
					TrackerVariables.ExpectingIdentifier = false;
			}
			s.EndLocation = t.EndLocation;
			return s;
		}
Exemplo n.º 7
0
 public ulong VisitAttribute(PragmaAttribute attr)
 {
     return(1000171);
 }
Exemplo n.º 8
0
 public CompletionItemKind VisitAttribute(PragmaAttribute attr)
 {
     throw new NotImplementedException();
 }