public virtual bool VisitParameterIdentifier(ParameterIdentifier parameterIdentifier) { VisitNode(parameterIdentifier.InitExpression); VisitNode(parameterIdentifier.TypeReference); return(true); }
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); }
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)); }
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); }