Пример #1
0
 public override void OnSpliceTypeReference(SpliceTypeReference node)
 {
     if (InsideSerializedQuasiquote())
     {
         SerializeSpliceTypeReference(node);
         return;
     }
     Push(LiftTypeReference(node.Expression));
 }
Пример #2
0
        override public object Clone()
        {
            SpliceTypeReference clone = (SpliceTypeReference)FormatterServices.GetUninitializedObject(typeof(SpliceTypeReference));

            clone._lexicalInfo       = _lexicalInfo;
            clone._endSourceLocation = _endSourceLocation;
            clone._documentation     = _documentation;
            clone._entity            = _entity;
            if (_annotations != null)
            {
                clone._annotations = (Hashtable)_annotations.Clone();
            }

            clone._isPointer = _isPointer;
            if (null != _expression)
            {
                clone._expression = _expression.Clone() as Expression;
                clone._expression.InitializeParent(clone);
            }
            return(clone);
        }
Пример #3
0
        override public object Clone()
        {
            SpliceTypeReference clone = new SpliceTypeReference();

            clone._lexicalInfo       = _lexicalInfo;
            clone._endSourceLocation = _endSourceLocation;
            clone._documentation     = _documentation;
            clone._isSynthetic       = _isSynthetic;
            clone._entity            = _entity;
            if (_annotations != null)
            {
                clone._annotations = (Hashtable)_annotations.Clone();
            }
            clone._isPointer = _isPointer;
            if (null != _expression)
            {
                clone._expression = _expression.Clone() as Expression;
                clone._expression.InitializeParent(clone);
            }
            return(clone);
        }
Пример #4
0
	protected SpliceTypeReference  splice_type_reference() //throws RecognitionException, TokenStreamException
{
		SpliceTypeReference tr;
		
		IToken  begin = null;
		
			tr = null;
			Expression e = null;
		
		
		try {      // for error handling
			begin = LT(1);
			match(SPLICE_BEGIN);
			e=atom();
			if (0==inputState.guessing)
			{
				
						tr = new SpliceTypeReference(ToLexicalInfo(begin), e);
					
			}
		}
		catch (RecognitionException ex)
		{
			if (0 == inputState.guessing)
			{
				reportError(ex, "splice_type_reference");
				recover(ex,tokenSet_44_);
			}
			else
			{
				throw ex;
			}
		}
		return tr;
	}
Пример #5
0
		override public object Clone()
		{
		
			SpliceTypeReference clone = new SpliceTypeReference();
			clone._lexicalInfo = _lexicalInfo;
			clone._endSourceLocation = _endSourceLocation;
			clone._documentation = _documentation;
			clone._isSynthetic = _isSynthetic;
			clone._entity = _entity;
			if (_annotations != null) clone._annotations = (Hashtable)_annotations.Clone();
			clone._isPointer = _isPointer;
			if (null != _expression)
			{
				clone._expression = _expression.Clone() as Expression;
				clone._expression.InitializeParent(clone);
			}
			return clone;


		}
Пример #6
0
 public override void OnSpliceTypeReference(SpliceTypeReference node)
 {
     Push(LiftTypeReference(node.Expression));
 }
Пример #7
0
 public override void OnSpliceTypeReference(SpliceTypeReference node)
 {
     WriteOperator("$(");
     Visit(node.Expression);
     WriteOperator(")");
 }