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); }
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()) }; }