Exemple #1
0
 public FieldDeclarationTranslation(FieldDeclarationSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
     Declaration            = syntax.Declaration.Get <VariableDeclarationTranslation>(this);
     Declaration.ExcludeVar = true;
     Modifiers = syntax.Modifiers.Get(this);
     Modifiers.ConstantToStatic = true;
 }
 public void SetModifier(SyntaxTokenListTranslation modifiers)
 {
     foreach (var item in Accessors.GetEnumerable())
     {
         item.ParentModifiers = modifiers.TokenListSyntax.Get(item);
     }
 }
Exemple #3
0
 public void SetModifier(SyntaxTokenListTranslation modifiers)
 {
     foreach (var item in Accessors.GetEnumerable())
     {
         item.ParentModifiers = modifiers.TokenListSyntax.Get(item);
     }
 }
 public FieldDeclarationTranslation(FieldDeclarationSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
     Declaration = syntax.Declaration.Get<VariableDeclarationTranslation>(this);
     Declaration.ExcludeVar = true;
     Modifiers = syntax.Modifiers.Get(this);
     Modifiers.ConstantToStatic = true;                     
 }
Exemple #5
0
        public static SyntaxTokenListTranslation Get(this SyntaxTokenList list, SyntaxTranslation parent)
        {
            var newList = new SyntaxTokenListTranslation(list, parent);

            return(newList);
        }