public override SyntaxNode VisitPageField(PageFieldSyntax node) { if (this.HasToolTip(node)) { return(base.VisitPageField(node)); } this.NoOfChanges++; //try to find source field caption string caption = null; if (node.Expression != null) { string source = ALSyntaxHelper.DecodeName(node.Expression.ToString()); if (!String.IsNullOrWhiteSpace(source)) { if (this.CurrentTable != null) { TableFieldTypeInformation tableField = this.CurrentTable.GetField(source); if ((tableField != null) && (!String.IsNullOrWhiteSpace(tableField.Caption))) { caption = tableField.Caption; } } if (String.IsNullOrWhiteSpace(caption)) { caption = source.Replace("\"", ""); } } } return(node.AddPropertyListProperties(this.CreateToolTipProperty(node, caption))); }
protected void ProcessPageFieldNode(ALSymbolInformation symbol, PageFieldSyntax syntax) { if (syntax.Expression != null) { symbol.source = ALSyntaxHelper.DecodeName(syntax.Expression.ToString()); } }
public override SyntaxNode VisitPageField(PageFieldSyntax node) { if ((this.NodeInSpan(node)) && (node.Triggers != null) && (node.Triggers.Count > 0) && (!node.ContainsDiagnostics)) { node = node.WithTriggers(this.Sort(node.Triggers)); } return(base.VisitPageField(node)); }
public override SyntaxNode VisitPageField(PageFieldSyntax node) { if (this.HasApplicationArea(node)) { return(base.VisitPageField(node)); } this.NoOfChanges++; return(node.AddPropertyListProperties(this.CreateApplicationAreaProperty(node))); }