Example #1
0
        public virtual bool VisitParameterIdentifier(ParameterIdentifier parameterIdentifier)
        {
            VisitNode(parameterIdentifier.InitExpression);
            VisitNode(parameterIdentifier.TypeReference);

            return(true);
        }
Example #2
0
        public override bool VisitParameterIdentifier(ParameterIdentifier parameterIdentifier)
        {
            nodeStack.Push(CurrentNode.Nodes.Add("ParameterIdentifier " + parameterIdentifier.Name + " - " + parameterIdentifier.Type.ToString()));
            CurrentNode.Tag = parameterIdentifier;

            CurrentNode.EnsureVisible();

            base.VisitParameterIdentifier(parameterIdentifier);

            nodeStack.Pop();

            return(true);
        }
Example #3
0
        public override bool VisitParameterIdentifier(ParameterIdentifier parameterIdentifier)
        {
            ISymbolTable namescope = parameterIdentifier.Parent.SymbolTable;

            System.Diagnostics.Debug.Assert(namescope != null);
            System.Diagnostics.Debug.Assert(namescope.ScopeType == ScopeType.Method || namescope.ScopeType == ScopeType.Block);

            if (!identifierService.IsValidFormatParameterName(parameterIdentifier.Name))
            {
                errorReport.Error("TODOFILENAME", parameterIdentifier.Position, "'{0}' is an invalid parameter name.", parameterIdentifier.Name);
                return(false);
            }

            System.Diagnostics.Debug.Assert(!namescope.IsDefined(parameterIdentifier.Name));

            namescope.AddVariable(parameterIdentifier);

            return(base.VisitParameterIdentifier(parameterIdentifier));
        }
Example #4
0
		public override bool VisitParameterIdentifier(ParameterIdentifier parameterIdentifier)
		{
			ISymbolTable namescope = parameterIdentifier.Parent.SymbolTable;

			System.Diagnostics.Debug.Assert( namescope != null );
			System.Diagnostics.Debug.Assert( namescope.ScopeType == ScopeType.Method || namescope.ScopeType == ScopeType.Block );

			if (!identifierService.IsValidFormatParameterName(parameterIdentifier.Name))
			{
				errorReport.Error( "TODOFILENAME", parameterIdentifier.Position, "'{0}' is an invalid parameter name.", parameterIdentifier.Name );
				return false;
			}

			System.Diagnostics.Debug.Assert( !namescope.IsDefined(parameterIdentifier.Name) );

			namescope.AddVariable( parameterIdentifier );

			return base.VisitParameterIdentifier(parameterIdentifier);
		}