public static SyntaxListTranslation <T, TS> Get <T, TS>(this SyntaxList <T> syntaxList, SyntaxTranslation parent) where T : SyntaxNode where TS : SyntaxTranslation
        {
            var newList = new SyntaxListTranslation <T, TS>(syntaxList, parent);

            return(newList);
        }
Esempio n. 2
0
 public BlockTranslation()
 {
     Statements = new SyntaxListTranslation <StatementSyntax, StatementTranslation>();
 }
Esempio n. 3
0
 public BlockTranslation(BlockSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
     Statements = syntax.Statements.Get <StatementSyntax, StatementTranslation>(this);
 }
Esempio n. 4
0
 public CompilationUnitTranslation(CompilationUnitSyntax syntax, SyntaxTranslation parent) : base(syntax, null)
 {
     Members = syntax.Members.Get <MemberDeclarationSyntax, MemberDeclarationTranslation>(this);
 }