コード例 #1
0
ファイル: SourceMapper.cs プロジェクト: gpduck/ScriptMap
    public System.Object VisitNamedAttributeArgument(System.Management.Automation.Language.NamedAttributeArgumentAst namedAttributeArgumentAst)
    {
        IScriptExtent mappedExtent = MapExtent(namedAttributeArgumentAst.Extent);

        ExpressionAst mappedArgument = _VisitExpression(namedAttributeArgumentAst.Argument);

        return(new NamedAttributeArgumentAst(mappedExtent, namedAttributeArgumentAst.ArgumentName, mappedArgument, namedAttributeArgumentAst.ExpressionOmitted));
    }
コード例 #2
0
 public override AstVisitAction VisitNamedAttributeArgument(NamedAttributeArgumentAst namedAttributeArgumentAst)
 {
     return AstVisitAction.Continue;
 }
コード例 #3
0
ファイル: Compiler.cs プロジェクト: 40a/PowerShell
 public object VisitNamedAttributeArgument(NamedAttributeArgumentAst namedAttributeArgumentAst)
 {
     Diagnostics.Assert(false, "Nothing to generate for a named attribute argument");
     return null;
 }
コード例 #4
0
ファイル: SafeValues.cs プロジェクト: 40a/PowerShell
 public object VisitNamedAttributeArgument(NamedAttributeArgumentAst namedAttributeArgumentAst) { throw PSTraceSource.NewArgumentException("ast"); }
コード例 #5
0
ファイル: ConstantValues.cs プロジェクト: 40a/PowerShell
 public object VisitNamedAttributeArgument(NamedAttributeArgumentAst namedAttributeArgumentAst) { return AutomationNull.Value; }
コード例 #6
0
 public object VisitNamedAttributeArgument(NamedAttributeArgumentAst namedAttributeArgumentAst)
 {
     return(AutomationNull.Value);
 }
コード例 #7
0
ファイル: AstVisitor.cs プロジェクト: JamesTryand/Pash2
 public virtual AstVisitAction VisitNamedAttributeArgument(NamedAttributeArgumentAst namedAttributeArgumentAst)
 {
     return AstVisitAction.Continue;
 }
コード例 #8
0
 /// <summary/>
 public virtual AstVisitAction VisitNamedAttributeArgument(NamedAttributeArgumentAst namedAttributeArgumentAst) => DefaultVisit(namedAttributeArgumentAst);
コード例 #9
0
 public object VisitNamedAttributeArgument(NamedAttributeArgumentAst namedAttributeArgumentAst)
 {
     return(false);
 }
コード例 #10
0
ファイル: SafeValues.cs プロジェクト: Hoorge/PowerShell-1
 public object VisitNamedAttributeArgument(NamedAttributeArgumentAst namedAttributeArgumentAst)
 {
     throw PSTraceSource.NewArgumentException(nameof(namedAttributeArgumentAst));
 }
コード例 #11
0
 /// <summary/>
 public virtual AstVisitAction VisitNamedAttributeArgument(NamedAttributeArgumentAst namedAttributeArgumentAst)
 {
     return(AstVisitAction.Continue);
 }
コード例 #12
0
 public override AstVisitAction VisitNamedAttributeArgument(NamedAttributeArgumentAst ast)
 {
     return(Check(ast));
 }
コード例 #13
0
 /// <summary/>
 public virtual object VisitNamedAttributeArgument(NamedAttributeArgumentAst namedAttributeArgumentAst)
 {
     return(null);
 }
コード例 #14
0
ファイル: AstVisitor.cs プロジェクト: 40a/PowerShell
 /// <summary/>
 public virtual object VisitNamedAttributeArgument(NamedAttributeArgumentAst namedAttributeArgumentAst) { return null; }
コード例 #15
0
 /// <summary>
 /// Visit named attribute
 /// </summary>
 /// <param name="namedAttributeArgumentAst"></param>
 /// <returns></returns>
 public object VisitNamedAttributeArgument(NamedAttributeArgumentAst namedAttributeArgumentAst)
 {
     System.Diagnostics.Debug.Assert(false, "Code is unreachable");
     return null;
 }
コード例 #16
0
ファイル: SemanticChecks.cs プロジェクト: dfinke/powershell
        public override AstVisitAction VisitNamedAttributeArgument(NamedAttributeArgumentAst namedAttributeArgumentAst)
        {
            Diagnostics.Assert(FoundError, "VisitAttributedExpression or VisitParameter or VisitParamBlock should have issued an error.");

            return AstVisitAction.Continue;
        }
コード例 #17
0
 /// <summary/>
 public virtual object VisitNamedAttributeArgument(NamedAttributeArgumentAst namedAttributeArgumentAst)
 {
     return _decorated.VisitNamedAttributeArgument(namedAttributeArgumentAst);
 }
コード例 #18
0
 public object VisitNamedAttributeArgument(NamedAttributeArgumentAst namedAttributeArgumentAst) { throw new UnexpectedElementException(); }
コード例 #19
0
ファイル: ExecutionVisitor.cs プロジェクト: JayBazuzi/Pash
 public override AstVisitAction VisitNamedAttributeArgument(NamedAttributeArgumentAst namedAttributeArgumentAst)
 {
     throw new NotImplementedException(); //VisitNamedAttributeArgument(namedAttributeArgumentAst);
 }
コード例 #20
0
ファイル: AstSearcher.cs プロジェクト: nickchal/pash
 public override AstVisitAction VisitNamedAttributeArgument(NamedAttributeArgumentAst ast)
 {
     return this.Check(ast);
 }
コード例 #21
0
 public object VisitNamedAttributeArgument(NamedAttributeArgumentAst namedAttributeArgumentAst)
 {
     return false;
 }
コード例 #22
0
 public object VisitNamedAttributeArgument(NamedAttributeArgumentAst namedAttributeArgumentAst)
 {
     throw new NotImplementedException();
 }