var node = // get syntax node for property declaration bool isProperty = node.CheckType();
var node = // get syntax node for class declaration bool isClass = node.CheckType();
var node = // get syntax node for binary expression bool isBinaryExpression = node.CheckTypeThese examples use the C# language and the Microsoft.CodeAnalysis package library.();