public OperatorDeclarationTranslation(OperatorDeclarationSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
     ReturnType = syntax.ReturnType.Get <TypeTranslation>(this);
     Identifier = new TokenTranslation {
         SyntaxString = Helper.OperatorToMethod(syntax.OperatorToken.ToString())
     };
 }
예제 #2
0
 public PropertyDeclarationTranslation(PropertyDeclarationSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
     Identifier = syntax.Identifier.Get(this);
 }
예제 #3
0
        public static TokenTranslation Get(this SyntaxToken token, SyntaxTranslation parent)
        {
            var newToken = new TokenTranslation(token, parent);

            return(newToken);
        }
 public bool TokenEquals(TokenTranslation another)
 {
     return this.ToString() == another.ToString();
 }
 public bool TokenEquals(TokenTranslation another)
 {
     return(this.ToString() == another.ToString());
 }
 public OperatorDeclarationTranslation(OperatorDeclarationSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
     ReturnType = syntax.ReturnType.Get<TypeTranslation>(this);
     Identifier = new TokenTranslation { SyntaxString = Helper.OperatorToMethod(syntax.OperatorToken.ToString()) };
 }
 public PropertyDeclarationTranslation(PropertyDeclarationSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
     Identifier = syntax.Identifier.Get(this);
 }