Exemplo n.º 1
0
 public VariableDeclaratorTranslation(VariableDeclaratorSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
     Identifier  = syntax.Identifier.Get(this);
     Initializer = syntax.Initializer.Get <EqualsValueClauseTranslation>(this);
 }
 public ElementAccessExpressionTranslation(ElementAccessExpressionSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
     ArgumentList = syntax.ArgumentList.Get <BracketedArgumentListTranslation>(this);
     Expression   = syntax.Expression.Get <ExpressionTranslation>(this);
 }
Exemplo n.º 3
0
 public PointerTypeTranslation(PointerTypeSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
 }
Exemplo n.º 4
0
 public ForEachStatementTranslation(ForEachStatementSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
     Expression = syntax.Expression.Get <ExpressionTranslation>(this);
     Statement  = syntax.Statement.Get <StatementTranslation>(this);
     Type       = syntax.Type.Get <TypeTranslation>(this);
 }
Exemplo n.º 5
0
 public EmptyStatementTranslation(EmptyStatementSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
 }
 public ArgumentTranslation(ArgumentSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
     Expression = syntax.Expression.Get <ExpressionTranslation>(this);
 }
Exemplo n.º 7
0
 public ArrayTypeTranslation(ArrayTypeSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
     RankSpecifiers = syntax.RankSpecifiers.Get <ArrayRankSpecifierSyntax, ArrayRankSpecifierTranslation>(this);
     ElementType    = syntax.ElementType.Get <TypeTranslation>(this);
 }
Exemplo n.º 8
0
 public PropertyDeclarationTranslation(PropertyDeclarationSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
     Identifier = syntax.Identifier.Get(this);
 }
 public IndexerDeclarationTranslation(IndexerDeclarationSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
     ParameterList = syntax.ParameterList.Get <BracketedParameterListTranslation>(this);
 }
 public CaseSwitchLabelTranslation(CaseSwitchLabelSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
     Value = syntax.Value.Get <ExpressionTranslation>(this);
 }
Exemplo n.º 11
0
 public ObjectCreationExpressionTranslation(ObjectCreationExpressionSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
     ArgumentList = syntax.ArgumentList.Get <ArgumentListTranslation>(this);
     Initializer  = syntax.Initializer.Get <InitializerExpressionTranslation>(this);
     Type         = syntax.Type.Get <TypeTranslation>(this);
 }
 public SyntaxTokenListTranslation(SyntaxTokenList syntax, SyntaxTranslation parent) : base(null, parent)
 {
     tokenListSyntax = syntax;
     tokens          = syntax.Select(f => f.Get(this)).ToArray();
 }
Exemplo n.º 13
0
 public CSharpSyntaxTranslation(SyntaxNode syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
 }
Exemplo n.º 14
0
        public BasePropertyDeclarationTranslation(BasePropertyDeclarationSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
        {
            Type         = syntax.Type.Get <TypeTranslation>(this);
            AccessorList = syntax.AccessorList.Get <AccessorListTranslation>(this);
            Modifiers    = syntax.Modifiers.Get(this);

            AccessorList.SetModifier(Modifiers);
        }
Exemplo n.º 15
0
 public SeparatedSyntaxListTranslation(SeparatedSyntaxList <T> separatedSyntaxList, SyntaxTranslation parent) : base(parent)
 {
     this.separatedSyntaxList = separatedSyntaxList;
     this.Parent      = parent;
     SyntaxCollection = separatedSyntaxList.Select(f => f.Get <SyntaxTranslation>(this)).ToList();
 }
 public ArgumentListTranslation(ArgumentListSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
     Arguments = syntax.Arguments.Get <ArgumentSyntax, ArgumentTranslation>(this);
 }
Exemplo n.º 17
0
 public DefaultExpressionTranslation(DefaultExpressionSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
     Type = syntax.Type.Get <TypeTranslation>(this);
 }
Exemplo n.º 18
0
 public LiteralExpressionTranslation(LiteralExpressionSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
 }
Exemplo n.º 19
0
 public BaseExpressionTranslation(BaseExpressionSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
 }
 public DefaultSwitchLabelTranslation(DefaultSwitchLabelSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
 }
 public EnumDeclarationTranslation(EnumDeclarationSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
     Members           = syntax.Members.Get <EnumMemberDeclarationSyntax, EnumMemberDeclarationTranslation>(this);
     Members.IsNewLine = true;
 }
Exemplo n.º 22
0
 public YieldStatementTranslation(YieldStatementSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
     Expression = syntax.Expression.Get <ExpressionTranslation>(this);
 }
Exemplo n.º 23
0
 public BaseParameterListTranslation(BaseParameterListSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
     Parameters = syntax.Parameters.Get <ParameterSyntax, ParameterTranslation>(this);
 }
        public MemberAccessExpressionTranslation(MemberAccessExpressionSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
        {
            Expression = syntax.Expression.Get <ExpressionTranslation>(this);
            Name       = syntax.Name.Get <SimpleNameTranslation>(this);

            var simpleName = Name as SimpleNameTranslation;

            if (simpleName != null)
            {
                simpleName.DetectApplyThis = false;
            }
        }
 public ParenthesizedExpressionTranslation(ParenthesizedExpressionSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
     Expression = syntax.Expression.Get <ExpressionTranslation>(this);
 }
Exemplo n.º 26
0
 public FinallyClauseTranslation(FinallyClauseSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
     Block = syntax.Block.Get <BlockTranslation>(this);
 }
 public TypeConstraintTranslation(TypeConstraintSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
     Type = syntax.Type.Get <TypeTranslation>(this);
 }
 public SwitchStatementTranslation(SwitchStatementSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
     Expression = syntax.Expression.Get <ExpressionTranslation>(this);
     Sections   = syntax.Sections.Get <SwitchSectionSyntax, SwitchSectionTranslation>(this);
 }
Exemplo n.º 29
0
 public ConditionalAccessExpressionTranslation(ConditionalAccessExpressionSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
     Expression  = syntax.Expression.Get <ExpressionTranslation>(this);
     WhenNotNull = syntax.WhenNotNull.Get <ExpressionTranslation>(this);
 }
 public ConditionalExpressionTranslation(ConditionalExpressionSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
     Condition = syntax.Condition.Get <ExpressionTranslation>(this);
     WhenFalse = syntax.WhenFalse.Get <ExpressionTranslation>(this);
     WhenTrue  = syntax.WhenTrue.Get <ExpressionTranslation>(this);
 }