C# Class Pash.ParserIntrinsics.AstBuilder

ファイルを表示 Open project: Pash-Project/Pash Class Usage Examples

Public Methods

Method Description
AstBuilder ( Pash.ParserIntrinsics.PowerShellGrammar grammar, ParseTree parseTree ) : System
BuildScriptBlockAst ( ParseTreeNode parseTreeNode ) : ScriptBlockAst

Private Methods

Method Description
BuildAdditiveArgumentExpressionAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.ExpressionAst
BuildAdditiveExpressionAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.ExpressionAst
BuildArgumentExpressionAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.ExpressionAst
BuildArgumentExpressionList ( ParseTreeNode parseTreeNode ) : IEnumerable
BuildArrayExpressionAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.ArrayExpressionAst
BuildArrayLiteralExpressionAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.ExpressionAst
BuildAssignementExpression ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.PipelineBaseAst
BuildBitwiseArgumentExpressionAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.ExpressionAst
BuildBitwiseExpressionAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.ExpressionAst
BuildBreakStatementAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.StatementAst
BuildCastExpression ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.ExpressionAst
BuildCatchClauseAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.CatchClauseAst
BuildCatchClausesAst ( ParseTreeNode parseTreeNode ) : IEnumerable
BuildCommandArgumentAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.ExpressionAst
BuildCommandArgumentAstFromCommandElement ( ParseTreeNode parseTreeNode, string parameterName ) : System.Management.Automation.Language.ExpressionAst
BuildCommandAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.CommandAst
BuildCommandElementRedirectionAsts ( ParseTreeNode parseTreeNode ) : IEnumerable
BuildCommandExpressionAst ( ParseTreeNode parseTreeNode, IEnumerable redirections = null ) : System.Management.Automation.Language.CommandExpressionAst
BuildCommandNameAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.StringConstantExpressionAst
BuildCommandNameExprAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.ExpressionAst
BuildCommandOptElementAsts ( ParseTreeNode parseTreeNode ) : IEnumerable
BuildCommandParameterAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.CommandParameterAst
BuildComparisonArgumentExpressionAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.ExpressionAst
BuildComparisonExpressionAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.ExpressionAst
BuildContinueStatementAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.StatementAst
BuildDataStatementAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.StatementAst
BuildDecimalIntegerLiteralAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.ConstantExpressionAst
BuildDecimalRealLiteralAst ( ParseTreeNode parseTreeNode, Group multiplier, Group decimalTypeSuffix ) : System.Management.Automation.Language.ConstantExpressionAst
BuildDoLoopStatementAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.LoopStatementAst
BuildDoubleRealLiteralAst ( ParseTreeNode parseTreeNode, Group multiplier ) : System.Management.Automation.Language.ConstantExpressionAst
BuildElementAccessAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.IndexExpressionAst
BuildExitStatementAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.StatementAst
BuildExpandableHereStringLiteralAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.ExpressionAst
BuildExpandableStringLiteralAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.ExpressionAst
BuildExpandableStringLiteralWithSubexpressionAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.ExpressionAst
BuildExpressionAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.ExpressionAst
BuildExpressionWithUnaryOperatorAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.ExpressionAst
BuildFinallyClauseAst ( ParseTreeNode finallyClause ) : System.Management.Automation.Language.StatementBlockAst
BuildFlowControlStatementAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.StatementAst
BuildForEachStatementAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.ForEachStatementAst
BuildForStatementAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.ForStatementAst
BuildFormatArgumentExpressionAst ( ParseTreeNode parseTreeNode ) : System.Management.Automation.Language.ExpressionAst
BuildFormatExpressionAst ( ParseTreeNode parseTreeNode ) : ExpressionAst
BuildFunctionStatementAst ( ParseTreeNode parseTreeNode ) : StatementAst
BuildGenericTokenAst ( ParseTreeNode parseTreeNode ) : StringConstantExpressionAst
BuildHashLiteralExpressionAst ( ParseTreeNode parseTreeNode ) : HashtableAst
BuildHexadecimalIntegerLiteralAst ( ParseTreeNode parseTreeNode ) : ConstantExpressionAst
BuildIfStatementAst ( ParseTreeNode parseTreeNode ) : IfStatementAst
BuildIfStatementClauseAst ( ParseTreeNode parseTreeNode ) : StatementBlockAst>.Tuple
BuildIfStatementConditionAst ( ParseTreeNode parseTreeNode ) : PipelineBaseAst
BuildIntegerLiteralAst ( ParseTreeNode parseTreeNode ) : ConstantExpressionAst
BuildKeyExpressionAst ( ParseTreeNode parseTreeNode ) : ExpressionAst
BuildLabelExpressionAst ( ParseTreeNode parseTreeNode ) : ExpressionAst
BuildLabeledStatementAst ( ParseTreeNode parseTreeNode ) : StatementAst
BuildLiteralAst ( ParseTreeNode parseTreeNode ) : ExpressionAst
BuildLogicalArgumentExpressionAst ( ParseTreeNode parseTreeNode ) : ExpressionAst
BuildLogicalExpressionAst ( ParseTreeNode parseTreeNode ) : ExpressionAst
BuildMemberAccessOrInvocationExpressionAst ( ParseTreeNode parseTreeNode ) : MemberExpressionAst
BuildMemberNameAst ( ParseTreeNode parseTreeNode ) : CommandElementAst
BuildMultiplicativeArgumentExpressionAst ( ParseTreeNode parseTreeNode ) : ExpressionAst
BuildMultiplicativeExpressionAst ( ParseTreeNode parseTreeNode ) : ExpressionAst
BuildNamedBlockListAst ( ParseTreeNode parseTreeNode ) : StatementBlockAst
BuildParamBlockAst ( ParseTreeNode parseTreeNode ) : ParamBlockAst
BuildParameterAst ( ParseTreeNode parseTreeNode ) : ParameterAst
BuildParameterDefaultExpressionAst ( ParseTreeNode parseTreeNode ) : ExpressionAst
BuildParameterListAst ( ParseTreeNode parseTreeNode ) : IEnumerable
BuildParenthesizedExpressionAst ( ParseTreeNode parseTreeNode ) : ParenExpressionAst
BuildPipelineAst ( ParseTreeNode parseTreeNode ) : PipelineBaseAst
BuildPipelineCommandAst ( ParseTreeNode parseTreeNode ) : PipelineBaseAst
BuildPipelineExpressionAst ( ParseTreeNode parseTreeNode ) : PipelineBaseAst
BuildPipelineTailAst ( ParseTreeNode parseTreeNode ) : CommandAst
BuildPostDecrementExpressionAst ( ParseTreeNode parseTreeNode ) : ExpressionAst
BuildPostIncrementExpressionAst ( ParseTreeNode parseTreeNode ) : ExpressionAst
BuildPrefixIncrementDecrementExpressionAst ( ParseTreeNode parseTreeNode, string op, TokenKind token ) : ExpressionAst
BuildPrimaryExpressionAst ( ParseTreeNode parseTreeNode ) : ExpressionAst
BuildRangeArgumentExpressionAst ( ParseTreeNode parseTreeNode ) : ExpressionAst
BuildRangeExpressionAst ( ParseTreeNode parseTreeNode ) : ExpressionAst
BuildRealLiteralAst ( ParseTreeNode parseTreeNode ) : ConstantExpressionAst
BuildRedirectionAst ( ParseTreeNode parseTreeNode ) : RedirectionAst
BuildRedirectionsAst ( ParseTreeNode parseTreeNode ) : IEnumerable
BuildReturnStatementAst ( ParseTreeNode parseTreeNode ) : StatementAst
BuildScriptBlockBodyAst ( ParseTreeNode parseTreeNode ) : StatementBlockAst
BuildScriptBlockExpressionAst ( ParseTreeNode parseTreeNode ) : ScriptBlockExpressionAst
BuildSimpleNameAst ( ParseTreeNode parseTreeNode ) : ExpressionAst
BuildStatementAst ( ParseTreeNode parseTreeNode ) : StatementAst
BuildStatementBlockAst ( ParseTreeNode parseTreeNode ) : StatementBlockAst
BuildStatementListAst ( ParseTreeNode parseTreeNode ) : StatementBlockAst
BuildStatementListRecursion ( ParseTreeNode parseTreeNode ) : IEnumerable
BuildStringLiteralAst ( ParseTreeNode parseTreeNode ) : ExpressionAst
BuildStringLiteralWithSubexpressionAst ( ParseTreeNode parseTreeNode ) : ExpressionAst
BuildSubExpression ( ParseTreeNode parseTreeNode ) : SubExpressionAst
BuildThrowStatementAst ( ParseTreeNode parseTreeNode ) : StatementAst
BuildTrapStatementAst ( ParseTreeNode parseTreeNode ) : StatementAst
BuildTryStatementAst ( ParseTreeNode parseTreeNode ) : StatementAst
BuildTypeConstraintAst ( ParseTreeNode parseTreeNode ) : TypeConstraintAst
BuildTypeLiteralAst ( ParseTreeNode parseTreeNode ) : TypeExpressionAst
BuildTypeName ( ParseTreeNode parseTreeNode ) : TypeName
BuildUnaryDashExpressionAst ( ParseTreeNode parseTreeNode ) : ExpressionAst
BuildUnaryExpressionAst ( ParseTreeNode parseTreeNode ) : ExpressionAst
BuildUnaryOrSimpleNameExpressionAstUnsafe ( ParseTreeNode parseTreeNode ) : ExpressionAst
BuildValueAst ( ParseTreeNode parseTreeNode ) : ExpressionAst
BuildVariableAst ( ParseTreeNode parseTreeNode ) : VariableExpressionAst
BuildVerbatimHereStringLiteralAst ( ParseTreeNode parseTreeNode ) : ExpressionAst
BuildVerbatimStringLiteralAst ( ParseTreeNode parseTreeNode ) : StringConstantExpressionAst
BuildWhileStatementAst ( ParseTreeNode parseTreeNode ) : WhileStatementAst
CanMergeMemberAccessExpressions ( Ast left, Ast right ) : bool
GetBinaryOperatorTokenKind ( ParseTreeNode parseTreeNode ) : TokenKind
GetPipelineTailsCommandList ( ParseTreeNode parseTreeNode ) : IEnumerable
GetRootConstantExpression ( CommandElementAst element ) : ConstantExpressionAst
MergeExtents ( IScriptExtent left, IScriptExtent right ) : IScriptExtent
MergeMemberAccessExpressions ( Ast left, CommandElementAst right ) : StringConstantExpressionAst
ParseIntOrLongLiteral ( string literal, string multiplier, NumberStyles style, object &parsed ) : bool
ParseMultiplicativeOperator ( ParseTreeNode parseTreeNode ) : TokenKind
PostprocessCommandElements ( IEnumerable elements ) : IEnumerable
RemoveMatchedString ( string text, Group match ) : string
SelectTokenKind ( ParseTreeNode parseTreeNode ) : TokenKind
ToConstantExpression ( Ast element ) : ConstantExpressionAst
VerifyExpressionIsIncrementableOrDecrementable ( ExpressionAst exp, string op ) : void
VerifyTerm ( ParseTreeNode parseTreeNode, BnfTerm expectedTerm ) : void

Method Details

AstBuilder() public method

public AstBuilder ( Pash.ParserIntrinsics.PowerShellGrammar grammar, ParseTree parseTree ) : System
grammar Pash.ParserIntrinsics.PowerShellGrammar
parseTree Irony.Parsing.ParseTree
return System

BuildScriptBlockAst() public method

public BuildScriptBlockAst ( ParseTreeNode parseTreeNode ) : ScriptBlockAst
parseTreeNode ParseTreeNode
return ScriptBlockAst