public override void VisitRunAsStatement(RunAsStatementSyntax node) { AppendLeadingComments(node); AppendIndented("using (System.runAs("); node.Expression.Accept(this); AppendLine("))"); AppendStatementWithOptionalIndent(node.Statement); }
public void ApexRunAsStatementIsSupported() { var runAsStatement = new RunAsStatementSyntax { Expression = new ExpressionSyntax("getCurrentUser()"), Statement = new BlockSyntax { new BreakStatementSyntax(), }, }; Check(runAsStatement, @"System.runAs(getCurrentUser()) { break; }"); }
public virtual void VisitRunAsStatement(RunAsStatementSyntax node) => DefaultVisit(node);