Ejemplo n.º 1
0
        public bool TryGetExternalSourceInfo(SyntaxNode node, out ExternalSourceInfo info)
        {
            var lineDirective = node as LineDirectiveTriviaSyntax;

            if (lineDirective != null)
            {
                if (lineDirective.Line.Kind() == SyntaxKind.DefaultKeyword)
                {
                    info = new ExternalSourceInfo(null, ends: true);
                    return(true);
                }
                else if (lineDirective.Line.Kind() == SyntaxKind.NumericLiteralToken &&
                         lineDirective.Line.Value is int)
                {
                    info = new ExternalSourceInfo((int)lineDirective.Line.Value, false);
                    return(true);
                }
            }

            info = default(ExternalSourceInfo);
            return(false);
        }
 public bool TryGetExternalSourceInfo(SyntaxNode directive, out ExternalSourceInfo info)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 3
0
 public PackageItem(AK.Wwise.InfoFile.FileDescriptorType in_descriptor, ExternalSourceInfo in_externalSourceInfo)
 {
     Descriptor         = in_descriptor;
     ExternalSourceInfo = in_externalSourceInfo;
 }